/* ===========================================================================
   Family Choice Cosmetics — Stylesheet
   Theme: refined berry-rose + champagne gold on warm ivory
   =========================================================================== */

/* --- Fonts ---------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&display=swap');

/* --- Design tokens -------------------------------------------------------- */
:root {
    /* Brand palette */
    --berry:        #B11E5C;
    --berry-dark:   #8E1549;
    --berry-soft:   #F7E4ED;
    --gold:         #C9A24B;
    --gold-dark:    #A8842F;
    --charcoal:     #2A2A2E;
    --ink:          #4A4A52;
    --muted:        #8A8A93;
    --line:         #ECE6E2;
    --ivory:        #FBF7F4;
    --card:         #FFFFFF;
    --cream:        #F4ECE5;

    /* Feedback */
    --success:      #1F8A5B;
    --success-bg:   #E4F4EC;
    --warning:      #B5791A;
    --warning-bg:   #FBEFD9;
    --info:         #1F5FA8;
    --info-bg:      #E3EEF9;
    --danger:       #C0322B;
    --danger-bg:    #F8E4E2;

    /* Type */
    --display: 'Fraunces', Georgia, serif;
    --body:    'Manrope', system-ui, sans-serif;

    /* Shape & depth */
    --radius:    14px;
    --radius-sm: 9px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 3px rgba(42,42,46,.06), 0 1px 2px rgba(42,42,46,.04);
    --shadow:    0 6px 22px rgba(42,42,46,.09);
    --shadow-lg: 0 18px 50px rgba(42,42,46,.16);

    --container: 1240px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--body);
    color: var(--charcoal);
    background: var(--ivory);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
ul  { list-style: none; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.2; color: var(--charcoal); }

