/* =====================================================================
   Chashma Ghar — storefront styles
   Built on Bootstrap 5.3, only the components we actually use.
   ===================================================================== */

/* ---------- Self-hosted fonts ---------- */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-latin.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fraunces';
    src: url('../fonts/fraunces-latin.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
    --ink: #1b1b1f;
    --ink-2: #3f3f46;
    --muted: #6f6f78;
    --line: #e7e2d9;
    --line-soft: #f0ece5;
    --bg: #faf9f7;
    --surface: #ffffff;
    --gold: #c8a04a;
    --gold-deep: #a8842f;
    --gold-soft: #f4ecda;
    --green: #2f7d5d;
    --danger: #b42318;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(27, 27, 31, .04);
    --shadow: 0 1px 2px rgba(27, 27, 31, .04), 0 14px 34px -18px rgba(27, 27, 31, .22);

    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;

    --container: 1200px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -.015em;
    color: var(--ink);
    line-height: 1.15;
}

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

img { max-width: 100%; }

::selection { background: var(--gold-soft); color: var(--ink); }

.container { max-width: var(--container); }

main { min-height: 50vh; }

/* ---------- Buttons ---------- */
.btn-brand,
.btn-ghost,
.btn-quiet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .8rem 1.6rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: .92rem;
    letter-spacing: .01em;
    border: 1px solid transparent;
    transition: transform .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease, border-color .18s ease;
    cursor: pointer;
}

.btn-brand {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 10px 24px -14px rgba(27, 27, 31, .8);
}

.btn-brand:hover {
    background: #000;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 16px 28px -14px rgba(27, 27, 31, .7);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.btn-ghost:hover {
    border-color: var(--ink);
    background: #fff;
    color: var(--ink);
}

.btn-quiet {
    background: var(--gold-soft);
    color: var(--gold-deep);
    padding: .6rem 1.1rem;
    font-size: .85rem;
}

.btn-quiet:hover { background: #efe2c6; color: var(--gold-deep); }

.btn-block { width: 100%; }

/* ---------- Announcement bar ---------- */
.announce-bar {
    background: var(--ink);
    color: #f3efe7;
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .55rem 0;
    font-weight: 500;
}

.announce-bar i { color: var(--gold); margin-right: .45rem; }

/* ---------- Header ---------- */
.site-header {
    background: rgba(250, 249, 247, .92);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.header-main {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: .95rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    flex-shrink: 0;
}

.brand img { flex-shrink: 0; }

.brand-text { display: flex; flex-direction: column; line-height: 1.05; }

.brand-name {
    font-family: var(--font-display);
    font-size: 1.22rem;
    font-weight: 600;
    letter-spacing: -.01em;
}

.brand-tag {
    font-size: .62rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--muted);
    margin-top: .2rem;
}

.header-search {
    position: relative;
    flex: 1;
    max-width: 440px;
    margin: 0 auto;
}

.header-search i,
.mobile-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: .95rem;
    pointer-events: none;
}

.header-search input,
.mobile-search input {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: var(--radius-pill);
    padding: .62rem 1rem .62rem 2.6rem;
    font-size: .88rem;
    color: var(--ink);
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.header-search input:focus,
.mobile-search input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(200, 160, 74, .14);
}

.header-search input::placeholder,
.mobile-search input::placeholder { color: #9a978f; }

.header-actions {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-left: auto;
}

.icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid transparent;
    color: var(--ink);
    font-size: 1.15rem;
    transition: background-color .18s ease, border-color .18s ease;
    padding: 0;
}

.icon-btn:hover {
    background: #fff;
    border-color: var(--line);
    color: var(--ink);
}

.cart-badge {
    position: absolute;
    top: 4px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--radius-pill);
    background: var(--gold);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    line-height: 1;
}

/* ---------- Main nav row ---------- */
.header-nav { border-top: 1px solid var(--line-soft); }

