/* Angkor Tech Computer — white storefront.
   Paper white, one ink colour, the shop's red for actions only. Product photos sit in soft grey
   "display wells" so every laptop looks like it is on the shop counter. Loaded after the older dark theme. */
:root:has(.storefront){color-scheme:light}
html body.storefront{
  --paper:#ffffff;--well:#f3f4f6;--ink:#16181d;--slate:#5d6573;--line:#e7e9ee;--red:#c8202b;--red-soft:#fdeeee;--green:#17804a;
  --border:var(--line);--muted:var(--slate);
  background:var(--paper);color:var(--ink);
  font-family:"Kantumruy Pro","Inter","Segoe UI",system-ui,sans-serif;
}
html body.storefront :is(h1,h2,h3,strong,b,label,legend,.shop-showing,.brand-text){color:var(--ink)}
html body.storefront :is(small,.field-help,.subtle,p){color:var(--slate)}
html body.storefront a:not(.primary):not(.secondary):not(.contact-phone){color:var(--ink)}
html body.storefront hr{border-color:var(--line)}

/* Header: white, sticky, one hairline. */
html body.storefront .shop-header{background:rgba(255,255,255,.92);backdrop-filter:saturate(1.4) blur(10px);-webkit-backdrop-filter:saturate(1.4) blur(10px);border:0;border-bottom:1px solid var(--line);box-shadow:none;position:sticky;top:0;z-index:40}
html body.storefront .shop-header nav a{color:var(--slate);font-weight:500}
html body.storefront .shop-header nav a:hover{color:var(--ink)}
html body.storefront .brand-text small{color:var(--slate)}

