/* Compact shop look (storefront.json "look": "compact"), loaded after app.css by shop/storefront.html and the seller's
   sign-in pages. Only shape, depth and density; colours stay in the seller's palette. No selector here changes what a
   control does. The workspace never loads this file.
   ponytail: an override layer so a seller (and prod) stays on the base look until the brand package asks for this one;
   fold it into app.css once every seller runs it. */
:root{
  --radius:10px;--radius-sm:8px;--wrap:1320px;
  --shadow:0 1px 2px color-mix(in srgb,var(--text) 6%,transparent),0 2px 10px -2px color-mix(in srgb,var(--text) 7%,transparent);
  --shadow-lift:0 2px 4px color-mix(in srgb,var(--text) 6%,transparent),0 14px 28px -14px color-mix(in srgb,var(--text) 22%,transparent);
}
[data-theme=dark]{--shadow:0 1px 2px #0006,0 2px 10px -2px #0008;--shadow-lift:0 2px 4px #0006,0 14px 28px -14px #000c}

/* Density: desktop steps down one notch (every rem follows); phones keep 16 px text and 44 px targets. */
@media (min-width:761px){
  html{font-size:93.75%}
  body{font-size:1rem;line-height:1.5}
}
h1{font-size:clamp(1.55rem,2.3vw,1.95rem);font-weight:750}
.product-buy h1{font-size:clamp(1.45rem,2.1vw,1.8rem)}

/* Cards sit on the page by a soft shadow, not an outline. The transparent border keeps every size as it was
   and comes back in forced-colors mode. */
.product-card,.panel,.buy-box,.form-card,.cart-lines,.order-card,.checkout-aside,.form-section,.review-block,.pay-card,
.next-steps,.company-selector,.subcategories a,.brand-chips a,.promo-note{border-color:transparent;box-shadow:var(--shadow)}
.product-card:hover{border-color:transparent;box-shadow:var(--shadow-lift)}
.subcategories a:hover,.brand-chips a:hover{box-shadow:var(--shadow-lift)}
.product-media.large{box-shadow:var(--shadow)}
button.primary,.button.primary{box-shadow:0 1px 2px color-mix(in srgb,var(--accent) 35%,transparent)}

/* Header: dark utility strip, then the seller's header colour, one shadow under the category row. */
.utility-bar{background:var(--footer-bg);border-bottom:0;color:var(--footer-muted)}
.utility-bar .promises{color:var(--footer-muted)}
.utility-bar .promises strong{color:var(--footer-text)}
.utility-bar .promises .icon{color:var(--highlight)}
.utility-bar .promises a:hover strong{color:var(--highlight)}
.utility-bar .lang-menu>summary,.utility-bar .theme-toggle button{color:var(--footer-muted)}
.utility-bar .lang-menu>summary:hover,.utility-bar .lang-menu[open]>summary,.utility-bar .theme-toggle button:hover{background:color-mix(in srgb,var(--footer-text) 12%,transparent);color:var(--footer-text)}
.utility-bar :focus-visible{outline-color:var(--footer-text)}
.store-header{border-bottom-color:transparent}
.store-header .search-field{background:var(--bg);border-color:transparent;box-shadow:inset 0 0 0 1px var(--line)}
.store-header .search-field:focus-within{background:var(--surface);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent)}
.store-header .cart-link{background:var(--accent-soft);color:var(--accent)}
.store-header .cart-link:hover{background:color-mix(in srgb,var(--accent-soft) 80%,var(--accent))}
.cart-icon .cart-count:not([data-cart-count="0"]){background:var(--accent);color:var(--accent-ink)}
.store-subnav{border-bottom-color:transparent;box-shadow:var(--shadow)}

/* Choices (delivery, payment): the picked row carries a ring in the accent. */
.choice,.choice-list .pickup{border-color:transparent;box-shadow:var(--shadow)}
.choice:hover{border-color:transparent;box-shadow:var(--shadow-lift)}
.choice:has(input:checked){border-color:transparent;box-shadow:0 0 0 2px var(--accent);background:var(--accent-soft)}

/* Checkout progress: one card, a cell per step; the current step takes the highlight. Phones keep the dots. */
.steps li[aria-current=step]::before{background:var(--highlight);border-color:var(--highlight);color:var(--highlight-ink);box-shadow:none}
@media (min-width:761px){
  .steps{gap:.4rem;padding:.5rem;background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow)}
  .steps li{flex-direction:row;align-items:center;gap:.7rem;padding:.6rem .8rem;border-radius:var(--radius-sm);text-align:left;font-weight:600}
  .steps li::before{flex:none}
  .steps li+li::after{display:none}
  .steps li.done{background:var(--accent-soft)}
}

/* Listing: filters and the sort row are cards beside the grid; the phone drawer keeps its own surface. */
@media (min-width:901px){
  .filters{padding:.5rem 1rem 0;background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow)}
  .filters .filter-group:last-of-type{border-bottom:0}
}
.toolbar{padding:0 .5rem;border-bottom:0;background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow)}
.sort-tabs a{margin-bottom:0}
.card-brand{color:var(--accent)}
/* in stock: a dot carries the state together with the word */
.stock.is-ok::before{content:"";display:inline-block;width:.45rem;height:.45rem;margin-right:.4rem;border-radius:50%;background:currentColor;vertical-align:.08em}

/* Product detail: description, parameters and compatibility are cards like the buy box. */
.product-sections>section{padding:1.3rem 1.4rem;border-top:0;background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow)}
.spec-table dt:last-of-type,.spec-table dd:last-of-type{border-bottom:0}

/* Order lists (my orders, watched prices): one card of rows; an empty list keeps its own dashed box. */
.order-rows:not(:has(.empty-state)){padding:0 1.2rem;border-top:0;background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow)}
.order-rows:not(:has(.empty-state))>li:last-child{border-bottom:0}

/* Consent before ordering: a card, ringed once ticked, like a picked choice. */
.terms-check{border-color:transparent;box-shadow:var(--shadow)}
.terms-check:has(input:checked){border-color:transparent;box-shadow:0 0 0 2px var(--accent)}

/* the cart badge sits on the icon's corner, clear of the label */
.store-header .cart-link .nav-label{margin-left:.7rem}

/* Home: the promotion banner and the device finder are cards like the rest. */
.promo-carousel,.device-finder{border-color:transparent;box-shadow:var(--shadow)}
