:root {
  --bg: #050706;
  --surface: #0c100e;
  --surface-2: #121815;
  --surface-3: #19221e;
  --plate: #0f1512;
  --text: #e8efeb;
  --text-2: #b9c6bf;
  --muted: #7f8f87;
  --border: #1b2521;
  --border-strong: #2a3a33;
  --line: rgba(52, 168, 110, 0.06);
  --line-strong: rgba(52, 168, 110, 0.12);
  --ink: #5cc995;
  --primary: #12704a;
  --primary-hover: #17885b;
  --primary-deep: #0a3d29;
  --primary-soft: rgba(23, 136, 91, 0.16);
  --primary-ring: rgba(52, 194, 127, 0.4);
  --accent: #34c27f;
  --ok: #3dd68c;
  --ok-soft: rgba(61, 214, 140, 0.12);
  --warn: #f2b23e;
  --warn-soft: rgba(242, 178, 62, 0.12);
  --danger: #ff6b6b;
  --danger-soft: rgba(255, 107, 107, 0.12);
  --info: #5cc8ff;
  --info-soft: rgba(92, 200, 255, 0.12);
  --footer: #030504;
  --footer-text: #7f9188;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.5);
  --container: 1240px;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --font: system-ui, "Segoe UI", "SF Arabic", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  color-scheme: dark;}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--ink);
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.35;
  color: var(--text);
}

p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--primary-ring);
  outline-offset: 2px;
}

::selection {
  background: rgba(23, 136, 91, 0.55);
  color: #ffffff;
}

.icon {
  flex: none;
}

[dir="rtl"] .flip-rtl {
  transform: scaleX(-1);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 100;
  background: var(--primary);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 12px;
  color: #ffffff;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 16px;
}

.page {
  flex: 1;
  padding-block: 24px 64px;
}

.muted {
  color: var(--muted);
}

.text-link {
  color: var(--ink);
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bp-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line-strong) 1px, transparent 1px), linear-gradient(90deg, var(--line-strong) 1px, transparent 1px),
    linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000000 0%, rgba(0, 0, 0, 0.6) 55%, rgba(0, 0, 0, 0.3) 100%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000000 0%, rgba(0, 0, 0, 0.6) 55%, rgba(0, 0, 0, 0.3) 100%);
}

.bp-scan {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 160px;
  background: linear-gradient(180deg, transparent 0%, rgba(52, 194, 127, 0.04) 80%, rgba(80, 210, 150, 0.2) 100%);
  border-bottom: 1px solid rgba(90, 220, 160, 0.4);
  transform: translateY(-180px);
  animation: scan-y 13s linear infinite;
}

.bp-node {
  position: absolute;
  width: 15px;
  height: 15px;
  margin: -7px 0 0 -7px;
  opacity: 0.2;
  animation: node-blink 3.4s ease-in-out infinite;
}

.bp-node::before,
.bp-node::after {
  content: "";
  position: absolute;
  background: var(--ink);
}

.bp-node::before {
  left: 7px;
  top: 0;
  width: 1px;
  height: 15px;
}

.bp-node::after {
  top: 7px;
  left: 0;
  width: 15px;
  height: 1px;
}

.bp-node:nth-child(1) {
  left: 240px;
  top: 360px;
}

.bp-node:nth-child(2) {
  left: 600px;
  top: 240px;
  animation-delay: -1.1s;
}

.bp-node:nth-child(3) {
  left: 960px;
  top: 480px;
  animation-delay: -2.2s;
}

.bp-node:nth-child(4) {
  left: 1320px;
  top: 120px;
  animation-delay: -0.6s;
}

.bp-node:nth-child(5) {
  left: 120px;
  top: 720px;
  animation-delay: -1.7s;
}

.bp-node:nth-child(6) {
  left: 840px;
  top: 840px;
  animation-delay: -2.8s;
}

.bp-node:nth-child(7) {
  left: 480px;
  top: 600px;
  animation-delay: -0.3s;
}

.bp-node:nth-child(8) {
  left: 1200px;
  top: 720px;
  animation-delay: -1.4s;
}

