/* A tennis rally while the first screen is preparing. */
.site-loader { display:none; }
html.is-loading .site-loader { position:fixed; inset:0; z-index:100; display:grid; place-items:center; background:#082e4b; color:#fff; padding:24px; animation:loader-rescue 0s 8s forwards; }
.site-loader.is-leaving { opacity:0; visibility:hidden; transition:opacity .24s ease,visibility .24s; pointer-events:none; }
html.is-loading .hero * { animation-play-state:paused!important; }
.loader-content { text-align:center; }
.loader-brand { display:flex; align-items:center; justify-content:center; gap:13px; font:800 22px/1.3 'Manrope',Arial,sans-serif; letter-spacing:-.04em; }
.loader-brand img { width:38px; height:38px; filter:brightness(0) invert(1); }
.loader-caption { margin:18px 0 0; font:600 11px/1.7 'Manrope',Arial,sans-serif; letter-spacing:.08em; }
.loading-stage { position:relative; width:190px; height:134px; margin:26px auto 0; }
.loading-court { position:absolute; inset:30px 10px 10px; border:1px solid currentColor; border-radius:6px; color:rgba(161,202,227,.35); transform:perspective(220px) rotateX(28deg); background:linear-gradient(90deg,transparent calc(50% - .5px),currentColor 50%,transparent calc(50% + .5px)),linear-gradient(0deg,transparent calc(50% - .5px),currentColor 50%,transparent calc(50% + .5px)); }
.loading-court::before { content:''; position:absolute; inset:0 18px; border-inline:1px solid currentColor; }
.loading-ball { position:absolute; z-index:2; left:calc(50% - 16px); top:12px; width:32px; height:32px; border-radius:50%; background:#d9f33c; box-shadow:inset -4px -5px 0 rgba(31,73,20,.14),0 0 28px rgba(217,243,60,.14); overflow:hidden; animation:loader-rally 1.15s cubic-bezier(.4,0,.65,1) infinite; }
.loading-ball::before,.loading-ball::after { content:''; position:absolute; width:28px; height:36px; top:-2px; border:2px solid #f6ffcb; border-radius:50%; }
.loading-ball::before { left:-21px; }
.loading-ball::after { right:-21px; }
.loading-shadow { position:absolute; left:calc(50% - 20px); bottom:16px; width:40px; height:7px; border-radius:50%; background:rgba(0,0,0,.25); animation:loader-shadow 1.15s ease-in-out infinite; }
.loader-dots { display:flex; justify-content:center; gap:6px; margin-top:16px; }
.loader-dots i { width:5px; height:5px; border-radius:50%; background:#d9f33c; animation:loader-dot 1.2s ease-in-out infinite; }
.loader-dots i:nth-child(2) { animation-delay:.15s; }
.loader-dots i:nth-child(3) { animation-delay:.3s; }
.boot-card .loading-stage { width:160px; height:134px; margin:0 auto 22px; }
.boot-card .loading-court { color:#ccdce5; }
.boot-card:has(#retryBoot:not([hidden])) .loading-stage { display:none; }
.shop-load-message { display:flex; align-items:center; gap:9px; margin:0; font-size:12px; font-weight:700; line-height:1.6; }
.admin-ui .shop-load-message { margin-bottom:12px; }
.shop-load-message[data-loading]::before {
  content:''; width:16px; height:16px; flex:none; border:1px solid rgba(33,62,22,.2); border-radius:50%;
  background:radial-gradient(circle at -32% 50%,transparent 45%,#f6ffcb 48% 55%,transparent 58%),
    radial-gradient(circle at 132% 50%,transparent 45%,#f6ffcb 48% 55%,transparent 58%),#d9f33c;
  animation:load-ball-bounce 1s ease-in-out infinite;
}
.shop-load-message[data-loading]::after { content:''; width:3px; height:3px; flex:none; margin-inline:2px 10px; border-radius:50%; background:currentColor; box-shadow:6px 0 currentColor,12px 0 currentColor; animation:load-dots 1.1s ease-in-out infinite; }
.loading-skeletons { pointer-events:none; }
.loading-cards { display:contents; }
.loading-skeleton { min-width:0; animation:load-arrive .3s ease both; animation-delay:var(--load-delay); }
.loading-placeholder,.is-image-loading { background:linear-gradient(100deg,var(--load-base,#edf1f3) 25%,var(--load-shine,#fafcfd) 45%,var(--load-base,#edf1f3) 65%); background-size:240% 100%; animation:load-shimmer 1.5s ease-in-out infinite; }
.loading-placeholder { display:block; border-radius:9px; }
.loading-cards .loading-skeleton>i { aspect-ratio:1; }
.loading-skeleton>span { display:grid; gap:9px; padding-top:12px; }
.loading-skeleton>span>i { height:12px; }
.loading-skeleton>span>i:last-child { width:56%; height:10px; }
.loading-cards .loading-skeleton>span>i:nth-child(2) { width:76%; height:10px; }
.loading-cards .loading-skeleton>span>i:nth-child(3) { width:30%; height:14px; margin-top:3px; }
.loading-cards .loading-skeleton>span>i:last-child { width:42%; height:9px; }
.home-arrivals .products-progress.sr-only { width:1px; height:1px; min-height:0; margin:0; }
.loading-rows { display:grid; gap:12px; width:100%; }
.loading-rows .loading-skeleton { display:grid; grid-template-columns:54px minmax(0,1fr); gap:15px; align-items:center; padding:16px; border:1px solid var(--line); border-radius:12px; }
.loading-rows .loading-skeleton>i { height:58px; }
.loading-rows .loading-skeleton>span { padding:0; }
.loading-summary { display:grid; gap:12px; }
.loading-summary .loading-skeleton>i { height:12px; width:70%; }
.loading-summary .loading-skeleton>span { padding-top:8px; }
.loading-summary .loading-skeleton>span>i:last-child { display:none; }
#overviewPanel[aria-busy="true"] .overview-stock strong { color:transparent; border-radius:8px; background:linear-gradient(100deg,var(--load-base,#edf1f3) 25%,var(--load-shine,#fafcfd) 45%,var(--load-base,#edf1f3) 65%); background-size:240% 100%; animation:load-shimmer 1.5s ease-in-out infinite; }
.is-image-loading { color:transparent; }
.image-arrived { animation:image-arrive .3s ease; }
button[data-loading] { display:inline-flex; align-items:center; justify-content:center; gap:10px; }
button[data-loading]::before { content:''; flex:none; width:14px; height:14px; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; animation:shop-load-spin .85s linear infinite; }
.loading-court { animation:load-court-breathe 2.2s ease-in-out infinite; }
.loading-stage::after { content:''; position:absolute; left:50%; bottom:12px; width:90px; height:1px; background:linear-gradient(90deg,transparent,currentColor,transparent); opacity:.35; transform:translateX(-50%); animation:load-court-line 1.15s ease-in-out infinite; }
html[data-theme="dark"] { --load-base:#243b48; --load-shine:#385664; }
@keyframes load-shimmer { from { background-position:150% 0; } to { background-position:-100% 0; } }
@keyframes load-arrive { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:translateY(0); } }
@keyframes image-arrive { from { opacity:0; } to { opacity:1; } }
@keyframes load-ball-bounce { 0%,100% { transform:translateY(2px) rotate(-30deg); } 50% { transform:translateY(-4px) rotate(55deg); } }
@keyframes load-dots { 0%,100% { opacity:.25; } 50% { opacity:.8; } }
@keyframes load-court-breathe { 0%,100% { opacity:.55; } 50% { opacity:1; } }
@keyframes load-court-line { 0%,100% { scale:.65 1; opacity:.15; } 50% { scale:1 1; opacity:.4; } }
@media(prefers-reduced-motion:reduce) {
  .loading-skeleton,.loading-placeholder,.is-image-loading,.image-arrived,.loading-court,.loading-stage::after,
  .shop-load-message[data-loading]::after,button[data-loading]::before,
  #overviewPanel[aria-busy="true"] .overview-stock strong { animation:none; }
}
@keyframes shop-load-spin { to { transform:rotate(1turn); } }
.catalog-load-state { padding:12px 16px; margin:0 0 18px; border:1px solid var(--line); border-radius:12px; background:var(--paper); }
.catalog-load-state .shop-load-retry,.drawer-content .shop-load-retry { display:inline-flex; width:auto; min-height:44px; margin-top:10px; padding:10px 15px; border:1px solid currentColor; border-radius:24px; }
.shop-route-progress { position:fixed; z-index:40; right:24px; bottom:24px; max-width:calc(100% - 32px); padding:10px 14px; border-radius:22px; color:#fff; background:#152c3b; box-shadow:0 8px 28px rgba(8,29,46,.25); pointer-events:none; }
@media (max-width:1024px), (display-mode:standalone) {
  .shop-route-progress { right:auto; left:50%; bottom:calc(112px + env(safe-area-inset-bottom)); transform:translateX(-50%); white-space:nowrap; }
}
@media (prefers-reduced-motion:reduce) { .shop-load-message[data-loading]::before { animation:none; } }
.footer .footer-bottom { flex-direction:column; align-items:center; gap:6px; text-align:center; }
.footer-bottom .developer-credit { display:inline-flex; align-items:center; justify-content:center; gap:5px; flex-wrap:wrap; }
.developer-credit a { font-weight:800; text-decoration:underline; text-underline-offset:3px; }
.developer-credit a:hover { color:var(--lime); }
.old-price { display:block; color:var(--muted,#76838a); font-size:.78em; font-weight:500; }
.sale-price { display:inline-block; padding:2px 6px; border-radius:5px; background:#d9f33c; color:#18251c; }
.product-swatches { display:flex; flex-wrap:wrap; gap:4px; grid-column:1/-1; }
.product-swatches:empty { display:none; }
.product-color { position:relative; display:grid; place-items:center; flex:none; width:32px; height:32px; padding:5px; border:1px solid transparent; border-radius:50%; background:transparent; }
.product-color i { width:20px; height:20px; border:1px solid #99a5ac; border-radius:50%; background:var(--swatch); }
.product-color[aria-pressed="true"] { border-color:var(--ink); }
.product-color.is-sold-out::after { content:''; position:absolute; inset:15px 5px auto; border-top:2px solid #8b9296; transform:rotate(-45deg); }
.product-color:focus-visible { outline:2px solid #447a9d; outline-offset:2px; }
.product-swatches .product-color { width:24px; height:24px; padding:3px; }
.product-swatches .product-color i { width:16px; height:16px; }
.product-swatches .product-color.is-sold-out::after { inset:50% 3px auto; transform:translateY(-50%) rotate(-45deg); }
#quickColors { display:flex; flex-wrap:wrap; gap:6px; }
#quickColors .product-color { width:44px; height:44px; }
#quickColors .product-color.is-sold-out::after { inset:21px 8px auto; }
#quickColorName { display:block; font-size:12px; margin:8px 0; }
#quickAdd:disabled { opacity:.6; cursor:default; }
.editor,.management-dialog,.request-dialog,.quickview { scrollbar-gutter:stable; padding-inline:10px; }
.drawer-content { scrollbar-gutter:stable; }
.editor-body { padding-inline:18px; }
.editor-heading,.editor-footer { padding-inline:18px; }
.editor,.management-dialog,.request-dialog { overflow:hidden; }
.editor>form,.management-dialog>form,.request-dialog>form { display:flex; flex-direction:column; max-height:calc(100dvh - 64px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); min-height:0; }
.editor-heading,.editor-footer,.request-heading { flex:none; }
.editor-body,.management-fields,#requestFields { min-height:0; overflow:auto; scrollbar-gutter:stable; overscroll-behavior:contain; padding-right:18px; }
.editor>form { overflow:hidden; }
.editor-scroll { min-height:0; overflow:auto; overscroll-behavior:contain; scrollbar-gutter:stable; }
.editor .editor-body { overflow:visible; }
html:has(dialog[open]) { overflow:hidden; }
.request-dialog #requestFields { padding-inline:4px 16px; }
.select-menu { padding:10px; scrollbar-gutter:stable; }
::-webkit-scrollbar-track { margin-block:12px; }

.quick-gallery {
  position:absolute; z-index:1; inset:auto 10px 10px; display:flex; justify-content:center; gap:5px;
}
.quick-gallery[hidden] { display:none; }
.quick-gallery button {
  position:relative; display:grid; place-items:center; width:clamp(42px,11vw,50px); aspect-ratio:1;
  padding:2px; border:2px solid transparent; border-radius:9px; background:#fff; color:#172027;
  box-shadow:0 2px 8px rgba(5,26,40,.25); overflow:hidden; font-weight:800;
}
.quick-gallery button[aria-pressed="true"] { border-color:#617c14; background:#d9f33c; }
.quick-gallery button:focus-visible { outline:2px solid #447a9d; outline-offset:2px; }
.quick-gallery button img { position:static; width:100%; height:100%; border-radius:4px; object-fit:cover; }

.storage-notice {
  --storage-muted:#466073;
  --storage-panel:var(--paper);
  --storage-border:#d4dfe4;
  --storage-choice:#edf3f5;
  --storage-choice-hover:#e1ebef;
  --storage-focus:#14649e;
  position:fixed;
  z-index:17;
  left:50%;
  bottom:24px;
  transform:translateX(-50%);
  width:min(438px,calc(100% - 32px));
  max-height:calc(100dvh - 48px);
  overflow:auto;
  padding:18px clamp(16px,4vw,22px);
  border:1px solid var(--storage-border);
  border-radius:22px;
  background:var(--storage-panel);
  color:var(--ink);
  box-shadow:0 16px 44px rgba(8,29,46,.25);
  text-align:left;
}
html[data-theme="dark"] .storage-notice {
  --storage-muted:#c3d4dd;
  --storage-panel:#142b3a;
  --storage-border:#456273;
  --storage-choice:#213c4c;
  --storage-choice-hover:#2d4c5e;
  --storage-focus:var(--lime);
}
.storage-notice-heading { display:flex; align-items:center; gap:12px; margin-bottom:11px; }
.storage-notice-mark {
  display:grid;
  flex:0 0 42px;
  height:42px;
  place-items:center;
  border-radius:13px;
  background:#102f44;
}
.storage-notice-mark img { object-fit:contain; filter:brightness(0) invert(1); }
html[data-theme="dark"] .storage-notice-mark { background:#213e50; }
.storage-notice h2 { margin:0; font-size:clamp(17px,4.4vw,20px); font-weight:800; line-height:1.2; letter-spacing:-.035em; }
.storage-notice p { margin:0; color:var(--storage-muted); font-size:13px; line-height:1.55; }
.storage-notice-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:16px; }
.storage-notice-actions button {
  min-height:44px;
  padding:8px;
  border:1px solid var(--storage-border);
  border-radius:12px;
  background:var(--storage-choice);
  color:var(--ink);
  font-size:12px;
  font-weight:800;
  line-height:1.25;
}
.storage-notice-actions button[data-storage-choice="catalog"] { border-color:transparent; background:var(--lime); color:#152a1a; }
@media (hover:hover) {
  .storage-notice-actions button:hover { background:var(--storage-choice-hover); }
  .storage-notice-actions button[data-storage-choice="catalog"]:hover { background:#e5f86c; }
}
.storage-notice-actions button[aria-pressed="true"] { box-shadow:inset 0 0 0 1px currentColor; }
.storage-notice:focus-visible,.storage-notice-actions button:focus-visible { outline:2px solid var(--storage-focus); outline-offset:2px; }
@media (prefers-reduced-motion:no-preference) {
  .storage-notice:not([hidden]) { animation:storage-notice-in .23s ease-out both; }
  .storage-notice-actions button { transition:background-color .16s ease; }
}
@keyframes storage-notice-in {
  from { opacity:0; transform:translate(-50%,8px); }
  to { opacity:1; transform:translate(-50%,0); }
}
.storage-settings {
  min-height:44px; padding:0 10px; border:0; background:transparent; color:inherit;
  font:inherit; text-decoration:underline; text-underline-offset:3px;
}
@media (max-width:1024px), (display-mode:standalone) {
  .storage-notice {
    bottom:calc(112px + env(safe-area-inset-bottom));
    width:min(438px,calc(100% - 24px)); max-height:calc(100dvh - 130px - env(safe-area-inset-bottom));
  }
}

/* Native scrolling with the store palette, including menus and side panels. */
:root { --scroll-track:#edf2f4; --scroll-thumb:#496b7c; --scroll-thumb-hover:#1c4a65; }
html { scrollbar-gutter:stable; }
* { scrollbar-width:thin; scrollbar-color:var(--scroll-thumb) var(--scroll-track); }
.select-menu,.admin-sidebar { scrollbar-width:thin; scrollbar-color:var(--scroll-thumb) var(--scroll-track); }
.admin-sidebar { --scroll-track:#122936; --scroll-thumb:#557989; --scroll-thumb-hover:#d9f33c; }
html[data-theme="dark"] { --scroll-track:#102330; --scroll-thumb:#cce63c; --scroll-thumb-hover:#e6fa76; }
@supports selector(::-webkit-scrollbar) {
  *,.select-menu,.admin-sidebar { scrollbar-width:auto; scrollbar-color:auto; }
  ::-webkit-scrollbar { width:10px; height:10px; }
  ::-webkit-scrollbar-track { background:var(--scroll-track); border-radius:20px; }
  ::-webkit-scrollbar-thumb { background:var(--scroll-thumb); border:2px solid var(--scroll-track); border-radius:20px; min-height:40px; }
  ::-webkit-scrollbar-thumb:hover { background:var(--scroll-thumb-hover); }
  ::-webkit-scrollbar-corner { background:var(--scroll-track); }
  ::-webkit-scrollbar-button { display:none; width:0; height:0; }
}

/* One SVG silhouette in both favorite states, anchored above every product. */
.catalog .favorite { top:12px; right:12px; bottom:auto; z-index:3; width:48px; height:48px; padding:0; border:1px solid rgba(20,48,65,.12); border-radius:50%; background:rgba(255,255,255,.97); color:#173447; box-shadow:0 3px 12px rgba(9,35,51,.14); transition:box-shadow .18s,color .18s; touch-action:manipulation; }
.catalog .favorite.active { background:rgba(255,255,255,.97); color:#d94357; }
.catalog .favorite svg { display:block; width:28px; height:28px; fill:transparent; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; transition:fill .18s,transform .16s; pointer-events:none; }
.catalog .favorite.active svg { fill:currentColor; }
.catalog .favorite:active svg { transform:scale(.92); }
.catalog .favorite:focus-visible { outline:2px solid #196b9d; outline-offset:3px; }
.catalog .product-tag { max-width:calc(100% - 82px); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
html[data-theme="dark"] .catalog .favorite { background:#142d3d; color:#e3f0f6; border-color:rgba(229,242,249,.2); }
html[data-theme="dark"] .catalog .favorite.active { background:#142d3d; color:#ff8194; }
@media(hover:hover) and (pointer:fine) {
  .catalog .favorite:hover { box-shadow:0 5px 17px rgba(9,35,51,.22); }
  .catalog .favorite:not(.active):hover { color:#d94357; }
}
@media(max-width:760px) {
  .catalog .favorite { top:10px; right:10px; bottom:auto; width:46px; height:46px; }
  .catalog .favorite svg { width:27px; height:27px; }
  .catalog .product-tag { left:10px; top:10px; max-width:calc(100% - 78px); }
}
@media(max-width:360px) {
  .catalog .favorite { top:8px; right:8px; width:44px; height:44px; }
  .catalog .favorite svg { width:26px; height:26px; }
  .catalog .product-tag { left:8px; top:8px; max-width:calc(100% - 68px); font-size:7.5px; letter-spacing:.04em; padding:6px; }
}
@media(prefers-reduced-motion:reduce) {
  .catalog .favorite,.catalog .favorite svg { transition:none; }
  .catalog .favorite:active svg { transform:none; }
}
@keyframes loader-rally { 0%,100% { transform:translate(-44px,0) rotate(-65deg) scale(.95); } 48% { transform:translate(0,75px) rotate(15deg) scale(1.06,.84); } 76% { transform:translate(44px,12px) rotate(90deg) scale(.95); } }
@keyframes loader-shadow { 0%,100% { transform:translateX(-44px) scale(.55); opacity:.35; } 48% { transform:translateX(0) scale(1); opacity:.8; } 76% { transform:translateX(44px) scale(.6); opacity:.4; } }
@keyframes loader-dot { 0%,70%,100% { opacity:.25; transform:translateY(0); } 35% { opacity:1; transform:translateY(-3px); } }
@keyframes loader-rescue { to { opacity:0; visibility:hidden; pointer-events:none; } }
@media (max-width:1024px), (pointer:coarse) {
  html,body { touch-action:pan-x pan-y; }
}
@media (max-width:760px) {
  .footer-bottom>span.developer-credit { display:inline-flex; font-size:10px; }
}
@media (prefers-reduced-motion:reduce) {
  .site-loader.is-leaving { transition:none; }
}
.loading-stage .loading-ball,.loading-stage .loading-shadow { animation-duration:1.15s!important; animation-play-state:running; }
.loader-dots i { animation-duration:1.2s!important; animation-play-state:running; }
