main { display: block; outline: none; }

/* Home: hero */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; gap: 20px; padding-top: 20px; padding-bottom: 24px; }
.hero .lead { color: var(--ink-2); font-size: 16px; max-width: 54ch; margin-top: 10px; }
.hsearch-lg { position: relative; margin-top: 20px; max-width: 600px; }
.hsearch-lg input { width: 100%; height: 52px; border-radius: var(--r-lg); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); padding: 0 120px 0 46px; font-size: 16px; outline: none; transition: border-color var(--t1), box-shadow var(--t1); }
.hsearch-lg input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.hsearch-lg > .ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.hsearch-lg .btn { position: absolute; right: 5px; top: 5px; min-height: 42px; height: 42px; }
.trust { display: grid; gap: 12px; margin-top: 20px; list-style: none; padding: 0; }
.trust li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.trust li .ic { color: var(--brand-text); margin-top: 1px; }
.trust b { color: var(--ink); font-weight: 600; }
.mosaic { position: relative; display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; aspect-ratio: 16 / 10; }
.mosaic figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); }
.mosaic figure:first-child { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.proof-chip { position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-pop); max-width: calc(62% - 28px); }
.proof-chip img { width: 40px; height: 40px; border-radius: var(--r-sm); object-fit: cover; flex: none; }
.proof-chip .t { display: grid; line-height: 1.25; min-width: 0; }
.proof-chip .t b { font-size: 13px; font-weight: 650; }
.proof-chip .t span { font-size: 12px; color: var(--ok); display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.synthetic { font-size: 11px; color: var(--ink-3); margin-top: 6px; }
@media (max-width: 1023px) {
  .mosaic { aspect-ratio: 16 / 9; grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .mosaic figure:not(:first-child) { display: none; }
  .mosaic figure:first-child { grid-row: auto; }
  .proof-chip { max-width: calc(100% - 28px); }
  .trust { grid-template-columns: 1fr; }
}
@media (min-width: 1024px) {
  .hero .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; padding-top: 48px; padding-bottom: 56px; }
  .hero .lead { font-size: 18px; }
  .trust { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
}

/* Home: sections */
.how { display: grid; gap: 0; list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.how li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px; border-bottom: 1px solid var(--line); }
.how li:last-child { border-bottom: 0; }
.how .n { width: 40px; height: 40px; border-radius: var(--r); display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); }
.how h3 { font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.how p { font-size: 14px; color: var(--ink-2); margin-top: 4px; line-height: 1.45; }
@media (min-width: 1024px) {
  .how { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .how li { grid-template-columns: 1fr; padding: 24px; border-bottom: 0; border-right: 1px solid var(--line); }
  .how li:last-child { border-right: 0; }
}
.cats { display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 0 var(--gutter); margin: 0 calc(-1 * var(--gutter)); }
.cats::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .cats { grid-auto-flow: row; grid-template-columns: repeat(7, minmax(0, 220px)); padding: 0; margin: 0; gap: 16px; } }
.cat { display: grid; gap: 8px; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 600; text-align: center; }
.cat .ph { aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); }
.cat .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.cat:hover .ph img { transform: scale(1.04); }

/* Catalog */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 20px 0 16px; flex-wrap: wrap; }
.page-head .sub { font-size: 14px; color: var(--ink-3); margin-top: 4px; }
.cat-bar { position: sticky; top: calc(60px + env(safe-area-inset-top)); z-index: 30; background: var(--ground); padding: 10px 0; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); border-bottom: 1px solid var(--line); }
.cat-bar .tools { display: flex; gap: 8px; margin-top: 10px; }
.cat-bar .tools .btn { flex: 1; }
.layout-cat { display: grid; gap: 24px; }
.filters { display: grid; gap: 24px; align-content: start; }
.fgroup { display: grid; gap: 8px; }
.fgroup h3 { font-size: 14px; font-weight: 650; letter-spacing: 0; color: var(--ink); }
.opt-list { display: grid; gap: 2px; }
.opt-list label { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: var(--r-sm); cursor: pointer; font-size: 15px; color: var(--ink-2); }
.opt-list label:hover { background: var(--surface-2); color: var(--ink); }
.opt-list input { width: 18px; height: 18px; margin: 0; }
.opt-list label:has(input:checked) { color: var(--ink); font-weight: 600; }
.range-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filters .seg button { padding: 0 6px; font-size: 13px; white-space: nowrap; }
.sort-sel { width: auto; min-width: 190px; height: 40px; font-size: 15px; }
@media (min-width: 1024px) {
  .layout-cat { grid-template-columns: 256px minmax(0, 1fr); gap: 40px; align-items: start; }
  .filters { position: sticky; top: calc(var(--header-h) + 72px); padding-right: 8px; }
}