.nav-list {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    list-style: none;
    margin: 0;
    padding: .7rem 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-list::-webkit-scrollbar { display: none; }

.nav-list a {
    font-size: .875rem;
    font-weight: 500;
    color: var(--ink-2);
    white-space: nowrap;
    padding: .2rem 0;
    border-bottom: 2px solid transparent;
    transition: color .18s ease, border-color .18s ease;
}

.nav-list a:hover,
.nav-list a.is-active {
    color: var(--ink);
    border-bottom-color: var(--gold);
}

.nav-list-gap { flex: 1; }

.nav-list .nav-list-gap + li a { color: var(--gold-deep); font-weight: 600; }

/* ---------- Mobile panel ---------- */
.mobile-panel {
    border-top: 1px solid var(--line-soft);
    padding-bottom: 1rem;
}

.mobile-panel .container { padding-top: .9rem; }

.mobile-search { position: relative; margin-bottom: .65rem; }

.mobile-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .1rem;
}

.mobile-nav a {
    display: block;
    padding: .65rem .25rem;
    font-size: .95rem;
    font-weight: 500;
    border-bottom: 1px solid var(--line-soft);
}

.mobile-nav-sep { height: .75rem; }

/* ---------- Alerts ---------- */
.site-alert {
    margin-top: 1.1rem;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    border: 1px solid;
    box-shadow: var(--shadow-sm);
}

.alert-success { background: #f1f8f4; border-color: #cfe6da; color: #22694c; }
.alert-danger  { background: #fdf3f2; border-color: #f4d3cf; color: #8f2119; }
.alert-warning { background: #fdf8ec; border-color: #f0e0b8; color: #8a6413; }
.alert-info    { background: #f2f6fa; border-color: #d4e2ee; color: #28526f; }

/* ---------- Hero ---------- */
.hero { padding: 3.2rem 0 1rem; }

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 3rem;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold-deep);
    background: var(--gold-soft);
    padding: .42rem .9rem;
    border-radius: var(--radius-pill);
}

.hero h1 {
    font-size: clamp(2.2rem, 4.6vw, 3.5rem);
    margin: 1.2rem 0 1rem;
    letter-spacing: -.03em;
}

.hero h1 em {
    font-style: italic;
    color: var(--gold-deep);
}

.hero-copy p {
    color: var(--muted);
    font-size: 1.02rem;
    max-width: 46ch;
    margin-bottom: 1.7rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 2rem;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
    padding-top: 1.3rem;
}

.hero-points li {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .82rem;
    color: var(--ink-2);
    font-weight: 500;
}

.hero-points i { color: var(--gold-deep); font-size: .95rem; }

.hero-visual { position: relative; }

.hero-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(140deg, #efe9dd, #e2d8c4);
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;
}

.hero-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-chip {
    position: absolute;
    left: -18px;
    bottom: 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .85rem 1.15rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.hero-chip span {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--muted);
}

.hero-chip strong {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--ink);
}

/* ---------- Section scaffolding ---------- */
.section { padding: 3.4rem 0; }
.section-tight { padding: 2.2rem 0; }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.8rem;
}

.section-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin: 0;
}

.section-head p {
    color: var(--muted);
    margin: .4rem 0 0;
    font-size: .92rem;
    max-width: 52ch;
}