.topbar {
  background: #0a2a1d;
  border-bottom: 1px solid #12402c;
  color: #cfe9dc;
  font-size: 0.8rem;
  font-weight: 600;
}

.topbar .container {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding-block: 6px;
}

.topbar span + span::before {
  content: "+";
  margin-inline-end: 10px;
  color: var(--accent);
  font-family: var(--mono);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 7, 6, 0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-main {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
  white-space: nowrap;
  color: var(--text);
  padding-inline-start: 12px;
  border-inline-start: 3px solid var(--primary-hover);
}

.brand:hover {
  color: var(--text);
}

.brand-main {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.08em;
}

.brand-light .brand-main {
  color: #ffffff;
}

.search {
  position: relative;
  flex: 1;
  max-width: 560px;
}

.search input {
  width: 100%;
  height: 46px;
  min-height: 0;
  padding-block: 0;
  padding-inline: 18px 54px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search input::-webkit-search-cancel-button {
  display: none;
}

.search button {
  position: absolute;
  top: 5px;
  inset-inline-end: 5px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: var(--primary);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.search button:hover {
  background: var(--primary-hover);
}

.header-actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.icon-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text-2);
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}

.icon-link:hover {
  background: var(--surface-2);
  color: var(--text);
}

.icon-link .icon {
  width: 22px;
  height: 22px;
}

.cart-link {
  border: 1px solid var(--border-strong);
  background: var(--primary-soft);
  color: var(--ink);
}

.cart-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.icon-link .count {
  position: absolute;
  top: -2px;
  inset-inline-start: 26px;
  min-width: 19px;
  height: 19px;
  padding-inline: 5px;
  border-radius: 999px;
  border: 2px solid var(--bg);
  background: var(--accent);
  color: #03140b;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 15px;
  text-align: center;
}

.category-nav {
  border-top: 1px solid var(--border);
}

.category-nav .container {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 48px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-nav .container::-webkit-scrollbar {
  display: none;
}

.category-nav a {
  position: relative;
  padding: 12px 14px;
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-2);
}

.category-nav a:hover,
.category-nav a[aria-current="page"] {
  color: var(--ink);
}

.category-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset-inline: 12px;
  bottom: 0;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 0 10px rgba(92, 201, 149, 0.55);
}

.site-footer {
  background: var(--footer);
  border-top: 1px solid var(--border);
  color: var(--footer-text);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 32px;
  padding-block: 48px 36px;
}

.footer-about {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 14px;
}

.footer-about p {
  max-width: 34ch;
}

.site-footer h2 {
  color: #ffffff;
  font-size: 0.98rem;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-links a:hover {
  color: var(--ink);
}

.pay-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.pay-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
  font-size: 0.85rem;
}

.vat-note {
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.site-footer .vat-note {
  color: var(--footer-text);
  text-align: start;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
}

.footer-bottom .container {
  min-height: 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-block: 12px;
}

.footer-bottom a:hover {
  color: var(--ink);
}

.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 20px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
  font-size: 0.93rem;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.button:hover {
  border-color: var(--ink);
  color: #ffffff;
}

.button.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 0 0 4px rgba(23, 136, 91, 0.22);
}

.button.soft {
  background: var(--primary-soft);
  border-color: rgba(52, 194, 127, 0.3);
  color: var(--ink);
}

.button.soft:hover,
.button.is-added {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.button.light {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--primary-deep);
}

.button.light:hover {
  background: #dcf5e8;
  border-color: #dcf5e8;
  color: var(--primary-deep);
}

.button.ghost-light {
  background: rgba(3, 14, 9, 0.35);
  border-color: rgba(150, 230, 190, 0.5);
  color: #ffffff;
}

.button.ghost-light:hover {
  background: rgba(150, 230, 190, 0.1);
  border-color: #ffffff;
}

.button.danger {
  color: var(--danger);
  border-color: rgba(255, 107, 107, 0.4);
  background: transparent;
}

.button.danger:hover {
  background: var(--danger-soft);
  border-color: var(--danger);
  color: var(--danger);
}

.button.small {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 0.85rem;
}

.button.lg {
  min-height: 52px;
  padding-inline: 26px;
  font-size: 1rem;
}