/* Store page */
.shero { position: relative; margin: 0 calc(-1 * var(--gutter)); aspect-ratio: 16 / 7; max-height: 320px; overflow: hidden; background: var(--surface-2); }
.shero img { width: 100%; height: 100%; object-fit: cover; }
.shead { display: grid; gap: 10px; padding: 16px 0 0; }
.facts-row { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--ink-2); }
.facts-row span { display: inline-flex; align-items: center; gap: 6px; }
.facts-row .ic { width: 16px; height: 16px; color: var(--ink-3); }
@media (min-width: 1024px) { .shero { margin: 24px 0 0; border-radius: var(--r-xl); } .shead { padding-top: 24px; } }

/* Product */
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-3); padding: 16px 0 12px; min-width: 0; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs .ic { width: 14px; height: 14px; flex: none; }
.pdp { display: grid; gap: 0; }
.gallery { margin: 0 calc(-1 * var(--gutter)); }
.gallery .main { aspect-ratio: 1; overflow: hidden; background: var(--surface-2); }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs { display: flex; gap: 8px; padding: 10px var(--gutter) 0; }
.gallery .thumbs button { width: 64px; height: 64px; border-radius: var(--r); overflow: hidden; padding: 0; border: 2px solid transparent; background: none; }
.gallery .thumbs button[aria-current="true"] { border-color: var(--brand); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buybox { display: grid; gap: 16px; padding-top: 16px; }
.buybox .store-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); text-decoration: none; min-height: 32px; }
.buybox .store-link:hover { color: var(--ink); }
.buybox .store-link b { color: var(--ink); font-weight: 600; }
.buybox h1 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.025em; line-height: 1.2; }
.buybox .pp { display: flex; align-items: baseline; gap: 10px; }
.buybox .pp .price { font-size: 28px; }
.buybox .pp .old { font-size: 16px; color: var(--ink-3); text-decoration: line-through; }
.spec { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.spec li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec li .ic { color: var(--ink-3); }
.spec li span:last-child { margin-left: auto; color: var(--ink-2); text-align: right; }
.assure { display: grid; gap: 12px; list-style: none; padding: 16px; margin: 0; border-radius: var(--r-lg); background: var(--brand-soft); }
.assure li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.assure .ic { color: var(--brand-text); margin-top: 1px; }
.assure b { color: var(--ink); font-weight: 600; }
.cta-bar { display: flex; gap: 12px; align-items: center; }
.cta-bar .p { display: grid; line-height: 1.2; }
.cta-bar .p small { font-size: 12px; color: var(--ink-3); }
.cta-bar .p b { font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cta-bar .btn { flex: 1; min-width: 0; }
.pdp-more { display: grid; gap: 16px; margin-top: 24px; }
.comp { display: grid; }
.comp div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.comp div:last-child { border-bottom: 0; }
@media (min-width: 768px) {
  .pdp { grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr); gap: 28px; align-items: start; padding-top: 8px; }
  .gallery { margin: 0; position: sticky; top: calc(var(--header-h) + 16px); }
  .gallery .main { border-radius: var(--r-xl); }
  .gallery .thumbs { padding: 12px 0 0; }
  .buybox { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); }
  .buybox .sticky-cta { position: static; margin: 0; padding: 0; background: none; border: 0; }
  .cta-bar .p { display: none; }
  .pdp-more { grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
}
@media (min-width: 1024px) {
  .pdp { grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr); gap: 48px; }
  .gallery { top: calc(var(--header-h) + 72px); }
  .buybox { position: sticky; top: calc(var(--header-h) + 72px); padding: 28px; }
  .pdp-more { gap: 24px; margin-top: 48px; }
}
@media (min-width: 640px) { .pgrid.same { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1600px) { #same, .pdp, .pdp-more, .crumbs { max-width: 1520px; margin-left: auto; margin-right: auto; } .pdp-more { margin-top: 48px; } }
/* Checkout */
.co { display: grid; gap: 16px; padding-bottom: 24px; }
.co-form { display: grid; gap: 0; }
.co-sec { display: grid; gap: 16px; padding: 20px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 12px; }
.co-sec h2 { font-size: 18px; display: flex; align-items: baseline; gap: 10px; }
.co-sec h2 .n { font-size: 14px; color: var(--ink-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.co-item { display: flex; gap: 12px; align-items: center; }
.co-item img { width: 64px; height: 64px; border-radius: var(--r); object-fit: cover; flex: none; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; flex: none; }
.qty button { width: 40px; height: 40px; border: 0; background: var(--surface); display: grid; place-items: center; color: var(--ink); }
.qty button:hover { background: var(--surface-2); }
.qty output { min-width: 28px; text-align: center; font-weight: 650; font-variant-numeric: tabular-nums; }
.card-pv { display: grid; gap: 6px; padding: 14px 16px; border-radius: var(--r); background: var(--surface-2); border: 1px dashed var(--line-strong); }
.card-pv small { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.card-pv p { font-size: 16px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; min-height: 22px; }
.card-pv p:empty::before { content: "Matn shu yerda ko'rinadi"; color: var(--ink-3); }
.summary { display: grid; gap: 16px; padding: 20px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
@media (min-width: 768px) { .co-sec, .summary { padding: 24px; } }
@media (min-width: 1024px) {
  .co { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px; align-items: start; }
  .co .summary { position: sticky; top: calc(var(--header-h) + 72px); }
}

/* Tracking */
.trk { display: grid; gap: 16px; padding-bottom: 24px; }
.trk-head { display: grid; gap: 6px; padding: 4px 0 8px; }
.trk-head .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; color: var(--ink-3); }
.trk-head .eta { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--ink-2); }
.proof { display: grid; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.proof .ph { position: relative; border-radius: var(--r); overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 5; max-height: 560px; }
.proof .ph img { width: 100%; height: 100%; object-fit: cover; }
.proof .ok-mark { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--r-sm); background: var(--ok); color: var(--on-ok); font-size: 13px; font-weight: 650; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.proof .ok-mark.in { animation: pop 300ms var(--ease); }
.proof .acts { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.hist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hist figure { margin: 0; display: grid; gap: 4px; }
.hist img { border-radius: var(--r-sm); aspect-ratio: 1; object-fit: cover; width: 100%; }
.hist figcaption { font-size: 12px; color: var(--ink-3); }
.courier { display: flex; gap: 12px; align-items: center; }
.courier .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); flex: none; }
.rating { display: flex; gap: 6px; }
.rating button { width: 48px; height: 48px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--r); display: grid; place-items: center; color: var(--ink-3); }
.rating button:hover, .rating button.on { color: var(--star); border-color: var(--star); }
.rating .ic { width: 22px; height: 22px; }
.rating button.on .ic { fill: currentColor; }
@media (min-width: 1024px) {
  .trk { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: start; }
  .trk-head { grid-column: 1 / -1; }
  .trk .side { position: sticky; top: calc(var(--header-h) + 72px); display: grid; gap: 16px; }
  .proof { padding: 20px; }
  .proof .ph { aspect-ratio: 4 / 3; }
}

.credits { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
.credits li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; font-size: 14px; }
.credits img { width: 56px; height: 56px; border-radius: var(--r-sm); object-fit: cover; }
.loc-results { display: grid; gap: 2px; max-height: 220px; overflow: auto; }
.loc-results:empty { display: none; }
.loc-results button { text-align: left; border: 0; background: transparent; padding: 10px 12px; border-radius: var(--r-sm); display: flex; gap: 10px; align-items: flex-start; font-size: 15px; min-height: 44px; color: var(--ink); }
.loc-results button:hover { background: var(--surface-2); }
.prose { max-width: 70ch; display: grid; gap: 12px; color: var(--ink-2); }

/* Location sheet */
.sheet.loc-sheet .panel { padding-bottom: 0; }
.loc-grid { display: grid; gap: 16px; padding-bottom: 20px; }
.loc-side { display: grid; gap: 16px; align-content: start; order: 2; }
.loc-map-wrap { position: relative; order: 1; margin: 0 -20px; }
.loc-map-wrap .map { height: 42dvh; min-height: 260px; border-radius: 0; border-left: 0; border-right: 0; }
.loc-tip { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 500; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--shadow-pop); font-size: 13px; color: var(--ink-2); white-space: nowrap; pointer-events: none; }
.search-in { position: relative; }
.search-in > .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search-in .input { padding-left: 40px; }
.lrow .ico { width: 40px; height: 40px; border-radius: var(--r); display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); flex: none; }
.lrow.gps .ico { background: var(--brand-soft); color: var(--brand-text); }
.lrow.busy .ico .ic { animation: spin 1s linear infinite; }
@media (min-width: 720px) {
  .sheet.loc-sheet .panel { width: min(1080px, 100%); padding: 24px; }
  .loc-grid { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 24px; padding-bottom: 0; }
  .loc-side { order: 1; }
  .loc-map-wrap { order: 2; margin: 0; }
  .loc-map-wrap .map { height: 100%; min-height: 520px; border-radius: var(--r-lg); border: 1px solid var(--line); }
}

/* Profile */
.prof { max-width: 1120px; padding-top: 20px; }
.prof-head { display: flex; align-items: center; gap: 16px; padding: 20px; flex-wrap: wrap; }
.avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font-size: 22px; font-weight: 700; flex: none; }
.prof-stats { display: flex; gap: 8px; }
.prof-stats div { display: grid; padding: 10px 16px; border-radius: var(--r); background: var(--surface-2); min-width: 96px; }
.prof-stats b { font-size: 22px; font-weight: 700; }
.prof-stats small { font-size: 12px; color: var(--ink-3); }
.prof-grid { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 900px) { .prof-grid { grid-template-columns: 1fr 1fr; gap: 20px; } .prof-head { padding: 28px; } }
@media (max-width: 560px) { .prof-stats { width: 100%; } .prof-stats div { flex: 1; } }

