/* Alam Kecil — Static CSS */
:root {
    --bg: #faf8f3;
    --fg: #2d3327;
    --muted: #6b7560;
    --muted-transparant: #6b756017;
    --border: #e6e2d6;
    --primary: #3d5a3a;
    --primary-fg: #faf8f3;
    --secondary: #ece8d8;
    --cream: #f5efdf;
    --gold: #a8893f;
    --card: #ffffff;
    --shadow: 0 4px 20px -8px rgba(45, 51, 39, .12);
    --shadow-lg: 0 20px 50px -20px rgba(45, 51, 39, .25);
    --font-display: "Playfair Display", Georgia, serif;
    --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
    --font-rate-mypost: "RateMyPost", sans-serif;
}

@font-face {
    font-family: "RateMyPost";
    src: url("../../font/ratemypost.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth
}

body {
    font-family: var(--font-rate-mypost);
    background: var(--bg);
    color: var(--fg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased
}

img {
    max-width: 100%;
    display: block
}

a {
    color: inherit;
    text-decoration: none
}

button {
    font: inherit;
    cursor: pointer;
    border: 0;
    background: none;
    color: inherit
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-rate-mypost);
    letter-spacing: -.01em;
    line-height: 1.15;
    color: var(--primary)
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 1.5rem;
    border-radius: 999px;
    font-weight: 500;
    transition: all .3s ease;
    font-size: .95rem
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-fg)
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(61, 90, 58, .4)
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--primary-fg)
}

.btn-sm {
    padding: .5rem 1rem;
    font-size: .8rem
}

/* Top bar */
/* =========================================
   TOPBAR
========================================= */
.topbar {
    background: var(--primary);
    color: var(--primary-fg);
    font-size: .8rem;
}

.topbar .inner {
    max-width: 1200px;
    margin: auto;
    padding: .6rem 1rem;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.topbar .left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.topbar span {
    display: flex;
    align-items: center;
    gap: .35rem;
    white-space: nowrap;
}

.topbar svg {
    flex-shrink: 0;
}

@media (max-width:768px) {

    .topbar .inner {
        justify-content: center;
    }

    .topbar .left {
        width: 100%;
        justify-content: center;
        gap: .8rem 1.2rem;
    }

}

@media (max-width:576px) {

    .hide-sm {
        /*display: none !important;*/
    }

    .topbar {
        font-size: .72rem;
    }

    .topbar .inner {
        padding: .55rem .75rem;
    }

    .topbar .left {
        justify-content: start;
        gap: .7rem;
    }

    .topbar span {
        gap: .25rem;
    }

    .topbar svg {
        width: 13px;
        height: 13px;
    }

}

/* Header */
header.site {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(250, 248, 243, .88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border)
}

header .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    max-width: 1200px;
    margin: 0 auto
}

.brand {
    display: flex;
    align-items: center;
    gap: .6rem
}

.brand img {
    width: 65px;
    height: 50px;
    object-fit: contain;
    animation: float 4s ease-in-out infinite;
}

.brand .name {
    font-family: var(--font-rate-mypost);
    font-size: 1.3rem;
    color: var(--primary);
    line-height: 1
}

.brand .sub {
    font-size: 9px;
    letter-spacing: .2em;
    color: var(--muted);
    margin-top: 2px
}

nav.main {
    display: none;
    gap: 1.75rem
}

@media(min-width:960px) {
    nav.main {
        display: flex
    }
}

nav.main a {
    font-size: .9rem;
    color: #3d4737;
    position: relative;
    padding: .25rem 0
}

nav.main a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width .3s
}

nav.main a:hover {
    color: var(--primary)
}

nav.main a:hover::after {
    width: 100%
}

.icons {
    display: flex;
    align-items: center;
    gap: .5rem
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: background .2s;
    position: relative;
    color: #3d4737
}

.icon-btn:hover {
    background: var(--secondary)
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--primary);
    color: var(--primary-fg);
    font-size: 10px;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: grid;
    place-items: center
}

/* Mobile bottom bar (ala aplikasi) */
.bottombar {
    display: none;
}