.section-link {
    font-size: .85rem;
    font-weight: 600;
    color: var(--gold-deep);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.section-link:hover { color: var(--ink); }

/* ---------- Category tiles ---------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.category-tile {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
}

.category-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: #d8d0c0;
}

.category-tile .tile-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--gold-soft);
    color: var(--gold-deep);
    font-size: 1.3rem;
}

.category-tile strong {
    font-size: .88rem;
    font-weight: 600;
    color: var(--ink);
}

.category-tile small {
    font-size: .72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .1em;
}

/* ---------- Product grid & card ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.product-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: #d8d0c0;
}

.product-card-media {
    display: block;
    aspect-ratio: 4 / 3;
    background: #f3efe7;
    overflow: hidden;
}

.product-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.product-card:hover .product-card-media img { transform: scale(1.04); }

.product-badges {
    position: absolute;
    top: .75rem;
    left: .75rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
}

.badge-soft {
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .3rem .55rem;
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.badge-new { background: var(--ink); color: #fff; }
.badge-off { background: var(--gold); color: #fff; }
.badge-out { background: #ece8e0; color: var(--muted); }

.product-card-add {
    position: absolute;
    top: .75rem;
    right: .75rem;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .2s ease, transform .2s ease;
}

.product-card:hover .product-card-add,
.product-card:focus-within .product-card-add {
    opacity: 1;
    transform: translateY(0);
}

.product-card-add button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow);
    display: grid;
    place-items: center;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease;
}

.product-card-add button:hover { background: var(--ink); color: #fff; }

.product-card-body {
    padding: .95rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    flex: 1;
}

.product-card-brand {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .13em;
    color: var(--muted);
    margin: 0;
    font-weight: 600;
}

.product-card-title {
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    letter-spacing: 0;
}

.product-card-title a:hover { color: var(--gold-deep); }

.product-card-price {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    margin-top: auto;
    padding-top: .45rem;
}

.price-now { font-weight: 700; font-size: .98rem; color: var(--ink); }
.price-was { font-size: .82rem; color: #a3a09a; text-decoration: line-through; }

/* ---------- Promo band ---------- */
.promo-band {
    background: var(--ink);
    border-radius: var(--radius-lg);
    color: #f6f2ea;
    padding: 2.6rem clamp(1.5rem, 4vw, 3.4rem);
    display: grid;
    grid-template-columns: 1.4fr auto;
    gap: 2rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.promo-band::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 160, 74, .35), transparent 68%);
}

.promo-band h2 {
    color: #fff;
    font-size: clamp(1.5rem, 2.6vw, 2.05rem);
    margin: 0 0 .5rem;
}

.promo-band p {
    color: #c9c4ba;
    margin: 0;
    max-width: 54ch;
    font-size: .93rem;
}

.promo-band .btn-brand {
    background: var(--gold);
    color: #1b1b1f;
    box-shadow: none;
    position: relative;
    z-index: 1;
}

.promo-band .btn-brand:hover { background: #d8b25c; color: #1b1b1f; }

/* ---------- Feature strip ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem 1.15rem;
}

.feature-item i {
    font-size: 1.25rem;
    color: var(--gold-deep);
    margin-top: .1rem;
}

.feature-item strong {
    display: block;
    font-size: .88rem;
    font-weight: 600;
    color: var(--ink);
}

.feature-item span {
    font-size: .78rem;
    color: var(--muted);
    line-height: 1.45;
}

/* ---------- Brand strip ---------- */
.brand-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2.5rem;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 1.6rem 0;
}

.brand-strip span {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: #a8a49b;
    letter-spacing: .02em;
    transition: color .18s ease;
}

.brand-strip span:hover { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
    background: #141416;
    color: #b7b3aa;
    padding: 3.4rem 0 1.6rem;
    margin-top: 4rem;
    font-size: .88rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 2.4rem;
    padding-bottom: 2.4rem;
    border-bottom: 1px solid #26262a;
}

