:root {
  color-scheme: dark;
  --blue: #74ffec;
  --ink: #fff;
  --muted: #d0e0e6;
  --line: #35505e;
  --night: #0a1826;
  --panel: #102638;
  --cart-accent: #fcf8e6;
  --cart-accent-hover: #fcf8e6;
  --card-blue: var(--night);
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--night);
  color: var(--ink);
}

body {
  min-height: 100vh;
  background: var(--night);
}

.shipping-banner { overflow: hidden; background: var(--cart-accent); color: var(--night); }
.shipping-track { display: flex; width: max-content; min-width: 200%; animation: shipping-scroll 18s linear infinite; }
.shipping-track span { flex: 1 0 auto; padding: 10px 28px; text-align: center; white-space: nowrap; font-size: 16px; font-weight: 800; }
@keyframes shipping-scroll { to { transform: translateX(-50%); } }

.store-content {
  color-scheme: light;
  --ink: #0a1826;
  --muted: #52616c;
  --line: #dce3e7;
  background: #fff;
  color: var(--ink);
}
.store-content :is(.sort select, .buy-form input, .share-url) { background: #fff; }
.store-content :is(.text-button, .product-specifications a, .share-button:hover, .back-to-shop:hover) { color: #086c63; }
.store-content :focus-visible { outline-color: #087a70; }
.store-content input[type=checkbox] { accent-color: #087a70; }
.product-page .stock-label { color: #17634b; }
.product-page .stock-label.out { color: #8b3d2d; }
.product-info .product-category { font-size: 15px; font-weight: 650; }
.product-info .tax-note { font-size: 14px; }
.product-page .product-description h2 { font-size: 20px; }

footer { background: #07131f; color: var(--muted); }
body > header { background: var(--night); }
.header-inner { min-height: 92px; }
.wordmark, .wordmark span { color: var(--ink); }
.wordmark img { display: block; width: min(214px, 100%); height: auto; filter: contrast(1.65); mix-blend-mode: screen; }
.search, .sort select, .buy-form input, .share-url { color: var(--ink); background: var(--panel); border-color: var(--line); }
.search input, .cart-toggle { color: var(--ink); }
.search input::placeholder { color: var(--muted); }
.icon-button:hover { background: #214356; }
.cart-toggle b { background: var(--blue); color: var(--night); }
.category-nav { background: #fff; border-color: #dce3e7; }
.category-nav .container { gap: 0; scrollbar-width: thin; scrollbar-color: #80909a #fff; }
.sidebar button { color: var(--ink); }
.category-nav button { flex: 1 0 0; min-width: max-content; padding-inline: 16px; text-align: center; font-size: 16px; font-weight: 700; }
.sidebar button { font-size: 14px; font-weight: 700; }
.category-nav button, .category-nav button.active, .category-nav button:hover { color: #111; }
.category-nav button.active { border-color: #087a70; }
.category-nav button:hover { background: #eef6f5; }
.sidebar button.active, .sidebar button:hover { background: #eef6f5; color: #125d55; }
.breadcrumb, .breadcrumb span:last-child, .product-description p { color: var(--muted); }
.product-specifications dl>div { border-color: var(--line); }
.product-photo { background: #fff; }
dialog { background: var(--panel); }
dialog::backdrop { background: rgba(3, 10, 17, .74); }
.toast { background: #133345; border: 1px solid var(--line); color: #fff; }
.stock-label { color: var(--blue); }
.stock-label.out { color: #e6c6b9; }

.storefront-banner { position: relative; width: 100%; overflow: hidden; margin-block: 20px; background: #03152c; }
.storefront-banner img { display: block; width: 100%; height: auto; }
.storefront-banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, #74ffec30 50%, transparent 65%);
  transform: translateX(-100%);
  animation: banner-light 1.5s .3s ease-out both;
}
@keyframes banner-light { to { transform: translateX(100%); } }

.product-card {
  position: relative; isolation: isolate; display: flex; flex-direction: column;
  border-color: #547484; border-radius: 8px;
  background: #dce7eb; color: #fff;
  animation: card-entry .32s ease-out both;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.product-card:nth-child(3n + 2) { animation-delay: .05s; }
.product-card:nth-child(3n) { animation-delay: .1s; }
@keyframes card-entry { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.product-card:hover, .product-card:focus-within { border-color: var(--blue); box-shadow: 0 0 24px #74ffec26; }
.product-card .product-image { position: relative; flex: none; width: 100%; height: auto; aspect-ratio: 1; padding: 0; border: 0; overflow: hidden; background: #eef3f5; }
.product-card .product-image img { position: absolute; display: block; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.product-card .product-image:focus-visible { outline-offset: -4px; z-index: 1; }
.product-card .image-fallback { height: 100%; color: #415765; }
.product-card .product-body { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; width: 100%; min-width: 0; padding: 10px 13px 12px; background: var(--card-blue); color: #fff; }
.product-card .card-actions .add-button { text-shadow: none; }
.product-card .product-body :is(a, button) { pointer-events: auto; }
.product-card .product-category { color: #fff; margin-bottom: 3px; font-size: 10px; }
.product-card .product-name { min-height: 0; font-size: 16px; font-weight: 650; color: #fff; line-height: 1.3; }
.product-card .product-name:is(:hover, :focus-visible) { color: var(--cart-accent-hover); text-decoration: underline; }
.card-description { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; margin: 4px 0 0; color: #fff; font-size: 11px; line-height: 1.35; }
.product-card .stock-label { margin: 5px 0 3px; color: #fff; font-size: 10px; }
.product-card .stock-label.out { color: #ffe1d6; }
.card-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 8px; }
.card-actions .add-button, .card-detail { flex: 1 1 auto; width: auto; min-height: 34px; padding: 5px 8px; border-radius: 5px; font-size: 11px; font-weight: 600; }
.card-actions .add-button svg { width: 14px; height: 14px; }
.card-actions .add-button, .buy-form .add-button { color: var(--night); background: var(--cart-accent); border-color: var(--cart-accent); }
.card-actions .add-button:hover:not(:disabled), .buy-form .add-button:hover:not(:disabled) { background: var(--cart-accent-hover); border-color: var(--cart-accent-hover); color: var(--night); }
.store-content .buy-form .add-button { border-color: #c8b987; }
.store-content .buy-form .add-button:hover:not(:disabled) { border-color: #917a42; }
.card-detail { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #d6e4ff; background: transparent; color: #fff; }
.card-detail:is(:hover, :focus-visible) { border-color: #63431d; background: var(--cart-accent-hover); color: #63431d; }

@media (max-width: 700px) {
  .category-nav button { font-size: 14px; }
  .header-inner { min-height: 120px; }
  .wordmark img { width: min(170px, 100%); }
  .storefront-banner { margin-block: 12px; }
  .product-card .product-body { padding: 8px 9px 10px; }
  .product-card .product-name { font-size: 14px; }
  .card-description { font-size: 11px; }
  .card-actions { gap: 6px; }
  .card-actions .add-button, .card-detail { padding-inline: 6px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-card, .storefront-banner::after { animation: none; }
  .storefront-banner::after { display: none; }
}