@media(max-width:959px) {

    header.site .icons .hide-mobile {
        display: none;
    }

    body {
        padding-bottom: 72px;
    }

    .bottombar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 50;
        background: rgba(250, 248, 243, .95);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--border);
        padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom));
    }

    .bottombar a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        font-size: 10px;
        color: var(--muted);
        position: relative;
        padding: .3rem 0;
    }

    .bottombar a.active {
        color: var(--primary);
        font-weight: 600;
    }

    .bottombar .cart-count {
        top: -2px;
        right: calc(50% - 20px);
    }

}

.mobile-toggle:hover {
    background: var(--secondary);
}

@media(min-width:960px) {
    .mobile-toggle {
        display: none
    }
}

.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 1rem;
    gap: .75rem;
    border-top: 1px solid var(--border)
}

.mobile-nav.open {
    display: flex
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, var(--cream), var(--bg));
    padding: 10px;
}

.hero .leaf {
    position: absolute;
    color: rgba(61, 90, 58, .18);
    pointer-events: none
}

.hero .leaf.l1 {
    top: 30px;
    left: 30px;
    width: 80px;
    height: 80px;
    animation: leafSway 5s ease-in-out infinite
}

.hero .leaf.l2 {
    bottom: 50px;
    right: 60px;
    width: 110px;
    height: 110px;
    animation: leafSway 5s ease-in-out infinite 1.5s
}

.hero .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3.5rem 0;
    position: relative
}

@media(min-width:900px) {
    .hero .grid {
        grid-template-columns: 1fr 1fr;
        padding: 5rem 0
    }
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.75rem);
    color: var(--primary)
}

.hero h1 .gold {
    color: var(--gold)
}

.hero p.lead {
    margin-top: 1.2rem;
    color: var(--muted);
    max-width: 28rem
}

.features-mini {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.75rem;
    max-width: 30rem
}

@media(min-width:600px) {
    .features-mini {
        grid-template-columns: repeat(4, 1fr)
    }
}

.fm {
    text-align: center
}

.fm .circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--secondary);
    display: grid;
    place-items: center;
    margin: 0 auto .5rem;
    color: var(--primary)
}

.fm .label {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.3;
    white-space: pre-line
}

.hero-img {
    position: relative
}

.hero-img .frame {
    aspect-ratio: 1/1;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: fadeScale .8s ease
}

.hero-img .frame img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.hero-img .badge {
    position: absolute;
    bottom: -15px;
    right: -10px;
    width: 110px;
    height: 110px;
    background: var(--bg);
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: float 3s ease-in-out infinite
}

.hero-img .badge .t {
    font-family: var(--font-rate-mypost);
    color: var(--primary);
    font-size: .95rem;
    margin-top: .2rem
}

.hero-img .badge .s {
    font-size: 9px;
    color: var(--muted)
}

/* Sections */
section.pad {
    padding: 5rem 0;
    background: var(--bg);
}

.eyebrow {
    font-size: 11px;
    letter-spacing: .3em;
    color: var(--gold);
    text-align: center;
    margin-bottom: .85rem
}

.section-title {
    text-align: center;
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    margin-bottom: 2.5rem
}

/* Signature products */
.sig-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem
}

@media(min-width:768px) {
    .sig-grid {
        grid-template-columns: 1fr 1fr
    }
}

.sig-card {
    background: var(--card);
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    transition: box-shadow .3s
}

@media(min-width:520px) {
    .sig-card {
        grid-template-columns: 180px 1fr
    }
}

.sig-card:hover {
    box-shadow: var(--shadow-lg)
}

.sig-card .img {
    aspect-ratio: 1;
    background: var(--cream);
    border-radius: 1rem;
    overflow: hidden
}

.sig-card .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s
}

.sig-card:hover .img img {
    transform: scale(1.05)
}

.sig-card h3 {
    font-size: 1.25rem
}

.sig-card p {
    font-size: .88rem;
    color: var(--muted);
    margin-top: .5rem
}

.mini-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
    margin: 1rem 0;
    text-align: center;
    font-size: 10px;
    color: var(--muted)
}

.mini-benefits .circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--secondary);
    display: grid;
    place-items: center;
    margin: 0 auto .25rem;
    color: var(--primary)
}