/* Controls */
html body.storefront :is(.secondary,.language-switch,.shop-sort,.shop-price-panel,.shop-price-toggle,.finder-option,.finder-pick,.contact-list li,.contact-phone,.contact-map-btn,.share-results,.cat-arrow){background:var(--paper)!important;color:var(--ink)!important;border-color:var(--line)!important}
html body.storefront :is(input,select,textarea){background:var(--paper);color:var(--ink);border-color:var(--line)}
html body.storefront :is(input,textarea)::placeholder{color:#9aa1ad}
html body.storefront .language-switch button{color:var(--slate)}
html body.storefront .language-switch button.active,html body.storefront .language-switch button[aria-pressed=true]{background:var(--ink);color:#fff}
html body.storefront .shop-contact-link{color:var(--ink)!important;border-color:var(--line)!important;font-weight:600}
html body.storefront .shop-price-toggle{color:var(--ink)!important}

/* Search: one calm field, no rainbow ring. */
html body.storefront .shop-filter-row .search-box{background:var(--well)!important;border:1px solid transparent!important;border-radius:14px;box-shadow:none}
html body.storefront .shop-filter-row .search-box:focus-within{background:var(--paper)!important;border-color:var(--ink)!important}
html body.storefront .share-results{border-radius:10px!important;font-weight:500}

/* Laptop finder: a quiet invitation, not a warning banner. */
html body.storefront .finder-banner{background:var(--paper)!important;border:1px solid var(--line)!important;color:var(--ink)!important;border-radius:16px}
html body.storefront .finder-banner :is(strong,span){color:var(--ink)!important}
html body.storefront .finder-banner small,html body.storefront .finder-banner span:not(:first-child){color:var(--slate)!important}
html body.storefront .finder-banner:hover{border-color:var(--ink)!important}

/* Categories: text tabs with an underline instead of a row of boxes. */
html body.storefront .category-tabs{gap:2px;border-bottom:1px solid var(--line)}
html body.storefront .category-tabs button{background:none!important;border:0!important;border-radius:0!important;color:var(--slate)!important;font-weight:500;padding:10px 12px 12px;box-shadow:inset 0 -2px 0 transparent}
html body.storefront .category-tabs button:hover{color:var(--ink)!important}
html body.storefront .category-tabs button.active,html body.storefront .category-tabs button[aria-pressed=true]{color:var(--ink)!important;box-shadow:inset 0 -2px 0 var(--red)}

/* Brand chips keep their own colours (they are the brands), just lighter weight. */
html body.storefront .brand-bar a,html body.storefront .brand-bar button{border-radius:10px;font-weight:700;letter-spacing:.02em;box-shadow:none}

/* Sort row */
html body.storefront .shop-sort{border-color:var(--line)!important;border-radius:12px}
html body.storefront .shop-sort select{border-color:var(--line)}
html body.storefront .cond-seg{background:var(--well);border:0;border-radius:12px;padding:3px}
html body.storefront .cond-seg button{background:none;color:var(--slate);border:0;border-radius:9px}
html body.storefront .cond-seg button[aria-pressed=true]{background:var(--paper);color:var(--ink);box-shadow:0 1px 2px rgba(22,24,29,.12)}

/* Product cards: the photo sits in a grey display well; text is left aligned below, price is the loudest line. */
html body.storefront .shop-grid{gap:28px 20px}
html body.storefront .shop-product{background:var(--paper);color:var(--ink);border:0;border-radius:0;box-shadow:none;transform:none}
html body.storefront .shop-product .shop-product-art,html body.storefront .shop-product:nth-child(n) .shop-product-art{background:var(--well);border-radius:18px;border:0;transition:background-color .2s}
html body.storefront .shop-product:hover .shop-product-art{background:#eceef1}
html body.storefront .shop-product .product-photo{mix-blend-mode:multiply}
html body.storefront .shop-product-info{padding:14px 2px 0}
html body.storefront .shop-product-info h3{color:var(--ink);font-weight:600;line-height:1.35}
html body.storefront .shop-product-info strong{color:var(--ink);font-size:1.2em;font-weight:700;letter-spacing:-.01em}
html body.storefront .shop-specs{color:var(--slate)}
html body.storefront .shop-card-meta{color:var(--slate)}
html body.storefront .badge.in{background:var(--paper);color:var(--green);border:0;box-shadow:0 1px 2px rgba(22,24,29,.08)}
html body.storefront .badge.out{background:var(--paper);color:var(--slate)}

/* Product dialog */
html body.storefront dialog{background:var(--paper);color:var(--ink)}
html body.storefront dialog::backdrop{background:rgba(22,24,29,.45)}
html body.storefront .product-specifications p{color:#363b45}
html body.storefront .product-reserve-button{background:var(--paper)!important;color:var(--ink)!important;border:1.5px solid var(--ink)!important}
html body.storefront .product-reserve-button:hover{background:var(--well)!important}
html body.storefront .shop-price-summary strong{background:var(--red-soft);color:var(--red)}
html body.storefront .finder-chips span{background:var(--well);color:var(--ink)}
html body.storefront .finder-option.selected,html body.storefront .finder-option:hover{background:var(--well)!important;border-color:var(--ink)!important}

/* Contact / footer area */
html body.storefront .shop-contact{background:var(--well);border:0}
html body.storefront .tour-home{background:var(--paper);color:var(--ink)}

@media (max-width:640px){
  html body.storefront .shop-grid{gap:20px 12px}
  html body.storefront .shop-product .shop-product-art{border-radius:14px}
  html body.storefront .category-tabs button{padding:8px 10px 10px}
}
@media (prefers-reduced-motion:reduce){html body.storefront .shop-product .shop-product-art{transition:none}}

/* The older dark theme sets these with !important, so the white values need it too. */
html body.storefront .shop-header{background:rgba(255,255,255,.94)!important;color:var(--ink)!important;border-bottom:1px solid var(--line)!important;border-color:var(--line)!important}
html body.storefront .shop-header nav a{color:var(--slate)!important}
html body.storefront .shop-header .brand-text{color:var(--ink)!important}
html body.storefront :is(input,select,textarea){background:var(--paper)!important;color:var(--ink)!important;border-color:var(--line)!important}
html body.storefront .shop-filter-row .search-box input{background:transparent!important}
html body.storefront .shop-sort select{background-color:var(--paper)!important}

/* Phone: the "In stock" chip and the brand row at the bottom. */
html body.storefront .stock-toggle,html body.storefront .stock-toggle:has(input:checked){background:#eaf6ef!important;border-color:#cde9d8!important;color:#17804a!important}
html body.storefront .stock-toggle *{color:#17804a!important}
html body.storefront .brand-bar-phone{background:rgba(255,255,255,.96)!important;border-top:1px solid #e7e9ee!important;box-shadow:0 -4px 16px rgba(22,24,29,.06)!important;backdrop-filter:blur(10px)}

/* Font everywhere on the storefront (buttons and inputs do not inherit by default). */
html body.storefront,html body.storefront :is(button,input,select,textarea){font-family:"Kantumruy Pro","Segoe UI",system-ui,sans-serif}

/* Trust row under the header: three plain facts, one line, scrolls sideways on small phones. */
html body.storefront .shop-trust{display:flex;gap:22px;justify-content:center;padding:9px 16px;font-size:13px;color:var(--slate);border-bottom:1px solid var(--line);white-space:nowrap;overflow-x:auto;scrollbar-width:none}
html body.storefront .shop-trust::-webkit-scrollbar{display:none}

/* The big search row is now only the search field. */
html body.storefront .shop-filter-row{display:block}
html body.storefront .shop-filter-row .search-box{width:100%;max-width:none}
html body.storefront .collection-meta{display:none}
html body.storefront #shop-connection.is-ok{display:none}

/* Filters as small chips in one row. */
html body.storefront .shop-sort-bar{display:flex;align-items:center;gap:10px;flex-wrap:nowrap}
html body.storefront .shop-showing-wrap{display:flex;align-items:center;gap:8px;flex:1;min-width:0;overflow-x:auto;scrollbar-width:none;padding:2px}
html body.storefront .shop-showing-wrap::-webkit-scrollbar{display:none}
html body.storefront .shop-showing{white-space:nowrap;margin:0 6px 0 0;font-size:14px}
html body.storefront .chip{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:999px;padding:7px 13px;font-size:14px;font-weight:500;cursor:pointer;min-height:38px}
html body.storefront .chip:hover{border-color:var(--ink)}
html body.storefront .chip.price-active,html body.storefront .chip[aria-expanded=true]{border-color:var(--ink);background:var(--ink);color:#fff}
html body.storefront .chip.price-active *,html body.storefront .chip[aria-expanded=true] *{color:#fff}
html body.storefront .stock-toggle-m,html body.storefront .stock-toggle{border-radius:999px!important;padding:7px 13px!important;white-space:nowrap;min-height:38px}
html body.storefront .shop-price-panel{margin-top:12px;border-radius:16px}

/* Cards: price and stock share one line; "View details" is gone (the whole card is the link). */
html body.storefront .shop-price-row{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-top:8px}
html body.storefront .stock-dot{font-size:12px;font-weight:500;white-space:nowrap;color:var(--green)}
html body.storefront .stock-dot::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:currentColor;margin-right:5px;vertical-align:1px}
html body.storefront .stock-dot.out{color:var(--slate)}
html body.storefront .shop-card-meta:empty{display:none}
html body.storefront .shop-product-info h3{font-size:15px;margin:6px 0 4px}
html body.storefront .shop-specs{font-size:12.5px;line-height:1.5}

@media (max-width:640px){
  html body.storefront .shop-trust{justify-content:flex-start;gap:16px;font-size:12px}
  html body.storefront .shop-showing{display:none}
  html body.storefront .shop-product-info h3{font-size:14px}
  html body.storefront .shop-product-info strong{font-size:17px}
  html body.storefront .stock-dot{font-size:11px}
}
/* Chips keep their size and scroll sideways; price + stock line sits at the bottom of every card. */
html body.storefront .shop-showing-wrap>*{flex:none}
html body.storefront .shop-product{display:flex;flex-direction:column}
html body.storefront .shop-product-info{flex:1;display:flex;flex-direction:column}
html body.storefront .shop-price-row{margin-top:auto;padding-top:8px}
html body.storefront .category-scroll{border-bottom:0}
html body.storefront .shop-count-m{display:none}
html body.storefront .cond-seg{border-radius:999px}
html body.storefront .cond-seg button{border-radius:999px}
html body.storefront .shop-trust i{font-style:normal}

/* The dark theme's big :is(...) rule outranks plain selectors, so these need !important. */
html body.storefront :is(dialog,.shop-more button[data-load-more],.search-clear,.tour-card,.tour-x,.back-to-top,.shop-tour-link,.video-thumb,.finder-thumb,.shop-service-strip,.shop-footer){background:var(--paper)!important;color:var(--ink)!important;border-color:var(--line)!important}
html body.storefront .shop-contact{background:var(--well)!important;color:var(--ink)!important;border-color:var(--line)!important}
html body.storefront dialog :is(h1,h2,h3,strong,b,label,legend){color:var(--ink)}
html body.storefront dialog :is(p,small,.subtle,.field-help){color:var(--slate)}
/* Warranty label on cards, next to New / Used. */
html body.storefront .warranty-tag{display:inline-flex;align-items:center;font-size:11.5px;font-weight:500;color:var(--slate);background:var(--well);border-radius:999px;padding:2px 9px}
html body.storefront .shop-card-meta{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
/* Review fixes: quiet warranty label, chips stay on one row, bigger tap targets. */
html body.storefront .shop-card-meta .warranty-tag{text-transform:none;letter-spacing:0}
html body.storefront .shop-showing-wrap{flex-wrap:nowrap!important}
html body.storefront .shop-sort-bar{flex-wrap:nowrap!important}
html body.storefront .shop-header nav a{display:inline-flex;align-items:center;min-height:40px;padding:0 6px}
html body.storefront .cond-seg button{min-height:36px}
html body.storefront .shop-footer :is(a,button){display:inline-flex;align-items:center;min-height:36px}
html body.storefront .shop-contact a{min-height:36px}