:root {
  --a96-page: #fbf8f5;
  --a96-surface: #f2ece8;
  --a96-action: #6d1f35;
  --a96-action-hover: #852842;
  --a96-focus: #993957;
  --a96-selection: #f2e6e9;
  --paper: #f5ece6;
  --wine: #2a0914;
  --rose-text: #f5dfe2;
  --display-tracking: -.036em;
  --gutter: var(--space-32);
  --home-header-height: calc(var(--space-64) + var(--space-8));
  --home-section-space: var(--space-64);
  --category-grid-gap: var(--space-16);
  --category-label-inset: var(--space-24);
}

.topbar.dark { inset: 0 0 auto; border-bottom: 1px solid #fce1e62a; }
html[data-demo] .topbar.dark { position: relative; background: var(--wine); }
html[data-demo] .phone-hero { padding-top: 0; min-height: 0; }
.demo-notice {
  padding-block: var(--space-8);
  border-bottom: 1px solid var(--a96-divider);
  background: var(--a96-selection);
  color: var(--a96-action);
  font-size: var(--type-label);
  font-weight: 600;
}
.topbar.dark .top-inner { min-height: var(--home-header-height); padding: 0; border: 0; border-radius: 0; background: none; backdrop-filter: none; }
.topbar .top-inner { gap: var(--space-16); }
.topbar .wordmark { font-size: var(--type-section); font-weight: 700; letter-spacing: -.12em; padding-right: var(--space-4); min-height: 44px; }
.topbar .bag { gap: var(--space-8); padding-inline: var(--space-12); }
.topbar.dark .bag { color: #fff5ef; border-color: #fce1e65c; border-radius: 4px; }
.top-links { gap: var(--space-48); }
.topbar .top-links a { font-size: var(--type-label); }
.client-wordmark > span {
  display: grid;
  place-items: center;
  inline-size: 76px;
  block-size: 29px;
  overflow: hidden;
  mix-blend-mode: multiply;
}
.client-wordmark img {
  width: 110px;
  height: 110px;
  max-width: none;
  grid-area: 1 / 1;
  align-self: center;
  justify-self: center;
  margin: -41px -17px;
}
.dark .client-wordmark, .footer .client-wordmark { mix-blend-mode: screen; }
.dark .client-wordmark > span, .footer .client-wordmark > span { mix-blend-mode: normal; }
.dark .client-wordmark img, .footer .client-wordmark img { filter: invert(1); }
.home-top { background: var(--wine); color: #fff4ed; }
.phone-hero {
  min-height: min(750px, 100svh);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: var(--home-header-height);
  background: radial-gradient(ellipse at 73% 48%, #a03c55 0, #6c2038 25%, #3d1020 52%, #260812 83%);
}
.hero-grid {
  min-height: calc(min(750px, 100svh) - var(--home-header-height));
  display: grid;
  grid-template-columns: .98fr 1fr;
  align-items: center;
  position: relative;
}
.hero-copy { z-index: 1; padding-block: var(--space-48) var(--space-64); }
.hero-location {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  color: var(--rose-text);
  font-weight: 600;
  font-size: var(--type-label);
  margin-top: var(--space-12);
}
.hero-location .icon { width: 17px; height: 17px; }
.hero-copy h1 {
  margin-block-end: var(--space-16);
  color: #fff7ef;
  font-size: var(--type-display);
  line-height:var(--leading-heading);
  letter-spacing: var(--display-tracking);
}
.hero-copy h1 span { display: block; color: #f0bec9; }
.hero-description { color: var(--rose-text); font-size: var(--type-lead); }
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-24);
  min-height: 52px;
  padding: var(--space-12) var(--space-16);
  border-radius: 4px;
  background: #fff0e8;
  color: #401122;
  transition: background-color 150ms ease-out, transform 150ms ease-out;
}
.hero-copy .hero-cta { margin-top: var(--space-24); }
.hero-cta:hover { background: #f2cbd5; }
.hero-cta:active { transform: scale(.98); }
.phone-stage {
  position: relative;
  display: grid;
  align-items: center;
  justify-items: center;
  min-width: 0;
  min-height: 100%;
}
.hero-orbit {
  width: 92%;
  aspect-ratio: 1;
  border: 1px solid #ffc3c541;
  border-radius: 50%;
  position: absolute;
  top: 49%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.phone-view {
  position: relative;
  z-index: 1;
  width: min(113%, 650px);
  aspect-ratio: 1;
  filter: drop-shadow(12px 24px 36px #26081260);
  pointer-events: none;
}
.phone-view.has-webgl { pointer-events: auto; cursor: grab; touch-action: pan-y; }
.phone-view.is-rotating { cursor: grabbing; }
.phone-poster, .phone-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.phone-poster { object-fit: contain; transition: opacity 180ms ease-out; }
.phone-canvas { opacity: 0; transition: opacity 180ms ease-out; }
.has-webgl .phone-poster { opacity: 0; }
.has-webgl .phone-canvas { opacity: 1; }
.phone-stage figcaption {
  position: absolute;
  bottom: var(--space-24);
  inset-inline: 0;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-8);
  font-weight: 700;
  font-size: var(--type-label);
  color: #fff5ef;
}
.phone-stage figcaption a {
  display: inline-flex;
  gap: var(--space-8);
  min-height: 44px;
  align-items: center;
  text-decoration: none;
}
.phone-stage figcaption a:hover { text-decoration: underline; text-underline-offset: 4px; }
.phone-stage figcaption span { color: #efbeca; font-weight: 600; }
.phone-stage figcaption .icon { width: 15px; height: 15px; }
.phone-meta { margin-inline-start: auto; text-align: right; }
.phone-hint { display: block; color: var(--rose-text); font-size: var(--type-label); }
.phone-tools, .phone-finishes { display: flex; align-items: center; gap: var(--space-4); }
.phone-tools { flex-wrap: wrap; }
.phone-finish, .phone-reset {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
}
.phone-finish { border-radius: 50%; }
.phone-finish::before {
  content: "";
  width: var(--space-24);
  height: var(--space-24);
  border: 1px solid #fff4ed70;
  border-radius: 50%;
  background: #793349;
}
.phone-finish[data-finish="black"]::before { background: #28282b; }
.phone-finish[data-finish="silver"]::before { background: #c5c7ca; }
.phone-finish[data-finish="blue"]::before { background: #85a4c0; }
.phone-finish[aria-pressed="true"], .phone-finish:hover { border-color: #fff4ed8c; }
.phone-reset { border-radius: 50%; }
.phone-reset:hover { background: #fff4ed16; }
.phone-tools [hidden], .phone-hint[hidden] { display: none; }
.error-header { padding-block: var(--space-16); background: var(--wine); }
.error-header a { display: inline-block; }

.catalog-home { background: var(--paper); padding-block: var(--home-section-space); }
.catalog-title { display: flex; align-items: end; justify-content: space-between; gap: var(--space-16); margin-bottom: var(--space-32); }
.catalog-title h2, .info-content h2, .closing h2 {
  font-size: var(--type-display);
  line-height:var(--leading-heading);
  letter-spacing: var(--display-tracking);
}
.catalog-title a { color: var(--a96-action); white-space: nowrap; display: inline-flex; align-items: center; gap: var(--space-4); }
.category-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--category-grid-gap); }
.category-marker { display: none; }
.category-layer, .category-layer-cards { display: contents; }
.category-tile {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  block-size: clamp(230px, 23vw, 308px);
  overflow: hidden;
  min-width: 0;
  color: #28131b;
  background: var(--a96-palette-white);
  border: 1px solid #522a301d;
  border-radius: var(--space-8);
  text-decoration: none;
}
.category-art {
  position: relative;
  min-height: 0;
  overflow: hidden;
}
.category-art img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: min(100%, 480px);
  margin-inline: auto;
  padding: var(--space-4) var(--space-16) var(--space-24);
  object-fit: contain;
  filter: drop-shadow(0 12px 12px #37212822);
  transition: transform 230ms cubic-bezier(.2,.75,.25,1);
}
.category-label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--space-8);
  padding: var(--category-label-inset) var(--category-label-inset) var(--space-12);
  z-index: 1;
}
.category-label strong { display: block; font-size: var(--type-title); line-height:var(--leading-heading); letter-spacing: -.045em; }
.category-label small { display: block; color: var(--a96-text-secondary); margin-top: var(--space-4); font-size: var(--type-label); }
.tile-arrow {
  display: grid;
  flex: none;
  place-items: center;
  width: var(--space-32);
  height: var(--space-32);
  color: #691d34;
  border: 1px solid #6d1f3552;
  border-radius: 50%;
  transition: color 150ms ease-out, background-color 150ms ease-out, translate 220ms var(--ease);
}
.tile-arrow .icon { width: 15px; height: 15px; }
.category-tile:is(:hover, :focus-visible) .tile-arrow { color: #fff; background: #6d1f35; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .category-tile:hover .category-art img { transform: scale(1.025); }
  .category-tile:hover .tile-arrow { translate: 2px -2px; }
}
.category-iphone, .category-mac { block-size: clamp(340px, 33vw, 460px); }
.category-iphone .category-label strong, .category-mac .category-label strong {
  font-size: var(--type-section);
  letter-spacing: -.06em;
}
.category-product-photo { mix-blend-mode: multiply; }
.category-product-photo img { filter: none; }

@media (min-height: 560px) and (prefers-reduced-motion: no-preference) {
  .category-tiles.has-category-stack {
    --stack-top: clamp(16px, 7svh, 64px);
    --stack-step: var(--space-16);
    --stack-height: clamp(250px, min(34vw, 51svh), 408px);
    display: flow-root;
    position: relative;
    isolation: isolate;
  }
  .has-category-stack::after {
    content: "";
    display: block;
    block-size: clamp(88px, 16svh, 144px);
  }
  .has-category-stack .category-marker { display: block; }
  .has-category-stack .category-layer {
    display: block;
    position: sticky;
    inset-block-start: calc(var(--stack-top) + var(--stack-index, 0) * var(--stack-step));
  }
  .has-category-stack .category-layer:not(:last-child) { margin-block-end: clamp(20px, 5svh, 48px); }
  .has-category-stack .category-layer:has(:focus-visible) { z-index: 1; }
  .has-category-stack .category-layer-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--category-grid-gap);
    transform-origin: center top;
    background: var(--paper);
    border-radius: var(--space-8);
    box-shadow: 0 12px 28px #53263725;
  }
  .has-category-stack .category-tile {
    grid-column: auto;
    grid-template: auto minmax(0, 1fr) / minmax(0, 1fr);
    block-size: var(--stack-height);
  }
  .has-category-stack .category-acc { align-items: stretch; }
  .has-category-stack .category-acc .category-art img { max-height: none; }
}

@media (max-width: 650px) and (min-height: 560px) and (prefers-reduced-motion: no-preference) {
  .category-tiles.has-category-stack {
    --stack-top: var(--space-24);
    --stack-step: var(--space-8);
    --stack-height: clamp(205px, 58vw, 296px);
  }
  .has-category-stack::after { block-size: clamp(76px, 10svh, 104px); }
  .has-category-stack .category-tile .category-label { padding: var(--space-12) var(--space-8) var(--space-8) var(--space-12); }
  .has-category-stack .category-tile .category-label strong { font-size: var(--type-lead); }
  .has-category-stack .category-layer:first-of-type .category-label strong { font-size: var(--type-title); }
  .has-category-stack .category-label .tile-arrow { width: var(--space-24); height: var(--space-24); }
}

@media (max-width: 440px) {
  :is(.category-iphone, .category-mac) .category-label small { min-block-size: 2lh; }
}

@media (max-width: 360px) and (min-height: 560px) and (prefers-reduced-motion: no-preference) {
  .has-category-stack .category-label { display: block; }
  .has-category-stack .tile-arrow {
    position: absolute;
    inset-block-end: var(--space-8);
    inset-inline-end: var(--space-8);
  }
}

.feature-story { background: #38131f; color: #fff4ed; }
.feature-scene { overflow: clip; }
.feature-grid {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(440px, 66svh, 650px);
  grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr);
  gap: var(--space-48);
}
@media (min-width: 901px) and (min-height: 660px) {
  .feature-scene.has-scroll-story .feature-grid { min-height: 100svh; }
}
.feature-copy { position: relative; z-index: 1; padding-block: var(--home-section-space); }
.feature-copy h2, .purchase-guide h2 { font-size: var(--type-display); line-height:var(--leading-heading); letter-spacing: var(--display-tracking); }
.feature-copy > p { margin-block-start: var(--space-16); color: #efd3d5; font-size: var(--type-lead); }
.feature-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-12);
  margin: var(--space-24) 0;
  padding-block: var(--space-16);
  border-block: 1px solid #edcbd84d;
}
.feature-facts dt { color: #eccbd1; font-size: var(--type-label); }
.feature-facts dd { margin: var(--space-4) 0 0; font-size: var(--type-lead); font-weight: 700; line-height: var(--leading-heading); font-variant-numeric: tabular-nums; }
.feature-media {
  position: relative;
  aspect-ratio: 4 / 3;
  align-self: end;
}
.feature-lens { position: absolute; inset: 0; }
.feature-art { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.feature-media-custom { align-self: center; margin-block: var(--space-32); border-radius: var(--a96-radius-small); overflow: clip; }
.feature-media-custom .feature-art { object-position: center; }
.feature-link { display: inline-flex; margin-block-start: var(--space-16); color: #fff4ed; }
.feature-link:hover { color: var(--rose-text); }
.feature-progress { display: none; height: 2px; width: var(--space-64); margin-top: var(--space-24); background: #efd3d547; }
.feature-scene.has-scroll-story .feature-progress { display: block; }
.feature-progress span { display: block; width: 100%; height: 100%; background: #f3c2c8; transform: scaleX(0); transform-origin: left; }
.estimate-section {
  padding-block: var(--home-section-space);
  background: var(--a96-page);
}
.estimate-section h2 { font-size: var(--type-display); }
.estimate-intro { margin-block-start: var(--space-8); color: var(--a96-text-secondary); font-size: var(--type-lead); }
.estimate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  align-items: start;
  gap: var(--space-48);
  max-inline-size: 1024px;
  margin-block-start: var(--space-24);
}
.estimate-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: var(--space-8);
}
.estimate-controls label:not(:first-child) { margin-block-start: var(--space-8); }
.estimate-select { position: relative; }
.estimate-select .select {
  appearance: none;
  padding: var(--space-12) var(--space-48) var(--space-12) var(--space-16);
  border-radius: var(--a96-radius-control);
  text-overflow: ellipsis;
}
.estimate-select > .icon {
  position: absolute;
  inset-inline-end: var(--space-16);
  inset-block-start: 50%;
  translate: 0 -50%;
  color: var(--a96-action);
  pointer-events: none;
}
.estimate-quantity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  margin-block-start: var(--space-16);
  font-weight: 600;
}
.estimate-quantity .quantity {
  grid-template-columns: 44px var(--space-32) 44px;
  font-variant-numeric: tabular-nums;
}
.estimate-quantity button { transition: transform var(--a96-motion-press) var(--ease); }
.estimate-quantity button[aria-disabled="true"] { color: var(--a96-text-secondary); cursor: default; }
.estimate-quantity button[aria-disabled="false"]:active { transform: scale(.9); }
.estimate-result {
  display: grid;
  gap: var(--space-12);
  padding: var(--space-32);
  border-radius: var(--a96-radius-media);
  background: #642237;
  color: #fff4ed;
}
.estimate-result-heading {
  display: grid;
  gap: var(--space-4);
  padding-block-end: var(--space-16);
  border-bottom: 1px solid #fce1e652;
}
.estimate-result-heading > span { font-size: var(--type-label); color: var(--rose-text); font-weight: 600; }
.estimate-result-heading > strong {
  font-size: var(--type-display);
  line-height: var(--leading-heading);
  letter-spacing: var(--display-tracking);
  font-variant-numeric: tabular-nums;
}
.estimate-result-heading p { color: var(--rose-text); font-variant-numeric: tabular-nums; }
.estimate-installment {
  display: grid;
  gap: var(--space-4);
  margin-block-start: var(--space-12);
}
.estimate-installment p { font-size: var(--type-lead); }
.estimate-installment strong { font-size: var(--type-title); color: #fff4ed; white-space: nowrap; }
.estimate-installment small { font-size: var(--type-label); color: var(--rose-text); }
.estimate-result .button { margin-block-start: var(--space-4); gap: var(--space-8); }
.estimate-note, .estimate-error { font-size: var(--type-label); color: var(--rose-text); }
.estimate-error { padding-block-start: var(--space-8); border-top: 1px solid #fce1e652; font-weight: 600; }

.client-media { padding-block: var(--home-section-space); background: #642237; color: #fff4ed; }
.client-media-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--space-32); align-items: center; }
.client-media h2 { font-size: var(--type-display); }
.client-media figure { max-inline-size: 340px; margin: 0; }
.client-media figure video { display: block; width: 100%; block-size: clamp(220px, 42vw, 360px); background: #43192a; border-radius: var(--space-8); }
.client-media figcaption { margin-block-start: var(--space-8); color: var(--rose-text); font-size: var(--type-label); }
.client-media p { margin-top: var(--space-8); color: var(--rose-text); }
.client-clips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-16); }
.client-clips figure { min-width: 0; }
.client-clips video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 390px;
  border-radius: var(--space-8);
  background: #4e192a;
  object-fit: contain;
}
.client-clips figcaption { margin-top: var(--space-8); font-size: var(--type-label); color: var(--rose-text); }
.store-contacts { display: flex; flex-wrap: wrap; gap: var(--space-8) var(--space-16); padding: 0 0 var(--space-16) var(--space-32); }
.store-contacts a { color: var(--a96-action); }
.product-picture.exact img[src*="client/"] {
  object-fit: cover;
  object-position: 50% 62%;
  aspect-ratio: auto;
  height: clamp(245px, 48vw, 475px);
  padding: 0;
  scale: 1;
}
.price-line strong { text-align: end; }

.purchase-guide { padding-block: var(--home-section-space); background: var(--a96-selection); }
.guide-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-12); margin: var(--space-24) 0 0; padding: 0; list-style: none; counter-reset: purchase; }
.guide-steps li { counter-increment: purchase; padding: var(--space-24); border-top: 1px solid var(--a96-control-border); background: var(--a96-page); }
.guide-steps li::before { content: "0" counter(purchase); color: var(--a96-action); font-weight: 700; }
.guide-steps h3 { margin-block-start: var(--space-16); font-size: var(--type-title); }
.guide-steps p { margin-block-start: var(--space-8); color: var(--a96-text-secondary); }

.store-info { padding-block: var(--home-section-space); }
.info-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-48); align-items: start; }
.info-photo { overflow: hidden; border-radius: 4px; min-height: 230px; }
.info-photo img { aspect-ratio: 1.38; height: 100%; object-fit: cover; }
.info-details { margin-top: var(--space-16); }
.info-details details { border-top: 1px solid var(--a96-divider); }
.info-details details:last-child { border-bottom: 1px solid var(--a96-divider); }
.info-details summary { display: flex; gap: var(--space-12); align-items: center; min-height: 44px; padding-block: var(--space-16); cursor: pointer; font-weight: 700; list-style: none; }
.info-details summary::-webkit-details-marker { display: none; }
.info-details summary .icon { color: var(--a96-action); }
.info-details summary::after { content: "+"; font-size: var(--type-title); margin-left: auto; color: var(--a96-action); }
.info-details details[open] summary { padding-block-end: var(--space-8); }
.info-details details[open] summary::after { content: "−"; }
.info-details details p { color: var(--a96-text-secondary); margin: 0 var(--space-16) var(--space-16) var(--space-32); }
.info-details details p a { color: var(--a96-action); }
.closing { background: #6b2036; color: #fff4ed; padding-block: var(--home-section-space); }
.closing-inner { display: flex; justify-content: space-between; gap: var(--space-32); align-items: end; }
.closing p { color: #f3d2da; margin-top: var(--space-12); }
.closing .hero-cta { white-space: nowrap; }
#app { position: relative; min-height: 100dvh; display: flex; flex-direction: column; }
.seo-product-photo { display: block; inline-size: min(100%, 400px); block-size: auto; object-fit: contain; }
.page { padding-bottom: 32px; }
.footer { margin-top: auto; padding-block: var(--space-24); background: #2a0914; color: #ecd3d9; border: 0; }
.footer .wrap { align-items: center; gap: var(--space-8) var(--space-24); }
.footer .wordmark { color: #fff4ed; }
.footer a:not(.wordmark) { text-underline-offset: 4px; }
.footer .icon { height: 15px; width: 15px; margin-left: var(--space-4); }

.request-layout { max-width: 640px; margin-bottom: 45px; }
.checkout select.input { font-weight: 400; }
.checkout select.input[aria-invalid="true"] { border-color: var(--a96-error); }
.checkout { gap: 12px; }
.checkout .field { margin: 0; }
.checkout .error-message:empty, .checkout .error-message[hidden] { display: none; }
html:has(.catalog-results) { scrollbar-gutter: stable; }
.catalog-results {
  position: relative;
  min-block-size: max(0px, calc(100svh - 240px));
  overflow-anchor: none;
}
.catalog-results:has(.catalog-outgoing) { overflow: clip; }
.catalog-results > .products:empty { display: none; }
.catalog-outgoing {
  position: absolute;
  inset: 0 0 auto;
  pointer-events: none;
  background: var(--a96-page);
}
.catalog-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-block-size: 44px;
}
.model-card.without-photo, .product-layout.without-photo { grid-template: 1fr / minmax(0, 1fr); }
.product-layout.without-photo { max-width: 580px; margin-bottom: 45px; }
.cart-item.without-photo { grid-template-columns: minmax(0, 1fr) auto; }

.iphone-model-card {
  grid-template: clamp(180px, 18vw, 240px) 1fr / minmax(0, 1fr);
}
.mac-model-card {
  grid-template: auto 1fr / minmax(0, 1fr);
}
.mac-model-card .model-image.exact {
  aspect-ratio: 4 / 3;
  height: auto;
  background: #fff;
}
.mac-model-card .model-image.exact img {
  object-fit: contain;
  padding: var(--space-4);
  scale: 1;
}
.mac-model-card[data-model="macbook-neo"] .model-image,
.product-picture.mac-photo:has(img[src$="/macbook-neo.webp"]) {
  background: #f4f4f4;
}
.iphone-model-card .model-image.exact,
.product-picture.catalog-photo {
  background: #fff;
}
.iphone-model-card .model-image.exact img {
  object-fit: contain;
  object-position: center;
  padding: var(--space-8);
  scale: 1;
}
.model-image.exact.product-photo,
.product-picture.catalog-photo.product-photo {
  background: white;
}
.model-image.exact.product-photo img {
  display: block;
  max-inline-size: 100%;
  max-block-size: 100%;
  padding: var(--space-8);
  object-position: center;
  scale: 1;
}
.cart-item img[src^="/assets/product-photos/"] {
  background: white;
}
.product-picture.catalog-photo img {
  display: block;
  width: 100%;
  height: clamp(250px, 52vw, 460px);
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  padding: var(--space-12);
  scale: 1;
}
.catalog-photo .picture-caption { text-align: center; }
.product-picture.product-photo img { padding: var(--space-8); }
.product-picture.mac-photo img {
  height: auto;
  aspect-ratio: 4 / 3;
  padding: var(--space-4);
}
@media (max-width: 630px) {
  .sort-label > span {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .quick {
    flex-wrap: nowrap;
    gap: var(--space-4);
    min-inline-size: 0;
    overflow-x: auto;
    scrollbar-width: none;
    padding: var(--space-4);
    margin: calc(-1 * var(--space-4));
  }
  .quick .chip { flex: none; padding-inline: var(--space-8); }
  .sort-label select { max-inline-size: 126px; }
  .iphone-model-card {
    grid-template: 1fr / minmax(110px, 43%) minmax(0, 1fr);
    min-height: 164px;
  }
  .iphone-model-card .model-image.exact img { padding: var(--space-4); }
  .iphone-model-card .model-data h2 { overflow-wrap: anywhere; }
  .product-picture.catalog-photo:not(.mac-photo) img { height: clamp(250px, 72vw, 360px); }
  .product-picture.product-photo:not(.mac-photo) img { height: clamp(218px, 62vw, 344px); }
  .product-layout:has(.catalog-photo) .price-line { flex-wrap: wrap; }
  .product-layout:has(.catalog-photo) .price-line strong { white-space: nowrap; }
}

@media (min-width: 1024px) {
  :root { --gutter: var(--space-48); }
}
@media (min-width: 1280px) {
  :root { --gutter: var(--space-64); }
}
@media (max-width: 1023px) {
  .category-tiles { --category-grid-gap: var(--space-12); --category-label-inset: var(--space-16); }
}
@media (max-width: 900px) {
  .phone-hero { min-height: 0; }
  .hero-grid { min-height: 550px; }
  .phone-stage figcaption { bottom: var(--space-16); }
  .info-layout { gap: var(--space-32); }
  .feature-grid { gap: var(--space-24); }
  .estimate-layout { gap: var(--space-24); }
  .category-tile { block-size: clamp(224px, 29vw, 290px); }
  .category-iphone, .category-mac { block-size: clamp(280px, 40vw, 380px); }
}
@media (max-width: 650px) {
  :root {
    --gutter: var(--space-24);
    --home-header-height: calc(var(--space-48) + var(--space-8));
    --home-section-space: var(--space-48);
    --category-grid-gap: var(--space-12);
    --category-label-inset: var(--space-12);
  }
  .topbar .top-inner { gap: var(--space-8); }
  .top-links { gap: var(--space-12); }
  .topbar .top-links .shops-link { display: none; }
  .phone-hero { background: radial-gradient(ellipse at 67% 70%, #914057 0, #5a1830 40%, #280a15 83%); }
  .hero-grid { min-height: 0; display: block; }
  .hero-copy { padding-block: var(--space-32) 0; }
  .hero-copy h1 { margin-block-end: var(--space-12); }
  .hero-description { font-size: var(--type-body); }
  .hero-location { margin-top: var(--space-8); }
  .hero-copy .hero-cta { margin-top: var(--space-16); min-height: var(--space-48); }
  .phone-stage { min-height: 0; }
  .hero-orbit { width: min(90%, 354px); top: 45%; }
  .phone-view { width: min(111%, 423px); margin-block: calc(-1 * var(--space-16)); }
  .phone-stage figcaption { position: relative; inset: auto; justify-self: stretch; margin-bottom: var(--space-16); }
  .catalog-title { margin-bottom: var(--space-24); }
  .client-media-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-24); }
  .client-media h2 { font-size: var(--type-section); }
  .catalog-title h2, .feature-copy h2, .purchase-guide h2, .info-content h2, .closing h2, .estimate-section h2 {
    font-size: var(--type-section);
  }
  .category-tiles { --category-label-inset: var(--space-12); }
  .category-tile { block-size: clamp(160px, 45vw, 238px); }
  .category-tile:has(.category-product-photo), .category-iphone, .category-mac { min-block-size: 190px; }
  .category-label { padding-block-end: var(--space-8); }
  .category-label strong, :is(.category-iphone, .category-mac) .category-label strong { font-size: var(--type-lead); letter-spacing: -.04em; }
  .category-label small { font-size: var(--type-label); }
  .category-art img { padding: 0 var(--space-8) var(--space-12); }
  .category-acc { grid-column: 1 / -1; grid-template-columns: 1.12fr 1fr; grid-template-rows: 1fr; align-items: center; block-size: 132px; }
  .category-acc .category-label { padding: var(--space-16); }
  .category-acc .category-art { align-self: stretch; }
  .category-acc .category-art img { max-height: 132px; padding: var(--space-8); }
  .tile-arrow { width: 29px; height: 29px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 0; }
  .feature-copy { padding-block: var(--home-section-space) 0; }
  .feature-copy > p { margin-block-start: var(--space-12); }
  .feature-media { margin-block-start: var(--space-24); }
  .feature-media-custom { margin-block-end: var(--home-section-space); }
  .estimate-intro { font-size: var(--type-body); }
  .estimate-layout { grid-template-columns: minmax(0, 1fr); }
  .estimate-result { padding: var(--space-24); }
  .guide-steps { grid-template-columns: minmax(0, 1fr); margin-block-start: var(--space-16); }
  .guide-steps li { padding: var(--space-16); }
  .guide-steps h3 { margin-block-start: var(--space-8); }
  .info-layout { grid-template-columns: 1fr; gap: var(--space-24); }
  .info-photo { min-height: 0; }
  .info-photo img { aspect-ratio: 1.65; }
  .closing-inner { display: grid; gap: var(--space-24); justify-items: start; }
  .footer .wrap { column-gap: var(--space-12); }
  .cart-item.without-photo { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 360px) {
  :root { --gutter: var(--space-16); }
  .topbar .bag { padding-inline: var(--space-8); }
  .topbar .bag .icon { display: none; }
  .client-wordmark > span { inline-size: 65px; }
  .category-label { gap: var(--space-4); }
  .category-label .tile-arrow { width: var(--space-24); height: var(--space-24); }
  .phone-stage figcaption { flex-wrap: wrap; row-gap: var(--space-8); }
}

@media (min-width: 560px) and (max-height: 540px) {
  :root { --home-header-height: calc(var(--space-48) + var(--space-8)); }
  .hero-grid { display: grid; min-height: 0; grid-template-columns: 1.05fr 1fr; }
  .hero-copy { padding-block: var(--space-16) var(--space-24); }
  .hero-copy h1 { font-size: var(--type-section); margin-bottom: var(--space-8); }
  .hero-description { font-size: var(--type-label); }
  .hero-location { margin-top: var(--space-8); }
  .hero-copy .hero-cta { margin-top: var(--space-12); min-height: 44px; }
  .phone-stage { min-height: 0; }
  .hero-orbit { width: min(100%, 290px); top: 50%; }
  .phone-view { width: min(100%, max(230px, calc(100svh - 63px)), 370px); margin: 0; }
  .phone-stage figcaption { position: absolute; inset: auto 0 0; margin: 0; }
}