/* Why */
.why-box {
    background: var(--cream);
    border-radius: 1.75rem;
    padding: 2.5rem 1.5rem
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    text-align: center
}

@media(min-width:768px) {
    .why-grid {
        grid-template-columns: repeat(5, 1fr)
    }
}

.why-grid .circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg);
    display: grid;
    place-items: center;
    margin: 0 auto .75rem;
    box-shadow: var(--shadow);
    color: var(--primary)
}

.why-grid .t {
    font-size: .9rem;
    font-weight: 500
}

.why-grid .s {
    font-size: .85rem;
    color: var(--muted)
}

/* About section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center
}

@media(min-width:900px) {
    .about-grid {
        grid-template-columns: 1fr 1fr
    }
}

.about-grid .img {
    aspect-ratio: 4/3;
    border-radius: 1.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg)
}

.about-grid .img img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.about-grid h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem)
}

.about-grid p.desc {
    color: var(--muted);
    margin-top: 1.2rem
}

.about-list {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .75rem
}

.about-list .it {
    display: flex;
    gap: .75rem;
    background: rgba(255, 255, 255, .6);
    backdrop-filter: blur(6px);
    padding: .75rem;
    border-radius: .85rem
}

.about-list .circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: var(--primary)
}

.about-list .t {
    font-size: .9rem;
    font-weight: 500
}

.about-list .s {
    font-size: .78rem;
    color: var(--muted)
}

/* Testimonials */
.testi-bg {
    background: var(--cream)
}

.testi-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem
}

@media(min-width:768px) {
    .testi-grid {
        grid-template-columns: repeat(3, 1fr)
    }
}

.testi {
    background: var(--card);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow)
}

.testi .q {
    font-family: var(--font-rate-mypost);
    color: var(--gold);
    font-size: 2rem;
    line-height: .5
}

.testi p {
    font-size: .88rem;
    color: #3d4737;
    margin-top: .6rem
}

.testi-product {
    display: inline-block;
    margin-top: .6rem;
    font-size: .75rem;
    color: var(--primary);
    background: var(--secondary);
    border-radius: 999px;
    padding: .25rem .75rem;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.testi-more {
    display: inline-block;
    margin-left: .25rem;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    padding: 0 .5rem;
    font-weight: 600;
}

/* Live streaming */
.live-bg {
    background: linear-gradient(to bottom, var(--bg), var(--cream));
}

.live-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.live-grid.single {
    grid-template-columns: 1fr;
}

@media(min-width:768px) {
    .live-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .live-grid.single {
        grid-template-columns: 1fr;
    }
}

.live-facade {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    padding: 0;
    cursor: pointer;
    background: #111;
}

.live-facade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.live-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 3rem;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
    background: rgba(0, 0, 0, .15);
}

/* Fasad logo platform (bila tidak ada thumbnail) */
.live-logo-facade {
    background: linear-gradient(135deg, #243a22, #3d5a3a);
    min-height: 220px;
}

.live-logo {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 84px;
    height: 84px;
}

.live-play.sm {
    font-size: 2rem;
}

/* YouTube: kotak merah + segitiga */
.live-logo.youtube {
    background: #ff0033;
    border-radius: 22%;
    width: 96px;
    height: 68px;
}

.live-logo.youtube::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 0;
    height: 0;
    border-left: 26px solid #fff;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    transform: translateX(4px);
}

/* TikTok: bulatan hitam + not */
.live-logo.tiktok {
    background: #111;
    border-radius: 50%;
}

.live-logo.tiktok::after {
    content: "♪";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 2.6rem;
    text-shadow: 3px 0 0 #fe2c55, -3px 0 0 #25f4ee;
}

/* Instagram: bingkai gradien + lensa */
.live-logo.instagram {
    border-radius: 26%;
    background: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7);
}

.live-logo.instagram::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 5px solid #fff;
    border-radius: 26%;
}

.live-logo.instagram::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border: 5px solid #fff;
    border-radius: 50%;
    inset: 0;
    margin: auto;
}

/* Facebook: bulatan biru + f */
.live-logo.facebook {
    background: #1877f2;
    border-radius: 50%;
}

