/* ─── Design Tokens ─────────────────────────────────── */
:root {
    --cream:      #eddabc;
    --rust:       #b16448;
    --olive:      #5b5d34;
    --cream-dark: #d9c49e;
    --rust-dark:  #8a4a33;
    --olive-dark: #3f4124;
    --sand:       #f5eed9;
    --text-dark:  #2c2215;
    --text-mid:   #5a4030;
    --white:      #fffdf7;

    --font-display: 'Caveat', cursive;
    --font-body:    'Nunito', sans-serif;
    --transition:   0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --radius:       12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background-color: var(--sand);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Noise texture */
body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 9999; opacity: 0.4;
}

/* ─── Nav bar ──────────────────────────────── */
#shop a {color: var(--rust)}

/* ─── Shop Hero Banner ──────────────────────────────── */
.shop-hero {
    background: linear-gradient(135deg, var(--olive-dark) 0%, var(--olive) 60%, #7a6035 100%);
    padding: 4rem 5% 3.5rem;
    position: relative; overflow: hidden;
    margin-top: 72px;
}
.shop-hero::before {
    content: '⛳ 🌊 🏄 🍹';
    position: absolute; top: 0; right: 0;
    font-size: 8rem; opacity: 0.06; line-height: 1;
    white-space: nowrap; pointer-events: none;
}
.shop-hero-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: flex-end;
    justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.shop-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 700; color: var(--cream); line-height: 1.05;
}
.shop-hero p {
    font-size: 0.95rem; color: rgba(237,218,188,0.7);
    margin-top: 0.6rem; max-width: 420px; line-height: 1.65;
}
.shop-hero-stats {
    display: flex; gap: 2.5rem; flex-shrink: 0;
}
.hero-stat { text-align: center; }
.hero-stat .hs-num {
    font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--cream); display: block;
}
.hero-stat .hs-txt {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; color: rgba(237,218,188,0.55);
}

/* ─── Filter + Sort Bar ─────────────────────────────── */
.filter-bar {
    background: var(--white);
    border-bottom: 1.5px solid rgba(177,100,72,0.1);
    padding: 0 5%;
    position: sticky; top: 72px; z-index: 50;
}
.filter-bar-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap;
    padding: 0.9rem 0;
}
.filter-tabs {
    display: flex; gap: 0.4rem; flex-wrap: wrap;
}
.filter-tab {
    font-family: var(--font-body); font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase;
    padding: 0.45rem 1.1rem; border-radius: 99px;
    border: 1.5px solid rgba(177,100,72,0.2);
    background: transparent; color: var(--text-mid);
    cursor: pointer; transition: all 0.2s ease;
    white-space: nowrap;
}
.filter-tab:hover { border-color: var(--rust); color: var(--rust); }
.filter-tab.active {
    background: var(--olive); border-color: var(--olive); color: var(--cream);
}
.sort-row { display: flex; align-items: center; gap: 0.8rem; }
.sort-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-mid); }
.sort-select {
    font-family: var(--font-body); font-size: 0.78rem; font-weight: 700;
    color: var(--text-dark); background: var(--sand);
    border: 1.5px solid rgba(177,100,72,0.2); border-radius: 8px;
    padding: 0.4rem 0.8rem; cursor: pointer;
    outline: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a4030' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 0.6rem center;
    padding-right: 2rem;
}
.results-count { font-size: 0.78rem; color: var(--text-mid); font-weight: 600; white-space: nowrap; }

/* ─── Shop Layout ───────────────────────────────────── */
.shop-body {
    max-width: 1200px; margin: 0 auto;
    padding: 3rem 5% 6rem;
}

/* Featured banner inside shop */
.featured-banner {
    background: linear-gradient(110deg, var(--cream) 0%, var(--cream-dark) 55%, #c4a06e 100%);
    border-radius: 20px;
    padding: 2.5rem 3rem;
    margin-bottom: 3rem;
    display: flex; align-items: center; justify-content: space-between;
    gap: 2rem; flex-wrap: wrap;
    border: 2px solid rgba(177,100,72,0.2);
    box-shadow: 0 12px 40px rgba(44,34,21,0.1);
    position: relative; overflow: hidden;
}
.featured-banner-img {
    position: absolute; right: 120px; top: 50%; transform: translateY(-50%);
    height: 160px; opacity: 0.25; pointer-events: none;
    object-fit: contain;
}
.fb-text .fb-badge {
    font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--rust);
    background: rgba(177,100,72,0.12); border: 1.5px solid rgba(177,100,72,0.25);
    padding: 0.3rem 0.8rem; border-radius: 99px;
    display: inline-block; margin-bottom: 0.7rem;
}
.fb-text h2 {
    font-family: var(--font-display); font-size: 2.4rem; font-weight: 700;
    color: var(--olive); line-height: 1.1; margin-bottom: 0.5rem;
}
.fb-text p { font-size: 0.9rem; color: var(--text-mid); max-width: 380px; line-height: 1.6; }
.fb-price-row { display: flex; align-items: center; gap: 1.5rem; margin-top: 1.2rem; flex-wrap: wrap; }
.fb-price { font-family: var(--font-display); font-size: 2.8rem; font-weight: 700; color: var(--rust); }