.brand-footer { color: #fff; margin-bottom: .9rem; }
.brand-footer .brand-name { color: #fff; }

.footer-brand p {
    color: #8a867e;
    line-height: 1.65;
    font-size: .85rem;
    max-width: 34ch;
}

.footer-social {
    display: flex;
    gap: .6rem;
    margin-top: 1.1rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #2c2c31;
    display: grid;
    place-items: center;
    color: #c9c4ba;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.footer-social a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #141416;
}

.footer-col h4 {
    color: #fff;
    font-family: var(--font-body);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .55rem;
}

.footer-col a { color: #a19d95; transition: color .18s ease; }
.footer-col a:hover { color: #fff; }

.footer-contact li {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    color: #a19d95;
    line-height: 1.55;
}

.footer-contact i { color: var(--gold); margin-top: .2rem; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem;
    padding-top: 1.4rem;
    font-size: .78rem;
    color: #726e67;
}

.footer-bottom p { margin: 0; }

.footer-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-note a:hover { color: var(--gold); }

/* =====================================================================
   Inner pages: listings, product detail, cart, forms
   ===================================================================== */

.page-head {
    padding: 2.6rem 0 1.6rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 2.2rem;
}

.page-head h1 {
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
    margin: 0 0 .35rem;
}

.page-head p { color: var(--muted); margin: 0; max-width: 60ch; }

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    list-style: none;
    padding: 1.1rem 0 0;
    margin: 0;
    font-size: .78rem;
    color: var(--muted);
}

.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs .sep { opacity: .5; }

/* ---------- Toolbar / filters ---------- */
.shop-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.result-count { font-size: .85rem; color: var(--muted); }
.result-count strong { color: var(--ink); }

.toolbar-select {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: var(--radius-pill);
    padding: .5rem 1rem;
    font-size: .84rem;
    color: var(--ink);
    outline: none;
}

.toolbar-select:focus { border-color: var(--gold); }

/* ---------- Product detail ---------- */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    padding: 2.2rem 0 1rem;
}

.gallery-main {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #f3efe7;
    aspect-ratio: 4 / 3;
}

.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gallery-thumbs {
    display: flex;
    gap: .6rem;
    margin-top: .7rem;
    flex-wrap: wrap;
}

.gallery-thumbs button {
    width: 76px;
    height: 57px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
    padding: 0;
    cursor: pointer;
    transition: border-color .18s ease;
}

.gallery-thumbs button.is-active,
.gallery-thumbs button:hover { border-color: var(--ink); }

.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.product-info h1 {
    font-size: clamp(1.6rem, 3vw, 2.15rem);
    margin: .2rem 0 .6rem;
}

.product-info .brand-line {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--muted);
    font-weight: 600;
}

.price-block {
    display: flex;
    align-items: baseline;
    gap: .7rem;
    margin: .9rem 0 .3rem;
}

.price-block .price-now { font-size: 1.7rem; font-family: var(--font-display); }
.price-block .price-was { font-size: 1rem; }

.tax-note { font-size: .78rem; color: var(--muted); }

.stock-line {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .82rem;
    font-weight: 600;
    margin: .9rem 0;
}

.stock-in { color: var(--green); }
.stock-low { color: #b26a00; }
.stock-out { color: var(--danger); }

.stock-line i { font-size: .6rem; }

.product-short { color: var(--ink-2); font-size: .93rem; margin: .4rem 0 1.2rem; }

.option-group { margin-bottom: 1.1rem; }

.option-group > label,
.option-label {
    display: block;
    font-size: .76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
    margin-bottom: .5rem;
}

.option-pills { display: flex; flex-wrap: wrap; gap: .5rem; }

.option-pill { position: relative; }

.option-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-pill span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: var(--radius-pill);
    padding: .48rem .95rem;
    font-size: .83rem;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease;
}

.option-pill input:checked + span {
    border-color: var(--ink);
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--ink);
}

.option-pill input:focus-visible + span { box-shadow: 0 0 0 4px rgba(200, 160, 74, .25); }

.swatch {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, .15);
    display: inline-block;
}

.qty-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin: 1.4rem 0 1.2rem;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: #fff;
    overflow: hidden;
}

.qty-stepper button {
    width: 38px;
    height: 42px;
    border: none;
    background: transparent;
    color: var(--ink);
    font-size: 1rem;
    cursor: pointer;
}

.qty-stepper button:hover { background: var(--line-soft); }

.qty-stepper input {
    width: 44px;
    border: none;
    text-align: center;
    font-weight: 600;
    font-size: .9rem;
    background: transparent;
    outline: none;
    -moz-appearance: textfield;
}

.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.buy-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.buy-actions .btn-brand { flex: 1; min-width: 180px; }