.live-logo.facebook::after {
    content: "f";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    font-family: Georgia, serif;
}

/* Lainnya: bulatan hijau + play */
.live-logo.other {
    background: var(--primary);
    border-radius: 50%;
}

.live-logo.other::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 0;
    height: 0;
    border-left: 26px solid #fff;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    transform: translateX(4px);
}

.live-card {
    background: var(--card);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.live-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #111;
}

.live-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.live-open {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--primary), #243a22);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.live-body {
    padding: 1.1rem 1.25rem 1.25rem;
    display: grid;
    gap: .5rem;
    justify-items: start;
}

.live-body h3 {
    font-size: 1rem;
    margin: 0;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .72rem;
    font-weight: 600;
    color: #b04545;
    background: #fdecea;
    border-radius: 999px;
    padding: .2rem .7rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d93025;
    animation: liveblink 1.4s infinite;
}

@keyframes liveblink {
    0%, 100% { opacity: 1; }
    50% { opacity: .25; }
}

.stars {
    color: var(--gold);
    margin-top: .75rem;
    letter-spacing: 2px
}

.testi .who {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: 1rem
}

.testi .av {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary);
    display: grid;
    place-items: center;
    color: var(--primary);
    font-weight: 600
}

.testi-grid .empty {
    grid-column: 1 / -1
}

/* Landing data loading state */
.shimmer-card {
    background: var(--card);
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    overflow: hidden
}

.shimmer {
    background: linear-gradient(100deg, #eeeade 25%, #f8f6ef 40%, #eeeade 55%);
    background-size: 200% 100%;
    animation: shimmer 1.25s infinite linear;
    border-radius: .5rem
}

.shimmer-product .shimmer-image {
    aspect-ratio: 1
}

.shimmer-signature {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem
}

.shimmer-signature .shimmer-image {
    aspect-ratio: 1;
    border-radius: 1rem
}

.shimmer-content {
    padding: 1.2rem;
    display: grid;
    gap: .7rem
}

.shimmer-signature .shimmer-content {
    padding: 0
}

.shimmer-line {
    height: .8rem;
    width: 100%
}

.shimmer-line.title {
    height: 1.15rem;
    width: 72%
}

.shimmer-line.short {
    width: 48%
}

.shimmer-testimonial {
    padding: 1.5rem;
    display: grid;
    gap: .7rem
}

.shimmer-quote {
    width: 28px;
    height: 28px
}

.shimmer-person {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: .4rem
}

.shimmer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex: 0 0 40px
}

.shimmer-person .name {
    width: 110px
}

@keyframes shimmer {
    to {
        background-position: -200% 0
    }
}

.shimmer-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.5rem 0
}

@media(min-width:900px) {
    .shimmer-detail {
        grid-template-columns: 1fr 1fr
    }
}

.shimmer-detail-img {
    aspect-ratio: 1;
    border-radius: 1.75rem;
    width: 100%
}

.shimmer-detail-thumbs {
    display: flex;
    gap: .6rem;
    margin-top: .75rem
}

.shimmer-detail-thumb {
    width: 64px;
    height: 64px;
    border-radius: .85rem;
    flex-shrink: 0
}

.shimmer-detail-body {
    display: flex;
    flex-direction: column;
    gap: .75rem
}


/* Products grid */
/* =========================
   PRODUCTS GRID
========================= */
.prod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: 1.5rem;
}

/* CARD */
.pcard {
    background: var(--card);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: .35s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    opacity: 0;
    transform: translateY(25px);
}

.pcard.in {
    opacity: 1;
    transform: translateY(0);
}

.pcard:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* IMAGE */
.pcard .img {
    position: relative;
    aspect-ratio: 1/1;
    background: var(--cream);
    overflow: hidden;
}

.pcard .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.pcard:hover .img img {
    transform: scale(1.08);
}

/* BODY */
.pcard .body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.2rem;
}

/* TITLE */
.pcard h3 {
    font-size: 1.05rem;
    line-height: 1.4;
    color: var(--primary);
    min-height: 0;
}

/* TAG */
.pcard .tag {
    margin-top: .0;
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.5;
    min-height: 2.5em;
}

/* FOOTER */
.pcard .foot {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding-top: 1rem;
}

