/* Laptop Store — storefront. Depends on base.css. */

/* ─── Top bar ────────────────────────────────────────────────────────── */
.topbar{
  position:sticky; top:0; z-index:50;
  background:color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter:saturate(140%) blur(14px); backdrop-filter:saturate(140%) blur(14px);
  border-bottom:1px solid transparent; transition:border-color var(--t) ease;
}
.topbar.scrolled{ border-bottom-color:var(--line); }
.topbar-in{ display:flex; align-items:center; gap:16px; height:var(--topbar-h); }
.topnav{ display:flex; gap:2px; margin-inline-start:18px; }
.topnav a{ padding:8px 12px; border-radius:9px; font-size:14px; color:var(--text-2); transition:color var(--t-fast), background var(--t-fast); }
.topnav a:hover{ color:var(--text); background:var(--surface-2); }
.top-actions{ display:flex; align-items:center; gap:4px; margin-inline-start:auto; }
.top-actions #accountBtn{ margin-inline-start:6px; }
@media (max-width:899px){ .topnav{ display:none; } }
@media (max-width:519px){
  .brand-text small{ display:none; }
  #accountLbl{ display:none; }
  .top-actions #accountBtn{ width:40px; padding:0; }
}

/* ─── Hero ───────────────────────────────────────────────────────────── */
.hero{ padding-block:52px 30px; }
.hero-copy{ max-width:760px; }
.hero h1{ font-size:clamp(30px, 4.8vw, 54px); line-height:1.12; margin:12px 0 14px; font-weight:600; }
html[lang="en"] .hero h1{ letter-spacing:-.028em; }
.lead{ font-size:clamp(15px, 1.6vw, 17.5px); color:var(--text-2); max-width:60ch; }
.hero-search{
  display:flex; align-items:center; gap:4px; max-width:780px; margin-top:28px; padding:6px;
  background:var(--surface-1); border:1px solid var(--line-strong); border-radius:18px; box-shadow:var(--shadow), var(--inset);
  transition:border-color var(--t-fast), box-shadow var(--t-fast);
}
.hero-search:focus-within{ border-color:var(--accent-line); box-shadow:var(--shadow), 0 0 0 4px var(--accent-soft); }
.search-ic{ padding-inline:12px 4px; color:var(--text-3); }
.search-ic .ic{ width:20px; height:20px; }
#q{ flex:1; min-width:0; min-height:48px; padding:0 4px; border:0; background:transparent; box-shadow:none; font-size:16px; }
#q:focus{ box-shadow:none; }
.filter-open{ flex:none; min-height:44px; border-radius:13px; background:var(--surface-3); color:var(--text); }
.filter-open .count{ margin-inline-start:2px; }
@media (min-width:1080px){ .filter-open{ display:none; } }
.hero-stats{ display:flex; flex-wrap:wrap; gap:14px 0; margin-top:26px; }
.hero-stats > div{ padding-inline:0 26px; }
.hero-stats > div + div{ padding-inline-start:26px; border-inline-start:1px solid var(--line-strong); }
.hero-stats dt{ font-size:12.5px; color:var(--text-3); }
.hero-stats dd{ font:600 20px/1.3 var(--font-en); font-variant-numeric:tabular-nums; margin-top:2px; color:var(--accent); }
.hero-stats > div:first-child dd{ color:var(--gold); }
@media (max-width:599px){
  .hero{ padding-block:30px 20px; }
  .hero-stats > div{ padding-inline-end:16px; }
  .hero-stats > div + div{ padding-inline-start:16px; }
  .hero-stats dd{ font-size:17px; }
  .filter-open > span:not(.count):not([data-icon]){ display:none; }
}

/* ─── Quick bar ──────────────────────────────────────────────────────── */
.quickbar{
  position:sticky; top:var(--topbar-h); z-index:40; padding-block:10px;
  background:color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
  border-block:1px solid var(--line);
}
.quickbar .chips{ gap:8px; padding-block:1px; }

