/* Four generous product portraits, with the information outside the image. */
.storefront-home .store-products-section {
  padding: clamp(5rem, 8vw, 7rem) 0;
  background: #fbfaf8;
  scroll-margin-top: 2rem;
}
.store-products-section > .container {
  max-width: 1440px;
  padding-inline: clamp(4rem, 5.2vw, 5rem);
}
.store-products-section .store-section-head {
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(2rem, 3vw, 2.75rem);
}
.storefront-home .store-products-section .store-section-head h2 {
  font-size: clamp(2.8rem, 4.4vw, 4rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.045em;
  color: #151515;
}
.store-products-section .store-section-head p { margin-top: .8rem; color: #6f6d69; font-size: clamp(1rem, 1.25vw, 1.125rem); line-height: 1.55; }
.store-products-section .store-text-link { white-space: nowrap; font-size: .875rem; font-weight: 450; }
.featured-carousel { position: relative; }
.store-products-section .featured-track {
  --featured-gap: 1.5rem;
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * var(--featured-gap)) / 4);
  gap: var(--featured-gap);
  position: relative;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: .3rem;
  border-radius: 0;
}
.featured-track::-webkit-scrollbar { display: none; }
.store-products-section .store-product-card {
  --featured-image-scale: 1;
  min-width: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  scroll-snap-align: start;
  box-shadow: none;
  transform: none;
}
.store-products-section .store-product-card:hover { transform: none; box-shadow: none; }
.store-products-section .store-product-card[data-product-id="iphone-18-pro-max"] { --featured-image-scale: 1.15; }
.store-products-section .store-product-card[data-product-id="iphone-15-pro-max"] { --featured-image-scale: 1; }
.store-products-section .store-product-image {
  display: block;
  position: relative;
  height: auto;
  aspect-ratio: 1 / 1.08;
  padding: 0;
  background: #f3f4f6;
  border-radius: 13px;
  overflow: hidden;
}
.store-products-section .store-product-image img {
  position: absolute;
  inset: 1.1rem;
  width: calc(100% - 2.2rem);
  height: calc(100% - 2.2rem);
  object-fit: contain;
  mix-blend-mode: normal;
  transform: scale(var(--featured-image-scale));
  transition: transform 450ms cubic-bezier(.22, 1, .36, 1);
}
.store-products-section .store-product-info {
  display: flex;
  flex-direction: column;
  padding: 1.3rem .15rem 0;
  gap: .35rem;
  align-items: flex-start;
  flex: 1;
}
.store-products-section .store-product-info h3 {
  min-height: 2.6em;
  margin: 0;
  font-size: clamp(1.0625rem, 1.5vw, 1.375rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.025em;
}
.store-product-info h3 a { color: #191919; }
.store-products-section .store-product-info .featured-specs {
  margin: 0;
  font-size: .875rem;
  line-height: 1.5;
  color: #7a7a75;
  min-height: 2.65em;
}
.store-products-section .store-product-info .featured-price {
  margin: auto 0 0;
  color: #191919;
  font-size: 1.1875rem;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.4;
  font-variant-numeric: lining-nums tabular-nums;
  min-height: 1.75rem;
  display: flex;
  align-items: center;
}
.store-products-section .store-product-info .featured-price--pending { font-size: .9375rem; color: #71716c; }
.store-products-section .store-product-actions {
  display: block;
  margin-top: 1rem;
}
.featured-buy {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  min-width: 112px;
  padding: .7rem 1.4rem;
  border: 1px solid var(--accent-color);
  border-radius: 999px;
  background: var(--accent-color);
  color: #fff;
  font-size: .8125rem;
  font-weight: 550;
  line-height: 1.3;
  transition: background-color 180ms ease, border-color 180ms ease;
}
.featured-buy:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.featured-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  margin-top: 2rem;
}
.featured-controls[hidden] { display: none; }
.featured-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--accent-color);
  border-radius: 50%;
  background: var(--accent-color);
  color: #fff;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.featured-arrow svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.featured-arrow:disabled { color: #fff; opacity: .35; cursor: default; }
.featured-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .1rem; }
.featured-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 36px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.featured-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #d7d7d2;
  transition: width 220ms ease, background-color 220ms ease;
}
.featured-dot[aria-current="true"]::before { width: 20px; background: var(--accent-color); }
.featured-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.featured-track > .store-loading { grid-column: 1 / -1; }
.featured-arrow:focus-visible, .featured-dot:focus-visible,
.featured-track:focus-visible, .featured-buy:focus-visible,
.store-product-image:focus-visible, .store-product-info h3 a:focus-visible {
  outline: 2px solid #0071e3;
  outline-offset: 3px;
}
@media (min-width: 1024px) {
  .featured-arrow { position: absolute; top: clamp(7rem, 11vw, 10rem); transform: translateY(-50%); }
  .featured-prev { left: -57px; }
  .featured-next { right: -57px; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .featured-arrow:not(:disabled):hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
}
@media (max-width: 1023px) {
  .store-products-section > .container { padding-inline: 1.75rem; }
  .store-products-section .featured-track { grid-auto-columns: calc((100% - var(--featured-gap)) / 2); }
}
@media (max-width: 768px) {
  .store-products-section > .container { padding-inline: 1.25rem; }
  .store-products-section .store-section-head { gap: .75rem; align-items: flex-start; }
  .storefront-home .store-products-section .store-section-head h2 { font-size: clamp(2.25rem, 6vw, 2.75rem); }
  .store-products-section .store-section-head p { font-size: .875rem; }
  .store-products-section .store-text-link { font-size: .8125rem; }
  .store-products-section .featured-track { --featured-gap: 1rem; }
}
@media (max-width: 520px) {
  .store-products-section .featured-track { grid-auto-columns: 85%; }
  .store-products-section .store-product-image { aspect-ratio: 1 / 1.05; }
  .store-products-section .store-product-info h3 { font-size: 1.375rem; }
  .featured-controls { gap: .3rem; }
  .featured-pagination { gap: 0; }
  .featured-dot { width: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .featured-buy, .featured-arrow, .featured-dot::before { transition: none; }
}
