:root {
  --color-primary: #e86a1a;
  --color-bg: #0f0f0f;
  --color-text: #f2f2f2;
  --color-card: #1c1c1c;
  --color-accent-muted: #3a2010;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at 70% 10%, rgba(232, 106, 26, 0.15), transparent 35%), var(--color-bg);
  color: var(--color-text);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

h1,
h2,
h3,
h4 {
  font-family: "Syne", Arial, sans-serif;
}

h1 {
  font-size: clamp(32px, 6vw, 60px);
  margin: 0;
}

h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  margin: 0 0 18px;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 30;
  background: var(--color-bg);
  border-bottom: 1px solid rgba(232, 106, 26, 0.3);
}

.nav-wrap {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}

.brand {
  margin-right: auto;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.brand img {
  max-height: 48px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 16px;
  font-family: "Syne", Arial, sans-serif;
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.nav-links a:hover {
  border-color: var(--color-primary);
}

.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-text);
  border-radius: 8px;
  padding: 8px 10px;
}

.hero {
  height: 480px;
  position: relative;
  margin-top: 64px;
  background: center/contain no-repeat url("./public/assets/banner.png");
  background-color: #090909;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 12px;
}

.hero-content p {
  color: rgba(242, 242, 242, 0.85);
  font-size: 18px;
}

.parallax-section {
  padding: 28px 0 10px;
}

.parallax-container {
  position: relative;
  overflow: hidden;
  height: 500px;
  width: 100%;
  background: linear-gradient(135deg, #111 10%, #1a1a1a 45%, #120a05 100%);
  border-top: 1px solid rgba(232, 106, 26, 0.18);
  border-bottom: 1px solid rgba(232, 106, 26, 0.18);
}

.parallax-layer {
  position: absolute;
  inset: -10% 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  will-change: transform;
}

.parallax-bg {
  z-index: 1;
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.45);
  z-index: 2;
}

.parallax-fg {
  z-index: 3;
  opacity: 0.9;
  transform: scale(1.05);
}

.parallax-content {
  position: relative;
  z-index: 4;
  height: 100%;
  display: grid;
  align-content: center;
  gap: 10px;
  max-width: 760px;
}

.parallax-content p {
  color: rgba(242, 242, 242, 0.88);
}

.feature-list {
  margin: 10px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.section {
  min-height: 48vh;
  padding: 84px 0 30px;
}

.section-copy {
  max-width: 75ch;
  color: rgba(242, 242, 242, 0.86);
}

.tagline {
  color: var(--color-primary);
  font: 700 20px "Syne", Arial, sans-serif;
}

.card {
  background: var(--color-card);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 18px;
  transition: all 0.25s ease;
}

.card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: 0 0 16px rgba(232, 106, 26, 0.3);
}

.founder-grid,
.support-grid,
.custom-grid,
.cart-layout {
  display: grid;
  gap: 16px;
}

.founder-grid {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent-muted);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  font-family: "Syne", Arial, sans-serif;
}

.category-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  margin: 0 0 28px;
}

.category-card {
  display: grid;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  align-content: start;
}

.category-card:hover .category-cta {
  color: var(--color-primary);
}

.category-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
}

.category-cta {
  font-family: "Syne", Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: rgba(242, 242, 242, 0.95);
}

.subsection-title {
  font-size: clamp(18px, 2.4vw, 22px);
  margin: 8px 0 14px;
}

.category-page .section:first-of-type {
  padding-top: 96px;
}

.category-hero {
  padding-bottom: 20px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 14px;
}

.eyebrow a {
  color: var(--color-primary);
  text-decoration: none;
}

.eyebrow a:hover {
  text-decoration: underline;
}

.product-price {
  color: rgba(242, 242, 242, 0.95);
}

.product-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.product-card {
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: auto 380px;
}

/* Product grids: no scroll-in fade (faster browsing); other .reveal sections unchanged */
.product-grid .product-card {
  opacity: 1;
  transform: none;
}

.product-grid .product-image {
  content-visibility: auto;
}

.product-card-media {
  position: relative;
}

.product-slider {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-slider-viewport {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
}

.product-slider-track {
  display: flex;
  width: 200%;
  height: 100%;
  transition: transform 0.28s ease;
}

.product-slider-slide {
  flex: 0 0 50%;
  height: 100%;
}

.product-slider-slide .product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.product-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.product-slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(242, 242, 242, 0.28);
  transition: background 0.15s ease, transform 0.15s ease;
}