/* ─── Catalog layout & filters ───────────────────────────────────────── */
.catalog-layout{ display:grid; gap:28px; padding-block:28px 64px; outline:none; }
@media (min-width:1080px){ .catalog-layout{ grid-template-columns:272px minmax(0, 1fr); align-items:start; } }
.filter-panel{ display:flex; flex-direction:column; background:var(--surface-1); border:1px solid var(--line); box-shadow:var(--inset); overflow:hidden; }
.panel-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 12px 14px 18px; border-bottom:1px solid var(--line); flex:none; }
[dir="rtl"] .panel-head{ padding:14px 18px 14px 12px; }
.panel-head h2{ font-size:15px; }
.panel-body{ flex:1; overflow:auto; padding:16px 18px 20px; display:grid; align-content:start; gap:22px; overscroll-behavior:contain; }
.filter-group legend{ font-size:12.5px; font-weight:600; color:var(--text-3); margin-bottom:10px; }
html[lang="en"] .filter-group legend{ text-transform:uppercase; letter-spacing:.09em; font-size:11px; }
.filter-group .chip{ min-height:32px; padding:0 11px; font-size:12.5px; }
.filter-search input{ min-height:40px !important; font-size:14px !important; }
.range-row{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.range-row label{ font-size:12px !important; color:var(--text-3) !important; font-weight:500 !important; }
.range-row input{ min-height:40px !important; }
.panel-foot{ display:flex; gap:8px; padding:12px 18px; border-top:1px solid var(--line); background:var(--surface-2); flex:none; }
.panel-foot .btn-primary{ flex:1; }
.filter-backdrop{ position:fixed; inset:0; z-index:105; background:var(--scrim); -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); animation:fade-in var(--t) ease; }
@media (min-width:1080px){
  .filter-panel{ position:sticky; top:calc(var(--topbar-h) + 74px); max-height:calc(100dvh - var(--topbar-h) - 96px); border-radius:var(--r-lg); }
  .panel-close,#filterApply{ display:none; }
  .panel-foot{ justify-content:center; background:transparent; }
  .filter-backdrop{ display:none !important; }
}
@media (max-width:1079px){
  .filter-panel{
    position:fixed; inset-inline:0; bottom:0; z-index:110; max-height:88dvh;
    border-radius:var(--r-xl) var(--r-xl) 0 0; border-bottom:0; box-shadow:var(--shadow-lg);
    transform:translateY(102%); visibility:hidden; transition:transform .3s var(--ease), visibility 0s linear .3s;
  }
  .filter-panel.open{ transform:none; visibility:visible; transition:transform .3s var(--ease); }
  .panel-foot{ padding-bottom:max(12px, env(safe-area-inset-bottom)); }
}

/* ─── Results ────────────────────────────────────────────────────────── */
.results{ min-width:0; }
.results-head{ display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:14px; margin-bottom:16px; }
.results-head h2{ font-size:22px; }
#resultsCount{ font-size:13px; margin-top:2px; min-height:1.4em; }
.results-tools{ display:flex; align-items:center; gap:8px; }
.results-tools .select{ width:auto; min-height:38px; padding-block:0; font-size:13.5px; border-radius:11px; background-color:var(--surface-1); }
.active-filters{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:16px; }
#staleNotice{ margin-bottom:16px; }
.grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(256px, 1fr)); gap:18px; }