/* Harga + harga coret menumpuk rapi agar tidak mendorong tombol */
.pcard .foot>.price-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
    min-width: 0;
}

.pcard .foot>s {
    white-space: nowrap;
}

/* PRICE */
.pcard .price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

/* BUTTON */
.pcard .btn {
    flex-shrink: 0;
    border-radius: 999px;
    padding: .65rem 1rem;
    font-size: .82rem;
    font-weight: 600;
    transition: .3s;
}

.pcard .pcard-btn-section {
    align-items: center;
    margin-left: auto;
}

.pcard .pcard-btn-section .btn-sm {
    padding: .4rem .7rem;
    font-size: .75rem;
}

.pcard .pcard-btn-section .icon-btn {
    width: 30px;
    height: 30px;
}

.pcard .pcard-btn-section .icon-btn svg,
.pcard .pcard-btn-section .icon-btn .wish-heart {
    font-size: .95rem;
}

.pcard .btn:hover {
    transform: translateY(-2px);
}

.pcard-btn-section {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
}

/* MOBILE */
@media (max-width:768px) {

    .prod-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .pcard .body {
        padding: 1rem;
    }

    .pcard h3 {
        font-size: .95rem;
    }

    .pcard .tag {
        font-size: .75rem;
    }

    .pcard .foot {
        flex-direction: column;
        align-items: flex-start;
    }

    .pcard .pcard-btn-section {
        margin-left: 0;
        width: 100%;
    }

    .pcard .pcard-btn-section .btn {
        flex: 1;
        width: auto;
    }

    .pcard .btn {
        width: 100%;
        justify-content: center;
    }
}

/* EXTRA SMALL */
@media (max-width:480px) {

    .prod-grid {
        grid-template-columns: 1fr;
    }

}

/* Cart */
.cart-row {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: var(--card);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    margin-bottom: .85rem
}

.cart-row img {
    width: 80px;
    height: 80px;
    border-radius: .75rem;
    object-fit: cover;
    background: var(--cream)
}

.cart-row .name {
    font-family: var(--font-rate-mypost);
    color: var(--primary)
}

.cart-row .sub {
    font-size: .78rem;
    color: var(--muted)
}

.cart-row .right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .5rem
}

.summary {
    background: var(--card);
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 80px
}

.summary .row {
    display: flex;
    justify-content: space-between;
    padding: .4rem 0;
    font-size: .92rem
}

.summary .total {
    border-top: 1px solid var(--border);
    margin-top: .5rem;
    padding-top: .75rem;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--primary)
}

.cart-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem
}

@media(min-width:900px) {
    .cart-grid {
        grid-template-columns: 2fr 1fr
    }
}

/* Auth */
.auth-wrap {
    min-height: 78vh;
    display: grid;
    place-items: center;
    padding: 2.5rem 1rem;
    background: linear-gradient(to bottom, var(--cream), var(--bg))
}

.auth-card {
    background: var(--card);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    padding: 2.25rem;
    max-width: 420px;
    width: 100%
}

.auth-card .logo {
    width: 60px;
    height: 60px;
    display: block;
    margin: 0 auto;
    animation: float 4s ease-in-out infinite
}

.auth-card h1 {
    text-align: center;
    margin-top: .75rem;
    font-size: 1.5rem
}

.auth-card .sub {
    text-align: center;
    color: var(--muted);
    font-size: .88rem;
    margin-bottom: 1.5rem
}

.field {
    margin-bottom: 1rem
}

.field label {
    font-size: .78rem;
    color: var(--muted)
}

.field input {
    display: block;
    width: 100%;
    margin-top: .3rem;
    padding: .8rem 1rem;
    border: 1px solid var(--border);
    border-radius: .85rem;
    background: var(--bg);
    font: inherit;
    transition: border .2s
}

.field input:focus {
    outline: none;
    border-color: var(--primary)
}

.err {
    color: #b04545;
    font-size: .85rem;
    margin-bottom: .75rem;
    display: none
}

.err.show {
    display: block
}

.foot-link {
    text-align: center;
    font-size: .88rem;
    color: var(--muted);
    margin-top: 1.25rem
}

