@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
[hidden] { display: none !important; }
.skip-link {
  position: fixed;
  z-index: 35;
  top: 8px;
  left: 8px;
  transform: translateY(-180%);
  padding: 12px 16px;
  border-radius: 10px;
  color: #fff;
  background: var(--ink);
}
.skip-link:focus { transform: none; }
body header .mainnav .brand,
.footer-grid .footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  color: #f4e2c0;
  background: #1d1711;
}
body header .mainnav .brand img,
.footer-grid .footer-brand img {
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: 50%;
  object-fit: contain;
  object-position: center;
}
header .brand > span,
.footer-brand > span {
  font-size: 25px;
  line-height: .95;
  font-weight: 800;
  letter-spacing: .015em;
}
header .brand small,
.footer-brand small {
  display: block;
  margin-top: 7px;
  font-size: 7px;
  letter-spacing: .15em;
  color: #ead9bd;
}
header .product-nav { justify-content: center; }
header .product-nav a { padding-inline: 12px; }
header .header-action-icon { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.footer-grid .footer-brand {
  width: 220px;
  height: 100px;
  margin: 0;
  border: 1px solid #483727;
  border-radius: 12px;
}
.footer-grid .footer-brand:hover { color: #f4e2c0; }
.day-product > div { min-width: 0; }
.day-product h3 { line-height: 1.2; }
.day-card .quiet { color: #e2d4c2; }
.day-product strong { display: block; margin-top: 10px; }
.day-product img { border-radius: 12px; }
.slider-controls { margin-top: 14px; }
.site-carousel-arrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.category img,
.popular .product img { mix-blend-mode: multiply; }
.category img { pointer-events: none; }
.category b,
.category small { position: relative; z-index: 1; }
.category small { position: absolute; }
.popular .product {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.popular .product img { display: block; width: 100%; aspect-ratio: 1.14; object-fit: contain; }
.popular .product .dark-button,
.popular .product .stock { position: static; }
.popular .product .dark-button { margin-top: 8px; }
.popular .product strong { display: block; margin-right: 0; }
.popular .product .product-status { font-size: 11px; }
.popular .product .in-stock { color: #176b49; }
.popular .catalog-loading-message { grid-column: 1 / -1; }
@media (max-width: 700px) {
  body header .mainnav .brand { gap: 7px; }
  body header .mainnav .brand img { width: 34px; height: 34px; }
  header .brand > span { font-size: 18px; }
  header .brand small { margin-top: 5px; font-size: 5px; }
  .footer-grid .footer-brand { width: 180px; height: 84px; }
}
@media (max-width: 520px) {
  .topbar .topbar-phone { display: none; }
  .day-product { margin-top: 34px; }
  .day-product img { width: 110px; }
  .day-product h3 { font-size: 19px; }
  .day-product strong { font-size: 22px; }
  .popular .product { padding: 12px; }
  .popular .product h3 { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

:root {
  --yps-surface: #fffefc;
  --yps-focus: #8e5e26;
  --yps-cream-gold: linear-gradient(120deg, #f6dfb2, #d8ad70);
  --yps-product-backdrop: radial-gradient(ellipse at 48% 37%, #fffdfa 0%, #f5ecdf 66%, #eadbc7 100%);
}
:where(a, button, input, select, textarea):focus-visible { outline-color: var(--yps-focus); }
header .mainnav,
header .mainnav::before { background: var(--yps-surface); }
header .topbar,
header .topbar .topbar-phone { color: #f0dfc6; }
header .header-actions .icon-button,
header .product-nav a { border-color: #d8cbb9; background-color: var(--yps-surface); }
header .header-actions .icon-button:hover { color: #241911; background: #f3e7d5; }
header .product-nav a:hover,
header .product-nav a.active { background: #211a13; }
.eyebrow, .tiny-label.red, .catalog-loading-message { color: var(--yps-focus); }
.brand-hero {
  color: #fffaf2;
  background: radial-gradient(ellipse at 78% 56%, #7d512a 0%, transparent 46%),
              linear-gradient(130deg, #15100c 16%, #221a12 64%, #3f3021);
  box-shadow: 0 26px 58px #452f231f;
}
.brand-hero h1 span { color: #efd2a0; }
.brand-primary-button--preorder,
.news-card .white-pill { color: #241911; background: var(--yps-cream-gold); }
.brand-primary-button--preorder:hover { background: #ffe3ae; }
.brand-primary-button.brand-primary-button--preorder span { color: inherit; }
.brand-primary-button--preorder:focus-visible { outline-color: #f4d196; }
.category { background: linear-gradient(145deg, var(--yps-surface) 52%, #f5ecdf); }
.popular .product { background-color: var(--yps-surface); }
.day-deadline { border-color: #6a5032; }
footer { color: #f0dfc6; background: #201910; }
footer a:hover { color: #f2c892; }

/* Keep the product families reachable at widths that hide the old desktop rail. */
@media (max-width: 1200px) {
  header .mainnav {
    display: grid;
    grid-template-areas: "brand catalog actions" "families families families";
    grid-template-columns: auto auto minmax(0, 1fr);
    grid-template-rows: 66px auto;
    height: auto;
    padding-bottom: 9px;
  }
  header .mainnav::before { display: none; }
  header .brand { grid-area: brand; }
  header .catalog-button { grid-area: catalog; }
  header .header-actions { grid-area: actions; }
  header .product-nav {
    grid-area: families;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    width: 100%;
  }
  header .product-nav a { padding: 9px 10px; line-height: 1.2; }
}
@media (max-width: 760px) {
  header .mainnav {
    grid-template-areas: "catalog brand actions" "families families families";
    grid-template-columns: 52px minmax(0, 1fr) auto;
    grid-template-rows: 57px auto;
  }
}

.catalog-iphone-series { margin-top: 32px; }
.catalog-iphone-series h3 { margin: 0; font-size: clamp(22px, 3vw, 32px); letter-spacing: -.035em; }
.family-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.family-grid .category b { max-width: 100%; }
@media (max-width: 700px) {
  .family-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