.button.wide {
  width: 100%;
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.button.is-added:disabled {
  opacity: 1;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button-row.center {
  justify-content: center;
}

.breadcrumbs {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-inline-end: 6px;
  color: var(--border-strong);
}

.breadcrumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  margin-bottom: 18px;
}

.page-head h1 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 800;
}

.page-head .muted {
  font-family: var(--mono);
  font-size: 0.85rem;
}

.section {
  margin-top: 48px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.section-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
}

.section-head h2::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent);
}

.section-head p {
  color: var(--muted);
  margin-top: 2px;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}

.section-link:hover {
  color: #ffffff;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 380px;
  padding: clamp(28px, 5vw, 60px);
  border: 1px solid #1a3b2d;
  border-radius: var(--radius-lg);
  background: radial-gradient(110% 140% at 78% 30%, #0f4430 0%, #0a2a1d 42%, #060f0b 100%);
  color: #ffffff;
  isolation: isolate;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  max-width: 36rem;
}

.hero-kicker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid rgba(92, 201, 149, 0.4);
  border-radius: 999px;
  background: rgba(5, 20, 14, 0.55);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(1.8rem, 4.2vw, 2.9rem);
  font-weight: 800;
  line-height: 1.25;
  text-wrap: balance;
}

.hero p {
  color: rgba(214, 232, 248, 0.84);
  font-size: 1.06rem;
  max-width: 44ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.hero-art {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 440 / 300;
  margin-inline: auto;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 6% 14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 194, 127, 0.22) 0%, rgba(52, 194, 127, 0) 68%);
}

.hero-coin {
  position: absolute;
  width: 42%;
  height: auto;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.55));
  transition: translate 0.35s, rotate 0.35s;
  animation: coin-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.coin-a {
  top: 0;
  left: 4%;
}

.coin-b {
  bottom: 0;
  right: 4%;
  animation-delay: 0.15s;
}

.hero:hover .coin-a {
  translate: 0 -5px;
  rotate: -3deg;
}

.hero:hover .coin-b {
  translate: 0 -5px;
  rotate: 3deg;
}

.features {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.feature:hover {
  border-color: var(--border-strong);
}

.feature-icon {
  flex: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(52, 194, 127, 0.3);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--ink);
  transition: transform 0.25s;
}

.feature:hover .feature-icon {
  transform: rotate(-8deg) scale(1.06);
}

.feature strong {
  display: block;
  font-size: 0.93rem;
}

.feature small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.category-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.category-tile {
  flex: 0 1 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 12px 18px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s, translate 0.2s;
}

.category-tile:hover {
  color: var(--text);
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
  translate: 0 -3px;
}

.category-mark {
  width: 78px;
  height: 78px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 40%, #18231e 0%, var(--plate) 75%);
  color: var(--ink);
  font-size: 1.6rem;
  font-weight: 800;
  overflow: hidden;
  transition: transform 0.25s;
}

.category-tile:hover .category-mark {
  transform: scale(1.06);
}

.category-mark img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.category-tile strong {
  font-size: 0.95rem;
}

.category-tile small {
  color: var(--muted);
  font-size: 0.8rem;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 20px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  padding: 8px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-2);
  font-weight: 700;
  font-size: 0.87rem;
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.chip[aria-current="page"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s, translate 0.25s;
}

.product-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
  translate: 0 -4px;
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at 50% 42%, #18231e 0%, var(--plate) 72%);
}

.product-media img {
  position: relative;
  z-index: 1;
  width: 74%;
  height: 74%;
  object-fit: contain;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.45));
  transition: scale 0.25s;
}

.product-card:hover .product-media img {
  scale: 1.05;
}

.media-placeholder {
  position: relative;
  z-index: 1;
  color: #3f5a4d;
}

.product-badge {
  position: absolute;
  z-index: 3;
  bottom: 12px;
  inset-inline-start: 12px;
  padding: 3px 10px;
  border: 1px solid rgba(255, 107, 107, 0.45);
  border-radius: 4px;
  background: rgba(40, 10, 14, 0.85);
  color: #ffb3b3;
  font-size: 0.74rem;
  font-weight: 800;
}

