@import url("https://fonts.googleapis.com/css2?family=Allura&family=Borel&family=Cookie&family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Great+Vibes&family=Homemade+Apple&family=Miniver&family=Mynerve&family=Parisienne&family=Petit+Formal+Script&family=Sarina&family=Send+Flowers&family=Source+Sans+3:wght@400;600;700&family=Yellowtail&display=swap");

/* ===========================================================
   Knots & Strings – Earthy Ecommerce
   Palette:
     -- leaf:   #88b04b (primary)
     -- coral:  #ff6f61
     -- plum:   #6b5b93
     -- blush:  #f5b041
     -- marigold:#f5b041
   =========================================================== */

:root{
    --bg: #fffefc;
    --fg: #2a241d;
    --muted: #6d665d;
    --brand: #88b04b;
    --brand-strong: #6aa030;
    --brand-accent: #ff6f61;
    --brand-soft: #f5b041;
    --card: #fffdfa;
    --border: #eadfcd;
    --shadow: 0 12px 28px rgba(135, 109, 69, .14);
    --accent-plum: #6b5b93;
    --accent-gold: #f5b041;
    --rail-bg: #fffaf2;
    --layout-gutter: clamp(30px, 6vw, 64px);
    --layout-gap: 24px;
    --sidebar-w: 280px;

    --radius: 14px;
    --container: min(1100px, 92vw);

    --h1: clamp(32px, 3.5vw, 48px);
    --h2: clamp(24px, 3vw, 34px);
    --h3: clamp(20px, 2.2vw, 26px);
    --wordmark-font: "Fraunces", Georgia, "Times New Roman", serif;

    --nav-h: 56px;
}