.product-slider-dot--active {
  background: var(--color-primary, #e86a1a);
  transform: scale(1.15);
}

.product-card-media .featured-badge {
  top: 10px;
  right: 10px;
}

.product-card-media .ciy-badge {
  top: 10px;
  left: 10px;
}

.product-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

/* Home general catalogue: show full photos (letterboxed), not cropped */
.product-grid--general-catalog .product-image,
.product-grid--general-catalog .product-slider-slide .product-image {
  object-fit: contain;
  background: radial-gradient(ellipse at center, rgba(42, 42, 42, 0.95) 0%, rgba(15, 15, 15, 0.98) 100%);
}

.featured-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  font-family: "Syne", Arial, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a0f08;
  background: linear-gradient(135deg, #ffd27a 0%, #e86a1a 100%);
  border: 1px solid rgba(255, 220, 160, 0.85);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.featured-star {
  font-size: 12px;
  line-height: 1;
}

.ciy-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  font-family: "Syne", Arial, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f9f3ec;
  background: linear-gradient(135deg, rgba(28, 28, 28, 0.92) 0%, rgba(58, 32, 16, 0.92) 100%);
  border: 1px solid rgba(232, 106, 26, 0.65);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}

.ciy-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b6b 0%, #ffd166 33%, #06d6a0 66%, #4d96ff 100%);
  box-shadow: 0 0 6px rgba(255, 209, 102, 0.6);
}

.product-card--ciy:hover .ciy-badge {
  border-color: rgba(255, 200, 120, 0.9);
}

.product-card--featured {
  background: linear-gradient(145deg, rgba(232, 106, 26, 0.18) 0%, var(--color-card) 38%, var(--color-card) 100%);
  border-color: rgba(232, 106, 26, 0.7);
  box-shadow: 0 0 0 1px rgba(232, 106, 26, 0.25), 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 24px rgba(232, 106, 26, 0.15);
}

.product-card--featured::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 9px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 210, 122, 0.55), rgba(232, 106, 26, 0.55), rgba(255, 210, 122, 0.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.product-card--featured .product-image {
  box-shadow: 0 0 0 1px rgba(232, 106, 26, 0.45);
}

.product-card--featured:hover {
  border-color: rgba(255, 200, 120, 0.85);
  box-shadow: 0 0 0 1px rgba(232, 106, 26, 0.45), 0 18px 40px rgba(232, 106, 26, 0.28);
}

.product-card p {
  margin: 7px 0;
}

.product-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 0;
}

.product-card-head h3 {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.product-tag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  font-family: "Syne", Arial, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(232, 106, 26, 0.12);
  border: 1px solid rgba(232, 106, 26, 0.45);
}

.attachment-list {
  margin: 6px 0 10px;
  padding: 8px 10px;
  list-style: none;
  display: grid;
  gap: 4px;
  background: rgba(232, 106, 26, 0.06);
  border: 1px dashed rgba(232, 106, 26, 0.3);
  border-radius: 8px;
  font-size: 13px;
  color: rgba(242, 242, 242, 0.9);
}

.attachment-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
}

.attachment-list li::before {
  content: "+";
  color: var(--color-primary);
  font-weight: 700;
  margin-right: 6px;
}

.attachment-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 4px;
}

.attachment-pick-btn {
  flex: 1 1 calc(33.333% - 6px);
  min-width: 88px;
  padding: 10px 12px;
  font-size: 13px;
  color: rgba(242, 242, 242, 0.96);
}

.attachment-pick-btn:hover {
  color: #fff;
}

.btn {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font: 700 14px "Syne", Arial, sans-serif;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}

.btn:hover {
  background: #c95e15;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 106, 26, 0.35);
}

.btn-secondary,
.text-btn {
  background: var(--color-accent-muted);
}

.custom-grid {
  grid-template-columns: 0.8fr 1.2fr;
}

.custom-form {
  display: grid;
  gap: 10px;
}

.custom-form label {
  display: grid;
  gap: 5px;
}

input,
textarea {
  background: #131313;
  color: var(--color-text);
  border: 1px solid rgba(232, 106, 26, 0.25);
  border-radius: 8px;
  padding: 10px;
  font: inherit;
}

textarea {
  min-height: 96px;
}

.form-note {
  min-height: 24px;
}

.form-note--success {
  color: #7dffb3;
}

.form-note--error {
  color: #ffb4b4;
}

.custom-form .optional {
  font-size: 12px;
  font-weight: 400;
  color: rgba(242, 242, 242, 0.55);
}

.custom-form--submitting .custom-form-btn-label {
  opacity: 0.85;
}

#custom-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
}

