:root {
  --ink: #090948;
  --blue: #176fc7;
  --white: #fff;
  --muted: #5e6380;
  --line: #aab0cb;
  --danger: #9f2431;
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 50; top: .5rem; left: .5rem; padding: .7rem 1rem; color: var(--white); background: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.store-header { position: relative; z-index: 10; min-height: 164px; color: var(--white); background: #0b337c url('/assets/store/wix-blue-background.jpg') center top / cover no-repeat; }
.header-inner { display: grid; grid-template-columns: 220px 1fr 76px; align-items: center; width: min(1240px, calc(100% - 48px)); min-height: 164px; margin: 0 auto; }
.brand-logo { display: block; width: 190px; line-height: 0; }
.brand-logo img { display: block; width: 100%; height: auto; }
.store-header nav { display: flex; justify-content: center; gap: clamp(1rem, 2.1vw, 2.15rem); }
.store-header nav a { padding: .7rem 0; color: var(--white); font-size: .94rem; font-weight: 400; text-decoration: none; white-space: nowrap; }
.store-header nav a:hover, .store-header nav a:focus-visible, .store-header nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .35rem; }
.cart-button { position: relative; justify-self: end; width: 54px; height: 64px; padding: 8px; color: var(--white); background: transparent; border: 0; cursor: pointer; }
.cart-button img { display: block; width: 38px; height: 38px; object-fit: contain; }
.cart-button span { position: absolute; left: 0; right: 0; bottom: 4px; color: var(--white); font-size: .74rem; line-height: 1; text-align: center; }
.cart-button:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

.collection { min-height: 70vh; padding: 58px 24px 100px; }
.status-card { width: min(1020px, 100%); margin: 0 auto; padding: 2rem; color: var(--muted); text-align: center; }
.status-card.error { color: var(--danger); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 52px 54px; width: min(1020px, 100%); margin: 0 auto; }
.product-card { display: flex; min-width: 0; flex-direction: column; text-align: center; }
.product-image { aspect-ratio: 1 / .88; overflow: hidden; background: var(--white); }
.product-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
.product-card:hover .product-image img { transform: scale(1.018); }
.product-copy { display: flex; flex: 1; flex-direction: column; align-items: stretch; padding-top: 17px; }
.product-copy h3 { margin: 0; color: var(--ink); font-size: .97rem; font-weight: 400; line-height: 1.35; }
.product-price { margin: 16px 0 13px; color: #151515; font-size: .91rem; line-height: 1; }
.product-description { display: none; }
.product-controls { display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 8px; margin-top: auto; }
.product-controls label { color: var(--muted); font-size: 0; text-align: left; }
.product-controls select, .product-controls input { width: 100%; min-height: 36px; margin: 0; padding: .48rem .55rem; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 0; font-size: .78rem; }
.add-button { grid-column: 1 / -1; min-height: 40px; margin-top: 4px; color: var(--ink); background: var(--white); border: 1px solid #21247c; border-radius: 999px; font-size: .9rem; font-weight: 400; cursor: pointer; }
.add-button:hover, .add-button:focus-visible { color: var(--white); background: var(--ink); }

.cart-backdrop { position: fixed; z-index: 30; inset: 0; background: rgba(4, 9, 37, .58); backdrop-filter: blur(3px); }
.cart-panel { position: fixed; z-index: 31; top: 0; right: 0; display: flex; flex-direction: column; width: min(560px, 100vw); height: 100dvh; padding: 1.5rem; overflow-y: auto; background: var(--white); box-shadow: -1rem 0 4rem rgba(0, 0, 0, .25); transform: translateX(105%); transition: transform .25s ease; }
.cart-panel.open { transform: translateX(0); }
.eyebrow { margin: 0 0 .55rem; color: var(--blue); font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.cart-head { display: flex; align-items: start; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid #dce1eb; }
.cart-head h2 { margin: 0; font-size: 2rem; font-weight: 400; }
.close-button, .cart-empty button { min-height: 44px; padding: .6rem .9rem; color: var(--ink); background: transparent; border: 1px solid var(--line); cursor: pointer; }
.cart-items { display: grid; gap: 1rem; padding: 1rem 0; }
.cart-item { display: grid; grid-template-columns: 74px 1fr auto; gap: .9rem; align-items: center; }
.cart-item img { width: 74px; height: 74px; object-fit: contain; background: var(--white); }
.cart-item h3 { margin: 0 0 .2rem; font-size: .95rem; font-weight: 400; }
.cart-item p { margin: 0; color: var(--muted); font-size: .85rem; }
.cart-item button { color: var(--danger); background: transparent; border: 0; text-decoration: underline; cursor: pointer; }
.cart-empty { padding: 4rem 1rem; text-align: center; }
.cart-empty p { color: var(--muted); }
.checkout-wrap { padding-top: 1rem; border-top: 1px solid #dce1eb; }
.subtotal { display: flex; justify-content: space-between; margin-bottom: .8rem; font-size: 1.05rem; }
.checkout-note { color: var(--muted); font-size: .86rem; line-height: 1.5; }
#checkout-form { display: grid; gap: .75rem; margin-top: 1rem; }
#checkout-form label { color: #35445d; font-size: .78rem; font-weight: 700; }
#checkout-form label span { color: var(--muted); font-weight: 400; }
#checkout-form input { width: 100%; min-height: 44px; margin-top: .3rem; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.city-row { grid-template-columns: 1.4fr .6fr .8fr; }
.checkout-button { width: 100%; min-height: 48px; margin-top: .5rem; color: var(--white); background: var(--ink); border: 1px solid var(--ink); border-radius: 999px; cursor: pointer; }
.checkout-button:hover { color: var(--ink); background: var(--white); }
.checkout-button:disabled { cursor: wait; opacity: .6; }
.form-status { min-height: 1.3em; margin: 0; color: var(--danger); font-size: .85rem; }
body.cart-open { overflow: hidden; }

.notice { position: fixed; z-index: 40; left: 50%; bottom: 1.25rem; display: grid; grid-template-columns: 1fr auto; width: min(640px, calc(100vw - 2rem)); padding: 1rem 1.1rem; color: var(--white); background: var(--ink); border: 1px solid #7cccf1; box-shadow: 0 1rem 3rem rgba(0,0,0,.35); transform: translateX(-50%); }
.notice strong, .notice span { grid-column: 1; }
.notice span { margin-top: .2rem; color: #d7e6f9; }
.notice button { grid-column: 2; grid-row: 1 / 3; color: var(--white); background: transparent; border: 0; cursor: pointer; }

footer { display: grid; grid-template-columns: 1fr auto; gap: .7rem 2rem; padding: 48px max(24px, calc((100vw - 1240px) / 2)); color: var(--white); background: #0b337c url('/assets/store/wix-blue-background.jpg') center 62% / cover no-repeat; }
.footer-logo { width: 145px; }
footer p { margin: 0; color: #e4f3ff; }
footer div { display: flex; grid-column: 2; grid-row: 1 / 3; gap: 1.4rem; align-items: center; }
footer div a { color: var(--white); font-size: .86rem; }
footer small { color: #d5eaff; }

@media (max-width: 1100px) {
  .header-inner { grid-template-columns: 180px 1fr 64px; width: min(100% - 32px, 980px); }
  .brand-logo { width: 160px; }
  .store-header nav { gap: 1rem; }
  .store-header nav a { font-size: .78rem; }
  .product-grid { gap: 44px 30px; }
}

@media (max-width: 760px) {
  .store-header, .header-inner { min-height: 104px; }
  .header-inner { grid-template-columns: 1fr auto; width: calc(100% - 32px); }
  .brand-logo { width: 154px; }
  .store-header nav { display: none; }
  .cart-button { width: 52px; }
  .collection { padding: 36px 18px 70px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 18px; }
  .product-image { aspect-ratio: 1 / 1; }
  .product-copy { padding-top: 10px; }
  .product-copy h3 { font-size: .86rem; }
  .product-price { margin: 10px 0; font-size: .82rem; }
  .product-controls { grid-template-columns: 1fr 54px; gap: 6px; }
  .product-controls select, .product-controls input { min-height: 38px; padding: .42rem; font-size: .7rem; }
  .add-button { min-height: 40px; font-size: .82rem; }
  footer { grid-template-columns: 1fr; }
  footer div { grid-column: 1; grid-row: auto; flex-wrap: wrap; }
}

@media (max-width: 430px) {
  .product-grid { grid-template-columns: 1fr; width: min(300px, 100%); gap: 44px; }
  .product-image { aspect-ratio: 1 / .92; }
  .cart-panel { padding: 1rem; }
  .field-row, .city-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