/* Favorites */
.pcard { position: relative; }
.pcard-link { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.pcard-link:hover .media img { transform: scale(1.03); }
.fav { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink-2); display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.12); transition: color var(--t1), transform var(--t1); }
.fav:hover { color: var(--accent); transform: scale(1.06); }
.fav[aria-pressed="true"] { color: var(--accent); }
.fav[aria-pressed="true"] .ic { fill: currentColor; }
.fav.lg { position: static; width: 44px; height: 44px; background: var(--surface-2); box-shadow: none; flex: none; }
.hfav { position: relative; }
.hfav .badge { position: absolute; top: 4px; right: 14px; }

/* Stores page */
.stores-split { display: grid; gap: 16px; }
.stores-list { display: grid; gap: 8px; align-content: start; min-width: 0; }
.stores-list > *, .stores-split > * { min-width: 0; }
.srow-item { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color var(--t1); }
.srow-item:hover { border-color: var(--line-strong); }
.srow-item .cover { width: 80px; height: 80px; border-radius: var(--r); overflow: hidden; flex: none; background: var(--surface-2); }
.srow-item .cover img { width: 100%; height: 100%; object-fit: cover; }
.stores-map .map { height: calc(100dvh - 260px); min-height: 420px; }
.map-tag { display: inline-block; transform: translate(-50%, -100%); white-space: nowrap; padding: 6px 10px; border-radius: var(--r-sm); background: var(--brand); color: var(--on-brand); font: 600 12px/1 var(--font); box-shadow: 0 2px 8px rgba(0,0,0,.25); cursor: pointer; }
@media (max-width: 1023px) { .stores-split[data-mode="list"] .stores-map, .stores-split[data-mode="map"] .stores-list { display: none; } .stores-map .map { height: calc(100dvh - 240px); } }
@media (min-width: 1024px) { .stores-split { grid-template-columns: minmax(380px, 460px) minmax(0, 1fr); gap: 24px; align-items: start; } .stores-map { position: sticky; top: calc(var(--header-h) + 72px); } }