#custom-form-submit:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.custom-form-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: custom-form-spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes custom-form-spin {
  to {
    transform: rotate(360deg);
  }
}

.cart-layout {
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.35fr);
  align-items: start;
}

@media (min-width: 901px) {
  .cart-layout {
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.4fr);
  }
}

.stack {
  display: grid;
  gap: 12px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.qty-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid rgba(232, 106, 26, 0.4);
  background: #111;
  color: #fff;
}

.mono {
  font-family: "JetBrains Mono", monospace;
}

/* UPI QR: natural pixel size, not stretched; hug left inside Order Summary */
.cart-payment .qr {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  margin: 12px 0;
  margin-right: auto;
  border-radius: 8px;
  object-fit: contain;
}

.site-footer {
  border-top: 1px solid rgba(232, 106, 26, 0.3);
  padding: 28px 0 12px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 16px;
}

.footer-grid a {
  display: block;
  text-decoration: none;
  margin-bottom: 4px;
  color: rgba(242, 242, 242, 0.9);
}

.footer-logo {
  max-height: 46px;
}

.foot-bottom {
  border-top: 1px solid rgba(232, 106, 26, 0.2);
  margin-top: 10px;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.policy-row {
  display: flex;
  gap: 8px;
}

.text-btn {
  border: 1px solid rgba(232, 106, 26, 0.2);
  border-radius: 8px;
  color: var(--color-text);
  padding: 7px 10px;
  cursor: pointer;
}

.policy-dialog {
  border: none;
  background: transparent;
  width: min(760px, 92%);
}

.policy-dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  transition-delay: calc(var(--i, 0) * 0.1s);
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 769px) {
  .nav-links {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
  }
}

@media (max-width: 900px) {
  .category-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .custom-grid,
  .cart-layout,
  .footer-grid,
  .founder-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 280px;
  }

  .parallax-section {
    padding: 16px 0 20px;
  }

  .parallax-container {
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 28px 0 32px;
  }

  .parallax-content {
    height: auto;
    align-content: start;
    gap: 14px;
    padding: 0;
  }

  .parallax-content h2 {
    font-size: clamp(22px, 5.5vw, 28px);
    line-height: 1.3;
    max-width: 100%;
  }

  .parallax-content p {
    font-size: 15px;
    line-height: 1.55;
  }

  .feature-list {
    gap: 8px;
    padding-left: 18px;
  }

  .menu-btn {
    display: inline-block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    border-bottom: 1px solid rgba(232, 106, 26, 0.3);
    padding: 10px 4%;
    z-index: 25;
  }

  .nav-links.open {
    display: flex;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* ——— Shopping cart (navbar, drawer, toast) ——— */
.cart-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(232, 106, 26, 0.45);
  border-radius: 10px;
  background: rgba(28, 28, 28, 0.9);
  color: var(--color-text);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.cart-toggle:hover {
  border-color: var(--color-primary);
  background: rgba(232, 106, 26, 0.12);
  box-shadow: 0 0 14px rgba(232, 106, 26, 0.25);
  transform: translateY(-1px);
}

.cart-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-toggle-icon svg {
  display: block;
}

.cart-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  font-family: "Syne", Arial, sans-serif;
  line-height: 18px;
  text-align: center;
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.cart-count-badge--empty {
  background: rgba(242, 242, 242, 0.18);
  color: rgba(242, 242, 242, 0.85);
  font-size: 10px;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease;
}

.cart-overlay--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  height: 100%;
  width: min(420px, 100%);
  max-width: 100vw;
  background: linear-gradient(180deg, #161616 0%, #101010 100%);
  border-left: 1px solid rgba(232, 106, 26, 0.35);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.55);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer--open {
  transform: translateX(0);
}

.cart-drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(232, 106, 26, 0.2);
  flex-shrink: 0;
}

