/* ==========================================================================
   LeGlamorous Jewels — Storefront, product, cart, checkout & sign-in pages
   ========================================================================== */

/* ── Home ─────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #FFFDF9 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; padding-top: 4.5rem; padding-bottom: 4rem; }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1.02; margin: .8rem 0 1rem; font-weight: 600; }
.hero h1 em { font-style: italic; color: var(--gold-text); font-weight: 500; }
.hero p.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 520px; margin-bottom: 1.8rem; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-points { display: flex; gap: 1.75rem; flex-wrap: wrap; margin-top: 2.2rem; color: var(--ink-2); font-size: .88rem; font-weight: 600; }
.hero-points span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-points svg { width: 18px; height: 18px; color: var(--gold); }
.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 480px; justify-self: center; width: 100%; }
.hero-visual .frame { position: absolute; inset: 0; border-radius: 50% 50% var(--r-lg) var(--r-lg); background: var(--onyx); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-visual .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .frame .ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--gold-bright); }
.hero-visual .frame .ph svg { width: 42%; height: auto; opacity: .9; }
.hero-visual .ring { position: absolute; inset: -14px; border: 1px solid var(--gold); border-radius: 50% 50% calc(var(--r-lg) + 10px) calc(var(--r-lg) + 10px); opacity: .6; }
.hero-card { color: var(--ink) !important; text-decoration: none !important; position: absolute; left: -24px; bottom: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: .9rem 1.1rem; box-shadow: var(--shadow-md); min-width: 200px; }
.hero-card .muted { font-size: .78rem; }
.section { padding: 4rem 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head h2 { margin: .4rem 0 0; }
.section-head p { color: var(--ink-2); margin: .35rem 0 0; max-width: 560px; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.1rem; }
.category-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; color: var(--ink); text-decoration: none !important; transition: box-shadow .2s, border-color .2s, transform .2s; }
.category-card:hover { border-color: var(--gold); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.category-card .cc-media { aspect-ratio: 4 / 3; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.category-card .cc-media img { width: 100%; height: 100%; object-fit: cover; }
.category-card .cc-media svg { width: 56px; height: 46px; color: var(--gold); }
.category-card .cc-body { padding: .95rem 1.05rem 1.05rem; }
.category-card h3 { font-size: 1.3rem; margin: 0 0 .15rem; }
.category-card .cc-count { font-size: .82rem; color: var(--ink-3); font-weight: 600; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.feature { padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.feature .f-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--gold-tint); color: var(--gold-text); display: grid; place-items: center; margin-bottom: .9rem; }
.feature .f-icon svg { width: 22px; height: 22px; }
.feature h4 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin-bottom: .35rem; }
.feature p { font-size: .9rem; color: var(--ink-2); margin: 0; }
.b2b-band { background: var(--onyx); color: var(--on-dark-2); border-radius: var(--r-lg); padding: 3rem; display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; position: relative; overflow: hidden; }
.b2b-band h2 { color: var(--on-dark); }
.b2b-band .eyebrow { color: var(--gold-bright); }
.b2b-band ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.b2b-band li { display: flex; gap: .6rem; align-items: flex-start; color: var(--on-dark-2); }
.b2b-band li svg { width: 18px; height: 18px; color: var(--gold-bright); flex: 0 0 auto; margin-top: 3px; }

/* ── Product card & grid ──────────────────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; }
.product-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.product-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.pc-media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--surface-2); overflow: hidden; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .pc-media img { transform: scale(1.03); }
.pc-media .ph, .img-ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--gold); background: radial-gradient(circle at 50% 40%, #FFFDF8 0%, var(--surface-2) 70%); }
.pc-media .ph svg, .img-ph svg { width: 34%; max-width: 90px; height: auto; opacity: .85; }
.pc-flags { position: absolute; top: .65rem; left: .65rem; display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; }
.flag { font-size: .72rem; font-weight: 800; padding: .22rem .55rem; border-radius: var(--r-sm); letter-spacing: .02em; }
.flag-sale { background: var(--onyx); color: var(--gold-bright); }
.flag-out { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-line); }
.flag-low { background: var(--warning-bg); color: var(--warning); border: 1px solid var(--warning-line); }
.pc-wish { position: absolute; top: .55rem; right: .55rem; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.95); display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.pc-wish:hover, .pc-wish.active { color: var(--danger); }
.pc-wish svg { width: 18px; height: 18px; }
.pc-wish.active svg { fill: currentColor; }
.pc-body { padding: .95rem 1rem 1.05rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.pc-cat { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.pc-name { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; line-height: 1.2; color: var(--ink); text-decoration: none !important; }
.pc-name:hover { color: var(--gold-text); }
.pc-meta { font-size: .8rem; color: var(--ink-3); }
.pc-actions { margin-top: auto; padding-top: .7rem; display: flex; gap: .5rem; }
.pc-actions .btn { flex: 1; }
.partner-price { font-size: .8rem; font-weight: 700; color: var(--gold-text); }

/* ── Shop (listing) ───────────────────────────────────────────────────── */
.shop-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 2rem; align-items: start; }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); position: sticky; top: calc(var(--header-h) + 16px); }
.filters-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.filters-head h3 { font-family: var(--sans); font-size: .95rem; font-weight: 800; margin: 0; letter-spacing: .02em; }
.filter-group { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: 0; }
.filter-group h4 { font-family: var(--sans); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 .7rem; }
.filter-list { display: grid; gap: .5rem; max-height: 230px; overflow-y: auto; }
.filter-list .check { font-size: .9rem; }
.filter-list .check span.count { margin-left: auto; color: var(--ink-3); font-size: .8rem; }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.toolbar .result-count { color: var(--ink-2); font-size: .92rem; }
.toolbar .result-count strong { color: var(--ink); }
.toolbar select { width: auto; min-width: 200px; }
.active-filters { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filters-toggle { display: none; }

/* ── Product detail ───────────────────────────────────────────────────── */
.pd-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3rem; align-items: start; padding-top: 1rem; }
.gallery { position: sticky; top: calc(var(--header-h) + 16px); display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: .9rem; }
.gallery.single { grid-template-columns: minmax(0, 1fr); }
.gallery.single .gallery-thumbs { display: none; }
.gallery-thumbs { display: flex; flex-direction: column; gap: .6rem; max-height: 560px; overflow-y: auto; }
.gallery-thumb { width: 84px; height: 84px; border-radius: var(--r-sm); border: 2px solid var(--line); background: var(--surface-2); padding: 0; overflow: hidden; cursor: pointer; flex: 0 0 auto; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--onyx); }
.gallery-thumb:hover { border-color: var(--gold); }
.gallery-main { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.gallery-main.zoomed img { transform: scale(1.9); }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.95); border: 1px solid var(--line); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.gallery-nav.prev { left: .75rem; } .gallery-nav.next { right: .75rem; }
.gallery-nav svg { width: 20px; height: 20px; }
.gallery-count { position: absolute; bottom: .75rem; right: .75rem; background: rgba(31,26,21,.82); color: var(--on-dark); font-size: .75rem; font-weight: 700; padding: .2rem .55rem; border-radius: var(--r-full); }
.pd-info h1 { font-size: clamp(2rem, 3vw, 2.6rem); margin: .4rem 0 .5rem; }
.pd-meta-row { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .88rem; color: var(--ink-2); margin-bottom: 1.2rem; }
.pd-meta-row strong { color: var(--ink); }
.pd-price { padding: 1.1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; }
.pd-price .save-line { font-size: .88rem; color: var(--success); font-weight: 600; margin-top: .35rem; }
.pd-price .tax-note { font-size: .8rem; color: var(--ink-3); margin-top: .25rem; }
.stock-line { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .92rem; margin-bottom: 1.1rem; }
.stock-line.in { color: var(--success); } .stock-line.low { color: var(--warning); } .stock-line.out { color: var(--danger); }
.stock-line svg { width: 18px; height: 18px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); overflow: hidden; }
.qty button { width: 40px; height: 42px; border: 0; background: var(--surface); font-size: 1.2rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.qty button:hover:not([disabled]) { background: var(--surface-2); }
.qty button[disabled] { color: var(--line-strong); cursor: not-allowed; }
.qty input { width: 56px; min-height: 42px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0; text-align: center; font-weight: 700; padding: 0; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty.qty-sm button { width: 32px; height: 34px; } .qty.qty-sm input { width: 42px; min-height: 34px; }
.pd-buy { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.4rem; }
.pd-buy .btn { flex: 1 1 160px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec-table th { text-align: left; font-weight: 600; color: var(--ink-3); padding: .6rem 0; width: 38%; border-bottom: 1px solid var(--line); }
.spec-table td { padding: .6rem 0; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.assurances { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1.4rem; }
.assurance { border: 1px solid var(--line); border-radius: var(--r-sm); padding: .8rem; text-align: center; font-size: .8rem; font-weight: 600; color: var(--ink-2); background: var(--surface); }
.assurance svg { width: 22px; height: 22px; color: var(--gold); display: block; margin: 0 auto .35rem; }

/* ── Cart ─────────────────────────────────────────────────────────────── */
.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 2rem; align-items: start; }
.summary-card { position: sticky; top: calc(var(--header-h) + 16px); }
.cart-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 1rem; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); align-items: start; }
.cart-line:last-child { border-bottom: 0; }
.cart-line .cl-img { width: 96px; height: 96px; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); display: block; }
.cart-line .cl-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line .cl-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.cart-line .cl-meta { font-size: .8rem; color: var(--ink-3); margin: .15rem 0 .5rem; }
.cart-line .cl-controls { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-top: .6rem; }
.cart-line .cl-total { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-line .cl-total .muted { display: block; font-weight: 500; font-size: .78rem; }
.cart-line .cl-warn { font-size: .8rem; color: var(--danger); font-weight: 600; margin-top: .4rem; }
.secure-note { display: flex; gap: .5rem; align-items: center; justify-content: center; font-size: .8rem; color: var(--ink-3); margin-top: .8rem; }
.secure-note svg { width: 16px; height: 16px; color: var(--success); }

/* ── Checkout ─────────────────────────────────────────────────────────── */
.checkout-steps { display: flex; gap: .5rem; align-items: center; font-size: .85rem; font-weight: 700; color: var(--ink-3); margin-bottom: 1.25rem; flex-wrap: wrap; }
.checkout-steps .on { color: var(--ink); }
.checkout-steps .sep { color: var(--line-strong); }
.pay-options { display: grid; gap: .6rem; }
.pay-option { display: flex; gap: .8rem; align-items: flex-start; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); padding: .85rem 1rem; cursor: pointer; background: var(--surface); }
.pay-option:hover { border-color: var(--ink-3); }
.pay-option.selected { border-color: var(--onyx); box-shadow: 0 0 0 1px var(--onyx); }
.pay-option input { margin-top: 3px; }
.pay-option strong { display: block; font-size: .93rem; }
.pay-option span { font-size: .82rem; color: var(--ink-3); }
.summary-lines { display: grid; gap: .85rem; max-height: 320px; overflow-y: auto; padding-right: .25rem; }
.summary-line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: .7rem; align-items: center; font-size: .88rem; }
.summary-line .sl-img { width: 56px; height: 56px; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); position: relative; border: 1px solid var(--line); }
.summary-line .sl-img img { width: 100%; height: 100%; object-fit: cover; }
.summary-line .sl-qty { position: absolute; top: -1px; right: -1px; background: var(--onyx); color: var(--on-dark); font-size: .68rem; font-weight: 800; min-width: 20px; height: 20px; border-radius: 0 var(--r-sm) 0 var(--r-sm); display: grid; place-items: center; }
.summary-line .sl-name { font-weight: 600; color: var(--ink); line-height: 1.3; }
.summary-line .sl-sub { font-size: .78rem; color: var(--ink-3); }
.summary-line .sl-price { text-align: right; white-space: nowrap; font-weight: 700; }
.summary-line .sl-price s { display: block; font-weight: 500; color: var(--ink-3); font-size: .78rem; }