::selection { background: var(--berry); color: #fff; }

/* --- Layout helpers ------------------------------------------------------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }

.section { padding: 54px 0; }
.section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 18px; margin-bottom: 26px;
}
.section-head h2 { font-size: 1.85rem; }
.section-head .eyebrow {
    font-family: var(--body); font-weight: 700; font-size: .72rem;
    letter-spacing: .14em; text-transform: uppercase; color: var(--berry);
    margin-bottom: 6px;
}
.section-head a.see-all {
    font-weight: 700; font-size: .85rem; color: var(--berry);
    white-space: nowrap; border-bottom: 2px solid transparent; transition: border-color .15s;
}
.section-head a.see-all:hover { border-color: var(--berry); }

/* --- Buttons -------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
    font-weight: 700; font-size: .92rem; cursor: pointer;
    transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--berry); color: #fff; }
.btn-primary:hover { background: var(--berry-dark); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dark); box-shadow: var(--shadow); }
.btn-outline { background: transparent; border-color: var(--berry); color: var(--berry); }
.btn-outline:hover { background: var(--berry-soft); }
.btn-ghost { background: var(--cream); color: var(--charcoal); }
.btn-ghost:hover { background: var(--line); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-sm { padding: 8px 14px; font-size: .82rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* --- Badges & pills ------------------------------------------------------- */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700;
}
.badge-sale  { background: var(--berry); color: #fff; }
.badge-new   { background: var(--gold); color: #fff; }
.badge-out   { background: var(--line); color: var(--muted); }

.status-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 11px; border-radius: 999px; font-size: .76rem; font-weight: 700;
}
.status-pill.is-success { background: var(--success-bg); color: var(--success); }
.status-pill.is-warning { background: var(--warning-bg); color: var(--warning); }
.status-pill.is-info    { background: var(--info-bg);    color: var(--info); }
.status-pill.is-danger  { background: var(--danger-bg);  color: var(--danger); }
.status-pill.is-muted   { background: var(--line);       color: var(--muted); }

/* --- Flash messages ------------------------------------------------------- */
.flash {
    padding: 12px 18px; border-radius: var(--radius-sm); font-weight: 600;
    font-size: .9rem; margin-bottom: 16px; border: 1px solid;
}
.flash-success { background: var(--success-bg); color: var(--success); border-color: #bfe6d2; }
.flash-error   { background: var(--danger-bg);  color: var(--danger);  border-color: #eecac7; }
.flash-info    { background: var(--info-bg);    color: var(--info);    border-color: #c9ddf0; }

/* ===========================================================================
   TOP BAR + HEADER
   =========================================================================== */
.topbar {
    background: var(--charcoal); color: #E9E4DF;
    font-size: .8rem; font-weight: 500;
}
.topbar .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 38px; gap: 16px;
}
.topbar a { color: #E9E4DF; opacity: .85; }
.topbar a:hover { opacity: 1; color: var(--gold); }
.topbar .topbar-links { display: flex; gap: 18px; }

.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.header-main {
    display: flex; align-items: center; gap: 26px;
    padding: 16px 0;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
    width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--berry), var(--berry-dark));
    display: grid; place-items: center; color: #fff;
    font-family: var(--display); font-weight: 700; font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(177,30,92,.3);
}
.brand-text strong {
    display: block; font-family: var(--display); font-size: 1.18rem;
    font-weight: 700; color: var(--charcoal); line-height: 1.1;
}
.brand-text span { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; }

/* Search */
.search-form {
    flex: 1; display: flex; align-items: center;
    background: var(--ivory); border: 1.5px solid var(--line);
    border-radius: var(--radius-sm); overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}
.search-form:focus-within { border-color: var(--berry); box-shadow: 0 0 0 3px var(--berry-soft); }
.search-form select {
    border: none; background: transparent; padding: 0 12px;
    color: var(--ink); font-weight: 600; font-size: .85rem;
    border-right: 1px solid var(--line); cursor: pointer; height: 44px;
}
.search-form input {
    flex: 1; border: none; background: transparent; padding: 0 14px;
    height: 44px; outline: none; font-size: .92rem;
}
.search-form button {
    background: var(--berry); color: #fff; border: none; cursor: pointer;
    width: 52px; height: 44px; display: grid; place-items: center;
    transition: background .15s;
}
.search-form button:hover { background: var(--berry-dark); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.header-action {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 7px 11px; border-radius: var(--radius-sm); cursor: pointer;
    color: var(--ink); transition: background .15s, color .15s; position: relative;
}
.header-action:hover { background: var(--berry-soft); color: var(--berry); }
.header-action svg { width: 22px; height: 22px; }
.header-action span { font-size: .7rem; font-weight: 700; }
.cart-badge {
    position: absolute; top: 2px; right: 4px;
    background: var(--gold); color: #fff; font-size: .65rem; font-weight: 800;
    min-width: 17px; height: 17px; border-radius: 999px;
    display: grid; place-items: center; padding: 0 4px;
}

/* Category nav */
.cat-nav { background: var(--card); border-bottom: 1px solid var(--line); }
.cat-nav .container { display: flex; align-items: center; gap: 4px; }
.cat-nav-all {
    display: flex; align-items: center; gap: 8px;
    background: var(--berry); color: #fff; font-weight: 700; font-size: .88rem;
    padding: 12px 18px; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    cursor: pointer;
}
.cat-nav-links { display: flex; gap: 2px; overflow-x: auto; }
.cat-nav-links a {
    padding: 12px 14px; font-weight: 600; font-size: .87rem; color: var(--ink);
    white-space: nowrap; border-bottom: 2.5px solid transparent; transition: color .15s, border-color .15s;
}
.cat-nav-links a:hover, .cat-nav-links a.active { color: var(--berry); border-color: var(--berry); }

/* Mobile menu toggle */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--charcoal); }
.menu-toggle svg { width: 26px; height: 26px; }

/* ===========================================================================
   HERO
   =========================================================================== */
.hero {
    background: linear-gradient(135deg, #fff 0%, var(--berry-soft) 55%, var(--cream) 100%);
    border-bottom: 1px solid var(--line); overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: center; padding: 56px 22px; }
.hero-copy .eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    font-weight: 800; font-size: .72rem; letter-spacing: .13em; text-transform: uppercase;
    color: var(--berry); background: #fff; padding: 7px 13px; border-radius: 999px;
    box-shadow: var(--shadow-sm); margin-bottom: 18px;
}
.hero-copy h1 { font-size: 3.1rem; line-height: 1.07; letter-spacing: -.01em; margin-bottom: 16px; }
.hero-copy h1 em { font-style: italic; color: var(--berry); }
.hero-copy p { font-size: 1.06rem; color: var(--ink); max-width: 33ch; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual {
    aspect-ratio: 4/3; border-radius: var(--radius-lg);
    background: linear-gradient(160deg, var(--gold) 0%, var(--berry) 100%);
    box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
    display: grid; place-items: center;
}
.hero-visual::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 75% 25%, rgba(255,255,255,.35), transparent 55%);
}
.hero-visual span {
    font-family: var(--display); font-size: 1.5rem; color: rgba(255,255,255,.9);
    font-style: italic; position: relative; z-index: 1; text-align: center; padding: 20px;
}

