*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:         #faf6ed;
    --bg-alt:     #f3ede0;
    --surface:    #ffffff;
    --border:     #e8dfd0;
    --text:       #2d2926;
    --muted:      #9a8f83;
    --accent:     #7aba8a;
    --accent-dim: #e8f4ec;
    --pink:       #f2a8b4;
    --pink-dim:   #fdeef1;
    --yellow:     #e8c86a;
    --yellow-dim: #fdf6de;
    --shadow:     0 4px 24px rgba(80, 60, 40, 0.08);
    --shadow-sm:  0 2px 10px rgba(80, 60, 40, 0.06);
    --radius:     20px;
    --radius-sm:  12px;
    --font:       'Nunito', system-ui, sans-serif;
}

body {
    background: #e8f0e4;
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('images/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}


a { color: inherit; text-decoration: none; }

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(250, 246, 237, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1.5px solid var(--border);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text);
}

.cart-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    color: var(--text);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cart-btn:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 14px rgba(122, 186, 138, 0.2);
}

.cart-badge {
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* HERO */
.hero {
    position: relative;
    overflow: hidden;
    padding: 7rem 2rem 5rem;
    text-align: center;
}

.hero-inner { position: relative; z-index: 1; max-width: 580px; margin: 0 auto; }

.hero-eyebrow {
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.accent { color: var(--accent); }

.hero-sub {
    color: var(--muted);
    font-size: 16px;
    margin-bottom: 2.25rem;
    font-weight: 600;
}

.btn-primary {
    display: inline-block;
    background: var(--text);
    color: var(--bg);
    font-weight: 800;
    font-size: 15px;
    padding: 13px 30px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.01em;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(45, 41, 38, 0.18);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(45, 41, 38, 0.22);
}

.btn-primary:active { transform: translateY(0); }

/* DECORATIVE BLOBS */
.deco-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.45;
    pointer-events: none;
}

.blob-1 {
    width: 380px;
    height: 380px;
    background: #c8e6d0;
    top: -80px;
    right: -60px;
}

.blob-2 {
    width: 260px;
    height: 260px;
    background: #f8d8de;
    bottom: -40px;
    left: -30px;
}

/* BANNER */
.banner {
    background: var(--text);
    color: var(--bg);
    padding: 14px 2rem;
}

.banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    flex-wrap: wrap;
}

/* SHOP */
.shop { padding: 4rem 2rem; }

.shop-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.shop-main { flex: 1; min-width: 0; }

/* SIDEBAR */
.sidebar {
    width: 180px;
    flex-shrink: 0;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    position: sticky;
    top: 80px;
}

.sidebar-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 0.85rem;
}

.sidebar-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.sidebar-btn:hover {
    background: var(--bg-alt);
    color: var(--text);
}

.sidebar-btn.active {
    background: var(--accent-dim);
    color: var(--accent);
}

.section-heading {
    font-size: 15px;
    font-weight: 800;
    color: var(--muted);
    letter-spacing: 0.04em;
    margin-bottom: 2rem;
}

.empty-cat {
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
    padding: 3rem 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
}

/* PRODUCT CARD */
.product-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s, box-shadow 0.22s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.product-preview {
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 86px;
    transition: background 0.35s;
    position: relative;
    padding: 16px;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
}

/* IMAGE LIGHTBOX */
.image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(45, 41, 38, 0.45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.image-lightbox.open {
    opacity: 1;
    pointer-events: all;
}

.lightbox-frame {
    position: relative;
    display: inline-flex;
}

.leaf-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.lightbox-img {
    max-width: min(640px, 90vw);
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
    cursor: zoom-out;
    transform: scale(0.82);
    transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.4, 1);
    position: relative;
    z-index: 1;
}

.image-lightbox.open .lightbox-img {
    transform: scale(1);
}

.product-img-fallback {
    font-size: 86px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
}

.product-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 60% 40%, rgba(255,255,255,0.3), transparent 70%);
    pointer-events: none;
}

.product-body { padding: 1.35rem; }