/* ── Confirmation / tracking ──────────────────────────────────────────── */
.confirm-hero { text-align: center; padding: 2.5rem 1rem 1.5rem; }
.confirm-hero .ok { width: 64px; height: 64px; border-radius: 50%; background: var(--success-bg); color: var(--success); display: grid; place-items: center; margin: 0 auto 1rem; border: 1px solid var(--success-line); }
.confirm-hero .ok svg { width: 32px; height: 32px; }
.order-no { display: inline-block; font-family: ui-monospace, Consolas, monospace; font-weight: 700; font-size: 1.1rem; background: var(--surface); border: 1.5px dashed var(--gold); padding: .45rem 1rem; border-radius: var(--r-sm); color: var(--ink); letter-spacing: .03em; }
.track-card { max-width: 560px; margin: 0 auto; }

/* ── Sign-in / B2B partner access ─────────────────────────────────────── */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--bg); }
.auth-aside { background: var(--onyx); color: var(--on-dark-2); padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-aside::before { content: ""; position: absolute; width: 520px; height: 520px; border: 1px solid rgba(217, 185, 110, .25); border-radius: 50%; right: -180px; bottom: -160px; }
.auth-aside::after { content: ""; position: absolute; width: 360px; height: 360px; border: 1px solid rgba(217, 185, 110, .18); border-radius: 50%; right: -100px; bottom: -80px; }
.auth-aside h2 { color: var(--on-dark); font-size: clamp(2rem, 3vw, 2.7rem); margin: 1rem 0 .75rem; }
.auth-aside p { color: var(--on-dark-2); max-width: 420px; }
.auth-aside ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; position: relative; z-index: 1; }
.auth-aside li { display: flex; gap: .65rem; align-items: flex-start; }
.auth-aside li svg { width: 20px; height: 20px; color: var(--gold-bright); flex: 0 0 auto; margin-top: 2px; }
.auth-aside .eyebrow { color: var(--gold-bright); }
.auth-aside small { color: var(--on-dark-3); position: relative; z-index: 1; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card .brand--stacked { margin: 0 auto 1.75rem; display: flex; }
.auth-heading { text-align: center; margin-bottom: 1.75rem; }
.auth-heading .auth-title { font-family: var(--serif); font-size: 2.1rem; font-weight: 600; color: var(--ink); margin: 0; line-height: 1.1; font-feature-settings: "lnum" 1; font-variant-numeric: lining-nums; }
.auth-heading .auth-sub { display: inline-flex; align-items: center; gap: .45rem; margin-top: .5rem; font-size: .86rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.auth-heading .auth-sub svg { width: 16px; height: 16px; color: var(--success); }
.auth-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.9rem; box-shadow: var(--shadow-md); }
.auth-foot { text-align: center; font-size: .88rem; color: var(--ink-2); margin-top: 1.25rem; }
.auth-foot a { font-weight: 700; }
.auth-back { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--ink-2) !important; margin-bottom: 1.5rem; }
.auth-back svg { width: 16px; height: 16px; }

