.storefront {
  --shell: 1650px;
}
.storefront .shell { width: min(var(--shell), calc(100% - clamp(32px, 10.8vw, 204px))); }
.storefront .head { min-height: 84px; gap: clamp(12px, 1.5vw, 27px); }
.storefront .head .brand-mark { width: 48px; height: 48px; border-radius: 13px; }
.store-wordmark { font-size: clamp(14px, 1.1vw, 20px); letter-spacing: -.055em; font-weight: 820; }
.store-wordmark small { display: block; margin-top: 3px; color: var(--muted); font-size: .64em; letter-spacing: .045em; font-weight: 620; }
.storefront .catalog-btn { background: var(--blue); border-color: transparent; color: #fff; border-radius: 10px; padding-inline: clamp(12px, 1.4vw, 24px); }
.storefront .catalog-btn:hover { background: var(--blue-dark); }
.storefront .search { background: #111b2bc7; border-color: var(--line); border-radius: 10px; color: #9eaecb; }
.storefront .search input { color: var(--ink); }
.storefront .search input::placeholder { color: var(--muted); }
.storefront .search button { background: #263653; color: #e6edff; }
.storefront .search button:hover { background: #344874; }
.storefront .utilities button { color: var(--ink); }
.storefront .utilities button:hover { color: var(--hardware-accent); }
.storefront .store-nav a { min-height: 41px; }

.store-intro {
  display: grid; grid-template-columns: clamp(197px, 17.9%, 295px) minmax(0, 1fr);
  gap: clamp(14px, 1.2vw, 22px); margin-top: clamp(16px, 1.55vw, 29px);
}
.catalog-sidebar { display: flex; flex-direction: column; justify-content: center; padding: 14px; border: 1px solid var(--line); background: var(--hardware-panel); border-radius: 17px; box-shadow: var(--hardware-edge); }
.catalog-sidebar h2 { margin: 4px 12px 10px; font-size: 13px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.catalog-sidebar .departments { gap: 1px; }
.catalog-sidebar .departments :is(a, button) { min-height: clamp(40px, 2.5vw, 48px); padding: 7px 12px; font-size: clamp(13px, .95vw, 17px); }
.catalog-sidebar .departments > :last-child { border-top: 1px solid var(--line); border-radius: 0; margin-top: 4px; }
.storefront .hero { position: relative; display: flex; align-items: stretch; min-height: clamp(380px, 24vw, 452px); border: 1px solid #7399ff65; border-radius: 17px; isolation: isolate; box-shadow: 0 0 48px #426dec35; }
.storefront .hero-shell { width: 100%; gap: clamp(16px, 2vw, 38px); padding: clamp(24px, 2.55vw, 48px) clamp(20px, 2.55vw, 48px) 53px; }
.storefront .hero-content { padding: 0; }
.storefront .hero h1 { font-size: clamp(40px, 4.2vw, 73px); font-weight: 860; line-height: .99; letter-spacing: -.07em; }
.storefront .hero-content > p:not(.kicker) { margin-bottom: 22px; max-width: 35ch; color: #e0e8f9; }
.storefront .hero-actions .btn { background: var(--blue); }
.storefront .hero-actions .btn:hover { background: var(--blue-dark); }
.storefront .hero-frame { position: relative; isolation: isolate; display: flex; width: 100%; align-items: center; }
.storefront .hero[data-cover] .hero-frame { background: #0a1020 url("assets/hero.webp") right center / cover no-repeat; }
.storefront .hero[data-cover] .hero-frame::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(90deg, #111b31 0%, #121d34cf 31%, #16284b26 63%, transparent 86%);
}
.storefront .hero[data-cover] .hero-shell { display: block; }
.storefront .hero[data-cover] .hero-content { max-width: 640px; }
.storefront .hero[data-cover] .kicker { color: #fff; background: #1743b8; width: fit-content; padding: 1px 4px; font-weight: 780; }
.storefront .store-slides {
  position: absolute; left: clamp(20px, 2.55vw, 48px); bottom: 12px; display: flex; gap: 7px; margin: 0;
}
.storefront .store-slides button { width: 25px; min-height: 38px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.storefront .store-slides button::after { content: ""; width: 100%; height: 4px; border-radius: 3px; background: #a4b2cb; }
.storefront .store-slides button.active { width: 41px; }
.storefront .store-slides button.active::after, .storefront .store-slides button:hover::after { background: #5d83ff; }
.storefront .store-slides .slide-playback { width: 38px; justify-content: center; color: #e3ecff; }
.storefront .store-slides .slide-playback::after { content: none; }
.slide-playback svg { width: 18px; height: 18px; }
.slide-playback:not([data-paused]) .slide-play-icon, .slide-playback[data-paused] .slide-pause-icon { display: none; }
.storefront .categories-section, .storefront .inventory { margin-top: clamp(28px, 2.25vw, 43px); }
.storefront .section-head h2 { font-size: clamp(29px, 2.2vw, 41px); font-weight: 835; letter-spacing: -.055em; }
.storefront .categories { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: clamp(8px, .85vw, 15px); }
.storefront .category { background: var(--hardware-panel); border-color: var(--line); box-shadow: var(--hardware-edge); border-radius: 14px; min-height: 153px; padding: 0; gap: 0; }
.storefront .category:is(:hover, :focus-visible) { background: linear-gradient(155deg, #3e5d8ad9, #263555e6); border-color: #7c9bff; box-shadow: var(--hardware-glow); }
.storefront .category img { height: clamp(94px, 8vw, 132px); object-fit: cover; mix-blend-mode: normal; }
.storefront .category span { min-height: 44px; padding: 8px 10px; }
.storefront .category svg { color: var(--hardware-accent); }
.storefront .inventory { margin-top: clamp(45px, 5vw, 90px); }
.storefront .sort select, .storefront .empty { color: var(--ink); background: var(--hardware-panel); }
.storefront .chip { color: #c8d1e4; }
.storefront .chip[aria-pressed="true"] { color: #fff; border-color: #6484ed; background: #22376c; }
.storefront .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.5vw, 24px); }
.storefront .product {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: clamp(12px, 1.5vw, 23px);
  background: var(--hardware-panel);
  box-shadow: var(--hardware-edge);
}
.storefront .product:hover, .storefront .product:focus-within { border-color: #7c9bff; box-shadow: var(--hardware-glow); }
.storefront .product-visual {
  position: relative;
  padding: 0;
  aspect-ratio: 1;
  background: var(--hardware-image);
  border-radius: clamp(11px, 1.5vw, 22px) clamp(11px, 1.5vw, 22px) 0 0;
}
.storefront .product-visual img { display: block; object-fit: cover; }
.storefront .product-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 8% 3%, #649bff39, transparent 63%);
  box-shadow: inset 0 1px 0 #bdd0ff45;
}
.storefront .buy .primary { box-shadow: 0 0 18px #4976ff4a; }
.storefront .product-visual:focus-visible { outline-offset: -4px; }
.storefront .product-actions { top: clamp(8px, 1.25vw, 19px); right: clamp(8px, 1.25vw, 19px); }
.storefront .product-info { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: clamp(12px, 2vw, 29px); container-type: inline-size; }
.storefront .product-label {
  margin: 0 0 9px;
  color: var(--hardware-accent);
  font-size: clamp(9px, .9vw, 12px);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.storefront .product-info .product-name { min-width: 0; font-size: clamp(12px, 1.6vw, 29px); font-size: clamp(12px, 6cqi, 31px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.storefront .product-name:hover { color: var(--hardware-accent); }
.storefront .specs { margin: 8px 0 15px; font-size: clamp(12px, 1.2vw, 16px); }
.storefront .buy { flex-wrap: wrap; gap: 10px; padding: 8px 0 0; }
.storefront .buy-price { flex: 1 0 auto; max-width: 100%; }
.storefront .buy-price small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.storefront .buy .btn { border-radius: 999px; min-height: 42px; padding-inline: 15px; }
.storefront .buy .quote-price { color: var(--hardware-accent); font-size: clamp(13px, 4.5cqi, 16px); }
.storefront .buy .price-amount {
  color: var(--ink);
  font-size: clamp(16px, 6cqi, 22px);
  font-weight: 730;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.storefront .store-divisions-grid a { border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--hardware-edge); }
.storefront .store-divisions-grid a:is(:hover, :focus-visible) { border-color: #7c9bff; box-shadow: var(--hardware-glow); }
@media (max-width: 820px) {
  .storefront .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 380px) {
  .storefront .product-info { padding-inline: 9px; }
}
@media (max-width: 1150px) {
  .storefront .shell { width: calc(100% - 44px); }
  .storefront .categories { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .storefront .shell { width: calc(100% - 28px); }
  .storefront .head { min-height: 0; gap: 10px; }
  .storefront .head .brand-mark { width: 34px; height: 34px; border-radius: 8px; }
  .store-intro { display: block; }
  .catalog-sidebar { display: none; }
  .storefront .hero[data-cover] { min-height: 342px; }
  .storefront .hero[data-cover] .hero-frame::before { background: linear-gradient(90deg, #0a1020fa 1%, #0a1020e8 34%, #0a102045 100%); }
  .storefront .hero-shell { grid-template-columns: 1fr; }
  .storefront .categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .storefront .category { min-height: 0; }
  .storefront .category img {
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: var(--hardware-image);
  }
  .storefront .category span {
    min-height: 36px;
    gap: 4px;
    padding: 5px 8px;
    font-size: clamp(11px, 3vw, 13px);
    line-height: 1.2;
  }
  .storefront .category svg { width: 12px; height: 12px; }
}

@media (max-width: 359px) {
  .storefront .head { column-gap: 6px; }
  .storefront .catalog-btn { padding-inline: 8px; }
  .store-wordmark { font-size: 12px; }
}

.storefront .hero[data-theme="phone"]:not([data-cover]) .hero-frame { --phone-tint: #4387ff38; background: #080f21; }
.storefront .hero[data-theme="phone"][data-phone-priority="battery"] .hero-frame { --phone-tint: #44c9ff33; }
.storefront .hero[data-theme="phone"][data-phone-priority="screen"] .hero-frame { --phone-tint: #7262fa42; }
.storefront .hero[data-theme="phone"]:not([data-cover]) .hero-shell {
  grid-template-columns: minmax(0, 46%) 1fr;
  min-height: clamp(465px, 38vw, 620px);
}
.storefront .hero[data-theme="phone"]:not([data-cover]) .hero-content { z-index: 1; }
.storefront .hero[data-theme="phone"]:not([data-cover]) h1 { font-size: clamp(34px, 4vw, 65px); margin-bottom: clamp(16px, 2vw, 24px); }
.storefront .hero[data-theme="phone"]:not([data-cover]) .hero-gallery { position: absolute; inset: 0; pointer-events: none; }
.storefront .hero[data-theme="phone"]:not([data-cover]) .hero-stage {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: #080f21;
}
.storefront .hero[data-theme="phone"]:not([data-cover]) .hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #080f21 0%, #080f21eb 29%, #080f211b 62%, transparent 80%),
    radial-gradient(ellipse at 76% 51%, var(--phone-tint), transparent 55%);
}
.storefront .hero[data-theme="phone"]:not([data-cover]) .hero-poster {
  left: auto;
  width: min(86%, 1050px);
  object-fit: cover;
  object-position: 74% center;
  transition: transform .65s cubic-bezier(.2,.7,.3,1);
}
.storefront .hero[data-theme="phone"][data-phone-priority="battery"] .hero-poster { transform: scale(1.025) translateX(1%); }
.storefront .hero[data-theme="phone"][data-phone-priority="screen"] .hero-poster { transform: scale(1.045) translateX(-.6%); }
.phone-choices { display: flex; flex-wrap: wrap; gap: 7px; }
.phone-choices button {
  min-height: 43px;
  padding: 0 12px;
  border: 1px solid #7794c878;
  border-radius: 999px;
  background: #14213bd4;
  color: #e6eeff;
  font-size: 13px;
  font-weight: 700;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.phone-choices button:hover, .phone-choices button[aria-pressed="true"] { border-color: #9bb8ff; box-shadow: 0 0 15px #5183ff56; }
.phone-choices button[aria-pressed="true"] { background: #2548ae; }
.phone-priorities > p { max-width: 38ch; min-height: 3.1em; margin: 12px 0 17px; color: #d4e1f9; line-height: 1.5; }
@media (max-width: 760px) {
  .storefront .hero[data-theme="phone"]:not([data-cover]) .hero-shell { grid-template-columns: 1fr; gap: 12px; padding-bottom: 53px; }
  .storefront .hero[data-theme="phone"]:not([data-cover]) .hero-gallery { position: relative; inset: auto; }
  .storefront .hero[data-theme="phone"]:not([data-cover]) .hero-stage { position: relative; aspect-ratio: 1.6; }
  .storefront .hero[data-theme="phone"]:not([data-cover]) .hero-stage::after { background: linear-gradient(180deg, #080f2166, transparent 30%, transparent 73%, #080f21); }
  .storefront .hero[data-theme="phone"]:not([data-cover]) .hero-poster { width: 100%; object-position: 76% 53%; }
}
@media (prefers-reduced-motion: reduce) {
  .storefront .hero[data-theme="phone"][data-phone-priority] .hero-poster { transform: none; }
}

.storefront .hero-frame { touch-action: pan-y pinch-zoom; }

@media (max-width: 760px) {
  .storefront .store-slides button { width: 44px; min-height: 44px; justify-content: center; }
  .storefront .store-slides button::after { width: 24px; }
  .storefront .store-slides button.active::after { width: 36px; }
}