.product-name {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 3px;
    letter-spacing: -0.01em;
}

.product-price {
    font-size: 19px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 1.1rem;
}

/* COLORS */
.color-label, .size-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 7px;
}

.color-swatches {
    display: flex;
    gap: 8px;
    margin-bottom: 1.1rem;
    align-items: center;
}

.swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2.5px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.swatch:hover { transform: scale(1.18); }

.swatch.active {
    border-color: var(--text);
    transform: scale(1.1);
}

/* SIZES */
.size-options {
    display: flex;
    gap: 6px;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.size-btn {
    padding: 5px 13px;
    border-radius: 50px;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.size-btn:hover { border-color: var(--text); color: var(--text); }

.size-btn.active {
    border-color: var(--text);
    color: var(--surface);
    background: var(--text);
}

.add-to-cart {
    width: 100%;
    background: var(--accent-dim);
    border: 1.5px solid var(--accent);
    color: var(--accent);
    font-weight: 800;
    font-size: 14px;
    padding: 11px;
    border-radius: 50px;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.add-to-cart:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(122, 186, 138, 0.3);
}

/* CART DRAWER */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(45, 41, 38, 0.35);
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    backdrop-filter: blur(2px);
}

.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 390px;
    max-width: 95vw;
    height: 100%;
    background: var(--bg);
    border-left: 1.5px solid var(--border);
    z-index: 301;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.open { transform: translateX(0); }

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 1.6rem;
    border-bottom: 1.5px solid var(--border);
}

.cart-header h2 { font-size: 17px; font-weight: 800; }

.close-btn {
    background: var(--bg-alt);
    border: 1.5px solid var(--border);
    color: var(--muted);
    font-size: 14px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, border-color 0.15s;
}

.close-btn:hover { color: var(--text); border-color: var(--text); }

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.6rem;
}

.cart-empty {
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    margin-top: 3.5rem;
    line-height: 1.8;
}

.cart-empty span { font-size: 13px; font-weight: 400; }

.cart-item {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 12px;
    align-items: start;
    padding: 1.1rem 0;
    border-bottom: 1.5px solid var(--border);
}

.cart-item-thumb {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    border: 1.5px solid var(--border);
}

.cart-item-info { min-width: 0; }

.cart-item-name {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-meta {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 8px;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 26px;
    height: 26px;
    background: var(--bg-alt);
    border: 1.5px solid var(--border);
    color: var(--text);
    border-radius: 50%;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-weight: 700;
    line-height: 1;
    transition: border-color 0.15s, background 0.15s;
}

.qty-btn:hover { border-color: var(--accent); background: var(--accent-dim); }

.qty-num { font-size: 14px; font-weight: 700; min-width: 18px; text-align: center; }

.cart-item-right { text-align: right; }

.cart-item-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s;
}

.remove-btn:hover { color: var(--pink); }

.cart-footer {
    padding: 1.4rem 1.6rem;
    border-top: 1.5px solid var(--border);
    background: var(--surface);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cart-total-row strong {
    font-size: 22px;
    font-weight: 800;
}

.checkout-btn {
    width: 100%;
    font-size: 16px;
    padding: 14px;
    background: var(--text);
}

/* TOAST */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--text);
    color: var(--bg);
    font-size: 14px;
    font-weight: 700;
    padding: 11px 22px;
    border-radius: 50px;
    z-index: 500;
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(45, 41, 38, 0.2);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 2.5rem;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    border-top: 1.5px solid var(--border);
    background: var(--bg-alt);
}

/* RESPONSIVE */
@media (max-width: 700px) {
    .hero { padding: 4rem 1.5rem 3rem; }
    .shop { padding: 2.5rem 1rem; }
    .shop-inner { flex-direction: column; }
    .sidebar { width: 100%; position: static; }
    .sidebar-list { flex-direction: row; flex-wrap: wrap; }
    .product-grid { grid-template-columns: 1fr; }
    .banner-inner { gap: 0.75rem; font-size: 12px; }
}
