:root {
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --deep: #0b2a3c;
  --lane: #1586b5;
}
body {
  font-family: 'Archivo', system-ui, sans-serif;
  line-height: 1.7;
  background: #29b6e0 url('../Images/Light-blue-background.jpg') center top / cover no-repeat;
  color: var(--deep);
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 768px) { body { background-repeat: repeat-y; background-size: 200% auto; } }
body.no-scroll { overflow: hidden; }

/* Surfaces: base (pool) → sheet (elevated) → drawer/bar (floating) */
.sheet {
  background: rgba(247, 251, 253, 0.94);
  box-shadow:
    0 1px 2px rgba(11, 42, 60, 0.06),
    0 12px 32px -8px rgba(11, 42, 60, 0.18),
    0 40px 80px -24px rgba(21, 134, 181, 0.25);
}
.floating {
  background: #f7fbfd;
  box-shadow:
    0 -1px 0 rgba(11, 42, 60, 0.06),
    0 -12px 32px -12px rgba(11, 42, 60, 0.25);
}

/* Product cards */
.product-img { transition: transform .6s var(--spring); }
.product:hover .product-img { transform: scale(1.03); }
.product-title { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.product:hover .product-title,
.product:focus-visible .product-title { text-decoration-line: underline; }
.product:focus-visible { outline: 2px solid var(--lane); outline-offset: 6px; }
.product:active .product-img { transform: scale(.99); }

/* Coming soon grid */
.coming-soon { filter: blur(10px); pointer-events: none; user-select: none; }
@media (max-width: 640px) { .coming-soon { filter: blur(7px); } }

/* Header */
.icon-btn { transition: transform .3s var(--spring), opacity .2s ease; }
.icon-btn:hover { transform: translateY(-1px); }
.icon-btn:active { transform: scale(.94); }
.icon-btn:focus-visible, .nav-link:focus-visible { outline: 2px solid var(--deep); outline-offset: 4px; border-radius: 2px; }
.nav-link { transition: opacity .2s ease; }
.nav-link:hover { opacity: .65; }
.nav-link:active { opacity: .45; }
.badge-bump { animation: bump .5s var(--spring); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* Mixtape */
.cover { box-shadow: 0 2px 4px rgba(11, 42, 60, 0.08), 0 24px 48px -16px rgba(11, 42, 60, 0.35); }
.platform {
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(11, 42, 60, 0.1), 0 8px 20px -8px rgba(11, 42, 60, 0.3);
  transition: transform .35s var(--spring), opacity .2s ease;
}
.platform:hover { transform: translateY(-3px); }
.platform:active { transform: scale(.97); opacity: .85; }
.platform:focus-visible { outline: 2px solid var(--lane); outline-offset: 3px; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: 0 1.5rem;
  background: var(--deep); color: #fff;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  box-shadow: 0 1px 2px rgba(11, 42, 60, .2), 0 10px 24px -10px rgba(11, 42, 60, .55);
  transition: transform .3s var(--spring), opacity .2s ease;
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:active { transform: scale(.98); opacity: .9; }
.btn-primary:focus-visible { outline: 2px solid var(--lane); outline-offset: 3px; }
.btn-primary[disabled] { opacity: .5; pointer-events: none; }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.25rem;
  border: 1px solid rgba(11, 42, 60, .25); color: var(--deep);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  transition: transform .3s var(--spring), opacity .2s ease;
}
.btn-ghost:hover { opacity: .7; }
.btn-ghost:active { transform: scale(.98); }
.btn-ghost:focus-visible { outline: 2px solid var(--lane); outline-offset: 3px; }

/* Size chips */
.size-chip {
  min-width: 52px; height: 48px; padding: 0 .75rem;
  border: 1px solid rgba(11, 42, 60, .22); background: #fff; color: var(--deep);
  font-size: 13px; letter-spacing: .08em;
  transition: transform .25s var(--spring), opacity .2s ease;
}
.size-chip:hover { opacity: .75; }
.size-chip:active { transform: scale(.95); }
.size-chip:focus-visible { outline: 2px solid var(--lane); outline-offset: 2px; }
.size-chip[aria-checked="true"] { background: var(--deep); color: #fff; border-color: var(--deep); }

/* Qty stepper */
.qty { display: inline-flex; align-items: center; border: 1px solid rgba(11, 42, 60, .22); background: #fff; }
.qty button { width: 40px; height: 40px; font-size: 18px; transition: opacity .2s ease, transform .25s var(--spring); }
.qty button:hover { opacity: .6; }
.qty button:active { transform: scale(.9); }
.qty button:focus-visible { outline: 2px solid var(--lane); outline-offset: -2px; }
.qty span { min-width: 32px; text-align: center; font-size: 14px; }
.qty.qty-lg button { width: 48px; height: 48px; }

/* Cart drawer */
.drawer-backdrop { opacity: 0; pointer-events: none; transition: opacity .35s var(--ease-out); }
.drawer { transform: translateX(100%); transition: transform .45s var(--ease-out); }
.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer-open .drawer { transform: translateX(0); }

/* Gallery (mobile swipe) */
.gallery { scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery > * { scroll-snap-align: center; }
.dot { width: 6px; height: 6px; border-radius: 9999px; background: rgba(11, 42, 60, .25); transition: transform .3s var(--spring), opacity .2s; }
.dot[aria-current="true"] { background: var(--deep); transform: scale(1.3); }
.thumb { transition: opacity .2s ease, transform .25s var(--spring); }
.thumb:hover { opacity: .75; }
.thumb:active { transform: scale(.96); }
.thumb:focus-visible { outline: 2px solid var(--lane); outline-offset: 2px; }
.thumb[aria-current="true"] { outline: 1px solid var(--deep); outline-offset: 2px; }

/* Accordions */
details.acc summary { list-style: none; cursor: pointer; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary:focus-visible { outline: 2px solid var(--lane); outline-offset: 2px; }
details.acc .chev { transition: transform .3s var(--spring); }
details.acc[open] .chev { transform: rotate(45deg); }

/* Forms */
.field label { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(11, 42, 60, .7); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; height: 50px; padding: 0 14px;
  background: #fff; border: 1px solid rgba(11, 42, 60, .22); border-radius: 0;
  font-size: 16px; /* 16px stops iOS zooming on focus */
  color: var(--deep); appearance: none;
  transition: box-shadow .2s ease;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%230b2a3c' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field input:focus, .field select:focus { outline: none; box-shadow: 0 0 0 2px var(--lane); border-color: var(--lane); }
.field.invalid input, .field.invalid select { border-color: #b4232f; }
.field .err { display: none; font-size: 12px; color: #b4232f; margin-top: 6px; }
.field.invalid .err { display: block; }

.radio-card { transition: opacity .2s ease; }
.radio-card:hover { opacity: .85; }
.radio-card:has(input:checked) { border-color: var(--deep); box-shadow: inset 0 0 0 1px var(--deep); }
.radio-card:has(input:focus-visible) { outline: 2px solid var(--lane); outline-offset: 2px; }

.check input:focus-visible { outline: 2px solid var(--lane); outline-offset: 2px; }

.safe-bottom { padding-bottom: max(12px, env(safe-area-inset-bottom)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