/* Trust strip */
.trust-strip { background: var(--card); border-bottom: 1px solid var(--line); }
.trust-strip .container {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 22px;
}
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item svg { width: 30px; height: 30px; color: var(--berry); flex-shrink: 0; }
.trust-item strong { display: block; font-family: var(--body); font-size: .9rem; font-weight: 800; }
.trust-item small { color: var(--muted); font-size: .78rem; }

/* ===========================================================================
   PRODUCT GRID + CARDS
   =========================================================================== */
.product-grid {
    display: grid; gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(218px, 1fr));
}
.product-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: transform .16s ease, box-shadow .16s ease, border-color .16s;
    display: flex; flex-direction: column; position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #e0d7d0; }
.product-thumb {
    aspect-ratio: 1; background: var(--cream); position: relative; overflow: hidden;
    display: grid; place-items: center;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb .placeholder {
    font-family: var(--display); font-style: italic; color: var(--muted);
    font-size: .95rem; text-align: center; padding: 16px;
}
.product-card-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; z-index: 2; }
.wishlist-btn {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    width: 34px; height: 34px; border-radius: 999px; border: none;
    background: rgba(255,255,255,.92); display: grid; place-items: center;
    cursor: pointer; color: var(--ink); box-shadow: var(--shadow-sm);
    transition: color .15s, transform .15s;
}
.wishlist-btn:hover { color: var(--berry); transform: scale(1.1); }
.wishlist-btn svg { width: 17px; height: 17px; }
.product-body { padding: 13px 14px 15px; display: flex; flex-direction: column; flex: 1; }
.product-brand { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 4px; }
.product-name {
    font-family: var(--body); font-weight: 600; font-size: .92rem; color: var(--charcoal);
    line-height: 1.35; margin-bottom: 9px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.5em;
}
.product-name:hover { color: var(--berry); }
.product-price { display: flex; align-items: baseline; gap: 7px; margin-top: auto; margin-bottom: 11px; }
.product-price .now { font-weight: 800; font-size: 1.05rem; color: var(--berry); }
.product-price .was { font-size: .82rem; color: var(--muted); text-decoration: line-through; }
.product-rating { display: flex; align-items: center; gap: 4px; font-size: .76rem; color: var(--muted); margin-bottom: 9px; }
.product-rating .stars { color: var(--gold); letter-spacing: 1px; }
.product-card .btn { margin-top: auto; }

/* ===========================================================================
   CATEGORY PAGE — sidebar + listing
   =========================================================================== */
.shop-layout { display: grid; grid-template-columns: 252px 1fr; gap: 26px; align-items: start; }

.filter-sidebar {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 4px 0; position: sticky; top: 92px;
}
.filter-block { padding: 18px 18px; border-bottom: 1px solid var(--line); }
.filter-block:last-child { border-bottom: none; }
.filter-block h4 {
    font-family: var(--body); font-size: .78rem; font-weight: 800;
    letter-spacing: .08em; text-transform: uppercase; color: var(--charcoal); margin-bottom: 13px;
}
.filter-list li { margin-bottom: 9px; }
.filter-list a, .filter-list label {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    font-size: .87rem; color: var(--ink); cursor: pointer; transition: color .15s;
}
.filter-list a:hover, .filter-list label:hover { color: var(--berry); }
.filter-list a.active { color: var(--berry); font-weight: 700; }
.filter-list .count { font-size: .76rem; color: var(--muted); }
.filter-list input[type="checkbox"], .filter-list input[type="radio"] { accent-color: var(--berry); width: 15px; height: 15px; }
.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-inputs input {
    width: 100%; padding: 8px 10px; border: 1.5px solid var(--line);
    border-radius: var(--radius-sm); outline: none; font-size: .85rem;
}
.price-inputs input:focus { border-color: var(--berry); }