.product-card.is-unavailable .product-media img,
.product-card.is-unavailable .media-placeholder {
  opacity: 0.4;
  filter: grayscale(0.8);
}

.product-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
}

.product-category {
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.product-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-desc {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  display: grid;
  gap: 2px;
  margin-top: auto;
  padding-top: 6px;
}

.price-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-size: 1.12rem;
  font-weight: 800;
}

.price-alt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.product-body .button {
  margin-top: 8px;
}

.currency {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  vertical-align: middle;
}

.currency-icon {
  width: 1.3em;
  height: 1.3em;
  object-fit: contain;
  flex: none;
}

.grid-tag {
  display: inline-block;
  padding: 0 7px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.85em;
  font-weight: 700;
}

.stats-band {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 16px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.stats-copy h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.stats-copy p {
  color: var(--muted);
}

.stat {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 18px;
  text-align: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
}

.stat-icon {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(52, 194, 127, 0.3);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--ink);
}

.stat strong {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
}

.stat > span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.branch-grid-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.branch-card {
  flex: 1 1 260px;
  max-width: 400px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.branch-card:hover {
  border-color: var(--border-strong);
}

.branch-media {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #121a16 0%, #0b100e 100%);
}

.branch-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.branch-media .media-placeholder {
  color: #3f6a55;
}

.branch-body {
  padding: 14px 16px 16px;
  display: grid;
  gap: 6px;
}

.branch-body h3 {
  font-size: 1rem;
  font-weight: 800;
}

.branch-grid {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.branch-grid .icon {
  color: var(--accent);
}

.empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 52px 20px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: #3f5a4d;
}

.empty h2 {
  font-size: 1.15rem;
}

.empty p {
  color: var(--muted);
  max-width: 40ch;
}

.empty .button {
  margin-top: 6px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.panel + .panel {
  margin-top: 16px;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 1.05rem;
  font-weight: 800;
}

.panel-title .step {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 0.8rem;
}

.panel-title .icon {
  color: var(--ink);
}

.panel > p.muted {
  margin-bottom: 14px;
}

.stack {
  min-width: 0;
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
  align-items: start;
}

.summary {
  position: sticky;
  top: 140px;
  display: grid;
  gap: 16px;
}

.summary .panel-title {
  margin-bottom: 0;
}

.continue-link {
  text-align: center;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
}

.field {
  display: grid;
  align-content: start;
  gap: 6px;
  margin-bottom: 16px;
}

.field > span {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-2);
}

.field small {
  color: var(--muted);
  font-size: 0.8rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}

input:not([type="radio"]):not([type="checkbox"]),
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

select option {
  background: var(--surface-2);
  color: var(--text);
}

input:not([type="radio"]):not([type="checkbox"]):focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(23, 136, 91, 0.28);
}

input::placeholder {
  color: #5f7368;
}

.hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  color: var(--text-2);
  font-size: 0.88rem;
  font-weight: 600;
}

.hint .icon {
  color: var(--accent);
}

.options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.options legend:not(.sr-only) {
  float: left;
  grid-column: 1 / -1;
  width: 100%;
  margin-bottom: 10px;
  padding: 0;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-2);
}

.option {
  position: relative;
  cursor: pointer;
}

.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-body {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface-2);
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.option:hover .option-body {
  border-color: var(--ink);
}

.option input:checked + .option-body {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.option input:focus-visible + .option-body {
  outline: 3px solid var(--primary-ring);
  outline-offset: 2px;
}

.option-image {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.option-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--ink);
}

.option-text {
  min-width: 0;
}

.option-text strong {
  display: block;
  font-size: 0.95rem;
}

.option-text small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.option-check {
  flex: none;
  margin-inline-start: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--surface);
}

.option input:checked + .option-body .option-check {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: inset 0 0 0 3px var(--surface);
}

.steps {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.88rem;
}

.steps li + li::before {
  content: "";
  width: 34px;
  height: 0;
  margin-inline-end: 2px;
  border-top: 2px dashed var(--border-strong);
}