.foot-link a {
    color: var(--primary);
    font-weight: 500
}

/* Footer */
footer.site {
    background: var(--primary);
    color: rgba(250, 248, 243, .85);
    padding: 3rem 1rem 1.5rem;
    /* margin-top: 4rem */
}

footer .grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem
}

footer h4 {
    color: var(--primary-fg);
    font-family: var(--font-sans);
    font-size: .95rem;
    margin-bottom: .75rem
}

footer a {
    display: block;
    font-size: .85rem;
    padding: .2rem 0;
    opacity: .85
}

footer a:hover {
    opacity: 1
}

footer .copy {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(250, 248, 243, .15);
    font-size: .8rem;
    text-align: center;
    opacity: .7
}

/* Empty state */
.empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--muted)
}

.empty .ic {
    font-size: 3rem;
    margin-bottom: 1rem
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #66863c;
    color: var(--primary-fg);
    padding: .75rem 1.5rem;
    border-radius: 999px;
    font-size: .9rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: all .3s;
    z-index: 100;
    pointer-events: none
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0)
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-10px)
    }
}

@keyframes leafSway {

    0%,
    100% {
        transform: rotate(-4deg)
    }

    50% {
        transform: rotate(4deg)
    }
}

@keyframes fadeScale {
    from {
        opacity: 0;
        transform: scale(.95)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.fade-up {
    animation: fadeUp .7s ease both
}

.delay-1 {
    animation-delay: .1s
}

.delay-2 {
    animation-delay: .2s
}

.delay-3 {
    animation-delay: .3s
}

.delay-4 {
    animation-delay: .4s
}

/* Custom PWA install banner (ala web.dev promote-install) */
.pwa-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 59px;
    z-index: 9990;
    display: flex;
    align-items: center;
    gap: .75rem;
    background: var(--card);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px -12px rgba(45, 51, 39, .25);
    padding: .7rem .9rem calc(.7rem + env(safe-area-inset-bottom));
    opacity: 0;
    transform: translateY(100%);
    transition: opacity .35s ease, transform .35s ease;
}

.pwa-banner.show {
    opacity: 1;
    transform: translateY(0);
}

.pwa-banner img {
    width: 44px;
    height: 44px;
    border-radius: .6rem;
    flex-shrink: 0;
}

.pwa-text {
    display: grid;
    font-size: .85rem;
    min-width: 0;
    flex: 1;
}

.pwa-text span {
    color: var(--muted);
    font-size: .75rem;
}

.pwa-close {
    border: none;
    background: none;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    padding: .25rem;
}

/* iOS tidak punya event beforeinstallprompt — tampilkan panduan manual */
.pwa-banner-ios .pwa-text span {
    line-height: 1.35;
}

.pwa-ios-help {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    background: rgba(20, 24, 18, .45);
}

.pwa-ios-card {
    position: relative;
    width: 100%;
    max-width: 430px;
    padding: 1.15rem 1.1rem 1rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: var(--card);
    color: var(--fg);
    box-shadow: var(--shadow-lg);
    bottom: 58px;
}

.pwa-ios-card h3 {
    margin: 0 0 .65rem;
    padding-right: 1.5rem;
    font-size: 1rem;
}

.pwa-ios-card ol {
    display: grid;
    gap: .55rem;
    margin: 0 0 1rem;
    padding-left: 1.15rem;
    font-size: .86rem;
    line-height: 1.45;
}

.pwa-ios-card .btn {
    width: 100%;
}

.pwa-ios-x {
    position: absolute;
    top: .35rem;
    right: .45rem;
    border: none;
    background: none;
    color: var(--muted);
    font-size: 1.4rem;
    line-height: 1;
    padding: .25rem;
    cursor: pointer;
}

@media(min-width:960px) {
    .pwa-ios-help {
        align-items: center;
    }

    .pwa-banner {
        left: auto;
        right: 24px;
        bottom: 24px;
        max-width: 430px;
        border: 1px solid var(--border);
        border-radius: 1rem;
        box-shadow: var(--shadow-lg);
        padding: .7rem .9rem;
        transform: translateY(20px);
    }

    .pwa-banner.show {
        transform: translateY(0);
    }
}