/* ─── Product Grid ──────────────────────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.product-card {
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    border: 1.5px solid rgba(177,100,72,0.08);
    box-shadow: 0 4px 20px rgba(44,34,21,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 44px rgba(44,34,21,0.14);
}
.product-card.sold-out { opacity: 0.65; }

.pc-img {
    aspect-ratio: 1;
    background: linear-gradient(145deg, var(--cream) 0%, var(--cream-dark) 100%);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 0.5rem; position: relative; overflow: hidden;
}
.pc-img::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 60% 30%, rgba(177,100,72,0.07) 0%, transparent 65%);
}
.pc-emoji { font-size: 3.8rem; z-index: 1; }
.pc-img-name {
    font-family: var(--font-display); font-size: 1rem; font-weight: 700;
    color: var(--rust); z-index: 1; text-align: center; padding: 0 0.5rem;
}

/* olive bg variant */
.pc-img.dark-bg {
    background: linear-gradient(145deg, var(--cream) 0%, var(--cream-dark) 100%);
}
.pc-img.dark-bg .pc-img-name { color: var(--rust); }

/* rust bg variant */
.pc-img.rust-bg {
    background: linear-gradient(145deg, var(--cream) 0%, var(--cream-dark) 100%);
}
.pc-img.rust-bg .pc-img-name { color: var(--rust); }

.pc-badge {
    position: absolute; top: 10px; left: 10px;
    font-size: 0.58rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 0.28rem 0.65rem; border-radius: 99px; z-index: 2;
}
.badge-new { background: var(--rust); color: var(--white); }
.badge-best { background: var(--olive); color: var(--cream); }
.badge-patent { background: var(--text-dark); color: var(--cream); }
.badge-sold { background: rgba(44,34,21,0.6); color: var(--white); }
.badge-sale { background: #c4552a; color: var(--white); }

.pc-wishlist {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    background: rgba(255,253,247,0.85); border: none; width: 32px; height: 32px;
    border-radius: 50%; cursor: pointer; font-size: 0.9rem;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition), transform 0.2s;
    backdrop-filter: blur(4px);
}
.pc-wishlist:hover { transform: scale(1.15); background: var(--white); }
.pc-wishlist.liked { background: var(--rust); }

.pc-body { padding: 1rem 1.1rem 1.2rem; }
.pc-category {
    font-size: 0.65rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--rust); margin-bottom: 0.3rem; display: block;
}
.pc-name { font-size: 0.88rem; font-weight: 800; color: var(--text-dark); margin-bottom: 0.25rem; line-height: 1.3; }
.pc-desc { font-size: 0.75rem; color: var(--text-mid); line-height: 1.5; margin-bottom: 0.8rem; }
.pc-stars { font-size: 0.7rem; color: #d4862a; margin-bottom: 0.6rem; }
.pc-stars span { font-size: 0.68rem; color: var(--text-mid); margin-left: 0.3rem; font-weight: 600; }

.pc-footer {
    display: flex; align-items: center; justify-content: space-between;
    gap: 0.4rem; flex-wrap: nowrap; min-width: 0;
}
.pc-footer > div {
    display: flex; align-items: baseline; flex-shrink: 1; min-width: 0;
}
.pc-price { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--rust); white-space: nowrap; }
.pc-price-old {
    font-size: 0.72rem; text-decoration: line-through; color: var(--text-mid);
    font-weight: 600; margin-left: 0.25rem; white-space: nowrap;
}
.btn { /* shared base */
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-body); font-weight: 800;
    font-size: 0.88rem; letter-spacing: 0.06em; text-transform: uppercase;
    text-decoration: none; padding: 0.85rem 2rem;
    border-radius: 99px; border: none; cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background var(--transition);
    width: fit-content;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--rust); color: var(--white); box-shadow: 0 6px 24px rgba(177,100,72,0.35); }
.btn-primary:hover { background: var(--rust-dark); box-shadow: 0 10px 32px rgba(177,100,72,0.5); }
.btn-ghost {
    background: transparent; color: var(--rust);
    border: 1.5px solid rgba(177,100,72,0.3);
}
.btn-ghost:hover { background: rgba(177,100,72,0.06); border-color: var(--rust); }