.cart-drawer-title {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.cart-drawer-close {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(242, 242, 242, 0.15);
  background: transparent;
  color: var(--color-text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.cart-drawer-close:hover {
  border-color: var(--color-primary);
  background: rgba(232, 106, 26, 0.1);
}

.cart-drawer-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-drawer-empty {
  margin: 24px 8px;
  text-align: center;
  color: rgba(242, 242, 242, 0.65);
  font-size: 15px;
}

.cart-drawer-footer {
  flex-shrink: 0;
  padding: 14px 16px 22px;
  border-top: 1px solid rgba(232, 106, 26, 0.2);
  background: linear-gradient(0deg, rgba(15, 15, 15, 0.98), rgba(22, 22, 22, 0.92));
}

.cart-drawer-summary {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 14px;
}

.cart-drawer-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: rgba(242, 242, 242, 0.88);
}

.cart-drawer-summary-row--total {
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px dashed rgba(232, 106, 26, 0.25);
  font-size: 16px;
}

.cart-drawer-summary-row--total strong {
  color: var(--color-primary);
  font-family: "Syne", Arial, sans-serif;
  font-size: 1.1rem;
}

.cart-drawer-actions {
  display: grid;
  gap: 10px;
}

.cart-drawer-actions .btn {
  text-align: center;
  width: 100%;
}

.cart-drawer-checkout {
  display: block;
  text-decoration: none;
}

body.cart-drawer-active {
  overflow: hidden;
}

.cart-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 110;
  transform: translate(-50%, 120%);
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1c1c1c, #2a1810);
  border: 1px solid rgba(232, 106, 26, 0.55);
  color: #fff;
  font-family: "Syne", Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease;
}

.cart-toast--show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.cart-line {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 10px;
  background: rgba(28, 28, 28, 0.95);
  border: 1px solid rgba(232, 106, 26, 0.12);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.cart-line:hover {
  border-color: rgba(232, 106, 26, 0.35);
  box-shadow: 0 0 12px rgba(232, 106, 26, 0.12);
}

.cart-line--compact {
  padding: 10px;
  gap: 10px;
}

.cart-line-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 8px;
  background: radial-gradient(circle at center, #2a2a2a, #121212);
  flex-shrink: 0;
}

.cart-line--compact .cart-line-img {
  width: 56px;
  height: 56px;
}

.cart-line-img--placeholder {
  background: repeating-linear-gradient(
    -45deg,
    #1a1a1a,
    #1a1a1a 6px,
    #222 6px,
    #222 12px
  );
}

.cart-line-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-line-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.cart-line-name {
  font-size: 14px;
  line-height: 1.35;
}

.cart-remove-btn {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: rgba(232, 106, 26, 0.85);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 2px 0;
}

.cart-remove-btn:hover {
  color: #ffb088;
}

.cart-line-meta {
  margin: 0;
  font-size: 12px;
  color: rgba(242, 242, 242, 0.65);
}

.cart-line-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.cart-line-sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: rgba(242, 242, 242, 0.95);
}

.qty-val {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 600;
}

.cart-empty-card .cart-empty-hint {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(242, 242, 242, 0.72);
}

@media (max-width: 480px) {
  .cart-drawer {
    width: 100%;
  }

  .cart-toast {
    left: 16px;
    right: 16px;
    width: auto;
    transform: translateY(140%);
  }

  .cart-toast--show {
    transform: translateY(0);
  }
}

/* ——— Checkout flow (#cart) ——— */
.cart-browse {
  max-width: 800px;
}

.cart-browse-actions {
  margin-top: 18px;
}

.cart-browse-empty {
  margin: 12px 0 0;
  color: rgba(242, 242, 242, 0.72);
  font-size: 15px;
}

.checkout-flow {
  margin-top: 8px;
}

.checkout-back {
  margin-bottom: 16px;
}

.checkout-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.25fr);
  align-items: start;
}

.checkout-pay-card h3,
.checkout-form-card h3 {
  margin-top: 0;
}

.checkout-total-line {
  margin: 12px 0 8px;
  font-size: 16px;
}

