:root {
  color-scheme: light;
  --ink: #3a1b28;
  --muted: #826a74;
  --paper: #fff1f5;
  --panel: #fffdfb;
  --line: #f2cbd7;
  --accent: #d94f74;
  --accent-dark: #a72f52;
  --gold: #f0a84f;
  --mint: #2f9f93;
  --rose-soft: #ffd9e5;
  --coral: #f06f5b;
  --shadow: 0 14px 34px rgba(126, 48, 76, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 4%, rgba(255, 190, 212, 0.7), transparent 24%),
    radial-gradient(circle at 94% 8%, rgba(240, 111, 91, 0.16), transparent 27%),
    linear-gradient(180deg, #fff8fa 0%, var(--paper) 45%, #fff9ed 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.eid-theme {
  --paper: #fffdf8;
  --accent: #e64848;
  --accent-dark: #bd3030;
  --gold: #ffa90a;
}

body.modal-open {
  overflow: hidden;
}

.demo-watermark {
  position: fixed;
  right: -34px;
  bottom: 112px;
  z-index: 60;
  padding: 7px 44px;
  border: 1px solid rgba(167, 47, 82, 0.22);
  background: rgba(255, 255, 255, 0.82);
  color: rgba(167, 47, 82, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  pointer-events: none;
  text-transform: uppercase;
  transform: rotate(-35deg);
  backdrop-filter: blur(12px);
}

.demo-badge,
.demo-mini-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  width: max-content;
  border: 1px solid rgba(217, 79, 116, 0.22);
  border-radius: 999px;
  background: #fff;
  color: var(--accent-dark);
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(126, 48, 76, 0.08);
}

.demo-badge.soft {
  background: rgba(255, 255, 255, 0.72);
}

.eid-side,
.eid-hero-note {
  display: none;
}

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

[hidden] {
  display: none !important;
}

button,
input,
textarea {
  font: inherit;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px clamp(18px, 4vw, 56px);
  background: rgba(255, 248, 251, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: none;
  text-align: left;
}

.brand-logo {
  width: 134px;
  height: 60px;
  border-radius: 999px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 10px 24px rgba(217, 79, 116, 0.14);
}

.brand-trigger {
  cursor: pointer;
  user-select: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand small {
  color: var(--muted);
  font-size: 0.79rem;
}

nav {
  display: flex;
  gap: 8px;
}

nav a,
.primary-link,
.ghost-button,
.add-button,
.submit-button,
.admin-product-row {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

nav a {
  display: inline-grid;
  place-items: center;
  padding: 0 14px;
  color: var(--ink);
}

nav a:hover {
  background: #eee8df;
}

.cart-nav-link {
  grid-auto-flow: column;
  gap: 8px;
}

.cart-nav-link span {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.mobile-checkout-bar {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 35;
  display: none;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 18px 40px rgba(23, 22, 21, 0.28);
  text-decoration: none;
}

.mobile-checkout-bar strong {
  display: inline-grid;
  min-height: 36px;
  place-items: center;
  padding: 0 12px;
  border-radius: 7px;
  background: var(--accent);
}

.hero {
  display: grid;
  min-height: auto;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(14px, 4vw, 34px);
  padding: 18px clamp(18px, 4vw, 56px) 12px;
  background:
    linear-gradient(110deg, rgba(255, 248, 251, 0.98) 0%, rgba(255, 244, 248, 0.92) 48%, rgba(255, 214, 225, 0.64) 100%),
    url("assets/workbench-texture.svg");
  border-bottom: 1px solid var(--line);
}

.hero-demo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.brand-note {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

body.eid-theme .topbar {
  background: rgba(255, 253, 248, 0.92);
}

body.eid-theme .hero {
  position: relative;
  background:
    linear-gradient(112deg, rgba(255, 253, 248, 0.97) 0%, rgba(255, 253, 248, 0.88) 52%, rgba(255, 229, 181, 0.72) 100%),
    url("assets/workbench-texture.svg");
}

body.eid-theme .hero::after {
  content: "";
  position: absolute;
  right: clamp(18px, 5vw, 78px);
  bottom: 8px;
  width: min(180px, 26vw);
  aspect-ratio: 1 / 1;
  background: url("assets/eid/eid-mubarak.svg") center / contain no-repeat;
  opacity: 0.075;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.featured-slider {
  position: relative;
  overflow: hidden;
  min-height: 184px;
}

.featured-track {
  display: grid;
}

.featured-slide {
  grid-area: 1 / 1;
  display: grid;
  min-height: 170px;
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 260ms ease, transform 260ms ease;
  pointer-events: none;
}

.featured-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.featured-photo-button {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  width: min(520px, 100%);
  min-height: 170px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(44, 28, 12, 0.1);
}

.featured-drop-card {
  grid-template-columns: minmax(0, 0.72fr) minmax(190px, 1fr);
  gap: 10px;
  place-items: center;
  overflow: hidden;
  padding: 16px 16px 14px 18px;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 178, 38, 0.28), transparent 34%),
    linear-gradient(135deg, #fff 0%, #fffaf1 100%);
  text-align: left;
}

.featured-drop-card::before {
  content: "";
  position: absolute;
  inset: auto -46px -76px auto;
  width: 190px;
  aspect-ratio: 1;
  border: 28px solid rgba(242, 31, 43, 0.12);
  border-radius: 999px;
  pointer-events: none;
}

.featured-copy {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  gap: 5px;
  justify-self: stretch;
}

.featured-copy span {
  width: max-content;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.featured-copy strong {
  color: var(--ink);
  font-size: clamp(1.35rem, 4vw, 2.25rem);
  line-height: 0.98;
}

.featured-copy small {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
}

.featured-photo-button img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 156px;
  object-fit: contain;
}

.featured-empty {
  width: min(520px, 100%);
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    url("assets/rc-garage-mv-logo.jpg") center / min(280px, 72%) auto no-repeat,
    #fff;
}

.featured-dots {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.featured-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 22, 21, 0.24);
  cursor: pointer;
}

.featured-dots button.active {
  width: 20px;
  background: var(--accent);
}

body.eid-theme .eid-hero-note {
  display: inline-grid;
  gap: 3px;
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 169, 10, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #070a5a;
  box-shadow: 0 12px 28px rgba(7, 10, 90, 0.08);
}

.eid-hero-note span {
  font-weight: 900;
}

.eid-hero-note small {
  color: var(--muted);
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: none;
  margin-bottom: 4px;
  font-size: clamp(2.45rem, 7vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.hero p:not(.eyebrow) {
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.25;
}

.primary-link,
.submit-button {
  display: inline-grid;
  place-items: center;
  padding: 0 20px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.primary-link:hover,
.submit-button:hover {
  background: var(--accent-dark);
}

.section-heading {
  padding: 18px clamp(18px, 4vw, 56px) 18px;
}

.products-toolbar {
  display: grid;
  gap: 12px;
  padding-top: 14px;
}

.product-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.search-toggle {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(24, 25, 32, 0.04);
}

.search-toggle span {
  position: relative;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.search-toggle span::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: center;
}

.search-toggle:hover,
.search-toggle[aria-expanded="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.order-contact-note a {
  color: var(--accent);
  font-weight: 900;
  text-decoration: none;
}

.category-filter {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.product-search {
  display: none;
  max-width: 520px;
  margin-top: 14px;
}

.product-search.is-open {
  display: grid;
}

.product-search span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-search input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.category-chip {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #e5ddd3;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(24, 25, 32, 0.04);
  font-weight: 800;
}

.category-chip.active,
.category-chip:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.cart-toast {
  position: fixed;
  right: clamp(16px, 4vw, 34px);
  bottom: clamp(16px, 4vw, 34px);
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  width: min(440px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid rgba(31, 157, 131, 0.28);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(23, 22, 21, 0.2);
  transform: translateY(18px);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.cart-toast.visible {
  transform: translateY(0);
  opacity: 1;
}

.cart-toast strong,
.cart-toast p {
  margin: 0;
}

.cart-toast p {
  margin-top: 3px;
  color: var(--muted);
}

.cart-toast a {
  display: inline-grid;
  min-height: 40px;
  place-items: center;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.order-receipt-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(23, 22, 21, 0.52);
}

.order-receipt {
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(23, 22, 21, 0.28);
  padding: 20px;
}

.product-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(23, 22, 21, 0.5);
}

.product-sheet {
  display: grid;
  gap: 14px;
  width: min(620px, 100%);
  max-height: min(820px, calc(100vh - 36px));
  overflow: auto;
  padding: 10px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(23, 22, 21, 0.28);
}

.sheet-handle {
  justify-self: center;
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: #d8d1c7;
}

.product-sheet h2 {
  margin: 0;
  font-size: clamp(1.55rem, 6vw, 2.3rem);
}

.sheet-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: #e8e3da;
  object-fit: cover;
}

.sheet-gallery {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.sheet-gallery-thumb {
  width: 58px;
  height: 48px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.sheet-gallery-thumb.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.sheet-gallery-thumb img {
  width: 100%;
  height: 100%;
  border-radius: 7px;
  object-fit: contain;
}

.sheet-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.sheet-size {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.sheet-size span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.sheet-size strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.sheet-size small {
  color: var(--muted);
  line-height: 1.35;
}

.order-receipt h2 {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2.35rem);
}

.receipt-intro {
  color: var(--muted);
  line-height: 1.5;
}

.order-receipt pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f4ef;
  color: var(--ink);
  font: 0.92rem/1.45 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.receipt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.receipt-actions .submit-button,
.receipt-actions .ghost-button {
  min-height: 44px;
}

.section-heading.compact {
  padding: 0 0 24px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 0 clamp(18px, 4vw, 56px) 78px;
}

.product-group {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
}

.product-group + .product-group {
  margin-top: 22px;
}

.product-group-heading h3 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.product-group-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.product-empty {
  grid-column: 1 / -1;
}

.empty-garage {
  display: grid;
  justify-items: center;
  gap: 18px;
  min-height: 330px;
  margin: 4px 0 10px;
  padding: clamp(34px, 8vw, 70px) clamp(18px, 5vw, 54px);
  overflow: hidden;
  border: 1px solid rgba(224, 35, 35, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 12%, rgba(224, 35, 35, 0.08), transparent 28%),
    linear-gradient(135deg, #fffdf8 0%, #fff 48%, #fbf7ee 100%);
  box-shadow: 0 18px 48px rgba(24, 25, 32, 0.08);
  text-align: center;
}

.empty-garage-visual {
  position: relative;
  width: min(210px, 62vw);
  height: 118px;
}

.empty-garage-light {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(224, 35, 35, 0.26);
  transform: translateX(-50%);
  animation: pitPulse 2.4s ease-in-out infinite;
}

.empty-garage-car {
  position: absolute;
  right: 18px;
  bottom: 24px;
  width: 154px;
  height: 52px;
  border-radius: 26px 36px 18px 18px;
  background: linear-gradient(135deg, #17181d 0%, #25272e 48%, #0d0e11 100%);
  box-shadow: 0 14px 24px rgba(24, 25, 32, 0.16);
  animation: pitFloat 3.4s ease-in-out infinite;
}

.empty-garage-car::before {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 40px;
  width: 76px;
  height: 34px;
  border-radius: 38px 44px 0 0;
  background: #17181d;
}

.empty-garage-car::after {
  content: "";
  position: absolute;
  right: -15px;
  bottom: 13px;
  width: 26px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: -122px 0 0 rgba(224, 35, 35, 0.72);
}

.empty-garage-window {
  position: absolute;
  right: 48px;
  bottom: 46px;
  z-index: 1;
  width: 44px;
  height: 18px;
  border-radius: 20px 20px 3px 3px;
  background: linear-gradient(135deg, #fff 0%, #dfe7ef 100%);
}

.empty-garage-wheel {
  position: absolute;
  bottom: -12px;
  width: 30px;
  height: 30px;
  border: 7px solid #0f1014;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 3px #b8bec8;
  animation: pitWheel 1.8s linear infinite;
}

.wheel-left {
  left: 25px;
}

.wheel-right {
  right: 25px;
}

.empty-garage-copy {
  display: grid;
  gap: 8px;
  max-width: 430px;
}

.empty-garage-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.6rem, 6vw, 2.8rem);
  line-height: 1;
}

.empty-garage-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 3.4vw, 1.08rem);
  line-height: 1.55;
}

@keyframes pitPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(224, 35, 35, 0.26);
    opacity: 0.82;
  }

  50% {
    box-shadow: 0 0 0 13px rgba(224, 35, 35, 0);
    opacity: 1;
  }
}

@keyframes pitFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes pitWheel {
  to {
    transform: rotate(360deg);
  }
}

.product-card {
  display: flex;
  height: 100%;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(126, 48, 76, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

body.eid-theme .product-card {
  border-color: rgba(255, 169, 10, 0.34);
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(126, 48, 76, 0.14);
}

.product-photo-wrap {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  aspect-ratio: 1 / 0.86;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 217, 229, 0.7), transparent 32%),
    linear-gradient(135deg, #fff7fa 0%, #fff 54%, #ffeaf0 100%);
  cursor: pointer;
}

.product-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.demo-mini-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-height: 24px;
  padding-inline: 8px;
  font-size: 0.64rem;
}

.stock-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(58, 27, 40, 0.88);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.product-label-pill {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ffe0aa;
  color: #6d3d16;
  font-size: 0.78rem;
  font-weight: 900;
}

.product-card.is-out-of-stock .product-photo {
  filter: grayscale(0.35);
}

.product-card.is-out-of-stock .stock-pill {
  background: var(--accent);
}

.product-card.is-coming-soon .product-photo {
  filter: saturate(0.78);
}

.product-card.is-coming-soon .stock-pill {
  background: #5d6470;
}

.product-card.is-coming-soon .product-label-pill {
  background: #dce6f5;
  color: #25364c;
}

.product-card[data-status="new-arrival"] .product-label-pill {
  background: #111217;
  color: #fff;
}

.product-content {
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 12px;
  flex: 1;
  padding: 14px;
}

.product-title {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: left;
}

.category-badge {
  display: none;
  min-height: 26px;
  align-items: center;
  margin-bottom: 10px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f8f5ef;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-description,
.available,
.color-stock {
  color: var(--muted);
  line-height: 1.45;
}

.color-stock {
  margin: -8px 0 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.product-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.price-stack {
  display: grid;
  gap: 2px;
}

.price {
  font-size: 1.08rem;
  color: var(--accent);
}

.previous-price {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.card-package-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.card-package-option {
  position: relative;
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid #ead4db;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 8px 18px rgba(126, 48, 76, 0.06);
}

.card-package-option::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(141, 42, 78, 0.35);
  border-radius: 999px;
  background: #fff;
}

.card-package-option img {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 7px;
  background: #fff5f8;
  object-fit: cover;
}

.package-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.package-copy strong,
.package-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.package-copy strong {
  font-size: 0.82rem;
  font-weight: 900;
}

.package-copy span {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
}

.card-package-option.active {
  border-color: var(--accent);
  background: #fff0f4;
  box-shadow: inset 0 0 0 1px rgba(217, 58, 101, 0.2), 0 10px 22px rgba(217, 58, 101, 0.12);
}

.card-package-option.active::after {
  border-color: var(--accent);
  background:
    radial-gradient(circle, #fff 0 28%, transparent 31%),
    var(--accent);
}

.card-package-option:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.colors {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.colors legend,
.quantity-row span,
.order-form span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 5px 10px 5px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

.color-option input {
  position: absolute;
  opacity: 0;
}

.color-option:has(input:checked) {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.color-option.sold-out {
  opacity: 0.48;
  cursor: not-allowed;
}

.swatch {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 999px;
}

.quantity-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
}

.quantity-row label,
.order-form label {
  display: grid;
}

.quantity-input,
.order-form input,
.order-form select,
.order-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.quantity-input,
.order-form input,
.order-form select {
  min-height: 44px;
  padding: 0 12px;
}

.order-form textarea {
  resize: vertical;
  padding: 12px;
}

.admin-page {
  background: #eee8df;
}

.admin-shell {
  padding: 52px clamp(18px, 4vw, 56px);
}

.admin-hero {
  margin-bottom: 24px;
}

.admin-hero h1 {
  margin-bottom: 0;
  font-size: clamp(2.8rem, 8vw, 5.8rem);
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.admin-mobile-tabs {
  position: sticky;
  top: 70px;
  z-index: 9;
  display: flex;
  gap: 8px;
  margin: -8px 0 16px;
  overflow-x: auto;
  padding: 8px 0;
  background: rgba(241, 235, 225, 0.96);
  backdrop-filter: blur(14px);
  scrollbar-width: none;
}

.admin-mobile-tabs::-webkit-scrollbar {
  display: none;
}

.admin-mobile-tabs a {
  display: inline-grid;
  min-height: 38px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
}

.admin-mobile-tabs a.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.admin-layout > .admin-card:not(.admin-login) {
  display: none;
}

.admin-layout > .admin-card.admin-panel-active {
  display: block;
}

.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 18px;
}

.admin-login {
  grid-column: 1 / -1;
  max-width: 520px;
}

.admin-login-copy {
  margin: -8px 0 0;
  color: var(--muted);
}

.admin-card h2 {
  margin-bottom: 16px;
  font-size: 1.35rem;
  line-height: 1.1;
}

.admin-analytics {
  grid-column: 1 / -1;
}

.admin-inventory,
.admin-dashboard,
.admin-orders,
.admin-sales,
.admin-customers,
.admin-promos {
  grid-column: 1 / -1;
}

.analytics-grid,
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.analytics-stat {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f4ef;
}

.analytics-stat span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.analytics-stat strong {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1;
}

.analytics-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.admin-login,
.admin-form {
  display: grid;
  gap: 16px;
}

.inventory-search {
  display: grid;
  margin-bottom: 14px;
}

.inventory-toolbar {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.inventory-toolbar::-webkit-scrollbar {
  display: none;
}

.inventory-search span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.inventory-search input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.inventory-list {
  display: grid;
  gap: 12px;
}

.inventory-item {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8f2;
}

.inventory-item-head {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 12px;
  align-items: center;
}

.inventory-item-head img {
  width: 58px;
  height: 48px;
  border-radius: 7px;
  background: #fff;
  object-fit: contain;
}

.inventory-item-head strong,
.inventory-item-head small {
  display: block;
}

.inventory-item-head small {
  margin-top: 3px;
  color: var(--muted);
}

.inventory-item-head > span {
  display: inline-grid;
  min-width: 42px;
  min-height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.inventory-item-head > span.warning-count {
  background: #8a5b00;
}

.inventory-item-head > span.danger-count {
  background: var(--accent);
}

.inventory-color-list {
  display: grid;
  gap: 8px;
}

.inventory-color-row {
  display: grid;
  grid-template-columns: 26px minmax(86px, 1fr) 38px 72px 38px;
  gap: 8px;
  align-items: center;
}

.inventory-color-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-color-row input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.inventory-color-row small {
  grid-column: 2 / -1;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.inventory-color-row .ghost-button {
  min-height: 38px;
  padding: 0;
}

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

.order-admin-list {
  display: grid;
  gap: 12px;
}

.admin-order-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8f2;
}

.order-admin-head,
.order-admin-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-admin-head strong,
.order-admin-head small {
  display: block;
}

.order-admin-head small,
.admin-order-card p {
  margin: 3px 0 0;
  color: var(--muted);
}

.admin-order-card .order-promo-note {
  color: #116e55;
  font-weight: 900;
}

.order-admin-head > span {
  display: inline-grid;
  min-height: 30px;
  place-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-order-card.status-confirmed .order-admin-head > span {
  background: #116e55;
}

.admin-order-card.status-delivered .order-admin-head > span {
  background: #3157a4;
}

.admin-order-card.status-cancelled .order-admin-head > span {
  background: #777;
}

.sales-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.sales-breakdown-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8f2;
  padding: 12px;
}

.sales-breakdown-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.sales-breakdown-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sales-breakdown-card li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
}

.sales-breakdown-card strong {
  color: var(--ink);
}

.customer-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.customer-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8f2;
}

.customer-row strong,
.customer-row small {
  display: block;
}

.customer-row small {
  margin-top: 3px;
  color: var(--muted);
}

.photo-tips {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.84rem;
}

.low-stock-panel {
  margin-top: 14px;
}

.low-stock-list {
  display: grid;
  gap: 8px;
}

.low-stock-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8f2;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.low-stock-row img {
  width: 52px;
  height: 44px;
  border-radius: 7px;
  background: #fff;
  object-fit: contain;
}

.low-stock-row strong,
.low-stock-row small {
  display: block;
}

.low-stock-row small {
  color: var(--muted);
}

.admin-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-fields .wide {
  grid-column: 1 / -1;
}

.admin-form label,
.admin-login label,
.admin-seasonal label,
.admin-promos label {
  display: grid;
}

.admin-form span,
.admin-login span,
.admin-seasonal span,
.admin-promos span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-seasonal select,
.admin-promos input,
.admin-promos select,
.admin-login input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.admin-form input,
.admin-form select,
.admin-seasonal select,
.admin-promos input,
.admin-promos select,
.admin-login input {
  min-height: 44px;
  padding: 0 12px;
}

.admin-form select,
.admin-seasonal select,
.admin-promos select,
.compact-select {
  padding: 0 12px;
}

.compact-select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f1ec;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.password-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.admin-form input[readonly] {
  background: #f4f1ec;
  color: var(--muted);
}

.admin-form textarea {
  resize: vertical;
  padding: 12px;
}

.color-editor > .panel-title-row {
  margin-bottom: 10px;
}

.color-editor > .panel-title-row > span {
  margin: 0;
}

.admin-color-list {
  display: grid;
  gap: 10px;
}

.admin-color-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 92px 120px 120px 120px auto;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f4ef;
}

.admin-color-row input[type="color"] {
  height: 44px;
  padding: 4px;
}

.photo-uploader > span {
  display: block;
}

.photo-upload-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  align-items: center;
}

.photo-upload-grid img {
  width: 180px;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e8e3da;
  object-fit: cover;
}

.file-picker {
  display: inline-grid;
  min-height: 44px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f1ec;
  cursor: pointer;
}

.file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-picker span {
  margin: 0;
  color: var(--ink);
}

.photo-upload-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.promo-admin-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.promo-admin-actions {
  justify-content: flex-start;
}

.promo-admin-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.promo-admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.promo-admin-row strong,
.promo-admin-row small {
  display: block;
  min-width: 0;
}

.promo-admin-row small {
  color: var(--muted);
}

.promo-admin-status {
  display: inline-grid;
  min-height: 28px;
  place-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(31, 157, 131, 0.1);
  color: #116e55;
  font-size: 0.8rem;
  font-weight: 900;
}

.promo-admin-row.status-expired .promo-admin-status,
.promo-admin-row.status-disabled .promo-admin-status {
  background: rgba(95, 95, 95, 0.1);
  color: var(--muted);
}

.ghost-button.danger {
  color: var(--accent);
}

.ghost-button.warning {
  color: #8a5b00;
}

.admin-product-row.is-hidden {
  opacity: 0.62;
}

.admin-product-list {
  display: grid;
  gap: 10px;
}

.admin-product-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 76px;
  padding: 8px;
  background: #f7f4ef;
  color: var(--ink);
  text-align: left;
}

.admin-product-row.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.admin-global-status {
  position: sticky;
  top: 126px;
  z-index: 8;
  min-height: 0;
  margin: -8px 0 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 18px rgba(24, 25, 32, 0.06);
}

.admin-global-status:empty {
  display: none;
}

.admin-product-row img {
  width: 64px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
  background: #e8e3da;
}

.admin-product-row strong,
.admin-product-row small {
  display: block;
}

.admin-product-row small {
  color: var(--muted);
  margin-top: 4px;
}

.add-button {
  background: linear-gradient(90deg, var(--accent), #ff1b2a);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(242, 31, 43, 0.14);
}

.card-add-button {
  width: 100%;
}

.add-button:hover {
  background: var(--accent-dark);
}

.add-button:disabled {
  cursor: not-allowed;
  background: #b8b0a6;
}

.order-shell {
  padding: 64px clamp(18px, 4vw, 56px);
  background: #f1ebe1;
  border-top: 1px solid var(--line);
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: start;
}

.cart-panel,
.order-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.cart-panel {
  padding: 18px;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-title-row h3 {
  margin: 0;
}

.ghost-button {
  padding: 0 12px;
  background: #f4f1ec;
  color: var(--ink);
}

.cart-lines {
  display: grid;
  gap: 10px;
  min-height: 80px;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-line p {
  margin: 0;
}

.cart-line small {
  color: var(--muted);
}

.remove-line {
  align-self: start;
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-weight: 900;
}

.empty-cart {
  margin: 0;
  color: var(--muted);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 1.2rem;
}

.cart-discount-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.promo-discount {
  color: #116e55;
}

.order-form {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.promo-box {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px dashed rgba(224, 35, 35, 0.28);
  border-radius: 8px;
  background: rgba(224, 35, 35, 0.04);
}

.promo-entry,
.inline-fields {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.promo-status {
  min-height: 1.2em;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.promo-status.success {
  color: #116e55;
}

.promo-status.error {
  color: var(--accent);
}

.order-contact-note {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.45;
}

.checkout-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.checkout-trust span {
  display: inline-grid;
  min-height: 32px;
  place-items: center;
  padding: 0 10px;
  border: 1px solid rgba(31, 157, 131, 0.26);
  border-radius: 999px;
  background: rgba(31, 157, 131, 0.08);
  color: #116e55;
  font-size: 0.82rem;
  font-weight: 900;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.form-status.success {
  color: var(--mint);
}

.form-status.error {
  color: var(--accent);
}

@media (max-width: 900px) {
  .order-layout,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .hero-copy {
    max-width: none;
  }

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

  .empty-garage {
    min-height: 300px;
  }

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

}

@media (min-width: 1180px) {
  body.eid-theme .eid-side {
    position: fixed;
    top: 86px;
    bottom: 20px;
    z-index: 8;
    display: block;
    width: 56px;
    border: 1px solid rgba(222, 216, 207, 0.7);
    border-radius: 8px;
    background-color: #fff;
    background-position: center;
    background-repeat: repeat-y;
    background-size: 56px auto;
    opacity: 0.9;
    pointer-events: none;
  }

  body.eid-theme .eid-side-left {
    left: 10px;
    background-image: url("assets/eid/eid-strip-left.svg");
  }

  body.eid-theme .eid-side-right {
    right: 10px;
    background-image: url("assets/eid/eid-strip-right.svg");
  }

  body.eid-theme .cart-toast,
  body.eid-theme .order-receipt-overlay {
    position: relative;
    z-index: 12;
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: center;
    flex-direction: row;
    gap: 10px;
    padding: 12px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 92px;
    height: 42px;
  }

  .brand-text small {
    display: none;
  }

  .topbar > .demo-badge {
    min-height: 24px;
    padding-inline: 7px;
    font-size: 0.62rem;
  }

  .demo-watermark {
    right: -42px;
    bottom: 88px;
  }

  nav {
    gap: 4px;
  }

  nav a {
    min-height: 36px;
    padding: 0 8px;
    font-size: 0.9rem;
  }

  nav a[href="#contact"] {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 14px 14px 10px;
  }

  .featured-slider {
    min-height: 148px;
  }

  .featured-slide {
    min-height: 136px;
  }

  .featured-photo-button {
    min-height: 136px;
    padding: 8px;
  }

  .featured-drop-card {
    grid-template-columns: minmax(0, 0.66fr) minmax(134px, 1fr);
    gap: 6px;
    padding: 12px;
  }

  .featured-copy {
    gap: 4px;
  }

  .featured-copy span {
    padding: 4px 7px;
    font-size: 0.58rem;
  }

  .featured-copy strong {
    font-size: clamp(1.05rem, 6.4vw, 1.58rem);
  }

  .featured-copy small {
    font-size: 0.72rem;
  }

  .featured-photo-button img {
    height: 112px;
  }

  .featured-empty {
    min-height: 136px;
  }

  h1 {
    max-width: 8ch;
    font-size: clamp(2.45rem, 15vw, 3.9rem);
  }

  .hero p:not(.eyebrow) {
    margin-bottom: 0;
    font-size: 0.95rem;
  }

  .section-heading {
    padding: 14px 14px 12px;
  }

  .products-toolbar {
    padding-top: 12px;
  }

  .section-heading h2 {
    margin-bottom: 0;
    font-size: 1.55rem;
  }

  .category-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -14px;
    padding: 0 14px 6px;
    scroll-padding-inline: 14px;
    scrollbar-width: none;
  }

  .product-search {
    max-width: none;
    margin-top: 10px;
  }

  .category-filter::-webkit-scrollbar {
    display: none;
  }

  .category-chip {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 11px;
    font-size: 0.82rem;
  }

  .product-grid {
    width: 100vw;
    max-width: 100vw;
    grid-template-columns: repeat(2, calc((100vw - 38px) / 2));
    gap: 14px;
    padding: 0 12px 86px;
  }

  .empty-garage {
    min-height: 280px;
    padding: 30px 18px 34px;
  }

  .empty-garage-visual {
    width: min(176px, 70vw);
    height: 104px;
  }

  .empty-garage-car {
    right: 9px;
    width: 136px;
    height: 48px;
  }

  .empty-garage-car::before {
    width: 66px;
  }

  .empty-garage-copy {
    max-width: 310px;
  }

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

  .product-card {
    box-shadow: 0 8px 18px rgba(30, 25, 20, 0.08);
  }

  .product-content {
    gap: 9px;
    padding: 10px;
  }

  .product-title {
    font-size: 0.9rem;
  }

  .product-meta {
    display: grid;
    gap: 0;
  }

  .price {
    font-size: 0.96rem;
  }

  .card-package-picker {
    gap: 6px;
  }

  .card-package-option {
    min-height: 54px;
    gap: 6px;
    padding: 6px;
  }

  .card-package-option img {
    width: 32px;
    height: 32px;
  }

  .package-copy strong {
    font-size: 0.74rem;
  }

  .package-copy span {
    font-size: 0.7rem;
  }

  .available {
    display: none;
  }

  .stock-pill,
  .product-label-pill {
    top: 7px;
    padding: 4px 6px;
    font-size: 0.62rem;
  }

  .stock-pill {
    right: 7px;
  }

  .product-label-pill {
    left: 7px;
  }

  .card-add-button {
    min-height: 36px;
    font-size: 0.86rem;
  }

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

  .product-sheet-overlay {
    padding: 0;
  }

  .product-sheet {
    width: 100%;
    max-height: 88vh;
    border-inline: 0;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    padding-bottom: 22px;
  }

  .mobile-checkout-bar:not([hidden]) {
    display: flex;
  }

  .cart-toast {
    grid-template-columns: 1fr;
    bottom: 76px;
  }

  .admin-fields {
    grid-template-columns: 1fr;
  }

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

  .photo-upload-grid {
    grid-template-columns: 1fr;
  }

  .photo-upload-grid img {
    width: 100%;
  }

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

  .admin-page .topbar {
    position: sticky;
  }

  .admin-shell {
    padding: 18px 10px 28px;
  }

  .admin-hero {
    margin-bottom: 12px;
    padding: 0 4px;
  }

  .admin-hero h1 {
    font-size: 2.35rem;
  }

  .admin-mobile-tabs:not([hidden]) {
    top: 61px;
    gap: 6px;
    margin: 0 -2px 12px;
    padding: 8px 2px;
  }

  .admin-mobile-tabs a {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.8rem;
  }

  .admin-layout {
    gap: 12px;
  }

  .admin-card {
    padding: 14px;
  }

  .admin-card h2 {
    font-size: 1.15rem;
  }

  .admin-analytics {
    order: 4;
  }

  .admin-seasonal {
    order: 5;
  }

  .admin-dashboard {
    order: 1;
  }

  .admin-inventory {
    order: 2;
  }

  .admin-orders {
    order: 5;
  }

  .admin-sales {
    order: 3;
  }

  .admin-customers {
    order: 4;
  }

  .admin-products {
    order: 6;
  }

  .admin-editor {
    order: 7;
  }

  .admin-promos {
    order: 8;
  }

  .inventory-item {
    padding: 10px;
  }

  .inventory-item-head {
    grid-template-columns: 52px 1fr auto;
    gap: 9px;
  }

  .inventory-item-head img {
    width: 52px;
    height: 44px;
  }

  .inventory-color-row {
    grid-template-columns: 24px minmax(68px, 1fr) 34px 58px 34px;
    gap: 6px;
  }

  .sales-breakdown {
    grid-template-columns: 1fr;
  }

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

  .inventory-actions .compact-select,
  .inventory-actions .ghost-button {
    width: 100%;
    min-height: 38px;
    font-size: 0.84rem;
  }

  .order-admin-head,
  .order-admin-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .order-admin-foot .compact-select {
    width: 100%;
  }

  .admin-actions {
    position: sticky;
    bottom: 0;
    z-index: 8;
    display: grid;
    grid-template-columns: 1fr auto;
    margin: 0 -14px -14px;
    padding: 10px 14px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
  }

  .admin-actions .submit-button {
    width: 100%;
  }

  .admin-product-row {
    grid-template-columns: 58px 1fr;
    min-height: 70px;
  }

  .admin-product-row img {
    width: 58px;
    height: 48px;
  }

  .promo-entry,
  .inline-fields,
  .promo-admin-row {
    grid-template-columns: 1fr;
  }

  .promo-admin-row .admin-panel-actions {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .empty-garage-light,
  .empty-garage-car,
  .empty-garage-wheel {
    animation: none;
  }
}
