/* Storefront overrides are kept separate from the academy landing page. */
.store-html { overflow-x: clip; }
.store-page-body { overflow-x: clip; background: var(--paper); }
.store-page-body .site-header { background: #090909; border-bottom-color: var(--line); }
.store-page-body .site-footer { background: var(--black); }
.store-page-main .container { width: min(calc(100% - 32px), 1480px); }
.store-page-main .store-section { padding-block: 24px 64px; background: var(--paper); }
.store-back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 20px; color: var(--ink-muted); font-size: .78rem; font-weight: 600; }
.store-back span { font-size: 1.1rem; }
.store-back:hover { color: var(--black); }
.store-heading { display: grid; gap: 20px; max-width: none; margin-bottom: 28px; }
.store-heading > div { max-width: none; }
.store-heading .eyebrow { margin-bottom: 16px; font-size: .65rem; letter-spacing: .13em; }
.store-page-main .store-section h1 { max-width: 900px; font-size: clamp(3.3rem, 11.5vw, 7rem); line-height: .92; letter-spacing: -.01em; text-wrap: initial; }
.store-heading h1 em { display: block; color: #71716b; font-weight: inherit; }
.store-section .store-heading > p:last-child { max-width: 430px; margin: 0; color: var(--ink-muted); font-size: .95rem; line-height: 1.7; }
.store-page-main .store-field textarea { min-height: 68px; }
.store-catalog-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; margin-bottom: 22px; }
.store-category-tabs { display: grid; width: 100%; max-width: 560px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin: 0; padding: 5px; background: #e6e4de; border-color: transparent; }
.store-category-tab { display: flex; min-width: 0; min-height: 46px; align-items: center; justify-content: center; gap: 8px; padding: 9px 10px; font-size: .72rem; letter-spacing: .015em; text-transform: none; }
.store-category-tab > span { display: grid; min-width: 22px; height: 22px; padding-inline: 4px; place-items: center; border-radius: 50%; background: rgba(9,9,9,.08); font-size: .66rem; }
.store-category-tab.is-active > span { background: rgba(255,255,255,.18); }
.store-catalog-note { margin: 0; color: var(--ink-muted); font-size: .74rem; line-height: 1.5; }
.store-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
.store-products { display: block; min-width: 0; }
.store-products-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.store-product-group { display: grid; gap: 14px; margin-bottom: 30px; }
.store-product-group:last-child { margin-bottom: 0; }
.store-product-group-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 11px; border-bottom: 1px solid #d9d8d1; }
.store-product-group-heading h2 { margin: 0; color: #272823; font-size: .93rem; font-weight: 750; letter-spacing: .1em; line-height: 1.25; text-transform: uppercase; }
.store-product-group-heading > span { flex: 0 0 auto; color: #73746c; font-size: .68rem; line-height: 1.4; }
.store-product { position: relative; z-index: 0; container-type: inline-size; overflow: visible; border-color: #deddd6; border-radius: 18px; box-shadow: 0 8px 24px rgba(25,24,18,.025); }
.store-product.is-size-open { z-index: 10; }
.store-product-media, .store-product-media.store-product-media-shirt { aspect-ratio: 3 / 2; border-radius: 17px 17px 0 0; background: #e7e7e2; }
.store-product:not(.store-product-shirt) .store-product-media { aspect-ratio: 1; }
.store-product-media img { padding: 8% 5%; }
.store-product:not(.store-product-shirt) .store-product-media img { padding: 10% 14% 15%; }
.store-product-gallery-label { top: 12px; left: 12px; padding: 6px 9px; font-size: .6rem; pointer-events: none; }
.store-product-zoom-hint { position: absolute; top: 12px; right: 12px; display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid rgba(9,9,9,.1); border-radius: 50%; background: rgba(255,255,255,.85); color: #383832; font-size: 1rem; pointer-events: none; }
.store-product-gallery-controls { right: 10px; bottom: 8px; left: 10px; gap: 4px; }
.store-gallery-arrow { width: 44px; height: 44px; font-size: 1.65rem; }
.store-product-gallery-dots { gap: 0; padding-inline: 2px; border-radius: 999px; background: rgba(255,255,255,.9); transform: none; }
.store-gallery-dot { width: 44px; height: 44px; font-size: .72rem; text-shadow: none; }
.store-gallery-dot.is-active { text-decoration-thickness: 2px; text-underline-offset: 4px; }
.store-product-body { flex: 1; gap: 10px; overflow: visible; padding: 16px 18px; }
.store-product-top { display: grid; min-height: 146px; order: 0; align-content: start; gap: 7px; }
.store-product .store-product-name { font-size: clamp(1.35rem, 4vw, 1.75rem); line-height: 1; letter-spacing: 0; text-wrap: initial; }
.store-product-color { min-height: 2.6em; margin-top: 5px; font-size: .68rem; font-weight: 500; }
.store-product-price { display: flex; align-items: baseline; gap: 7px; margin: 9px 0 0; color: #282923; line-height: 1.2; }
.store-product-price strong { font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.store-product-price span { color: #77786f; font-size: .62rem; font-weight: 500; }
.store-product-tag { justify-self: start; padding: 6px 8px; border-color: #dddcd6; background: #f7f6f2; font-size: .58rem; }
.store-product-description { order: 5; min-height: 0; margin: 0; color: #797971; font-size: .66rem; line-height: 1.4; }
.store-product-consult { order: 3; margin: -3px 0 0; color: #696960; font-size: .65rem; line-height: 1.35; }
.store-product-fields { order: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-self: end; }
.store-product-body > .store-add { order: 2; margin-top: 0; }
.store-product-status { order: 4; }
.store-field { min-width: 0; gap: 7px; }
.store-field > span:not(.store-quantity) { font-size: .68rem; letter-spacing: .06em; }
.store-field > span:not(.store-quantity) small { font-size: .7rem; }
.store-field input, .store-field textarea { min-width: 0; min-height: 48px; padding: 11px 12px; border-radius: 10px; font-size: 16px; }
.store-size-select { position: relative; display: block; min-width: 0; }
.store-size-trigger { display: flex; width: 100%; min-width: 0; min-height: 48px; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border: 1px solid var(--line-dark); border-radius: 10px; background: #fff; color: var(--black); font: inherit; font-size: .82rem; font-weight: 500; text-align: left; text-transform: none; cursor: pointer; }
.store-size-trigger.store-size-fixed { cursor: default; }
.store-size-trigger.store-size-fixed::after { display: none; }
.store-size-trigger::after { width: 7px; height: 7px; flex: 0 0 auto; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; content: ""; transform: rotate(45deg) translateY(-2px); transition: transform .18s ease; }
.store-size-trigger[aria-expanded="true"]::after { transform: rotate(225deg) translate(-1px,-1px); }
.store-size-trigger:focus-visible { border-color: var(--black); outline: 3px solid rgba(9,9,9,.14); outline-offset: 1px; }
.store-size-trigger.input-error { border-color: #a32a2a; box-shadow: 0 0 0 3px rgba(163,42,42,.12); }
.store-size-listbox { position: absolute; z-index: 30; top: calc(100% + 7px); right: 0; left: 0; display: grid; max-height: min(290px, 44svh); gap: 3px; overflow-y: auto; padding: 6px; border: 1px solid #deddd6; border-radius: 13px; background: #fff; box-shadow: 0 16px 34px rgba(0,0,0,.16); }
.store-size-listbox[hidden] { display: none; }
.store-size-option { display: flex; min-height: 42px; align-items: center; padding: 9px 11px; border-radius: 8px; color: #272722; font-size: .78rem; font-weight: 500; cursor: pointer; }
.store-size-option:hover, .store-size-option.is-active { background: #f0efeb; }
.store-size-option[aria-selected="true"] { background: #171816; color: #fff; font-weight: 600; }
.store-field textarea { min-height: 96px; }
.store-quantity { grid-template-columns: 44px minmax(0,1fr) 44px; border-radius: 10px; }
.store-quantity button, .store-quantity input { min-height: 46px; }
.store-quantity button { font-size: 1.3rem; }
.store-quantity input { padding-inline: 2px; border-radius: 0; appearance: textfield; -moz-appearance: textfield; }
.store-quantity input::-webkit-inner-spin-button, .store-quantity input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.store-add { min-height: 50px; margin-top: auto; padding: 12px 14px; font-size: .72rem; letter-spacing: .04em; }
.store-product-status { margin: 0; color: #7b2923; font-size: .78rem; line-height: 1.4; }
.store-product-status:empty { display: none; }
.store-product-status.is-success { color: #3f5c3d; }
.store-order { position: static; max-height: none; min-width: 0; padding: 24px; overflow: visible; border: 1px solid #dfded8; border-radius: 20px; background: #f1f0eb; color: #22231f; box-shadow: 0 12px 36px rgba(0,0,0,.07); scroll-margin-top: calc(var(--header-height) + 20px); }
.store-order-heading { gap: 12px; margin: -24px -24px 0; padding: 21px 24px 18px; border-radius: 19px 19px 0 0; background: #161715; color: #fff; scroll-margin-top: calc(var(--header-height) + 20px); }
.store-order-heading h2 { font-size: clamp(1.8rem, 7vw, 2.45rem); line-height: .95; }
.store-order .eyebrow { font-size: .65rem; letter-spacing: .14em; }
.store-cart-count { padding: 6px 9px; border: 1px solid #454540; border-radius: 999px; color: #f1f0eb; font-size: .62rem; line-height: 1.4; }
.store-cart-items { max-height: 420px; margin: 20px 0; padding-right: 3px; scrollbar-width: thin; scrollbar-color: #aaa99f transparent; }
.store-cart-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 18px; padding: 14px 0; border-top: 1px solid #d8d7cf; color: #4c4d46; font-size: .78rem; }
.store-cart-total[hidden] { display: none; }
.store-cart-total strong { color: #22231f; font-size: 1rem; font-weight: 750; }
.store-cart-empty { display: grid; justify-items: center; gap: 10px; padding: 26px 18px; border: 1px dashed #d2d1c8; border-radius: 14px; background: rgba(255,255,255,.55); color: #686960; font-size: .81rem; text-align: center; line-height: 1.6; }
.store-cart-empty svg { width: 32px; height: 32px; margin-bottom: 3px; fill: none; stroke: #77786f; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.store-cart-empty strong { color: #242520; font-size: .88rem; }
.store-cart-item { grid-template-columns: 52px minmax(0,1fr); align-items: start; gap: 4px 10px; padding-block: 12px; border-color: #dcdad2; }
.store-cart-thumb-trigger { grid-column: 1; grid-row: 1 / span 2; display: grid; width: 52px; height: 64px; place-items: center; overflow: hidden; padding: 0; border: 1px solid #deddd6; border-radius: 9px; background: #e9e8e2; cursor: zoom-in; }
.store-cart-thumb-trigger:focus-visible { outline: 3px solid rgba(9,9,9,.3); outline-offset: 2px; }
.store-cart-thumb { width: 100%; height: 100%; object-fit: contain; transition: transform .2s ease; }
.store-cart-thumb-trigger:hover .store-cart-thumb { transform: scale(1.06); }
.store-cart-item-details { display: grid; min-width: 0; gap: 3px; }
.store-cart-item-title { color: #20211e; font-size: .82rem; }
.store-cart-item .store-cart-item-meta { margin: 0; color: #686960; font-size: .68rem; line-height: 1.45; }
.store-cart-item .store-cart-item-price { display: flex; align-items: baseline; gap: 7px; margin: 2px 0 0; color: #34352f; font-size: .72rem; line-height: 1.4; }
.store-cart-item-price strong { font-weight: 650; }
.store-cart-item-price small { color: #77786f; font-size: .65rem; font-weight: 450; }
.store-cart-item .store-cart-item-remove { justify-self: start; min-height: 36px; margin-top: 0; padding: 6px 0; color: #6b6c63; font-size: .68rem; }
.store-cart-item .store-cart-item-remove:hover { color: #171816; }
.store-cart-item-controls { grid-column: 2; grid-row: 2; justify-self: end; grid-template-columns: 36px 32px 36px; border-color: #d6d5cc; border-radius: 9px; background: #fff; }
.store-cart-item-controls button { min-height: 36px; background: #f0efeb; color: #262722; font-size: 1.1rem; }
.store-cart-item-controls button:hover { background: #e5e4de; }
.store-cart-item-controls button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.store-cart-item-controls .store-cart-remove-at-one { color: #77786f; }
.store-cart-item-controls .store-cart-remove-at-one:hover { background: #f8eeec; color: #a32a2a; }
.store-cart-item-controls output { color: #262722; font-size: .8rem; }
.store-cart-item-controls button:disabled { opacity: .35; cursor: default; }
.store-order-form { gap: 14px; }
.store-order .store-field > span:not(.store-quantity) { color: #34352f; }
.store-order .store-field > span:not(.store-quantity) small { color: #73746c; }
.store-order .store-field input, .store-order .store-field textarea { border-color: #d1d0c8; background: #fff; color: #22231f; }
.store-order .store-field input::placeholder, .store-order .store-field textarea::placeholder { color: #85867d; font-size: .88rem; }
.store-order .store-field input:focus, .store-order .store-field textarea:focus { border-color: #262722; outline-color: rgba(9,9,9,.14); }
.store-order .store-field input[aria-invalid="true"] { border-color: #a32a2a; }
.store-whatsapp { min-height: 50px; margin-top: 16px; gap: 10px; padding: 12px; border-color: #171816; background: #171816; color: #fff; font-size: .71rem; letter-spacing: .025em; }
.store-order .store-whatsapp:hover { border-color: #343530; background: #343530; color: #fff; }
.store-whatsapp:disabled { opacity: .45; }
.store-order-note { margin-top: 12px; color: #6f7068; font-size: .72rem; line-height: 1.55; }
.store-status { color: #34352f; font-size: .8rem; }
.store-image-lightbox-close { min-height: 44px; padding: 10px 14px; font-size: .8rem; }
.store-image-lightbox figcaption { font-size: .85rem; }
.mobile-order-bar { display: none; }

@container (min-width: 320px) {
  .store-product-fields { grid-template-columns: minmax(0,1fr) 134px; }
  .store-size-trigger { padding-inline: 9px; }
}

@container (max-width: 220px) {
  .store-product-top { min-height: 166px; }
  .store-product .store-product-name { min-height: 3em; }
}

@media (min-width: 640px) {
  .store-page-main .container { width: min(calc(100% - 48px), 1480px); }
  .store-page-main .store-section { padding-top: 32px; padding-bottom: 80px; }
  .store-heading { gap: 24px; margin-bottom: 32px; }
  .store-heading h1 em { display: inline; }
  .store-products-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .store-product-status { min-height: 2.8em; }
  .store-product-status:empty { display: block; visibility: hidden; }
  .store-category-tabs { width: min(100%, 720px); max-width: 720px; grid-template-columns: repeat(5, minmax(0,1fr)); }
  .store-order { padding: 28px; }
  .store-order-heading { margin: -28px -28px 0; padding-inline: 28px; }
  .store-cart-item { grid-template-columns: 52px minmax(0,1fr); gap: 4px 14px; }
}

@media (min-width: 900px) {
  .store-page-main .container { width: min(calc(100% - 64px), 1480px); }
  .store-heading { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); align-items: end; gap: 36px; }
  .store-page-main .store-section h1 { font-size: clamp(4.6rem, 7.6vw, 6.8rem); }
  .store-heading h1 em { display: block; }
  .store-section .store-heading > p:last-child { margin-bottom: 5px; font-size: 1rem; }
}

@media (min-width: 1120px) {
  .store-page-main .store-section { padding-top: 36px; }
  .store-back { margin-bottom: 28px; }
  .store-heading { grid-template-columns: minmax(0,1fr) 360px; margin-bottom: 36px; }
  .store-heading h1 em { display: inline; }
  .store-layout { grid-template-columns: minmax(0,1fr) 320px; gap: 28px; }
  .store-order { position: sticky; top: calc(var(--header-height) + 20px); max-height: calc(100svh - var(--header-height) - 40px); overflow-y: auto; overscroll-behavior: contain; padding: 24px; scrollbar-width: thin; scrollbar-color: #aaa99f #f1f0eb; }
  .store-order-heading { margin: -24px -24px 0; padding-inline: 24px; }
  .store-cart-items { max-height: none; overflow: visible; }
  .store-page-body.has-mobile-order { padding-bottom: 0; }
}

@media (min-width: 1400px) {
  .store-layout { grid-template-columns: minmax(0,1fr) 340px; gap: 32px; }
  .store-heading { grid-template-columns: minmax(0,1fr) 400px; }
}

@media (min-width: 1600px) {
  .store-products-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 1119px) {
  .store-page-body.has-mobile-order { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  .store-add:hover, .store-add.is-added { border-color: var(--black); background: var(--black); color: #fff; transform: none; }
  .mobile-order-bar { position: fixed; z-index: 45; right: max(12px, calc((100vw - 640px) / 2)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); left: max(12px, calc((100vw - 640px) / 2)); display: none; align-items: center; justify-content: center; padding: 7px; border: 1px solid #4b4c44; border-radius: 18px; background: #161715; color: #fff; box-shadow: 0 12px 36px rgba(0,0,0,.28); opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: none; backdrop-filter: none; }
  .mobile-order-bar.is-visible { display: flex; }
  .mobile-order-button { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: center; gap: 10px; padding: 11px 18px; border: 1px solid #fff; border-radius: 999px; background: #f3f3ed; color: #111; font-size: .83rem; font-weight: 800; letter-spacing: .015em; text-transform: none; cursor: pointer; }
  .mobile-order-button strong { font-size: inherit; }
  .mobile-order-button [data-mobile-cart-count].is-pulsing { animation: none; }
  .mobile-order-button:disabled { opacity: .45; cursor: not-allowed; }
  .store-page-body.nav-open .mobile-order-bar { display: none; }
}

@media (max-width: 359px) {
  .store-product-body { padding: 18px; }
  .store-order-heading { margin: -20px -20px 0; padding-inline: 20px; }
  .store-order { padding: 20px; }
  .store-category-tab { gap: 6px; padding-inline: 8px; font-size: .67rem; }
  .store-catalog-note { font-size: .69rem; }
}

@media (hover: hover) {
  .store-product-image-trigger:hover img { transform: scale(1.035); }
}

@media (max-width: 639px) {
  .store-category-tab:last-child { grid-column: 1 / -1; justify-self: center; }
  .store-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .store-product { border-radius: 15px; }
  .store-product-media, .store-product-media.store-product-media-shirt, .store-product:not(.store-product-shirt) .store-product-media { aspect-ratio: 1; border-radius: 14px 14px 0 0; }
  .store-product-media img, .store-product:not(.store-product-shirt) .store-product-media img { padding: 7%; }
  .store-product-gallery-label { top: 7px; left: 7px; padding: 5px 7px; font-size: .52rem; }
  .store-product-zoom-hint { top: 7px; right: 7px; width: 25px; height: 25px; font-size: .85rem; }
  .store-product-gallery-controls { right: 6px; bottom: 5px; left: 6px; justify-content: center; }
  .store-gallery-arrow { display: none; }
  .store-product-gallery-dots { gap: 0; }
  .store-gallery-dot { width: 32px; height: 32px; font-size: .66rem; }
  .store-product-body { display: flex; flex: 1; flex-direction: column; gap: 9px; padding: 12px 11px; }
  .store-product-top { flex: 0 0 132px; min-height: 132px; gap: 6px; }
  .store-product .store-product-name { min-height: 2.06em; font-size: clamp(1.05rem, 4.5vw, 1.25rem); line-height: 1.03; letter-spacing: -.01em; }
  .store-product-color { min-height: 1.3em; margin-top: 4px; font-size: .65rem; line-height: 1.3; }
  .store-product-price { flex-wrap: wrap; gap: 2px 5px; margin-top: 7px; }
  .store-product-price strong { font-size: .94rem; }
  .store-product-price span { font-size: .6rem; }
  .store-product-tag { padding: 5px 7px; font-size: .55rem; }
  .store-product-fields { align-self: stretch; gap: 8px; margin-top: 2px; }
  .store-field { gap: 5px; }
  .store-field > span:not(.store-quantity) { font-size: .6rem; }
  .store-size-trigger { min-height: 44px; gap: 4px; padding: 8px; font-size: .75rem; }
  .store-quantity { grid-template-columns: 32px minmax(0, 1fr) 32px; }
  .store-quantity button, .store-quantity input { min-height: 44px; }
  .store-add { min-height: 46px; padding: 8px 4px; font-size: .62rem; letter-spacing: 0; }
  .store-product-consult { margin: 0; font-size: .59rem; line-height: 1.35; }
  .store-product-description { display: none; }
  .store-product-status { font-size: .64rem; }
}

@container (max-width: 180px) {
  .store-product-top { flex-basis: 160px; min-height: 160px; }
  .store-product .store-product-name { min-height: 3.09em; }
  .store-product-color { min-height: 2.6em; }
}

@media (max-width: 359px) {
  .store-product-gallery-label { top: 6px; left: 6px; padding: 4px 5px; font-size: .47rem; }
  .store-product-zoom-hint { top: 6px; right: 6px; width: 24px; height: 24px; }
}