.shop-main { min-width: 0; }
.shop-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 13px 18px; margin-bottom: 18px; flex-wrap: wrap;
}
.shop-toolbar .result-count { font-size: .87rem; color: var(--ink); font-weight: 600; }
.shop-toolbar .result-count strong { color: var(--charcoal); }
.shop-sort { display: flex; align-items: center; gap: 9px; }
.shop-sort label { font-size: .82rem; color: var(--muted); font-weight: 600; }
.shop-sort select {
    padding: 8px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    background: var(--ivory); font-weight: 600; font-size: .85rem; cursor: pointer; outline: none;
}
.shop-sort select:focus { border-color: var(--berry); }

.filter-toggle-mobile { display: none; }

/* Breadcrumb */
.breadcrumb {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: .82rem; color: var(--muted); padding: 18px 0;
}
.breadcrumb a:hover { color: var(--berry); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .current { color: var(--charcoal); font-weight: 600; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 34px; }
.pagination a, .pagination span {
    min-width: 40px; height: 40px; display: grid; place-items: center;
    border-radius: var(--radius-sm); border: 1.5px solid var(--line);
    font-weight: 700; font-size: .88rem; color: var(--ink); background: var(--card);
    transition: all .15s; padding: 0 10px;
}
.pagination a:hover { border-color: var(--berry); color: var(--berry); }
.pagination .current { background: var(--berry); color: #fff; border-color: var(--berry); }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* Empty state */
.empty-state { text-align: center; padding: 70px 20px; }
.empty-state svg { width: 64px; height: 64px; color: var(--line); margin: 0 auto 18px; }
.empty-state h3 { font-size: 1.3rem; margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 22px; }

/* ===========================================================================
   PRODUCT DETAIL
   =========================================================================== */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; padding: 26px 0 50px; }
.pdp-gallery { display: flex; flex-direction: column; gap: 12px; }
.pdp-main-image {
    aspect-ratio: 1; background: var(--cream); border-radius: var(--radius-lg);
    overflow: hidden; display: grid; place-items: center;
}
.pdp-main-image img { width: 100%; height: 100%; object-fit: cover; }
.pdp-main-image .placeholder { font-family: var(--display); font-style: italic; color: var(--muted); }
.pdp-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.pdp-thumb {
    aspect-ratio: 1; background: var(--cream); border-radius: var(--radius-sm);
    overflow: hidden; cursor: pointer; border: 2px solid transparent;
}
.pdp-thumb.active { border-color: var(--berry); }

.pdp-info .product-brand { font-size: .8rem; margin-bottom: 7px; }
.pdp-info h1 { font-size: 2rem; line-height: 1.15; margin-bottom: 12px; }
.pdp-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.pdp-meta .product-rating { font-size: .85rem; margin: 0; }
.pdp-meta .sku { font-size: .8rem; color: var(--muted); }
.pdp-price-row {
    display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
    padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    margin-bottom: 20px;
}
.pdp-price-row .now { font-family: var(--display); font-weight: 700; font-size: 2.1rem; color: var(--berry); }
.pdp-price-row .was { font-size: 1.05rem; color: var(--muted); text-decoration: line-through; }
.pdp-price-row .save { background: var(--berry-soft); color: var(--berry); font-weight: 800; font-size: .8rem; padding: 4px 10px; border-radius: 999px; }
.pdp-short { color: var(--ink); margin-bottom: 22px; font-size: .98rem; }
.stock-line { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 700; margin-bottom: 20px; }
.stock-line.in { color: var(--success); }
.stock-line.low { color: var(--warning); }
.stock-line.out { color: var(--danger); }
.stock-line::before { content: ''; width: 9px; height: 9px; border-radius: 999px; background: currentColor; }

.pdp-buy { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.qty-stepper {
    display: flex; align-items: center; border: 1.5px solid var(--line);
    border-radius: var(--radius-sm); overflow: hidden;
}
.qty-stepper button {
    width: 42px; height: 48px; border: none; background: var(--ivory); cursor: pointer;
    font-size: 1.2rem; font-weight: 700; color: var(--ink); transition: background .15s;
}
.qty-stepper button:hover { background: var(--berry-soft); color: var(--berry); }
.qty-stepper input {
    width: 54px; height: 48px; border: none; text-align: center;
    font-weight: 700; font-size: 1rem; outline: none;
    border-left: 1.5px solid var(--line); border-right: 1.5px solid var(--line);
}
.pdp-buy .btn { flex: 1; min-width: 160px; height: 48px; }
.pdp-assurance {
    display: grid; gap: 10px; padding: 18px; background: var(--card);
    border: 1px solid var(--line); border-radius: var(--radius); margin-top: 8px;
}
.pdp-assurance div { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--ink); }
.pdp-assurance svg { width: 19px; height: 19px; color: var(--berry); flex-shrink: 0; }

/* Tabs */
.pdp-tabs { border-top: 1px solid var(--line); padding-top: 30px; }
.tab-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tab-nav button {
    padding: 12px 20px; border: none; background: none; cursor: pointer;
    font-weight: 700; font-size: .92rem; color: var(--muted);
    border-bottom: 2.5px solid transparent; transition: color .15s, border-color .15s;
}
.tab-nav button.active { color: var(--berry); border-color: var(--berry); }
.tab-panel { display: none; line-height: 1.75; color: var(--ink); max-width: 70ch; }
.tab-panel.active { display: block; }

/* ===========================================================================
   CART
   =========================================================================== */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; padding: 10px 0 50px; }