.product-meta {
    margin-top: 1.8rem;
    border-top: 1px solid var(--line);
    padding-top: 1.3rem;
    display: grid;
    gap: .55rem;
    font-size: .84rem;
    color: var(--ink-2);
}

.product-meta div { display: flex; gap: .5rem; }
.product-meta dt, .product-meta span.k { color: var(--muted); min-width: 110px; }

.spec-table { width: 100%; border-collapse: collapse; font-size: .87rem; }
.spec-table th, .spec-table td { padding: .7rem 0; border-bottom: 1px solid var(--line-soft); text-align: left; }
.spec-table th { color: var(--muted); font-weight: 500; width: 40%; }

/* ---------- Tabs ---------- */
.detail-tabs { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 2rem; }

/* ---------- Reviews ---------- */
.review-item {
    border-bottom: 1px solid var(--line-soft);
    padding: 1.1rem 0;
}

.review-item:last-child { border-bottom: none; }

.review-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    margin-bottom: .35rem;
}

.review-head strong { font-size: .9rem; }

.stars { color: var(--gold); font-size: .8rem; letter-spacing: .08em; }

.review-item p { margin: 0; font-size: .88rem; color: var(--ink-2); }

.review-date { font-size: .75rem; color: var(--muted); }

/* ---------- Cart ---------- */
.cart-layout {
    display: grid;
    grid-template-columns: 1.6fr .9fr;
    gap: 2rem;
    align-items: start;
    padding-bottom: 3rem;
}

.cart-list {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.cart-line {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 1rem;
    padding: 1.1rem;
    border-bottom: 1px solid var(--line-soft);
    align-items: center;
}

.cart-line:last-child { border-bottom: none; }

.cart-line-img {
    width: 90px;
    height: 68px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #f3efe7;
}

.cart-line-img img { width: 100%; height: 100%; object-fit: cover; }

.cart-line-title { font-weight: 600; font-size: .92rem; margin: 0 0 .2rem; }
.cart-line-title a:hover { color: var(--gold-deep); }

.cart-line-meta { font-size: .78rem; color: var(--muted); }

.cart-line-side { text-align: right; display: grid; gap: .5rem; justify-items: end; }

.cart-line-price { font-weight: 700; font-size: .95rem; }

.cart-remove {
    background: none;
    border: none;
    color: var(--muted);
    font-size: .78rem;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.cart-remove:hover { color: var(--danger); }

.cart-summary {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem;
    position: sticky;
    top: 140px;
}

.cart-summary h2 { font-size: 1.15rem; margin: 0 0 1rem; }

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: .88rem;
    padding: .4rem 0;
    color: var(--ink-2);
}

.summary-row.is-total {
    border-top: 1px solid var(--line);
    margin-top: .6rem;
    padding-top: .85rem;
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--ink);
}

.summary-row .free { color: var(--green); font-weight: 600; }

.coupon-form { display: flex; gap: .5rem; margin: .8rem 0 1rem; }

.coupon-form input {
    flex: 1;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    padding: .55rem .9rem;
    font-size: .82rem;
    outline: none;
}

.coupon-form input:focus { border-color: var(--gold); }

.coupon-form button {
    border: 1px solid var(--ink);
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius-pill);
    padding: .55rem 1rem;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
}

.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.empty-state i { font-size: 2.4rem; color: var(--gold); display: block; margin-bottom: 1rem; }
.empty-state h2 { font-size: 1.4rem; margin-bottom: .5rem; }
.empty-state p { color: var(--muted); margin-bottom: 1.4rem; }

/* ---------- Forms / auth ---------- */
.auth-wrap {
    display: grid;
    place-items: center;
    padding: 3rem 0 4rem;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    box-shadow: var(--shadow);
}

.auth-card h1 { font-size: 1.6rem; margin-bottom: .35rem; }
.auth-card .lead-note { color: var(--muted); font-size: .88rem; margin-bottom: 1.6rem; }

.field { margin-bottom: 1rem; }

.field label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    margin-bottom: .4rem;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: .7rem .85rem;
    font-size: .9rem;
    background: #fff;
    color: var(--ink);
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(200, 160, 74, .14);
}