.checkout-pay-note {
  margin: 0;
  font-size: 13px;
  color: rgba(242, 242, 242, 0.72);
  line-height: 1.45;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checkout-fields-grid {
  display: grid;
  gap: 12px 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkout-field--full {
  grid-column: 1 / -1;
}

.checkout-field label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(242, 242, 242, 0.92);
}

.checkout-field .req {
  color: var(--color-primary);
}

.checkout-field .optional {
  font-weight: 500;
  color: rgba(242, 242, 242, 0.55);
  font-size: 12px;
}

.checkout-field input,
.checkout-field textarea {
  width: 100%;
}

.field-hint {
  margin: 0;
  font-size: 12px;
  color: rgba(242, 242, 242, 0.55);
}

.payment-proof-preview-wrap {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.payment-proof-preview {
  max-width: min(100%, 280px);
  width: auto;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(232, 106, 26, 0.35);
  background: #111;
}

.payment-proof-clear {
  font-size: 13px;
}

.checkout-form-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(180, 40, 40, 0.2);
  border: 1px solid rgba(255, 100, 100, 0.35);
  color: #ffb4b4;
  font-size: 14px;
}

.checkout-success-dialog {
  border: none;
  background: transparent;
  padding: 0;
  max-width: min(440px, 92vw);
}

.checkout-success-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.checkout-success-card {
  margin: 0;
}

.checkout-success-card h3 {
  margin-top: 0;
}

.checkout-success-card p {
  color: rgba(242, 242, 242, 0.88);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .checkout-fields-grid {
    grid-template-columns: 1fr;
  }
}

/* ——— Early customer discount + order summary ——— */
.early-customer-promo {
  margin-top: 64px;
  padding: 10px 0;
  background: linear-gradient(90deg, rgba(232, 106, 26, 0.22), rgba(58, 32, 16, 0.85), rgba(232, 106, 26, 0.18));
  border-bottom: 1px solid rgba(232, 106, 26, 0.35);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.early-customer-promo--soldout {
  background: linear-gradient(90deg, rgba(80, 80, 80, 0.35), rgba(28, 28, 28, 0.95));
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.early-customer-promo__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  justify-content: center;
  text-align: center;
}

.early-customer-promo__badge {
  font-family: "Syne", Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.65);
  border: 1px solid rgba(232, 106, 26, 0.5);
  color: var(--color-primary);
}

.early-customer-promo--soldout .early-customer-promo__badge {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(242, 242, 242, 0.55);
}

.early-customer-promo__title {
  margin: 0;
  font-family: "Syne", Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(15px, 2.8vw, 18px);
  letter-spacing: 0.02em;
  color: #fff;
}

.early-customer-promo__status {
  margin: 0;
  width: 100%;
  flex-basis: 100%;
  font-size: 13px;
  color: rgba(255, 224, 200, 0.95);
  font-weight: 500;
}

.early-customer-promo--soldout .early-customer-promo__status {
  color: rgba(242, 242, 242, 0.65);
}

.cart-pricing-card {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(28, 28, 28, 0.98), rgba(22, 18, 14, 0.95));
  border: 1px solid rgba(232, 106, 26, 0.28);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.cart-pricing-title {
  margin: 0 0 14px;
  font-size: 1rem;
  color: var(--color-primary);
}

.cart-pricing-rows {
  margin: 0;
}

.cart-pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(232, 106, 26, 0.2);
  font-size: 15px;
}

.cart-pricing-row dt {
  margin: 0;
  color: rgba(242, 242, 242, 0.78);
  font-weight: 500;
}

.cart-pricing-row dd {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  color: #fff;
}

.cart-pricing-row--discount dd {
  color: #7dffb3;
}

.cart-pricing-row--total {
  border-bottom: none;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid rgba(232, 106, 26, 0.35);
  font-size: 17px;
}

.cart-pricing-row--total dt {
  font-family: "Syne", Arial, sans-serif;
  font-weight: 700;
  color: #fff;
}

.cart-pricing-row--total dd {
  font-family: "Syne", Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
}

.cart-discount-msg {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  background: rgba(232, 106, 26, 0.12);
  border: 1px solid rgba(232, 106, 26, 0.35);
  color: rgba(255, 230, 210, 0.95);
}

.cart-discount-msg--soldout {
  background: rgba(60, 60, 60, 0.4);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(242, 242, 242, 0.7);
}

.checkout-order-summary {
  margin: 14px 0 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(15, 15, 15, 0.55);
  border: 1px solid rgba(232, 106, 26, 0.2);
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  font-size: 14px;
  color: rgba(242, 242, 242, 0.85);
}

.checkout-summary-row strong {
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
}

.checkout-summary-row--discount strong {
  color: #7dffb3;
}

.checkout-summary-row--final {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(232, 106, 26, 0.3);
  font-size: 16px;
  font-weight: 600;
}

.checkout-summary-row--final strong {
  font-family: "Syne", Arial, sans-serif;
  font-size: 1.15rem;
  color: var(--color-primary);
}

.checkout-pay-card .cart-discount-msg {
  margin: 10px 0 12px;
}

.cart-drawer-summary-row--discount {
  color: rgba(125, 255, 179, 0.95);
}

.cart-drawer-summary-row--discount strong {
  color: #7dffb3;
  font-family: "JetBrains Mono", monospace;
}

.cart-drawer-discount-msg {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  line-height: 1.35;
  background: rgba(232, 106, 26, 0.12);
  border: 1px solid rgba(232, 106, 26, 0.28);
  color: rgba(255, 230, 210, 0.92);
}

.cart-drawer-discount-msg.cart-discount-msg--soldout {
  background: rgba(50, 50, 50, 0.45);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(242, 242, 242, 0.68);
}