.cart-items { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cart-row {
    display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: center;
    padding: 18px; border-bottom: 1px solid var(--line);
}
.cart-row:last-child { border-bottom: none; }
.cart-row-img { width: 84px; height: 84px; border-radius: var(--radius-sm); background: var(--cream); overflow: hidden; }
.cart-row-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-row-info h4 { font-family: var(--body); font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.cart-row-info .unit { font-size: .82rem; color: var(--muted); }
.cart-row-info .remove {
    font-size: .8rem; color: var(--danger); font-weight: 600; cursor: pointer;
    background: none; border: none; padding: 0; margin-top: 8px;
}
.cart-row-info .remove:hover { text-decoration: underline; }
.cart-row-end { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-row-end .line-total { font-weight: 800; font-size: 1rem; color: var(--charcoal); }

.cart-summary {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px; position: sticky; top: 92px;
}
.cart-summary h3 { font-size: 1.2rem; margin-bottom: 18px; }
.summary-row { display: flex; justify-content: space-between; font-size: .9rem; color: var(--ink); margin-bottom: 11px; }
.summary-row.total {
    border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px;
    font-size: 1.15rem; font-weight: 800; color: var(--charcoal);
}
.summary-row.total .amt { color: var(--berry); }
.summary-note { font-size: .78rem; color: var(--muted); margin: 14px 0 18px; }
.free-ship-bar { background: var(--cream); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 16px; font-size: .8rem; }
.free-ship-bar .track { height: 6px; background: var(--line); border-radius: 999px; margin-top: 8px; overflow: hidden; }
.free-ship-bar .fill { height: 100%; background: var(--gold); border-radius: 999px; }

/* ===========================================================================
   FORMS (checkout, account, admin)
   =========================================================================== */
.form-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px;
}
.form-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.form-card .form-card-sub { color: var(--muted); font-size: .87rem; margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 700; color: var(--charcoal); margin-bottom: 6px; }
.field label .req { color: var(--berry); }
.field input, .field select, .field textarea {
    width: 100%; padding: 11px 13px; border: 1.5px solid var(--line);
    border-radius: var(--radius-sm); outline: none; font-size: .92rem;
    background: var(--ivory); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--berry); box-shadow: 0 0 0 3px var(--berry-soft); background: #fff;
}
.field textarea { resize: vertical; min-height: 90px; }
.field .hint { font-size: .76rem; color: var(--muted); margin-top: 5px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-error { font-size: .78rem; color: var(--danger); margin-top: 5px; font-weight: 600; }

.auth-wrap { max-width: 440px; margin: 40px auto; }
.auth-wrap .form-card { padding: 30px; }
.auth-switch { text-align: center; margin-top: 18px; font-size: .87rem; color: var(--muted); }
.auth-switch a { color: var(--berry); font-weight: 700; }

/* Checkout */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 26px; align-items: start; padding: 10px 0 50px; }
.bank-account-card {
    border: 1.5px dashed var(--gold); background: var(--warning-bg);
    border-radius: var(--radius-sm); padding: 14px; margin-bottom: 12px;
}
.bank-account-card .bank-name { font-weight: 800; color: var(--gold-dark); font-size: .9rem; margin-bottom: 6px; }
.bank-account-card .bank-line { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: 3px; }
.bank-account-card .bank-line span:first-child { color: var(--ink); }
.bank-account-card .bank-line span:last-child { font-weight: 700; font-family: var(--body); }
.upload-drop {
    border: 2px dashed var(--line); border-radius: var(--radius-sm); padding: 26px;
    text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.upload-drop:hover { border-color: var(--berry); background: var(--berry-soft); }
.upload-drop svg { width: 34px; height: 34px; color: var(--muted); margin: 0 auto 8px; }
.upload-drop p { font-size: .87rem; color: var(--ink); font-weight: 600; }
.upload-drop small { color: var(--muted); font-size: .76rem; }
.payment-method-list { display: grid; gap: 10px; margin-bottom: 8px; }
.payment-method {
    display: flex; align-items: center; gap: 11px; padding: 13px 15px;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
    transition: border-color .15s, background .15s;
}
.payment-method:hover { border-color: var(--berry); }
.payment-method input { accent-color: var(--berry); }
.payment-method.selected { border-color: var(--berry); background: var(--berry-soft); }

/* ===========================================================================
   WHATSAPP FLOAT
   =========================================================================== */
.wa-float {
    position: fixed; bottom: 22px; right: 22px; z-index: 200;
    display: flex; align-items: center; gap: 0;
    background: #25D366; color: #fff; border-radius: 999px;
    box-shadow: 0 8px 24px rgba(37,211,102,.45); overflow: hidden;
    transition: padding .25s ease;
}
.wa-float svg { width: 56px; height: 56px; padding: 14px; flex-shrink: 0; }
.wa-float .wa-label {
    max-width: 0; white-space: nowrap; overflow: hidden; font-weight: 700;
    font-size: .9rem; transition: max-width .25s ease, padding .25s ease;
}
.wa-float:hover .wa-label { max-width: 200px; padding-right: 20px; }

/* ===========================================================================
   FOOTER
   =========================================================================== */
.site-footer { background: var(--charcoal); color: #C9C4BF; margin-top: 40px; }
.footer-top { padding: 48px 0 36px; }
.footer-top .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-col h4 { font-family: var(--body); font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col a { font-size: .87rem; opacity: .85; transition: opacity .15s, color .15s; }
.footer-col a:hover { opacity: 1; color: var(--gold); }
.footer-brand .brand-mark { margin-bottom: 14px; }
.footer-brand p { font-size: .87rem; line-height: 1.7; opacity: .8; margin-bottom: 14px; }
.footer-contact div { display: flex; align-items: center; gap: 9px; font-size: .87rem; margin-bottom: 9px; }
.footer-contact svg { width: 17px; height: 17px; color: var(--gold); flex-shrink: 0; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0;
}
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-bottom p { font-size: .8rem; opacity: .7; }
.footer-pay { display: flex; gap: 7px; }
.footer-pay span {
    background: rgba(255,255,255,.1); padding: 4px 9px; border-radius: 5px;
    font-size: .72rem; font-weight: 700;
}

/* ===========================================================================
   RESPONSIVE
   =========================================================================== */
@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
    .hero-copy h1 { font-size: 2.5rem; }
    .footer-top .container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .menu-toggle { display: block; }
    .cat-nav { display: none; }
    .header-main { gap: 14px; flex-wrap: wrap; }
    .search-form { order: 3; flex-basis: 100%; }
    .header-action span { display: none; }
    .trust-strip .container { grid-template-columns: 1fr 1fr; }
    .shop-layout { grid-template-columns: 1fr; }
    .filter-sidebar { display: none; position: static; }
    .filter-sidebar.open { display: block; }
    .filter-toggle-mobile {
        display: flex; align-items: center; gap: 8px; width: 100%;
        justify-content: center; margin-bottom: 16px;
    }
    .pdp { grid-template-columns: 1fr; gap: 24px; }
    .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .cart-summary, .filter-sidebar { position: static; }
}

@media (max-width: 560px) {
    .hero-copy h1 { font-size: 2rem; }
    .section { padding: 38px 0; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .trust-strip .container { grid-template-columns: 1fr; }
    .footer-top .container { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .topbar .topbar-links { display: none; }
    .cart-row { grid-template-columns: 64px 1fr; }
    .cart-row-img { width: 64px; height: 64px; }
    .cart-row-end { grid-column: 2; align-items: flex-start; flex-direction: row; justify-content: space-between; width: 100%; }
}
