/* Shared storefront presentation plus product-detail refinements. */
@layer storefront {
/* Shared tokens and component roles live in forma.css; reference rules stay scoped below. */
html { scroll-padding-top: var(--storefront-anchor-offset); }
.service-bar .wrap { min-height: 34px; }
.service-bar, .service-bar a { font-size: var(--type-small); font-weight: 400; }
.hero { min-height: 0; grid-template-columns: .86fr 1.14fr; gap: 24px; padding: 0; }
.hero-copy { padding: 52px 0 28px; }
.hero h1 { font-size: var(--type-hero); line-height: 1.05; letter-spacing: -.04em; font-weight: 550; margin-bottom: 24px; }
.hero-context { font-size: var(--type-small); letter-spacing: .3em; margin-bottom: 24px; }
.hero-copy > p:not(.hero-context) { max-width: 35ch; font-size: var(--type-body); line-height: 1.65; }
.hero-actions { gap: 20px; margin-top: 30px; }
.button { min-height: 56px; border-radius: 10px; font-weight: 500; gap: 15px; }
.button-secondary { background: #f3f4f6; color: var(--ink); }
.button-secondary:hover { background: #e9ebef; }
.hero-note { margin-top: 45px; max-width: 33ch; }
.hero-visual { min-height: 530px; border-radius: 16px; background: #f7f7f7; box-shadow: none; justify-content: flex-start; }
.hero-visual::before { left: 6%; width: 65%; }
.hero-word { top: 0; right: 12%; color: #ebebeb; font-size: 220px; }
.hero-visual > img { width: 68%; height: 440px; margin: 35px 0 0; filter: drop-shadow(0 14px 12px #00000012); }
.hero-caption { left: 68%; right: 20px; bottom: 65px; flex-direction: column; align-items: flex-start; gap: 20px; }
.hero-caption span { color: var(--accent); font-size: var(--type-small); letter-spacing: .25em; margin-bottom: 14px; }
.hero-caption strong { font-size: 21px; line-height: 1.25; }
.hero-caption p { margin: 15px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.round-btn { width: 48px; height: 48px; box-shadow: 0 5px 15px #00000008; }
.advantages { padding: 38px 0 30px; border-top: 0; }
.advantages > div { gap: 22px; font-size: 13px; }
.advantage-icon, .advantage-icon svg { width: 30px; height: 30px; color: var(--ink); }
.section { padding-top: 44px; }
.section + .section { padding-top: 70px; }
.section-heading { margin-bottom: 30px; gap: 20px; }
main:not(.product-page) .section-heading h2 { max-width: none; font-size: var(--type-section); line-height: 1.15; font-weight: 500; letter-spacing: -.045em; }
.section-lede { max-width: none; margin-top: 8px; font-size: 14px; }
.categories { gap: 14px; }
.category { padding: 18px 8px 14px; }
.category-media, .category img { height: 105px; min-height: 0; }
.category h3 { font-size: 14px; }
.category p { font-size: 12px; }
.filter-pills { padding: 5px; }
.filter-pills button { font-size: 12px; padding: 8px 16px; }
.products { gap: 16px; }
.product { background: var(--paper); border-radius: 13px; }
.product-image { height: 225px; border-radius: 0; }
.product-image-link { padding: 28px 30px 8px; }
.product-tag { display: none; }
.product-info { min-height: 180px; padding: 12px 22px 22px; }
.product-name { min-height: 0; font-size: var(--type-card); line-height: 1.3; }
.product-meta { margin: 8px 0 12px; font-size: var(--type-meta); }
.swatches { margin-bottom: 22px; }
.price { font-size: var(--type-price); white-space: nowrap; }
.stock { color: var(--ink-soft); font-size: var(--type-small); margin-top: 10px; }
.stock::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #29b44a; }
.add-button { min-height: 44px; padding: 0 12px; background: var(--accent); color: white; font-size: var(--type-action); font-weight: 500; }
.promo { position: relative; min-height: 320px; margin-top: 30px; grid-template-columns: 40% 42% 18%; background: #eef1f5; }
.promo-copy { padding: 38px 44px; }
.promo h2 { font-size: 42px; font-weight: 500; }
.promo-kicker { margin-top: 12px; text-transform: none; font-size: 14px; letter-spacing: .05em; }
.promo-copy > p:not(.promo-kicker) { margin: 10px 0 16px; line-height: 1.5; }
.promo .button { min-height: 44px; font-size: var(--type-action); }
.promo-image { min-height: 0; overflow: visible; }
.promo-image::before { display: block; content: "Air"; position: absolute; left: -15%; top: -8%; color: #e2e7ef; font-size: 210px; font-style: italic; letter-spacing: -.1em; }
.promo-image img { height: 290px; width: 110%; max-width: none; }
.promo-features { display: flex; flex-direction: column; justify-content: center; gap: 30px; padding: 20px; }
.promo-features span { display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--ink-soft); }
.promo-features svg { flex-shrink: 0; width: 18px; }
.services { margin-top: 42px; padding-bottom: 40px; }
.services .section-heading { margin-bottom: 28px; }
.services .section-heading > p { font-size: 12px; }
.service-grid { gap: 32px; }
.service-grid article { border: 0; padding-top: 0; }
.service-grid h3 { font-size: 14px; margin: 12px 0 6px; }
.service-grid p { font-size: 12px; }
footer, main.product-page + footer { margin-top: 0; }
.footer-main { padding: 34px 0 26px; }
.footer-brand p { margin-top: 14px; font-size: var(--type-small); }
footer h3 { margin-bottom: 10px; }
.footer-bottom { padding-top: 14px; padding-bottom: 20px; font-size: var(--type-small); }
.product-page { padding-top: 24px; }
.product-detail { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 34px; margin-top: 26px; padding-bottom: 44px; align-items: start; }
.product-gallery { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; }
.product-thumb { width: 88px; height: 108px; }
.product-stage { aspect-ratio: .93; border-radius: 12px; }
.product-stage img { width: 96%; height: 96%; }
.product-buy h1 { max-width: none; font-size: 36px; line-height: 1.15; letter-spacing: -.05em; font-weight: 550; margin-bottom: 8px; }
.product-lede { margin-top: 0; font-size: 16px; }
.product-context-row { margin-top: 14px; }
.product-price-row { margin-top: 23px; }
.product-price-row strong { font-size: 42px; }
.product-model-picker { margin-top: 28px; }
.product-model-list { flex-wrap: wrap; }
.product-model-button, .product-option-button { font-size: var(--type-small); }
.product-options { gap: 22px; }
.product-option-button--color > span:last-child { white-space: normal; max-width: 75px; font-size: var(--type-small); }
.product-option-list--colors { flex-wrap: wrap; gap: 14px; }
.product-quantity-row { border: 0; flex-direction: column; align-items: flex-start; gap: 8px; padding: 0; }
.product-actions { margin-top: 26px; grid-template-columns: 1fr 1fr; }
.product-add-button, .product-buy-now { min-height: 58px; font-size: 13px; font-weight: 500; }
.product-action-label--compact { display: none; }
.product-utility-actions { margin-top: 24px; gap: 32px; }
.product-utility-actions button { font-size: 12px; }
.product-selected-variant { font-size: var(--type-small); }
.product-service-strip { display: block; }
.product-service-strip-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-service-strip-inner > div { min-height: 100px; padding: 20px 24px; }
.product-details { margin-top: 52px; padding-bottom: 42px; }
.product-section-heading h2, .product-specifications .product-section-heading h2, .product-related .section-heading h2 { font-size: var(--type-section); font-weight: 500; letter-spacing: -.045em; }
.product-highlight { background: var(--paper); border: 0; padding: 16px; }
.product-highlight-media { border-radius: 8px; height: 155px; background: #ededed; }
.product-highlight h3, .product-highlight p { margin-left: 0; margin-right: 0; }
.product-highlight h3 { font-size: 16px; overflow-wrap: anywhere; }
.product-highlight p { font-size: 12px; }
.product-specifications { margin-top: 44px; }
.product-specs-grid { padding: 18px 26px; }
.product-specs-grid > div { font-size: 12px; }
.product-related { padding-bottom: 48px; }
.related-product-image { height: 155px; }
.related-product strong { font-size: 15px; }
.related-product-description { font-size: 12px; }
.related-product-purchase b { font-size: 18px; }
@media (max-width: 1100px) {
  .hero h1 { font-size: var(--type-hero); }
  .hero-visual { min-height: 430px; }
  .hero-visual > img { height: 340px; }
  .hero-caption { right: 12px; bottom: 40px; }
  .hero-caption strong { font-size: 16px; }
  .hero-copy > p:not(.hero-context) { font-size: var(--type-body); }
  .hero-actions { gap: 10px; }
  .hero-actions .button { font-size: 12px; padding: 0 14px; }
  main:not(.product-page) .section-heading h2 { font-size: var(--type-section); }
  .product-info { padding: 12px 14px 18px; }
  .purchase { gap: 8px; flex-wrap: wrap; }
  .product-image { height: 190px; }
  .product-name { font-size: var(--type-card); }
  .price { font-size: var(--type-price); }
  .promo-copy { padding: 28px; }
  .promo h2 { font-size: var(--type-section); }
  .promo-features { padding: 10px; }
  .product-gallery { grid-template-columns: 60px minmax(0, 1fr); gap: 10px; }
  .product-thumb { width: 60px; height: 78px; }
  .product-buy h1 { font-size: 32px; }
  .product-detail { gap: 28px; }
  .product-service-strip-inner > div { padding: 16px; }
}
@media (max-width: 760px) {
  .header { height: 66px; }
  .hero { grid-template-columns: 1fr; gap: 22px; }
  .hero-copy { padding: 30px 0 0; }
  .hero h1 { font-size: var(--type-hero); }
  .hero-context { font-size: var(--type-small); letter-spacing: .22em; margin-bottom: 18px; }
  .hero-copy > p:not(.hero-context) { font-size: var(--type-body); }
  .hero-actions { width: 100%; margin-top: 24px; gap: 12px; }
  .hero-actions .button { flex: 1; min-height: 50px; }
  .hero-note { margin-top: 22px; }
  .hero-visual { min-height: 330px; }
  .hero-visual > img { width: 67%; height: 290px; margin-top: 16px; }
  .hero-word { font-size: 145px; }
  .hero-caption { left: 66%; bottom: 35px; gap: 14px; }
  .hero-caption strong { font-size: 17px; }
  .hero-caption p { font-size: var(--type-small); margin-top: 10px; }
  .hero-caption span { font-size: var(--type-small); }
  .round-btn { width: 40px; height: 40px; }
  .advantages { padding: 26px 0; gap: 20px; grid-template-columns: 1fr 1fr; }
  .advantages > div { font-size: var(--type-small); gap: 12px; }
  .advantage-icon, .advantage-icon svg { width: 24px; height: 24px; }
  .section, .section + .section { padding-top: 38px; }
  main:not(.product-page) .section-heading h2 { font-size: var(--type-section); }
  .section-heading { margin-bottom: 20px; }
  .section-lede { font-size: 12px; }
  .categories { grid-template-columns: repeat(8, 112px); overflow-x: auto; gap: 10px; padding-bottom: 8px; }
  .category { padding: 12px 6px; }
  .category-media, .category img { height: 85px; }
  .category h3 { font-size: 12px; }
  .category p { font-size: var(--type-small); }
  .products { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-image { height: 160px; }
  .product-image-link { padding: 20px 16px 4px; }
  .product-info { min-height: 190px; padding: 12px; }
  .product-name { font-size: var(--type-card); min-height: 34px; }
  .product-meta { font-size: var(--type-small); }
  .swatches { margin-bottom: 14px; }
  .purchase { align-items: stretch; gap: 10px; }
  .price { font-size: var(--type-price); }
  .add-button { min-height: 40px; width: 100%; }
  .promo { margin-top: 26px; grid-template-columns: 1fr; }
  .promo-copy { padding: 28px 26px 0; }
  .promo h2 { font-size: var(--type-section); }
  .promo-image { height: 220px; }
  .promo-image img { width: 85%; height: 220px; }
  .promo-image::before { font-size: 170px; left: 8%; }
  .promo-features { flex-direction: row; justify-content: space-between; gap: 12px; padding: 16px 22px 24px; }
  .promo-features span { font-size: var(--type-small); gap: 7px; }
  .services { margin-top: 36px; padding-top: 0; }
  .service-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .service-grid h3 { font-size: 13px; }
  .service-grid p { font-size: var(--type-small); }
  .footer-main { padding: 30px 0; gap: 28px; }
  .product-detail { gap: 28px; }
  .product-gallery { grid-template-columns: 54px minmax(0, 1fr); }
  .product-thumb { width: 54px; height: 65px; }
  .product-buy h1 { font-size: 32px; }
  .product-context-row { flex-direction: row; }
  .product-lede { font-size: 14px; }
  .product-price-row strong { font-size: 36px; }
  .product-actions { grid-template-columns: 1fr 1fr; gap: 8px; }
  .product-add-button, .product-buy-now { font-size: var(--type-small); min-height: 52px; }
  .product-service-strip-inner > div { padding: 14px; min-height: 85px; }
  .product-details { margin-top: 36px; padding-bottom: 32px; }
  .product-section-heading h2, .product-specifications .product-section-heading h2, .product-related .section-heading h2 { font-size: var(--type-section); }
  .product-highlight { padding: 12px; }
  .product-highlight-media { height: 110px; }
  .product-highlight h3 { font-size: 13px; }
  .product-highlight p { font-size: var(--type-small); }
  .product-specs-grid { padding: 12px; }
  .product-specs-grid > div { font-size: var(--type-small); }
  .related-product strong { font-size: 13px; }
  .related-product-description { font-size: var(--type-small); }
  .related-product-image { height: 135px; }
}
/* Extra categories remain in the same horizontal rail. */
.categories { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 98px) / 8); overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.category { scroll-snap-align: start; }
.section.services { padding-top: 0; }
.product-stage img { width: 82%; height: 82%; }
.product-highlight-media { overflow: hidden; }
.product-highlight-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-highlight:first-child .product-highlight-media img { transform: scale(1.65); transform-origin: 35% 15%; }
@media (max-width: 760px) {
  .categories { grid-auto-columns: 112px; }
}
@media (max-width: 760px) {
  .hero-actions { flex-direction: row; align-items: stretch; }
  .hero-actions .button { min-width: 0; gap: 8px; padding: 0 10px; font-size: var(--type-action); }
  .hero-visual > img { padding: 16px 8px; }
}

/* Same roles use the same metrics across the catalog and detail templates. */
.section-heading, .product-section-heading { align-items: center; gap: 24px; margin-bottom: 24px; }
.section-heading h2, .product-section-heading h2 { max-width: none; font-size: var(--type-section); line-height: 1.2; letter-spacing: -.04em; font-weight: 550; }
.section-heading > div { min-width: 0; }
#popular .section-heading { flex-wrap: wrap; align-items: flex-start; }
#popular .section-heading > div { flex: 1 1 100%; }
#popular .filter-pills { max-width: 100%; min-width: 0; overflow-x: auto; }
.section-lede, .product-lede { line-height: 1.5; }
.section + .section { padding-top: var(--section-gap); }
.hero { align-items: center; }
.hero-copy { padding: 32px 0; }
.hero-visual { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: center; padding: 24px; min-height: 490px; }
.hero-visual > img { width: 100%; height: 410px; margin: 0; }
.hero-caption { position: relative; inset: auto; padding-left: 12px; gap: 20px; }
.hero-caption strong { overflow-wrap: anywhere; }
.product-info { gap: 0; }
.product-name, .related-product strong { font-size: var(--type-card); min-height: 2.6em; line-height: 1.3; white-space: normal; overflow: visible; letter-spacing: -.025em; }
.product-meta, .related-product-description { font-size: var(--type-small); line-height: 1.5; }
.price, .related-product-purchase b { font-size: var(--type-price); line-height: 1.2; }
.product-image { height: 240px; }
.purchase { align-items: center; }
.add-button, .related-add { min-height: 44px; font-size: var(--type-action); }
.product-model-picker h2, .product-option legend, .product-quantity-row { font-size: 13px; color: var(--ink); }
.product-model-button, .product-option-button { min-height: 44px; font-size: 12px; font-weight: 500; }
.product-option-button--color { min-height: 72px; }
.product-context-row { flex-wrap: wrap; line-height: 1.5; }
.product-buy { min-width: 0; }
.product-gallery { align-self: start; }
.product-stage { aspect-ratio: 1; }
.product-service-strip strong { font-size: 13px; white-space: normal; }
.product-service-strip small { font-size: 12px; }
.product-selected-variant { overflow-wrap: anywhere; }
.product-related-grid { align-items: stretch; }
.related-product { display: flex; flex-direction: column; }
.related-product-purchase { margin-top: auto; padding-top: 16px; }
.related-product-image { height: 190px; }
.product-utility-actions button { min-height: 44px; }
.footer-main .footer-link { display: flex; width: fit-content; min-height: 24px; }
.footer-main > div > a:not(.logo) { display: flex; align-items: center; gap: 8px; }
.footer-nav { display: grid; gap: 2px; }
.footer-nav a,
.footer-main .footer-contact > a { display: flex; min-height: 30px; align-items: center; gap: 8px; margin: 0; }
.footer-bottom { gap: 24px; flex-wrap: wrap; }
@media (max-width: 1100px) {
  .hero-visual { min-height: 410px; padding: 16px; }
  .hero-visual > img { height: 340px; }
  .hero-caption { padding-left: 8px; }
  .hero-caption strong { font-size: 18px; }
  .product-image { height: 200px; }
  .product-name, .related-product strong { font-size: 15px; }
  .purchase { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .section-heading, .product-section-heading { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-copy { padding: 24px 0 0; }
  .hero-visual { min-height: 310px; padding: 12px; }
  .hero-visual > img { height: 280px; padding: 0; }
  .hero-caption { padding-left: 8px; }
  .hero-caption strong { font-size: 16px; }
  .hero-caption p { font-size: 12px; }
  .hero-caption span { font-size: 10px; letter-spacing: .12em; }
  .hero-context { font-size: 10px; }
  .product-image { height: 170px; }
  .product-name, .related-product strong { font-size: var(--type-card); }
  .product-info { min-height: 210px; }
  .product-actions { grid-template-columns: 1fr; }
  .product-add-button, .product-buy-now { font-size: 14px; }
  .product-service-strip-inner { grid-template-columns: 1fr 1fr; }
  .related-product-image { height: 150px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-main > div { order: initial; }
  .footer-main .footer-contact > a { min-height: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 760px) {
  .product-price-row { flex-direction: row; align-items: center; flex-wrap: wrap; }
}
@media (min-width: 761px) {
  .product-page .product-gallery {
    position: sticky;
    top: 100px;
  }
}

/* Product detail hierarchy: the mobile path follows the customer's decision. */
.storefront-product .product-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.storefront-product .product-title-row > h1 {
  min-width: 0;
  flex: 1 1 auto;
}

.storefront-product .product-title-row .product-utility-actions {
  position: static;
  flex: 0 0 auto;
  margin-top: 0;
}

.storefront-product .product-selection {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.storefront-product .product-selection-title {
  margin: 0 0 16px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.storefront-product .product-model-picker {
  margin-top: 0;
}

.storefront-product .product-model-picker h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: -.02em;
  line-height: 1.25;
}

@media (max-width: 760px) {
  .storefront-product .product-page {
    padding-top: 16px;
  }

  .storefront-product .breadcrumbs {
    max-width: 100%;
    padding-bottom: 2px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    white-space: nowrap;
  }

  .storefront-product .product-detail {
    gap: 0;
    margin-top: 16px;
    padding-bottom: 28px;
  }

  .storefront-product .product-gallery {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .storefront-product .product-stage {
    width: 100%;
    aspect-ratio: 1.58;
    border-radius: 16px;
    order: 1;
  }

  .storefront-product .product-stage img {
    width: 86%;
    height: 86%;
    object-fit: contain;
  }

  .storefront-product .product-thumbnails {
    display: flex;
    width: 100%;
    order: 2;
    gap: 8px;
    padding: 0 0 3px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  .storefront-product .product-thumb {
    width: 62px;
    height: 54px;
    flex: 0 0 62px;
    padding: 5px;
    border-radius: 9px;
  }

  .storefront-product .product-buy {
    display: block;
    position: relative;
    padding-top: 30px;
  }

  .storefront-product .product-category,
  .storefront-product .product-type {
    display: none;
  }

  .storefront-product .product-title-row {
    display: block;
  }

  .storefront-product .product-buy h1 {
    max-width: none;
    margin: 0;
    font-size: clamp(2rem, 8.8vw, 2.35rem);
    line-height: 1;
  }

  .storefront-product .product-title-row .product-utility-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
  }

  .storefront-product .product-utility-actions button {
    display: inline-flex;
    width: auto;
    height: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
  }

  .storefront-product .product-utility-actions button span {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
    border: 0;
  }

  .storefront-product .product-utility-actions button svg,
  .storefront-product .product-utility-actions button i[data-lucide] {
    width: 15px;
    height: 15px;
  }

  .storefront-product .product-lede {
    max-width: 34ch;
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.5;
  }

  .storefront-product .product-price-row {
    gap: 12px;
    margin-top: 18px;
  }

  .storefront-product .product-price-row strong {
    font-size: clamp(2rem, 9vw, 2.35rem);
    letter-spacing: -.06em;
  }

  .storefront-product .product-stock {
    align-items: flex-start;
    gap: 6px;
    padding: 0;
    background: transparent;
    font-size: 11px;
    line-height: 1.2;
  }

  .storefront-product .product-stock > span:last-child {
    display: grid;
    gap: 1px;
  }

  .storefront-product .product-stock small {
    color: #5e8a6a;
    font-size: 10px;
    line-height: 1.2;
  }

  .storefront-product .product-selection {
    margin-top: 28px;
    padding-top: 20px;
  }

  .storefront-product .product-selection-title {
    margin-bottom: 18px;
    font-size: 20px;
  }

  .storefront-product .product-model-picker h3 {
    margin-bottom: 10px;
    font-size: 14px;
  }

  .storefront-product .product-model-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .storefront-product .product-model-button {
    width: 100%;
    min-height: 46px;
    padding: 0 8px;
    font-size: 11px;
    line-height: 1.2;
    white-space: normal;
  }

  .storefront-product .product-model-button:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .storefront-product .product-options {
    display: grid;
    gap: 0;
    margin-top: 18px;
  }

  .storefront-product .product-selection .product-option,
  .storefront-product .product-selection .product-option + .product-option {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
  }

  .storefront-product .product-selection .product-option legend,
  .storefront-product .product-selection .product-option + .product-option legend {
    display: flex;
    width: 100%;
    float: none;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    font-size: 14px;
    line-height: 20px;
  }

  .storefront-product .product-option-selected-value {
    max-width: 62%;
    color: var(--muted);
    font-size: 13px;
    font-weight: 550;
    text-align: right;
  }

  .storefront-product .product-selection .product-option-list,
  .storefront-product .product-selection .product-option + .product-option .product-option-list {
    display: flex;
    min-width: 0;
    flex: initial;
    flex-wrap: wrap;
    gap: 8px;
    clear: none;
    overflow: visible;
  }

  .storefront-product .product-selection .product-option-list--colors {
    flex-wrap: wrap;
    gap: 10px;
  }

  .storefront-product .product-option-button--color,
  .storefront-product .product-option-button--color.is-selected,
  .storefront-product .product-option-button--color:hover:not(:disabled) {
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0;
    border-color: transparent;
    border-radius: 50%;
    background: transparent;
    color: var(--ink-soft);
    font-size: 0;
  }

  .storefront-product .product-option-button--color.is-selected {
    border-color: var(--accent);
    background: var(--accent-soft);
  }

  .storefront-product .product-option-button--color .product-color {
    width: 32px;
    height: 32px;
  }

  .storefront-product .product-option-button--color > span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .storefront-product .product-option-button:not(.product-option-button--color) {
    min-height: 44px;
    padding: 0 14px;
    font-size: 12px;
    white-space: nowrap;
  }

  .storefront-product .product-selection .product-quantity-row {
    min-height: 60px;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 12px;
    margin-top: 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--line);
    font-size: 13px;
  }

  .storefront-product .product-quantity {
    min-width: 120px;
    height: 44px;
  }

  .storefront-product .product-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
    margin: 18px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .storefront-product .product-add-button,
  .storefront-product .product-buy-now {
    min-height: 50px;
    border-radius: 10px;
    font-size: 14px;
  }

  .storefront-product .product-buy-now {
    min-height: 38px;
    background: transparent;
    box-shadow: none;
    color: var(--accent-dark);
    font-size: 12px;
  }

  .storefront-product .product-buy-now:hover,
  .storefront-product .product-buy-now:focus-visible {
    background: transparent;
    box-shadow: none;
  }

  .storefront-product .product-action-label--full {
    display: inline;
  }

  .storefront-product .product-action-label--compact {
    display: none;
  }

  .storefront-product .product-service-strip {
    margin-top: 0;
    border-radius: 14px;
  }

  .storefront-product .product-service-strip-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .storefront-product .product-service-strip-inner > div {
    min-height: 68px;
    gap: 9px;
    padding: 12px;
  }

  .storefront-product .product-service-strip-inner > div > svg,
  .storefront-product .product-service-strip-inner > div > i[data-lucide] {
    width: 18px;
    height: 18px;
  }

  .storefront-product .product-service-strip strong {
    font-size: 12px;
    line-height: 1.25;
  }

  .storefront-product .product-service-strip small {
    font-size: 10px;
    line-height: 1.25;
  }

  .storefront-product .product-details {
    margin-top: 30px;
    padding-bottom: 34px;
  }

  .storefront-product .product-section-heading {
    align-items: flex-end;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin-bottom: 18px;
  }

  .storefront-product .product-section-heading h2 {
    font-size: clamp(1.85rem, 8.5vw, 2.3rem);
    line-height: 1;
  }

  .storefront-product .product-section-heading > div {
    min-width: 0;
    flex: 1 1 220px;
  }

  .storefront-product .product-section-heading .text-link {
    font-size: 12px;
  }

  .storefront-product .product-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .storefront-product .product-highlight {
    border: 0;
    border-radius: 14px;
    background: var(--paper);
    padding: 10px;
  }

  .storefront-product .product-highlight-media {
    height: auto;
    aspect-ratio: 215 / 132;
    border-radius: 10px;
  }

  .storefront-product .product-highlight-media img {
    object-fit: cover;
    mix-blend-mode: normal;
  }

  .storefront-product .product-highlight h3,
  .storefront-product .product-highlight p {
    margin-right: 2px;
    margin-left: 2px;
  }

  .storefront-product .product-highlight h3 {
    min-height: 34px;
    margin-top: 12px;
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.2;
    overflow-wrap: normal;
    word-break: normal;
  }

  .storefront-product .product-highlight p {
    min-height: 0;
    margin-bottom: 2px;
    font-size: 11px;
    line-height: 1.35;
  }

  .storefront-product .product-specifications {
    margin-top: 34px;
  }

  .storefront-product .product-specifications .product-section-heading {
    margin-bottom: 14px;
  }

  .storefront-product .product-specifications .product-section-heading h2 {
    font-size: clamp(1.75rem, 8vw, 2.1rem);
  }

  .storefront-product .product-specs-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    padding: 4px 12px;
    border-radius: 14px;
  }

  .storefront-product .product-specs-grid > div,
  .storefront-product .product-specs-grid > div:nth-last-child(-n + 2) {
    grid-template-columns: minmax(90px, .72fr) minmax(0, 1.28fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    line-height: 1.35;
  }

  .storefront-product .product-specs-grid > div:last-child {
    border-bottom: 0;
  }

  .storefront-product .product-related {
    padding-bottom: 44px;
  }

  .storefront-product .product-related .section-heading {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin-bottom: 18px;
  }

  .storefront-product .product-related .section-heading > div {
    flex: 1 1 220px;
  }

  .storefront-product .product-related .section-heading h2 {
    font-size: clamp(1.85rem, 8.5vw, 2.3rem);
  }

  .storefront-product .product-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 11px;
  }

  .storefront-product .related-product-image {
    height: auto;
    aspect-ratio: 212 / 132;
    margin-bottom: 8px;
  }

  .storefront-product .related-product strong {
    font-size: 14px;
    line-height: 1.25;
  }

  .storefront-product .related-product-link > span:not(.related-product-image) {
    font-size: 11px;
  }

  .storefront-product .related-product-purchase {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 10px;
  }

  .storefront-product .related-product-purchase b {
    font-size: 18px;
  }

  .storefront-product main.product-page + footer {
    margin-top: 24px;
  }
}

@media (max-width: 360px) {
  .storefront-product .product-buy h1 {
    font-size: 2rem;
  }

  .storefront-product .product-highlight h3 {
    font-size: 12px;
  }

  .storefront-product .product-utility-actions button {
    padding-right: 10px;
    padding-left: 10px;
  }

  .storefront-product .product-action-label--full {
    display: inline;
  }

  .storefront-product .product-action-label--compact {
    display: none;
  }
}

@media (min-width: 761px) and (max-width: 1023px) {
  .storefront-product .product-detail {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .storefront-product .product-gallery {
    position: static;
    width: min(100%, 760px);
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
  }

  .storefront-product .product-stage {
    width: 100%;
    max-width: 560px;
    aspect-ratio: 1;
    justify-self: center;
  }

  .storefront-product .product-buy {
    width: min(100%, 760px);
    padding-top: 0;
  }

  .storefront-product .product-title-row {
    gap: 32px;
  }

  .storefront-product .product-title-row > h1 {
    max-width: none;
  }

  .storefront-product .product-selection,
  .storefront-product .product-actions {
    max-width: 700px;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .storefront-product .product-title-row {
    display: block;
  }

  .storefront-product .product-title-row .product-utility-actions {
    margin-top: 12px;
  }
}

/* Keep availability text quiet and centered with the price at every desktop width. */
@media (min-width: 761px) {
  .storefront-product .product-price-row {
    align-items: center;
  }

  .storefront-product .product-stock {
    align-items: center;
    gap: 6px;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    font-size: 11px;
    line-height: 1.2;
  }
}

/* Desktop density: keep the complete purchase path inside a short viewport. */
@media (min-width: 1024px) {
  .storefront-product .product-page {
    padding-top: 18px;
  }

  .storefront-product .product-detail {
    gap: 28px;
    margin-top: 18px;
    padding-bottom: 28px;
  }

  .storefront-product .product-gallery {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
  }

  .storefront-product .product-thumb {
    width: 76px;
    height: 92px;
  }

  .storefront-product .product-stage {
    width: min(100%, 520px);
    justify-self: center;
  }

  .storefront-product .product-category {
    margin-bottom: 6px;
  }

  .storefront-product .product-type {
    margin-bottom: 8px;
  }

  .storefront-product .product-utility-actions {
    gap: 24px;
  }

  .storefront-product .product-utility-actions button {
    min-height: 40px;
  }

  .storefront-product .product-lede {
    font-size: 15px;
    line-height: 1.4;
  }

  .storefront-product .product-price-row {
    margin-top: 16px;
  }

  .storefront-product .product-price-row strong {
    font-size: 40px;
  }

  .storefront-product .product-selection {
    margin-top: 20px;
    padding-top: 16px;
  }

  .storefront-product .product-selection-title {
    margin-bottom: 12px;
    font-size: 17px;
  }

  .storefront-product .product-model-picker h3 {
    margin-bottom: 6px;
    font-size: 12px;
  }

  .storefront-product .product-model-list {
    gap: 4px;
  }

  .storefront-product .product-model-button {
    min-height: 40px;
    padding-right: 8px;
    padding-left: 8px;
    font-size: 11px;
  }

  .storefront-product .product-options {
    gap: 14px;
    margin-top: 14px;
  }

  .storefront-product .product-option-button {
    min-height: 40px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .storefront-product .product-option-button--color {
    min-height: 64px;
    gap: 4px;
    padding: 6px 8px;
  }

  .storefront-product .product-option-button--color > span:last-child {
    font-size: 11px;
    line-height: 1.2;
  }

  .storefront-product .product-option-list--colors {
    gap: 10px;
  }

  .storefront-product .product-selection .product-quantity-row {
    min-height: 56px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--line);
  }

  .storefront-product .product-quantity {
    height: 40px;
  }

  .storefront-product .product-actions {
    margin-top: 16px;
  }

  .storefront-product .product-add-button,
  .storefront-product .product-buy-now {
    min-height: 50px;
  }
}

/* Desktop gallery rhythm: let the gallery and purchase panel share one baseline. */
@media (min-width: 1024px) {
  .storefront-product .product-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .storefront-product .product-stage {
    order: 1;
    align-self: center;
  }

  .storefront-product .product-thumbnails {
    display: flex;
    order: 2;
    width: min(100%, 520px);
    height: 92px;
    flex: 0 0 92px;
    gap: 12px;
    overflow-x: auto;
  }

  .storefront-product .product-thumb {
    flex: 0 0 76px;
  }

  .storefront-product .product-selection .product-quantity-row {
    margin-top: 14px;
  }
}

@media (min-width: 1200px) {
  .storefront-product .product-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 14px;
  }

  .storefront-product .product-options .product-option:first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .storefront-product .product-actions {
    margin-top: 10px;
  }
}

/* Related products reuse the complete catalog card and its managed media. */
.storefront-product .product-related-grid {
  column-gap: 12px;
}

.storefront-product .product-related-grid .product {
  overflow: hidden;
  border-radius: 10px;
  background: var(--paper);
}

.storefront-product .product-related-grid .product-image {
  height: 226px;
  border-radius: 0;
  background: var(--paper);
}

.storefront-product .product-related-grid .product-image-link {
  padding: 22px 24px 8px;
}

.storefront-product .product-related-grid .product-image img {
  object-fit: contain;
}

.storefront-product .product-related-grid .product-tag,
.storefront-product .product-related-grid .product-taxonomy {
  display: none;
}

.storefront-product .product-related-grid .product-image .favorite {
  top: 8px;
  right: 8px;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
}

.storefront-product .product-related-grid .product-info {
  min-height: 155px;
  padding: 12px 16px 16px;
}

.storefront-product .product-related-grid .product-name {
  min-height: 0;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.25;
}

.storefront-product .product-related-grid .product-meta {
  min-height: 0;
  margin: 7px 0 0;
  font-size: 10px;
}

.storefront-product .product-related-grid .swatches {
  height: 22px;
  margin: 10px 0 15px;
}

.storefront-product .product-related-grid .purchase {
  align-items: stretch;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.storefront-product .product-related-grid .price {
  font-size: 20px;
}

.storefront-product .product-related-grid .add-button {
  width: 100%;
  min-height: 38px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 650;
}

@media (min-width: 761px) and (max-width: 1100px) {
  .storefront-product .product-related-grid .product-image {
    height: 205px;
  }

  .storefront-product .product-related-grid .product-info {
    padding-right: 13px;
    padding-left: 13px;
  }
}

@media (max-width: 760px) {
  .storefront-product .product-related-grid {
    column-gap: 10px;
    row-gap: 24px;
  }

  .storefront-product .product-related-grid .product {
    border-radius: 9px;
  }

  .storefront-product .product-related-grid .product-image {
    height: 165px;
  }

  .storefront-product .product-related-grid .product-image-link {
    padding: 16px 12px 5px;
  }

  .storefront-product .product-related-grid .product-image .favorite {
    top: 4px;
    right: 4px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .storefront-product .product-related-grid .product-info {
    min-height: 142px;
    padding: 10px 11px 11px;
  }

  .storefront-product .product-related-grid .product-name {
    font-size: 12px;
    line-height: 1.25;
  }

  .storefront-product .product-related-grid .product-meta {
    margin-top: 5px;
    font-size: 9px;
  }

  .storefront-product .product-related-grid .swatches {
    min-height: 40px;
    height: auto;
    align-content: flex-start;
    flex-wrap: wrap;
    margin: 8px 0 11px;
  }

  .storefront-product .product-related-grid .price {
    font-size: 17px;
  }

  .storefront-product .product-related-grid .purchase {
    gap: 9px;
  }

  .storefront-product .product-related-grid .add-button {
    min-height: 34px;
    padding: 0 7px;
    font-size: 10px;
  }
}

}