.steps .num {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.steps .done {
  color: var(--ink);
}

.steps .done .num {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.steps .current {
  color: var(--text);
}

.steps .current .num {
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: 0 0 0 3px rgba(92, 201, 149, 0.15);
}

.lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.line {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto minmax(110px, auto) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.line:first-child {
  padding-top: 0;
}

.line:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.line-media {
  width: 76px;
  height: 76px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--plate);
  color: #3f5a4d;
}

.line-media img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.line-info {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.line-info strong {
  font-weight: 700;
}

.line-info .muted {
  font-size: 0.85rem;
}

.qty {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
}

.qty button {
  width: 36px;
  height: 38px;
  border: 0;
  background: var(--surface-2);
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.qty button:hover {
  background: var(--surface-3);
  color: var(--ink);
}

.qty-value {
  min-width: 34px;
  text-align: center;
  font-family: var(--mono);
  font-weight: 800;
}

.line-total {
  font-weight: 800;
  white-space: nowrap;
  text-align: end;
}

.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.icon-button:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

.compact-line {
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px 0;
}

.compact-line .line-media {
  width: 52px;
  height: 52px;
}

.totals {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 16px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

.totals dt {
  color: var(--text-2);
  font-size: 0.9rem;
}

.totals dd {
  margin: 0;
  text-align: end;
  font-weight: 700;
}

.totals .grand {
  padding-top: 12px;
  border-top: 1px dashed var(--border-strong);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
}

.totals.has-fee .after-fee {
  padding-top: 12px;
  border-top: 1px solid var(--border-strong);
}

.turnstile-box {
  min-height: 65px;
}

.notice {
  padding: 12px 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(242, 178, 62, 0.35);
  border-radius: 8px;
  background: var(--warn-soft);
  color: #f6cf86;
  font-size: 0.9rem;
  font-weight: 600;
}

.notice.success {
  border-color: rgba(61, 214, 140, 0.35);
  background: var(--ok-soft);
  color: #8ef0bf;
}

.form-error {
  padding: 10px 14px;
  margin: 0 0 14px;
  border: 1px solid rgba(255, 107, 107, 0.35);
  border-radius: 8px;
  background: var(--danger-soft);
  color: #ffb3b3;
  font-size: 0.9rem;
  font-weight: 700;
}

.summary .form-error {
  margin: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  background: currentColor;
}

.status-new {
  background: var(--info-soft);
  color: var(--info);
}

.status-preparing {
  background: var(--warn-soft);
  color: var(--warn);
}

.status-ready {
  background: var(--ok-soft);
  color: var(--ok);
}

.status-done {
  background: var(--surface-3);
  color: var(--text-2);
}

.status-cancelled {
  background: var(--danger-soft);
  color: var(--danger);
}

.order-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.order-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.order-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.order-card-head strong span {
  font-family: var(--mono);
  color: var(--ink);
}

.order-card-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
}

.order-fact > span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.order-fact > strong {
  font-size: 0.92rem;
}

.success-banner {
  max-width: 880px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px 20px;
  border: 1px solid rgba(61, 214, 140, 0.35);
  border-radius: var(--radius);
  background: var(--ok-soft);
  color: var(--ok);
}

.success-banner strong {
  display: block;
  font-size: 1.02rem;
}

.success-banner small {
  display: block;
  color: var(--text-2);
}

.success-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--ok);
  color: #04130b;
}

.receipt-toolbar {
  max-width: 880px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.receipt-toolbar .breadcrumbs {
  margin: 0;
}

.receipt {
  max-width: 880px;
  margin-inline: auto;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.receipt-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 28px;
  border-top: 4px solid var(--primary);
  border-bottom: 1px solid var(--border);
}

.receipt-brand {
  display: grid;
  line-height: 1.15;
  padding-inline-start: 12px;
  border-inline-start: 3px solid var(--primary-hover);
}

.receipt-brand .brand-main {
  font-size: 1.6rem;
}

.receipt-title {
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: end;
}

.receipt-title h1 {
  font-size: 1.15rem;
  font-weight: 800;
}

.receipt-title p {
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 700;
}

.receipt-info {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 18px 28px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.info-block > span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.info-block > strong {
  display: block;
  font-size: 0.92rem;
}

.info-block > small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.table-wrap {
  overflow-x: auto;
}

.receipt-items {
  width: 100%;
  border-collapse: collapse;
}

.receipt-items th {
  padding: 12px 28px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: start;
  white-space: nowrap;
}

.receipt-items td {
  padding: 14px 28px;
  border-bottom: 1px solid var(--border);
}

.receipt-items td:first-child {
  font-weight: 700;
}

.receipt-items td + td {
  font-family: var(--mono);
}

.receipt-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 24px;
  padding: 22px 28px;
}

.receipt-note {
  padding: 12px 14px;
  border: 1px solid rgba(242, 178, 62, 0.35);
  border-radius: 8px;
  background: var(--warn-soft);
  color: #f6cf86;
  font-size: 0.9rem;
}

.disclaimer {
  padding: 14px 28px;
  border-top: 1px dashed var(--border-strong);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.receipt-actions {
  max-width: 880px;
  margin: 14px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 8px auto 0;
  padding: clamp(22px, 4vw, 36px);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.auth-card::before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ink), transparent);
}

.auth-card h1 {
  font-size: 1.55rem;
  font-weight: 800;
}

.auth-card h2 {
  font-size: 1.1rem;
  margin-block: 18px 6px;
}

.auth-card .lead {
  color: var(--muted);
  margin: 4px 0 22px;
}

.auth-card .button.primary {
  margin-top: 4px;
}

.auth-link {
  margin-top: 14px;
  text-align: center;
}

.auth-link a {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
}

.auth-alt {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-alt a {
  color: var(--ink);
  font-weight: 800;
}

.sub-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.sub-panel summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 12px;
}

.codes {
  margin: 12px 0;
  padding: 14px 14px 14px 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 4px 16px;
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--mono);
}

.passkey-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.passkey-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
}

.meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 20px;
  margin: 0;
}

.meta dt {
  color: var(--muted);
}

.meta dd {
  margin: 0;
  font-weight: 700;
}

.account-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.account-side {
  position: sticky;
  top: 140px;
  padding: 18px;
}

.account-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.account-user strong {
  display: block;
}

.account-user small {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
}

.avatar {
  flex: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 800;
}

.account-nav {
  display: grid;
  gap: 4px;
}

.account-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-2);
  font-weight: 700;
}

.account-nav a:hover {
  background: var(--surface-2);
  color: var(--text);
}

.account-nav a[aria-current="page"] {
  background: var(--primary-soft);
  color: var(--ink);
}

.danger-panel {
  border-color: rgba(255, 107, 107, 0.35);
}

.danger-panel .panel-title {
  color: var(--danger);
}

.message-card {
  max-width: 560px;
  margin: 24px auto 0;
  padding: 40px 28px;
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
}

.message-icon {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(242, 178, 62, 0.45);
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--warn-soft);
  color: var(--warn);
}

.message-card h1 {
  font-size: 1.4rem;
  font-weight: 800;
}

.message-card p {
  color: var(--muted);
}

.message-card .button-row {
  margin-top: 8px;
}

.toast {
  position: fixed;
  inset-inline: 16px;
  bottom: 20px;
  z-index: 60;
  max-width: 440px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--border-strong);
  border-inline-start: 3px solid var(--accent);
  border-radius: 8px;
  background: #111a16;
  color: var(--text);
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.toast.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.toast a {
  margin-inline-start: auto;
  color: var(--ink);
  white-space: nowrap;
}

.toast a:hover {
  color: #ffffff;
}