/* ── Invoice (screen + print) ─────────────────────────────────────────── */
.invoice-sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-md); max-width: 960px; margin: 0 auto; overflow: hidden; }
.inv-head { background: var(--onyx); color: var(--on-dark); display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.75rem 2rem; border-bottom: 3px solid var(--gold); flex-wrap: wrap; }
.inv-head .inv-title { text-align: right; }
.inv-head .inv-title h2 { color: var(--on-dark); font-family: var(--sans); font-size: 1.35rem; font-weight: 800; letter-spacing: .08em; margin: 0 0 .35rem; }
.inv-head .inv-title div { font-size: .88rem; color: var(--on-dark-2); }
.inv-body { padding: 1.75rem 2rem 2rem; }
.inv-parties { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 1.5rem; }
.inv-parties > div { padding: 1rem 1.1rem; font-size: .88rem; line-height: 1.6; }
.inv-parties > div + div { border-left: 1px solid var(--line); }
.inv-parties h5 { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: .45rem; }
.inv-bottom { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; margin-top: 1.5rem; align-items: start; }
.inv-terms { font-size: .8rem; color: var(--ink-3); border-top: 1px solid var(--gold); padding-top: .9rem; margin-top: 1.75rem; }

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 3rem; padding-bottom: 3rem; }
  .hero-visual { max-width: 380px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .b2b-band { grid-template-columns: 1fr; padding: 2rem; }
  .pd-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .gallery { position: static; }
  .cart-layout, .checkout-layout { grid-template-columns: minmax(0, 1fr); }
  .summary-card { position: static; }
}
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: minmax(0, 1fr); }
  .filters { position: fixed; inset: 0 auto 0 0; width: min(320px, 86vw); z-index: 1500; border-radius: 0; overflow-y: auto; transform: translateX(-105%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .filters.open { transform: none; }
  .filters-toggle { display: inline-flex; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .inv-parties { grid-template-columns: 1fr; }
  .inv-parties > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .inv-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 2.75rem 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .pc-body { padding: .75rem; }
  .pc-name { font-size: 1.05rem; }
  .pc-actions { flex-direction: column; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-thumbs { flex-direction: row; order: 2; overflow-x: auto; max-height: none; }
  .gallery-thumb { width: 64px; height: 64px; }
  .cart-line { grid-template-columns: 72px minmax(0, 1fr); padding: 1rem; }
  .cart-line .cl-img { width: 72px; height: 72px; }
  .cart-line .cl-total { grid-column: 2; text-align: left; }
  .assurances { grid-template-columns: 1fr; }
  .hero-card { left: 0; }
  .toolbar select { min-width: 0; width: 100%; }
  .auth-box { padding: 1.35rem; }
  .inv-head, .inv-body { padding: 1.25rem; }
  .inv-head .inv-title { text-align: left; }
}
@media print {
  body.invoice-page { background: #fff; }
  .invoice-sheet { box-shadow: none; border: 0; max-width: none; }
  .inv-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .table th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