/* ─── Product card ───────────────────────────────────────────────────── */
.card{
  position:relative; display:flex; flex-direction:column; min-width:0;
  background:var(--surface-1); border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--inset);
  transition:border-color var(--t) ease, transform var(--t) var(--ease), box-shadow var(--t) ease;
}
.card:not(.skeleton):hover{ border-color:var(--accent-line); box-shadow:var(--shadow), 0 0 0 1px var(--accent-soft), var(--inset); transform:translateY(-2px); }
.card-media{ position:relative; aspect-ratio:4 / 3; background:var(--surface-2); overflow:hidden; }
.media-hit{ display:block; width:100%; height:100%; border-radius:0; }
.media-hit img{ width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease), filter var(--t); }
.card:hover .media-hit img{ transform:scale(1.03); }
.media-hit:focus-visible{ outline-offset:-3px; border-radius:var(--r-lg) var(--r-lg) 0 0; }
.card.is-out .media-hit img{ filter:grayscale(.75) brightness(.7); }
.card-badges{ position:absolute; top:10px; inset-inline-start:10px; max-width:calc(100% - 104px); display:flex; flex-wrap:wrap; gap:5px; pointer-events:none; }
.card-badges .badge,.media-flag{
  background:rgba(10,11,13,.72); color:#eef0f3; border-color:rgba(255,255,255,.12);
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
}
.card-badges .badge-success{ color:#93d6b3; }
.card-badges .badge-warn{ color:#ebc585; }
.card-badges .badge-danger{ color:#f3a7a2; }
.card-badges .badge-accent{ color:#b8c7ec; }
.card-media .fav-toggle{ position:absolute; top:10px; inset-inline-end:10px; z-index:2; }
.card-menu{ position:absolute; top:10px; inset-inline-end:52px; }
.media-nav{
  position:absolute; top:50%; z-index:2; display:grid; place-items:center; width:34px; height:34px; margin-top:-17px; border-radius:50%;
  background:rgba(10,11,13,.6); color:#fff; border:1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
  opacity:0; transition:opacity var(--t-fast), background var(--t-fast);
}
.media-nav.prev{ inset-inline-start:10px; }
.media-nav.next{ inset-inline-end:10px; }
.media-nav:hover{ background:rgba(10,11,13,.82); }
.card:hover .media-nav,.card-media:focus-within .media-nav,.stage .media-nav{ opacity:1; }
@media (hover:none){ .media-nav{ opacity:1; } }
[dir="rtl"] .media-nav .ic,[dir="rtl"] .lb-nav .ic{ transform:scaleX(-1); }
.media-dots{ position:absolute; bottom:10px; left:50%; transform:translateX(-50%); display:flex; gap:4px; pointer-events:none; }
.media-dots i{ width:6px; height:6px; border-radius:3px; background:rgba(255,255,255,.45); transition:width var(--t) var(--ease), background var(--t); }
.media-dots i.on{ width:16px; background:#fff; }
.media-flag{ position:absolute; bottom:10px; inset-inline-start:10px; display:inline-flex; align-items:center; gap:5px; height:24px; padding:0 9px; border-radius:7px; font-size:11.5px; font-weight:600; border:1px solid; pointer-events:none; }
.media-flag .ic{ width:12px; height:12px; }
.card-body{ display:flex; flex-direction:column; gap:8px; flex:1; padding:14px 16px 16px; min-width:0; }
.card-brand{ display:flex; justify-content:space-between; align-items:center; gap:8px; font-size:12px; color:var(--text-3); }
.card-brand > span:first-child{ font-weight:600; color:var(--text-2); }
.card-brand .mono{ font-size:11.5px; }
.card-title{ font-size:16.5px; line-height:1.35; }
.card-title button{ text-align:start; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; border-radius:6px; }
.card-title button:hover{ color:var(--silver); }
.card-specs{ display:grid; gap:6px; margin-top:2px; }
.card-specs li{ display:flex; align-items:center; gap:9px; min-width:0; font-size:13px; color:var(--text-2); }
.card-specs .ic{ width:15px; height:15px; color:var(--text-3); }
.card-specs span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.card-note{ display:flex; align-items:center; gap:6px; font-size:12px; color:var(--text-3); }
.card-foot{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin-top:auto; padding-top:12px; border-top:1px solid var(--line); }
.card-actions{ display:flex; align-items:center; gap:6px; }
.compare-toggle{ width:36px; height:36px; border:1px solid var(--line-strong); border-radius:10px; }
.compare-toggle.on{ background:var(--accent-soft); border-color:var(--accent-line); }
.card .btn-wa:disabled{ font-size:12.5px; }

/* Price */
.price{ display:flex; align-items:baseline; flex-wrap:wrap; gap:0 5px; min-width:0; }
.price b{ font:700 20px/1.2 var(--font-en); font-variant-numeric:tabular-nums; letter-spacing:-.01em; color:var(--gold); }
.price .cur{ font-size:12px; color:var(--text-3); font-weight:500; }
.price .was{ font:500 12.5px/1 var(--font-en); color:var(--text-3); margin-inline-start:6px; }
.price-ask{ font-size:14px; font-weight:600; color:var(--text-2); }
.price-lg b{ font-size:30px; }
.price-lg .cur{ font-size:14px; }
.price-lg .was{ font-size:15px; }

/* List layout */
.grid.is-list{ grid-template-columns:1fr; gap:12px; }
.grid.is-list .card{ flex-direction:row; }
.grid.is-list .card-media{ width:min(280px, 38%); flex:none; aspect-ratio:auto; min-height:190px; }
.grid.is-list .media-hit{ position:absolute; inset:0; }
.grid.is-list .card-body{ padding:16px 18px; }
@media (min-width:760px){ .grid.is-list .card-specs{ grid-template-columns:1fr 1fr; column-gap:18px; } }
@media (max-width:599px){
  .grid.is-list .card-media{ min-height:0; }
  .grid.is-list .card-badges .badge:not(:first-child),.grid.is-list .media-nav,.grid.is-list .media-dots,.grid.is-list .media-flag,.grid.is-list .card-menu{ display:none; }
  .grid.is-list .card-badges{ max-width:calc(100% - 20px); }
  .grid.is-list .fav-toggle{ top:auto; bottom:8px; inset-inline-end:8px; }
  .grid.is-list .card-body{ padding:12px; gap:6px; }
  .grid.is-list .card-specs li:nth-child(n+3),.grid.is-list .card-note{ display:none; }
  .grid.is-list .card-title{ font-size:15px; }
  .grid.is-list .price b{ font-size:17px; }
}

/* ─── Detail modal ───────────────────────────────────────────────────── */
.modal.detail{ max-width:1180px; }
.detail-head{ padding-block:10px; }
.detail-head .mono{ font-size:12.5px; }
.head-actions{ display:flex; align-items:center; gap:4px; }
.head-fav.on,.head-fav[aria-pressed="true"]{ color:#ff8b93; background:rgba(255,107,122,.16); }
.detail-grid{ flex:1; overflow:auto; display:grid; gap:24px; padding:22px; overscroll-behavior:contain; }
@media (min-width:900px){
  .detail-grid{ grid-template-columns:minmax(0, 1.12fr) minmax(0, 1fr); gap:32px; padding:24px 28px 32px; }
  .gallery{ position:sticky; top:0; align-self:start; }
}
@media (max-width:719px){ .detail-grid{ padding:0 0 max(24px, env(safe-area-inset-bottom)); } .detail-info{ padding-inline:18px; } .stage{ border-radius:0 !important; border-inline:0 !important; } .thumbs{ padding-inline:18px; } }
.gallery{ display:grid; gap:10px; min-width:0; }
.stage{ position:relative; aspect-ratio:4 / 3; background:var(--surface-2); border:1px solid var(--line); border-radius:16px; overflow:hidden; }
.stage-hit{ display:block; width:100%; height:100%; cursor:zoom-in; border-radius:0; }
.stage-hit:disabled{ cursor:default; }
.stage-hit img{ width:100%; height:100%; object-fit:contain; }
.stage iframe,.stage video{ width:100%; height:100%; border:0; background:#000; }
.stage-zoom{ position:absolute; bottom:12px; inset-inline-end:12px; display:grid; place-items:center; width:34px; height:34px; border-radius:10px; background:rgba(10,11,13,.6); color:#fff; opacity:0; transition:opacity var(--t-fast); pointer-events:none; }
.stage-hit:hover .stage-zoom,.stage-hit:focus-visible .stage-zoom{ opacity:1; }
.stage-count{ position:absolute; top:12px; inset-inline-start:12px; padding:3px 9px; border-radius:7px; background:rgba(10,11,13,.65); color:#eef0f3; font-size:12px; pointer-events:none; }
.thumbs{ gap:8px; padding-block:2px; }
.thumb{ flex:none; width:78px; aspect-ratio:4 / 3; border-radius:10px; overflow:hidden; border:2px solid transparent; opacity:.62; transition:opacity var(--t-fast), border-color var(--t-fast); background:var(--surface-2); }
.thumb:hover{ opacity:1; }
.thumb.on{ border-color:var(--accent); opacity:1; }
.thumb img{ width:100%; height:100%; object-fit:cover; }
.thumb-vid{ display:grid; place-items:center; width:100%; height:100%; background:var(--surface-3); color:var(--text-2); }
.detail-info{ display:grid; gap:16px; align-content:start; min-width:0; }
.detail-info > .eyebrow{ margin-bottom:-10px; }
.detail-title{ font-size:clamp(22px, 2.6vw, 28px); line-height:1.2; }
.buy-box{ display:grid; gap:14px; padding:18px; background:linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, var(--surface-2)), var(--surface-2) 42%); border:1px solid var(--line); border-inline-start:3px solid var(--accent); border-radius:16px; box-shadow:var(--inset); }
.avail{ display:flex; align-items:flex-start; gap:9px; font-size:13.5px; }
.avail .ic{ width:17px; height:17px; margin-top:2px; }
.avail span{ color:var(--text-2); }
.avail-available .ic{ color:var(--success); }
.avail-reserved .ic{ color:var(--warn); }
.avail-out .ic,.avail-sold .ic{ color:var(--danger); }
.buy-actions{ display:grid; gap:8px; }
.tool-row{ display:flex; flex-wrap:wrap; gap:2px; padding-top:10px; border-top:1px solid var(--line); margin-inline:-6px; }
.sub-title{ font-size:14px; font-weight:600; color:var(--text-2); margin-top:6px; }
.spec-list{ display:grid; border-top:1px solid var(--line); }
.spec-list > div{ display:grid; grid-template-columns:minmax(110px, 38%) 1fr; gap:14px; padding:10px 0; border-bottom:1px solid var(--line); }
.spec-list dt{ font-size:13px; color:var(--text-3); }
.spec-list dd{ font-size:14px; overflow-wrap:anywhere; text-align:left; }
[dir="rtl"] .spec-list dd{ text-align:right; }
.note{ padding:14px 16px; border-radius:12px; background:var(--surface-2); border:1px solid var(--line); color:var(--text-2); font-size:14px; white-space:pre-line; }
.term-list{ display:grid; gap:9px; padding:14px 16px; border-radius:12px; border:1px solid var(--line); }
.term-list li{ display:flex; align-items:flex-start; gap:10px; font-size:13.5px; color:var(--text-2); }
.term-list .ic{ width:16px; height:16px; margin-top:3px; color:var(--text-3); }
.term-list b{ color:var(--text); font-weight:600; }

/* ─── Lightbox ───────────────────────────────────────────────────────── */
.layer-lightbox{ flex-direction:column; background:rgba(0,0,0,.94); -webkit-backdrop-filter:none; backdrop-filter:none; z-index:120; }
.lb-bar{ position:relative; z-index:2; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 12px; padding-top:max(10px, env(safe-area-inset-top)); color:#d8dbe0; }
.lb-bar .mono{ font-size:13px; padding-inline:8px; }
.lb-tools{ display:flex; gap:2px; }
.layer-lightbox .icon-btn{ color:#d8dbe0; }
.layer-lightbox .icon-btn:hover{ background:rgba(255,255,255,.1); color:#fff; }
.lb-stage{ flex:1; display:grid; place-items:center; overflow:hidden; touch-action:none; user-select:none; -webkit-user-select:none; }
.lb-stage img{ max-width:100%; max-height:calc(100dvh - 76px); object-fit:contain; cursor:zoom-in; will-change:transform; -webkit-user-drag:none; }
.layer-lightbox.zoomed .lb-stage img{ cursor:grab; }
.lb-nav{ position:absolute; top:50%; z-index:2; display:grid; place-items:center; width:48px; height:48px; margin-top:-24px; border-radius:50%; background:rgba(255,255,255,.09); color:#fff; transition:background var(--t-fast); }
.lb-nav:hover{ background:rgba(255,255,255,.18); }
.lb-nav.prev{ inset-inline-start:16px; }
.lb-nav.next{ inset-inline-end:16px; }
.layer-lightbox.single .lb-nav,.layer-lightbox.zoomed .lb-nav{ display:none; }
@media (max-width:719px){ .lb-nav{ top:auto; bottom:max(18px, env(safe-area-inset-bottom)); margin-top:0; } }

/* ─── Compare ────────────────────────────────────────────────────────── */
.modal.compare{ max-width:1100px; }
.compare-wrap{ padding:0; }
.compare-table{ width:100%; min-width:560px; font-size:13.5px; }
.compare-table th,.compare-table td{ padding:12px 16px; text-align:start; vertical-align:top; border-bottom:1px solid var(--line); }
.compare-table thead th{ position:sticky; top:0; z-index:1; background:var(--surface-1); vertical-align:bottom; }
.compare-table tbody th{ width:150px; color:var(--text-3); font-weight:500; position:sticky; inset-inline-start:0; background:var(--surface-1); }
.compare-img{ width:100%; max-width:170px; aspect-ratio:4 / 3; object-fit:cover; border-radius:10px; margin-bottom:8px; background:var(--surface-2); }
.compare-name{ display:block; font-size:14px; font-weight:600; }
.compare-table td.best{ color:var(--success); font-weight:600; }
.compare-bar{
  position:fixed; inset-inline:0; bottom:0; z-index:60; padding-block:10px; padding-bottom:max(10px, env(safe-area-inset-bottom));
  background:color-mix(in srgb, var(--surface-3) 94%, transparent); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
  border-top:1px solid var(--line-strong); box-shadow:0 -12px 30px -18px rgba(0,0,0,.6); animation:slide-up .3s var(--ease);
}
.compare-in{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.compare-items{ display:flex; gap:8px; overflow-x:auto; scrollbar-width:none; min-width:0; }
.compare-chip{ display:flex; align-items:center; gap:8px; flex:none; padding:4px; padding-inline-end:2px; background:var(--surface-2); border:1px solid var(--line); border-radius:11px; font-size:13px; }
.compare-chip img{ width:40px; height:30px; object-fit:cover; border-radius:7px; }
.compare-chip > span{ max-width:140px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.compare-chip button{ display:grid; place-items:center; width:28px; height:28px; border-radius:8px; color:var(--text-3); }
.compare-chip button:hover{ color:var(--danger); background:var(--surface-3); }
.compare-chip .ic{ width:14px; height:14px; }
.compare-actions{ display:flex; gap:6px; flex:none; }
@media (max-width:599px){ .compare-chip > span{ display:none; } }
body.has-compare .footer{ padding-bottom:96px; }
body.has-compare .wa-float,body.has-compare .to-top{ bottom:calc(84px + env(safe-area-inset-bottom)); }

/* ─── Floating buttons ───────────────────────────────────────────────── */
.wa-float{
  position:fixed; z-index:55; bottom:max(20px, env(safe-area-inset-bottom)); inset-inline-end:20px;
  display:inline-flex; align-items:center; gap:8px; height:48px; padding-inline:14px 18px; border-radius:24px;
  background:var(--wa); color:#fff; font-size:14px; font-weight:600; box-shadow:var(--shadow-lg);
  transition:background var(--t-fast), transform var(--t) var(--ease), bottom var(--t) var(--ease);
}
.wa-float:hover{ background:var(--wa-hover); transform:translateY(-2px); }
.wa-float .ic{ width:21px; height:21px; }
.to-top{
  position:fixed; z-index:55; bottom:max(20px, env(safe-area-inset-bottom)); inset-inline-start:20px;
  display:grid; place-items:center; width:44px; height:44px; border-radius:14px;
  background:var(--surface-3); border:1px solid var(--line-strong); color:var(--text-2); box-shadow:var(--shadow);
  animation:fade-in var(--t) ease; transition:bottom var(--t) var(--ease), color var(--t-fast);
}
.to-top:hover{ color:var(--text); }
@media (max-width:599px){
  .wa-float{ width:52px; height:52px; padding:0; justify-content:center; border-radius:50%; inset-inline-end:16px; }
  .wa-float-lbl{ display:none; }
  .to-top{ inset-inline-start:16px; }
}

/* ─── Account drawer ─────────────────────────────────────────────────── */
.role-line{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.mini-list{ display:grid; gap:4px; }
.mini-item{ display:flex; align-items:center; gap:12px; width:100%; padding:8px; border-radius:12px; text-align:start; transition:background var(--t-fast); }
.mini-item:hover{ background:var(--surface-2); }
.mini-item img{ width:64px; height:48px; object-fit:cover; border-radius:8px; flex:none; background:var(--surface-2); }
.mini-item > span{ display:grid; min-width:0; }
.mini-item b{ font-size:13.5px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mini-item small{ font-size:12px; color:var(--text-3); }

/* ─── Terms ──────────────────────────────────────────────────────────── */
.terms-section{ padding-block:24px 76px; }
.section-head{ margin-bottom:22px; }
.section-head h2{ font-size:clamp(22px, 2.6vw, 28px); margin-top:8px; }
.terms-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(250px, 1fr)); gap:14px; }
.term{ display:flex; gap:14px; padding:18px; background:var(--surface-1); border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--inset); }
.term-ic{ display:grid; place-items:center; flex:none; width:42px; height:42px; border-radius:12px; background:var(--surface-3); color:var(--silver); }
.term h3{ font-size:15px; margin-top:4px; }
.term p.muted{ font-size:13px; margin-top:4px; }

/* ─── Footer ─────────────────────────────────────────────────────────── */
.footer{ border-top:1px solid var(--line); padding-block:30px; padding-bottom:max(30px, calc(env(safe-area-inset-bottom) + 76px)); }
.footer-in{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; }
.footer-brand{ font-size:16px; font-weight:600; }
.footer .muted{ font-size:13px; margin-top:4px; }
#footPhone{ direction:ltr; unicode-bidi:isolate; }
@media (min-width:600px){ .footer{ padding-bottom:30px; } }

/* ─── Print: customer spec sheet ─────────────────────────────────────── */
@media print{
  .sheet{ font:10.5pt/1.5 var(--font-ar); color:#111; }
  html[lang="en"] .sheet{ font-family:var(--font-en); }
  .sheet-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:12mm; padding-bottom:5mm; border-bottom:1.5pt solid #111; }
  .sheet-brand{ font-size:9pt; color:#555; letter-spacing:.04em; }
  .sheet h1{ font-size:19pt; margin:1mm 0; }
  .sheet-meta{ font-size:8.5pt; color:#555; }
  .sheet-price{ font:700 17pt/1.2 var(--font-en); white-space:nowrap; }
  .sheet-cover{ width:100%; max-height:82mm; object-fit:contain; margin:5mm 0; }
  .sheet-table{ width:100%; margin-top:3mm; }
  .sheet-table th,.sheet-table td{ padding:2.2mm 0; border-bottom:.5pt solid #d6d6d6; text-align:start; vertical-align:top; }
  .sheet-table th{ width:34%; color:#555; font-weight:500; }
  .sheet-table tr{ break-inside:avoid; }
  .sheet-note{ margin-top:5mm; break-inside:avoid; }
  .sheet-note h2{ font-size:11pt; margin-bottom:1mm; }
  .sheet-note p{ white-space:pre-line; }
  .sheet-imgs{ display:grid; grid-template-columns:repeat(3, 1fr); gap:3mm; margin-top:5mm; }
  .sheet-imgs img{ width:100%; aspect-ratio:4 / 3; object-fit:cover; break-inside:avoid; }
  .sheet-foot{ margin-top:6mm; padding-top:2mm; border-top:.5pt solid #d6d6d6; font-size:8.5pt; color:#555; }
}