.btn-add {
    display: inline-flex; align-items: center;
    flex-shrink: 0;
    font-family: var(--font-body); font-weight: 800;
    font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase;
    text-decoration: none; white-space: nowrap;
    padding: 0.42rem 0.8rem;
    border-radius: 8px;
    background: var(--olive); color: var(--cream);
    border: none; cursor: pointer;
    transition: background var(--transition), transform 0.2s;
    width: auto;
}
.btn-add:hover { background: var(--rust); transform: translateY(-1px); }
.btn-add.added { background: var(--olive-dark); }


/* Color swatches */

/* size pills */

/* ─── Section Divider Label ─────────────────────────── */
.grid-section-label {
    grid-column: 1 / -1;
    display: flex; align-items: center; gap: 1rem;
    margin-top: 1rem;
}
.grid-section-label h3 {
    font-family: var(--font-display); font-size: 1.8rem; font-weight: 700;
    color: var(--olive); white-space: nowrap;
}
.grid-section-label::after {
    content: ''; flex: 1; height: 1.5px;
    background: linear-gradient(90deg, rgba(177,100,72,0.25) 0%, transparent 100%);
}

/* ─── Newsletter Band ───────────────────────────────── */
.newsletter-band {
    background: var(--olive);
    padding: 3.5rem 5%;
    text-align: center;
}
.newsletter-band h2 {
    font-family: var(--font-display); font-size: 2.4rem; font-weight: 700;
    color: var(--cream); margin-bottom: 0.5rem;
}
.newsletter-band p { font-size: 0.9rem; color: rgba(237,218,188,0.7); margin-bottom: 1.5rem; }
.email-row {
    display: flex; gap: 0.5rem; max-width: 440px; margin: 0 auto;
}
.email-input {
    flex: 1; padding: 0.85rem 1.2rem; border-radius: 99px;
    border: none; outline: none;
    font-family: var(--font-body); font-size: 0.88rem;
    background: rgba(255,253,247,0.15); color: var(--cream);
    border: 1.5px solid rgba(237,218,188,0.25);
}
.email-input::placeholder { color: rgba(237,218,188,0.45); }
.email-input:focus { border-color: rgba(237,218,188,0.6); background: rgba(255,253,247,0.2); }
.newsletter-feedback {
    margin-top: 0.75rem;
    font-size: 0.82rem;
    min-height: 1.2em;
}
.newsletter-feedback.success { color: #a8d8a8; }
.newsletter-feedback.error   { color: #f4a4a4; }

/* ─── Footer ────────────────────────────────────────── */
footer {
    background: var(--text-dark); color: var(--cream);
    padding: 4rem 5% 2rem;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
    max-width: 1200px; margin: 0 auto;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(237,218,188,0.1);
}
.footer-brand p {
    font-size: 0.85rem; line-height: 1.7;
    color: rgba(237,218,188,0.55); margin-top: 0.8rem; max-width: 280px;
}
.footer-col h4 {
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--rust); margin-bottom: 1rem;
}
.footer-col a {
    display: block; margin-bottom: 0.6rem; font-size: 0.85rem;
    color: rgba(237,218,188,0.55); text-decoration: none; transition: color var(--transition);
}
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 2rem; max-width: 1200px; margin: 0 auto;
    font-size: 0.78rem; color: rgba(237,218,188,0.35); flex-wrap: wrap; gap: 0.5rem;
}
.social-links { display: flex; gap: 0.8rem; }
.social-links a {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(237,218,188,0.08); border: 1px solid rgba(237,218,188,0.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; text-decoration: none; transition: background var(--transition);
}
.social-links a:hover { background: var(--rust); }

/* ─── Scroll Reveal ─────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ─── Toast ─────────────────────────────────────────── */
.toast {
    position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(80px);
    background: var(--olive); color: var(--cream);
    padding: 0.8rem 1.8rem; border-radius: 99px;
    font-family: var(--font-body); font-size: 0.85rem; font-weight: 700;
    box-shadow: 0 8px 32px rgba(44,34,21,0.25);
    z-index: 500; transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s;
    opacity: 0; pointer-events: none; white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ─── Responsive ────────────────────────────────────── */
@media (max-width: 1100px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .featured-banner { padding: 2rem; }
    .fb-text h2 { font-size: 1.8rem; }
}
@media (max-width: 560px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .pc-desc { display: none; }
    .btn-view { display: none; }
    .pc-footer { display: none; }
    .pc-price-pill {
        position: absolute;
        bottom: 10px;
        right: 10px;
        background: var(--rust);
        color: #fff;
        font-size: 0.8rem;
        font-weight: 800;
        padding: 0.25rem 0.65rem;
        border-radius: 99px;
        z-index: 2;
        pointer-events: none;
    }
    .footer-grid { grid-template-columns: 1fr; }
    .email-row { flex-direction: column; }
    .shop-hero-stats { display: none; }
    .filter-bar-inner { gap: 0.6rem; }
}