body{
    background:
        radial-gradient(900px 360px at 8% -120px, rgba(245,176,65,.20) 0%, rgba(255,255,255,0) 62%),
        radial-gradient(980px 420px at 92% -160px, rgba(245,176,65,.24) 0%, rgba(255,255,255,0) 68%),
        radial-gradient(760px 300px at 50% 0, rgba(136,176,75,.16) 0%, rgba(255,255,255,0) 70%),
        linear-gradient(180deg, #fffefc 0%, #fffaf4 100%);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
    margin:0;
    background-color: var(--bg);
    color:var(--fg);
    font-family: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial;
    line-height:1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

.container{ width: var(--container); margin: 0 auto; }

/* ---------------- Layout ---------------- */
.layout{
    display: grid;
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    gap: var(--layout-gap);
    align-items: start;
    width: 100%;
    max-width: none;
    padding: 0 var(--layout-gutter);
}
.layout.container{ width: 100%; max-width: none; }
.content{
    grid-column: 2;
    min-width: 0;
    width: 100%;
    overflow: hidden;
    padding-left: 0;
    padding-top: 34px;
}
.content-topbar{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 6px 0;
    margin: 0;
    background:
        radial-gradient(980px 460px at 10% -80px, rgba(245, 176, 65, 0.18) 0%, rgba(21, 23, 18, 0) 62%),
        radial-gradient(900px 520px at 90% 0, rgba(136, 176, 75, 0.2) 0%, rgba(21, 23, 18, 0) 66%),
        linear-gradient(180deg, #171a14 0%, #131510 100%);
    border-left: 0;
    border-bottom: 1px solid rgba(244, 241, 232, 0.14);
    border-radius: 0;
    box-shadow: 0 8px 20px rgba(42,36,29,.14);
    backdrop-filter: none;
}
.content-topbar-inner{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 14px;
}
.topbar-left{
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 24px;
    min-width: 0;
}
.topbar-brand{
    font-family: var(--wordmark-font);
    font-optical-sizing: auto;
    font-variation-settings: "opsz" 72, "wght" 700;
    font-size: clamp(1.75rem, 2.8vw, 2.6rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #f4f1e8;
    white-space: nowrap;
    line-height: 1;
    text-decoration: none;
}
.topbar-nav{
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    white-space: nowrap;
    min-width: 0;
    margin-left: auto;
    flex-wrap: wrap;
}
.topbar-nav a{
    color: var(--brand-strong);
    text-decoration: none;
    font-weight: 900;
    font-size: 1.08rem;
    letter-spacing: 0.01em;
    padding: 3px 1px;
}
.topbar-nav a.active{
    color: #f5b041;
}
.topbar-nav a:hover{
    color: #f5b041;
}
.topbar-sep{
    color: rgba(244, 241, 232, 0.45);
    user-select: none;
}
.content-topbar .cart-link{
    margin-left: auto;
    margin-right: 0;
    padding: 6px 12px;
    font-size: 0.98rem;
    color: #f4f1e8;
    background: rgba(21, 23, 18, 0.3);
    border-color: rgba(244, 241, 232, 0.2);
    box-shadow: none;
}

@media (max-width: 1100px){
    .content-topbar-inner{
        flex-wrap: wrap;
        row-gap: 6px;
    }
    .topbar-left{
        flex: 1 1 100%;
    }
}
.content-topbar .cart-link:hover,
.content-topbar .cart-link.is-active{
    background: rgba(21, 23, 18, 0.3);
    border-color: #f5b041;
}
.content-topbar .cart-link > span:first-of-type{
    color: var(--brand-strong);
    font-weight: 900;
    font-size: 1.08rem;
    letter-spacing: 0.01em;
}
.content-topbar .cart-link:hover > span:first-of-type,
.content-topbar .cart-link.is-active > span:first-of-type{
    color: #f5b041;
}
.content-topbar .cart-link:hover .cart-link-icon,
.content-topbar .cart-link.is-active .cart-link-icon{
    stroke: #f5b041;
}

.flex-between{
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.sidebar{
    grid-column: 1;
    position: sticky;
    top: 56px;
    align-self: start;
    display: grid;
    gap: 16px;
    justify-self: start;
    width: var(--sidebar-w);
    z-index: 2;
    padding: 10px 0 0;
    background: var(--rail-bg);
    border-right: 1px solid var(--border);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    scrollbar-gutter: stable;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.sidebar::-webkit-scrollbar{
    width: 0;
    height: 0;
}
.sidebar-card{ min-width: 0; }
.sidebar form{ max-width: 100%; }
.sidebar .input{ width: 100%; }
.sidebar .btn{ width: 100%; }
.sidebar .filter-row{ flex-direction: column; align-items: stretch; }
.sidebar-card{
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0 14px;
    box-shadow: none;
}
.sidebar-card + .sidebar-card{
    margin-top: 2px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.side-menu{
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 4px;
}
.side-menu a{
    color: var(--fg);
    text-decoration: none;
    padding: 9px 12px 9px 16px;
    border-radius: 0;
    display: block;
    border: 0;
    margin: 0;
}
.side-menu a:hover{
    background: rgba(245,176,65,.18);
    color: var(--fg);
}
.side-menu .active{
    border-left: 3px solid var(--brand);
    background: rgba(136,176,75,.14);
}
.side-cart-link{
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.side-cart-link .cart-link{
    width: 100%;
    margin: 0;
    justify-content: flex-start;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    padding: 9px 12px 9px 16px;
}
.filter-label{
    display: block;
    margin: 10px 0 6px;
    font-size: 0.9rem;
    color: var(--muted);
}
.filter-row{
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}
.category-buttons{
    display: grid;
    gap: 6px;
}
.category-buttons .btn{
    width: 100%;
    margin: 0;
    padding: 9px 12px 9px 16px;
    text-align: left;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}
.sidebar .category-buttons .btn:hover{
    background: rgba(245,176,65,.18);
}
.category-buttons .btn.active{
    border-left: 3px solid var(--brand);
    color: var(--fg);
    background: rgba(136,176,75,.14);
}
.muted{ color: var(--muted); font-size: 0.9rem; }

/* ---------------- Typography ---------------- */
h1,h2,h3,h4{
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    margin:0 0 8px;
    color: var(--fg);
}
h1{ font-size: var(--h1); letter-spacing: .4px; }
h2{ font-size: var(--h2); }
h3{ font-size: var(--h3); }
p{ margin: 0 0 12px; color: var(--muted); }

.brand-link{
    display: inline-flex;
    align-items: baseline;
    text-decoration: none;
}

.brand-text{ text-align: right; }
.brand-title{ font-size: var(--h1); margin: 0; }
.brand-subtitle{ margin: 4px 0 0; color: var(--muted); }

.brand-logo{
    display: block;
    width: clamp(190px, 30vw, 360px);
    height: auto;
    object-fit: contain;
}

/* Stack nicely on small screens (image under the title) */
@media (max-width: 860px){
}

/* ---------------- Nav ---------------- */
.site-nav{ width: 100%; }
.nav-inner{ position: relative; display:flex; align-items:center; justify-content:center; height: var(--nav-h); }
.nav-toggle{ background:none; color: var(--accent-plum); border:1px solid var(--border); padding:6px 10px; border-radius:10px; }
.nav-links{
    list-style:none; margin:0; padding:0;
    display:flex; gap:18px; align-items:center; justify-content:center;
}
.nav-links a{ color:var(--fg); text-decoration:none; padding:6px 10px; border-radius:10px; transition: background .15s, color .15s; }
.nav-links a:hover{ background: var(--brand-soft); color: var(--fg); }

/* Cart link */
.cart-link{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--fg);
    font-weight: 700;
    border: 1px solid var(--border);
    background: #fffaf2;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.5);
}
.cart-link-icon{
    color: var(--brand-strong);
    width: 17px;
    height: 17px;
    stroke: var(--brand-strong);
    stroke-width: 2.3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}
.cart-link:hover{
    background: var(--brand-soft);
}
.cart-badge{
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--brand-strong);
    color: #f8fff0;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* login/register button styling */
.nav-links .cta{
    border:1px solid var(--brand);
    color: var(--brand);
    padding:6px 12px;
    border-radius: 999px;
}
.nav-links .cta:hover{ background: var(--brand); color:#fff; }

/* vertical separator dot for bigger screens */
.nav-sep{
    width:6px; height:6px; border-radius:50%;
    background: #d4dcc2;
    margin: 0 4px;
}

/* Make the Logout button look like a link */
.linklike{
    background:none; border:none; padding:6px 10px; color:var(--fg); cursor:pointer; border-radius:10px;
}
.linklike:hover{ background: var(--brand-soft); color: var(--brand); }

/* Mobile menu behavior */
@media (max-width: 780px){
    .site-nav{ position: relative; }
    .nav-toggle{ align-self: flex-start; }
    .nav-links{
        position:absolute; left:0; right:0; top: var(--nav-h);
        background:#ffffff; border:1px solid var(--border);
        display:none; flex-direction:column; padding:8px;
    }
    .nav-links.open{ display:flex; }
    .nav-sep{ display:none; }
}

@media (max-width: 720px){
    .layout{
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 14px;
    }
    .content{
        grid-column: 1;
    }
    .sidebar{
        position: relative;
        top: 0;
        width: 100%;
        justify-self: stretch;
        border-right: 0;
        border-bottom: 1px solid var(--border);
        padding-right: 0;
        padding-bottom: 12px;
        max-height: none;
        overflow: visible;
    }
    .content{
        padding-left: 0;
        padding-top: 28px;
    }
    .content-topbar{
        top: 0;
        left: 0;
        right: 0;
    }
    .content-topbar-inner{
        padding: 6px 10px;
        gap: 6px;
        row-gap: 6px;
    }
    .topbar-left{
        width: 100%;
        gap: 6px 10px;
        flex-wrap: wrap;
        align-items: center;
    }
    .topbar-brand{
        font-size: clamp(1.35rem, 6vw, 1.9rem);
        line-height: 1.05;
        flex: 1 1 auto;
        min-width: 0;
    }
    .topbar-nav{
        margin-left: auto;
        justify-content: flex-end;
        gap: 5px;
    }
    .content-topbar .cart-link{
        margin-left: auto;
    }
}

@media (max-width: 900px){
    .content{
        padding-top: 64px;
    }
    .content-topbar-inner{
        flex-wrap: wrap;
        row-gap: 6px;
        padding: 6px 10px;
    }
    .topbar-left{
        flex: 1 1 100%;
        min-width: 0;
        gap: 8px;
        justify-content: space-between;
    }
    .topbar-sep{
        display: none;
    }
    .topbar-nav{
        gap: 4px;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .topbar-nav::-webkit-scrollbar{
        width: 0;
        height: 0;
    }
    .topbar-nav a{
        font-size: 0.95rem;
        padding: 4px 6px;
    }
}

@media (max-width: 560px){
    .shop-toolbar{
        align-items: stretch !important;
    }
    .shop-sort-select{
        width: 100%;
        min-width: 0;
    }
    .topbar-nav a{
        font-size: 0.9rem;
        padding: 3px 5px;
    }
}


/* ---------------- Buttons ---------------- */
.btn{
    display: inline-block;
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform .06s ease, box-shadow .2s, background .2s, color .2s;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
    background: var(--brand-strong);
    color: #f8fff0;
    box-shadow: var(--shadow);
}
.btn-primary:hover{ filter: brightness(1.07) saturate(1.08); }

.btn-ghost{
    background: #fff8f1;
    color: var(--fg);
    border-color: var(--border);
}
.btn-ghost:hover{ background: var(--brand-soft); }

.btn-accent{
    background: var(--brand-accent);
    color: #2e120f;
}
.btn-accent:hover{ filter: brightness(1.06) saturate(1.1); }
.btn-sm{ padding: 8px 12px; font-size: .95rem; }
.btn-xs{ padding: 6px 10px; font-size: .85rem; }

/* ---------------- Cards & grid ---------------- */
.grid{
    display: grid; gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.product-grid{
    grid-template-columns: repeat(auto-fill, minmax(200px, 240px));
    max-width: 100%;
    width: 100%;
    margin: 0;
    justify-content: start;
}
.card{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease;
    background-image: linear-gradient(180deg, #fffefb 0%, #fff7ec 100%);
}
.card:hover{
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(56,45,33,.2);
    border-color: rgba(136,176,75,.45);
}
.card img{
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
}
.product-media{ position: relative; }
.badge-stack{
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: calc(100% - 16px);
}
.badge-chip{
    --badge-bg: var(--accent-plum);
    --badge-fg: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--badge-bg);
    color: var(--badge-fg);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(56,45,33,.18);
    border: 1px solid rgba(0,0,0,.08);
    white-space: nowrap;
}
.badge-stack .badge-chip:nth-child(3n+1){ --badge-bg: var(--accent-plum); }
.badge-stack .badge-chip:nth-child(3n+2){ --badge-bg: var(--brand-strong); }
.badge-stack .badge-chip:nth-child(3n){ --badge-bg: #d96e2f; }
.badge-picker{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
}
.badge-option{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.badge-option input{ accent-color: var(--brand); }
.badge-inline{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 10px;
}
.product-thumb{
    background: #f7f9f3;
}
.product-card .product-thumb{
    aspect-ratio: 4 / 5;
}
.gallery-thumb{
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    max-height: 140px;
    border: 1px solid var(--border);
    border-radius: 6px;
}
.gallery-thumb-wrap{
    position: relative;
}
.gallery-main-badge{
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 14px;
}
.gallery-card{
    cursor: grab;
}
.product-thumb-strip{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.product-thumb-wrap{
    position: relative;
}
.product-thumb-mini{
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #ffffff;
}
.product-thumb-star{
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 11px;
}

@media (max-width: 980px){
    .product-grid{
        grid-template-columns: repeat(auto-fill, minmax(200px, 220px));
        max-width: 100%;
    }
}

@media (max-width: 640px){
    .product-grid{
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        max-width: 100%;
    }
}
.card-body{
    padding: 10px;
    display: flex;
    flex-direction: column;
    color: var(--fg);
    gap: 4px;
}
.card h4{ margin: 0 0 6px; color: var(--fg); }
.card p{ color: var(--muted); }
.price{
    font-weight: 700;
    color: #9b6d18;
    font-size: 1.05rem;
}
.card-body p{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}
.product-actions{
    margin-top: auto;
    padding-top: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.product-actions .btn{
    margin-left: auto;
    white-space: nowrap;
}

/* Compact product cards without hover expansion */
.product-card .card-body p{
    -webkit-line-clamp: 2;
    min-height: 2.4em;
    max-height: 2.4em;
}

/* ---------------- Product detail ---------------- */
.product-detail{
    display: grid;
    gap: 8px;
    padding: 0 0 18px;
    align-items: start;
    justify-items: start;
}
.product-gallery{
    display: grid;
    gap: 8px;
}
.product-main{
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #f7f9f3;
    box-shadow: var(--shadow);
    max-width: 420px;
    width: 100%;
    margin: 0;
}
.product-main img{
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 420px;
    object-fit: cover;
    display: block;
}
.product-thumbs{
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
}
.product-thumb-btn{
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 10px;
    padding: 0;
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
    overflow: hidden;
}
.product-thumb-btn img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-thumb-btn.is-active{
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(136,176,75,.2);
}
.product-info{
    display: grid;
    gap: 4px;
}
.product-title{
    margin: 0;
    font-size: var(--h2);
}
.product-price{
    font-size: 1.4rem;
    font-weight: 700;
}
.product-badges{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.product-desc{
    margin: 0;
    margin-top: -2px;
    color: var(--muted);
}
.product-desc-wrap{
    margin-top: 2px;
}
.mobile-only{ display: block; }
.desktop-only{ display: none; }
.product-page{
    margin-left: -12px;
}
.variant-list{
    display: grid;
    gap: 8px;
}
.variant-swatches{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.variant-swatches-card{
    padding: 8px 10px 0;
}
.variant-swatch{
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--fg);
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 0.8rem;
    line-height: 1.2;
}
.variant-swatch.is-active{
    border-color: var(--brand);
    background: rgba(136,176,75,.14);
}
.variant-swatch:disabled{
    opacity: .6;
}
.variant-chip{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
}
.variant-chip.is-active{
    border-color: var(--brand);
    background: rgba(136,176,75,.14);
}
.variant-chip:disabled{
    opacity: .6;
    cursor: not-allowed;
}
.variant-qty{
    font-size: 0.85rem;
    color: var(--muted);
}
.cart-controls{
    display: grid;
    gap: 8px;
    margin-top: 4px;
}
.qty-control{
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.qty-input{
    width: 70px;
    text-align: center;
}

/* ---------------- Cart ---------------- */
.cart-list{
    display: grid;
    gap: 12px;
}
.cart-item{
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    align-items: center;
}
.cart-thumb img{
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border);
    background: #f7f9f3;
}
.cart-details{
    display: grid;
    gap: 4px;
}
.cart-title{ font-weight: 700; }
.cart-price{ font-weight: 600; }
.cart-qty{
    display: flex;
    align-items: center;
    gap: 6px;
}
.cart-qty-input{
    width: 70px;
    text-align: center;
}
.cart-line-total{
    font-weight: 700;
}
.cart-actions{
    display: flex;
}
.cart-summary{
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    display: grid;
    gap: 10px;
}
.cart-total{
    display: flex;
    justify-content: space-between;
    font-weight: 700;
}
.cart-summary-actions{
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (min-width: 720px){
    .cart-item{
        grid-template-columns: 88px minmax(0, 1fr) auto auto auto;
    }
    .cart-thumb img{
        width: 88px;
        height: 88px;
    }
    .cart-actions{
        justify-content: flex-end;
    }
}

/* ---------------- Toasts ---------------- */
.toast-host{
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: grid;
    gap: 8px;
    z-index: 1000;
    pointer-events: none;
}
.toast{
    background: rgba(47,42,35,.95);
    color: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(0,0,0,.2);
    font-weight: 600;
    max-width: min(90vw, 360px);
    text-align: center;
}

@media (min-width: 1024px){
    .product-detail{
        grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
        align-items: start;
        gap: 24px;
    }
    .product-gallery{
        position: sticky;
        top: 80px;
    }
    .mobile-only{ display: none; }
    .desktop-only{ display: block; }
}
@media (max-width: 900px){
    .product-page{ margin-left: 0; }
}

/* ---------------- Sections & main ---------------- */
section.featured{ padding: 10px 0 36px; }
main.container{ padding: 14px 0 32px; }

.story-link{ padding: 8px 0 28px; }
.story-inner{
    width: var(--container);
    margin: 0 auto;
    text-align: center;
    display: grid;
    gap: 10px;
}

/* ---------------- Footer ---------------- */
.site-footer{
    border-top: 1px solid var(--border);
    background:
        linear-gradient(180deg, #fffefb 0%, #fff5e8 100%),
        repeating-linear-gradient(90deg, rgba(245,176,65,.24), rgba(245,176,65,.24) 2px, rgba(136,176,75,.18) 2px, rgba(136,176,75,.18) 7px);
    color: var(--muted);
    margin-top: 28px;
}
.footer-inner{ width: var(--container); margin: 0 auto; padding: 18px 0; }

/* Breadcrumbs */
.breadcrumbs{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--muted);
    margin: 6px 0 12px;
}
.breadcrumbs a{
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
}
.breadcrumbs a:hover{ text-decoration: underline; }
.crumb-sep{ opacity: 0.6; }
.crumb-current{ color: var(--fg); font-weight: 600; }

/* Subtle entrance motion */
@keyframes rise-in{
    from{ opacity: 0; transform: translateY(10px); }
    to{ opacity: 1; transform: translateY(0); }
}
.card, .sidebar-card, .story-inner{
    animation: rise-in .45s ease both;
}
@media (prefers-reduced-motion: reduce){
    .card, .sidebar-card, .story-inner{ animation: none; }
}







/* Backdrop always below modal, always removable */
.modal-backdrop{
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 999;    /* lower than modal */
}

/* Modal container */
.modal{
    position: fixed; inset: 0;
    display: grid; place-items: center;
    z-index: 1000;
    outline: none;
}
.modal > *{
    background: #fff; color: #333;
    width: min(640px, 92vw);
    max-height: 85vh; overflow:auto;
    border: 1px solid #e7e3de;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

.modal-head, .modal-foot{ padding: 12px 14px; border-bottom: 1px solid #eee; }
.modal-foot{ border-top: 1px solid #eee; border-bottom: 0; }
.modal-body{ padding: 14px; }

.icon-btn{
    background: transparent; border: 0; font-size: 18px; cursor: pointer;
    float: right;
}


.modal-backdrop{
    position: fixed; inset: 0; background: rgba(0,0,0,.45);
    z-index: 999;
}
.modal{
    position: fixed; inset: 0; display: grid; place-items: center;
    z-index: 1000; outline: none;
}
.modal-panel{
    background: #fff; color: #333;
    width: min(640px, 92vw);
    max-height: 85vh; overflow: auto;
    border: 1px solid var(--border);
    border-radius: 14px; box-shadow: 0 10px 32px rgba(0,0,0,.18);
    padding: 14px;
}
.modal-actions{
    margin-top: 14px; display: flex; gap: 8px; justify-content: flex-end;
}