.icon-link .count.bump {
  animation: bump 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.hero-copy > * {
  animation: rise-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-copy > :nth-child(2) {
  animation-delay: 0.08s;
}

.hero-copy > :nth-child(3) {
  animation-delay: 0.16s;
}

.hero-copy > :nth-child(4) {
  animation-delay: 0.24s;
}

@keyframes scan-y {
  from {
    transform: translateY(-180px);
  }
  to {
    transform: translateY(calc(100vh + 20px));
  }
}

@keyframes node-blink {
  0%,
  100% {
    opacity: 0.15;
  }
  50% {
    opacity: 0.9;
  }
}

@keyframes coin-in {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes bump {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.45);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes reveal-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes header-lift {
  to {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
}

@supports (animation-timeline: view()) {
  .product-card,
  .category-tile,
  .feature,
  .branch-card,
  .stats-band,
  .order-card {
    animation: reveal-up linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 24%;
  }
}

@supports (animation-timeline: scroll()) {
  .site-header {
    animation: header-lift linear both;
    animation-timeline: scroll();
    animation-range: 0 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .bp-scan {
    display: none;
  }

  .hero-copy > *,
  .hero-coin,
  .icon-link .count.bump,
  .product-card,
  .category-tile,
  .feature,
  .branch-card,
  .stats-band,
  .order-card {
    animation: none !important;
  }

  @supports (animation-timeline: view()) {
    .product-card,
    .category-tile,
    .feature,
    .branch-card,
    .stats-band,
    .order-card {
      animation: reveal-fade linear both !important;
      animation-timeline: view() !important;
      animation-range: entry 0% cover 18% !important;
    }
  }
}

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .header-main {
    flex-wrap: wrap;
    gap: 10px 16px;
    padding-block: 12px;
  }

  .search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }

  .icon-link .label {
    display: none;
  }

  .icon-link {
    padding: 9px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-art {
    max-width: 400px;
  }

  .shop-layout,
  .account-layout {
    grid-template-columns: 1fr;
  }

  .summary,
  .account-side {
    position: static;
  }

  .stats-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-copy {
    grid-column: 1 / -1;
  }

  .receipt-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-card-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    font-size: 14.5px;
  }

  .page {
    padding-block: 16px 48px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-body {
    padding: 10px 12px 12px;
  }

  .product-desc {
    display: none;
  }

  .price-main {
    font-size: 1rem;
  }

  .add-to-cart {
    min-height: 40px;
    padding-inline: 8px;
    font-size: 0.85rem;
  }

  .line {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 6px 12px;
  }

  .line .line-media {
    width: 64px;
    height: 64px;
    grid-row: span 2;
  }

  .line .line-info {
    grid-column: 2;
    grid-row: 1;
  }

  .line .remove {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .line .qty {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }

  .line .line-total {
    grid-column: 3;
    grid-row: 2;
  }

  .compact-line .line-media {
    grid-row: auto;
  }

  .compact-line .line-info,
  .compact-line .line-total {
    grid-row: 1;
  }

  .compact-line .line-total {
    grid-column: 3;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .receipt-top,
  .receipt-info,
  .receipt-foot {
    padding-inline: 18px;
  }

  .receipt-items th,
  .receipt-items td {
    padding-inline: 18px;
  }

  .receipt-foot {
    grid-template-columns: 1fr;
  }

  .section-head h2 {
    font-size: 1.2rem;
  }
}

@media (max-width: 560px) {
  .topbar {
    font-size: 0.78rem;
  }

  .topbar span + span {
    display: none;
  }

  .brand-main {
    font-size: 1.25rem;
  }

  .header-actions {
    gap: 0;
  }

  .hero {
    padding: 24px 20px;
  }

  .hero-actions .button {
    flex: 1;
    padding-inline: 12px;
    white-space: nowrap;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .options {
    grid-template-columns: 1fr;
  }

  .stats-band {
    padding: 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .order-card-body {
    grid-template-columns: 1fr;
  }

  .receipt-info {
    grid-template-columns: 1fr;
  }

  .receipt-title {
    justify-items: start;
    text-align: start;
  }
}

@media print {
  :root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #f3f3f3;
    --surface-3: #e8e8e8;
    --text: #000000;
    --text-2: #222222;
    --muted: #555555;
    --border: #cccccc;
    --border-strong: #999999;
    --ink: #000000;
    color-scheme: light;
  }

  .ambient,
  .topbar,
  .site-header,
  .site-footer,
  .no-print,
  .toast,
  .skip-link {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  .page {
    padding: 0;
  }

  .receipt {
    max-width: none;
    border: 0;
  }

  .receipt-top {
    background-image: none;
  }

  .receipt-brand .brand-main,
  .totals .grand,
  .price-main {
    color: #000000;
  }

  .receipt-note {
    color: #000000;
    background: #f3f3f3;
  }
}