.field .hint { font-size: .75rem; color: var(--muted); margin-top: .3rem; }
.field .error { font-size: .78rem; color: var(--danger); margin-top: .3rem; }

.form-foot { margin-top: 1.4rem; font-size: .85rem; color: var(--muted); text-align: center; }
.form-foot a { color: var(--gold-deep); font-weight: 600; }

.auth-features {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    margin-top: 1.6rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line-soft);
    font-size: .72rem;
    color: var(--muted);
    text-align: center;
}

.auth-features i { display: block; font-size: 1rem; color: var(--gold-deep); margin-bottom: .25rem; }

/* ---------- Account ---------- */
.account-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    align-items: start;
    padding-bottom: 3rem;
}

.account-side {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem;
}

.account-user { padding-bottom: 1rem; border-bottom: 1px solid var(--line-soft); margin-bottom: .8rem; }
.account-user strong { display: block; font-size: .95rem; }
.account-user span { font-size: .78rem; color: var(--muted); word-break: break-all; }

.account-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }

.account-links a {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem .65rem;
    border-radius: var(--radius-sm);
    font-size: .87rem;
    color: var(--ink-2);
    transition: background-color .18s ease;
}

.account-links a:hover,
.account-links a.is-active { background: var(--gold-soft); color: var(--gold-deep); font-weight: 600; }

.account-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem;
}

.account-panel h1 { font-size: 1.5rem; margin-bottom: .4rem; }

/* ---------- Pagination ---------- */
.pagination-wrap { display: flex; justify-content: center; margin: 2.4rem 0 0; }

.pager { display: flex; gap: .35rem; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }

.pager a,
.pager span {
    min-width: 38px;
    height: 38px;
    padding: 0 .6rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: .85rem;
    color: var(--ink-2);
}

.pager a:hover { border-color: var(--ink); color: var(--ink); }
.pager .is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager .is-disabled { opacity: .45; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 5rem 1rem; }
.notfound .code { font-family: var(--font-display); font-size: 5rem; line-height: 1; color: var(--gold); }
.notfound h1 { font-size: 1.8rem; margin: .6rem 0 .5rem; }
.notfound p { color: var(--muted); margin-bottom: 1.6rem; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1199.98px) {
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-top { grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
    .footer-col:last-child { grid-column: span 3; }
}

@media (max-width: 991.98px) {
    .hero { padding-top: 2.2rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero-visual { order: -1; }
    .hero-chip { left: 14px; bottom: 14px; }
    .product-detail { grid-template-columns: 1fr; gap: 1.8rem; }
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .account-layout { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .promo-band { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-col:last-child { grid-column: span 2; }
}

@media (max-width: 767.98px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: .85rem; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .brand-name { font-size: 1.05rem; }
    .brand-tag { font-size: .55rem; }
    .section { padding: 2.4rem 0; }
    .section-head { flex-direction: column; align-items: flex-start; gap: .6rem; }
    .cart-line { grid-template-columns: 70px 1fr; }
    .cart-line-img { width: 70px; height: 53px; }
    .cart-line-side { grid-column: 2; text-align: left; justify-items: start; }
    .product-card-add { opacity: 1; transform: none; }
    .footer-top { grid-template-columns: 1fr; gap: 1.8rem; }
    .footer-col:last-child { grid-column: auto; }
    .product-badges .badge-soft { font-size: .6rem; }
}

@media (max-width: 479.98px) {
    .hero-actions .btn-brand,
    .hero-actions .btn-ghost { width: 100%; }
    .hero-points { gap: .8rem 1rem; }
    .product-card-body { padding: .8rem .8rem .95rem; }
    .product-card-title { font-size: .87rem; }
    .auth-card { padding: 1.5rem; border-radius: var(--radius); }
}

/* ---------- Print ---------- */
@media print {
    .site-header, .site-footer, .announce-bar, .no-print { display: none !important; }
    body { background: #fff; }
}