/* Text pages */
.text-page { max-width: 1040px; }
.faq { display: grid; gap: 8px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; min-height: 56px; cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--ink-3); transition: transform var(--t2); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding: 0 18px 18px; color: var(--ink-2); line-height: 1.6; max-width: 72ch; }
.info-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .info-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
.info-grid .card { display: grid; gap: 10px; align-content: start; }
.info-ic { width: 48px; height: 48px; border-radius: var(--r); display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); }
.legal { display: grid; gap: 24px; }
.legal section { display: grid; gap: 8px; max-width: 72ch; }
.legal p { line-height: 1.65; }

/* PDP gallery: keep image within viewport */
@media (min-width: 768px) {
  .gallery .main { width: min(100%, calc(100dvh - var(--header-h) - 140px)); min-width: 280px; }
}
@media (min-width: 1024px) {
  .gallery .main { width: min(100%, calc(100dvh - var(--header-h) - 250px)); }
  .gallery:has(.thumbs) { display: grid; grid-template-columns: 72px auto; gap: 12px; align-items: start; justify-content: start; }
  .gallery:has(.thumbs) .thumbs { flex-direction: column; order: -1; padding: 0; }
  .gallery .thumbs button { width: 72px; height: 72px; }
  .pdp { grid-template-columns: minmax(0, 1fr) minmax(380px, 460px); }
}
