/* ==============
   FONT SETUP
   (Adjust file names to match your actual fonts in /assets/fonts)
   ============== */
@font-face {
  font-family: 'PunkTypewriter';
  src: url('assets/fonts/PunkTypewriter.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'AllAges';
  src: url('assets/fonts/AllAges.ttf') format('truetype');
}

@font-face {
  font-family: 'PunkKid';
  src: url('assets/fonts/PunkKid.ttf') format('truetype');
}

@font-face {
  font-family: 'NitroGods';
  src: url('assets/fonts/Nitrogods.ttf') format('truetype');
}

/* ==============
   ROOT + THEME
   Warm -> Cold auto-shift via data-theme on <html>
   ============== */
:root {
  --bg: #050308;
  --fg: #f5f5f5;
  --accent: #ff3b3b;
  --accent-soft: #ffc36b;
  --accent-cool: #5ddcff;
  --border-grunge: rgba(255, 255, 255, 0.06);
  --noise: rgba(0, 0, 0, 0.4);
}

/* Warm theme */
html[data-theme="warm"] {
  --bg: #14060a;
  --fg: #fef8ec;
  --accent: #ff4b55;
  --accent-soft: #ffc36b;
}

/* Neutral / transition */
html[data-theme="neutral"] {
  --bg: #050308;
  --fg: #f5f5f5;
  --accent: #f54fbf;
  --accent-soft: #ffef99;
}

/* Cold theme */
html[data-theme="cold"] {
  --bg: #020816;
  --fg: #e7f5ff;
  --accent: #5ddcff;
  --accent-soft: #b4f1ff;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: 'AllAges', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at 10% 0%, #31201f 0, transparent 55%),
              radial-gradient(circle at 80% 100%, #171a3b 0, transparent 55%),
              var(--bg);
  color: var(--fg);
  min-height: 100vh;
  overflow: hidden;
}

/* Slight grunge noise overlay via canvas */
#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
}

/* Utility */
.btn {
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--fg);
  padding: 0.55rem 1.3rem;
  font-family: 'PunkTypewriter', monospace;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--accent-soft), transparent, var(--accent));
  opacity: 0;
  mix-blend-mode: screen;
  transform: translateX(-100%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.btn:hover::before {
  transform: translateX(0);
  opacity: 0.15;
}

.btn-primary {
  background: var(--accent);
  color: #050308;
}

.btn-ghost {
  border-style: dashed;
}

/* ==============
   SPLASH
   ============== */
#splash {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(145deg, #050308 0%, #36080e 25%, #071020 70%, #02040a 100%);
  color: var(--fg);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
}

#splash.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.splash-inner {
  max-width: 640px;
  padding: 2.5rem;
  border: 2px solid var(--border-grunge);
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.05) 0, transparent 60%),
    radial-gradient(circle at 80% 90%, rgba(255, 0, 0, 0.15) 0, transparent 60%),
    rgba(0, 0, 0, 0.75);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
  position: relative;
}

.splash-inner::after {
  content: '';
  position: absolute;
  inset: -10px;
  border: 1px dashed rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.splash-mark {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1rem;
}

.splash-tag {
  font-family: 'PunkKid', 'PunkTypewriter', monospace;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--accent);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.splash-mark h1 {
  margin: 0;
  font-family: 'NitroGods', 'PunkKid', impact, sans-serif;
  font-size: clamp(2.7rem, 5vw, 3.7rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.splash-copy {
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

.splash-sub {
  margin-top: 1rem;
  opacity: 0.7;
  font-size: 0.8rem;
}

/* ==============
   LAYOUT: SIDEBAR + PAGE CONTAINER
   ============== */

.sidebar {
  position: fixed;
  z-index: 10;
  inset-block: 0;
  left: 0;
  width: 220px;
  padding: 1rem 0.75rem 1.5rem;
  background:
    linear-gradient(#050308, #050308) padding-box,
    linear-gradient(180deg, var(--accent-soft), transparent, var(--accent-cool))
      border-box;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateX(0);
  transition: transform 0.25s ease-out;
}

.sidebar-hidden {
  transform: translateX(-100%);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-inline: 0.25rem;
}

.logo-glyph {
  font-size: 1.3rem;
  text-shadow: 0 0 10px var(--accent);
}

.logo-text {
  font-family: 'NitroGods', 'PunkKid', impact, sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  line-height: 1.1;
}

.nav {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
}

.nav-link {
  border: none;
  background: transparent;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.5rem;
  font-family: 'PunkTypewriter', monospace;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  position: relative;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-glyph {
  font-size: 0.85rem;
}

.nav-label {
  flex: 1;
  text-align: left;
}

.nav-link-active {
  background: rgba(255, 255, 255, 0.12);
}

/* Animated marker */
#navMarker {
  position: absolute;
  left: -4px;
  width: 3px;
  height: 1.4rem;
  background:
    linear-gradient(180deg, var(--accent), var(--accent-soft), var(--accent));
  border-radius: 999px;
  box-shadow: 0 0 6px var(--accent);
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.sidebar-footer {
  margin-top: auto;
  padding-inline: 0.25rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  opacity: 0.7;
}

.age-tag {
  font-family: 'PunkTypewriter', monospace;
}

.issue-tag {
  font-family: 'PunkKid', 'AllAges', sans-serif;
}

/* CART COUNT */
.cart-count {
  font-size: 0.7rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  margin-left: auto;
}

/* MAIN CONTAINER WITH 3D PERSPECTIVE FOR PAGE FLIPS */
.page-container {
  position: fixed;
  inset-block: 0;
  left: 220px;
  right: 0;
  padding: 1.5rem 2rem;
  perspective: 1400px;
  overflow: hidden;
}

/* Responsive: collapse sidebar on small screens */
@media (max-width: 768px) {
  .sidebar {
    width: 190px;
    transform: translateX(-100%);
  }

  .sidebar.sidebar-visible {
    transform: translateX(0);
  }

  .page-container {
    left: 0;
    padding: 1.25rem 0.75rem 1.5rem;
  }
}

/* ==============
   PAGE FLIP ANIMATION
   ============== */
.page {
  position: absolute;
  inset: 0;
  padding: 1rem 0.5rem;
  opacity: 0;
  pointer-events: none;
  transform-origin: left center;
  backface-visibility: hidden;
  transform: translateZ(0) rotateY(0deg);
}

.page-inner {
  height: 100%;
  border-radius: 12px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.03), transparent),
    rgba(5, 3, 8, 0.92);
  border: 1px solid var(--border-grunge);
  padding: 1.5rem;
  box-shadow:
    0 0 40px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.page-active {
  opacity: 1;
  pointer-events: auto;
}

/* Outgoing page */
.page-flip-out {
  animation: pageFlipOut 0.65s ease-in forwards;
}

/* Incoming page */
.page-prep {
  opacity: 1;
  pointer-events: none;
  transform-origin: right center;
  transform: rotateY(90deg);
}

.page-flip-in {
  animation: pageFlipIn 0.65s ease-out forwards;
}

/* Keyframes */
@keyframes pageFlipOut {
  0% {
    transform: rotateY(0deg);
    opacity: 1;
  }
  100% {
    transform: rotateY(-90deg);
    opacity: 0;
  }
}

@keyframes pageFlipIn {
  0% {
    transform: rotateY(90deg);
    opacity: 0;
  }
  100% {
    transform: rotateY(0deg);
    opacity: 1;
  }
}

/* ==============
   SECTION GENERICS
   ============== */
.section-header h1 {
  margin: 0;
  font-family: 'NitroGods', 'PunkKid', impact, sans-serif;
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-tagline {
  margin-top: 0.3rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

.section-footer {
  margin-top: auto;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Skewed cards for off-kilter vibes */
.skew-card {
  transform: rotate(-1.5deg);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
}

/* ==============
   HOME / HERO
   ============== */
.page-home .page-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 1.5rem;
}

.hero-panel {
  position: relative;
}

.hero-image-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 260px;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(circle at 10% 10%, #ff6b6b 0, transparent 55%),
              radial-gradient(circle at 80% 90%, #3b5bdb 0, transparent 55%),
              #050308;
  border: 1px solid var(--border-grunge);
}

.hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  mix-blend-mode: screen;
  transform: scale(1.02);
  transition: transform 0.8s ease;
}

.hero-image-frame:hover .hero-image {
  transform: scale(1.06);
}

/* Stickers / graffiti labels */
.hero-sticker {
  position: absolute;
  background: #fef8ec;
  color: #050308;
  font-family: 'PunkKid', 'PunkTypewriter', monospace;
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  text-transform: uppercase;
  transform: rotate(-4deg);
  box-shadow: 0 0 0 1px #050308, 0 4px 8px rgba(0, 0, 0, 0.7);
}

.hero-sticker-1 {
  top: 8%;
  left: 6%;
}
.hero-sticker-2 {
  bottom: 10%;
  right: 10%;
  transform: rotate(3deg);
}

.hero-title {
  margin: 0 0 0.3rem;
  font-family: 'NitroGods', 'PunkKid', impact, sans-serif;
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  text-transform: uppercase;
}

.hero-subtitle {
  margin: 0 0 1rem;
  font-family: 'PunkTypewriter', monospace;
  font-size: 0.9rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero-copy {
  font-size: 0.9rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.hero-meta {
  margin-top: auto;
  font-size: 0.8rem;
  opacity: 0.8;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.meta-dot {
  opacity: 0.6;
}

/* ==============
   ABOUT / LORE
   ============== */
.page-about .page-inner {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.about-block h2 {
  font-family: 'PunkKid', 'AllAges', sans-serif;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin-top: 0;
}

/* ==============
   GALLERY
   ============== */
.page-gallery .page-inner {
  display: flex;
  flex-direction: column;
}

.gallery-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.gallery-item {
  position: relative;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-grunge);
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  display: block;
  filter: contrast(1.1) saturate(1.1);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
  filter: contrast(1.2) saturate(1.3);
}

.gallery-item figcaption {
  font-size: 0.75rem;
  padding: 0.45rem 0.6rem;
  opacity: 0.8;
}

/* Lightbox */
.lightbox {
  position: fixed;    /* important: fixed, not absolute */
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  max-width: 90%;
  max-height: 90%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: 70vh;
  display: block;
  border-radius: 6px;
}

.lightbox-close {
  position: absolute;
  top: -32px;
  right: 0;
  border: none;
  background: transparent;
  color: var(--fg);
  font-size: 1.3rem;
  cursor: pointer;
}

#lightboxCaption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  text-align: center;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: var(--fg);
  font-size: 1.8rem;      /* a bit smaller so it sits nicer */
  line-height: 0;         /* kill baseline vertical offset */
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;             /* no extra padding */
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev {
  left: -3rem;
}

.lightbox-next {
  right: -3rem;
}

@media (max-width: 768px) {
  .lightbox-prev {
    left: 0.4rem;
  }
  .lightbox-next {
    right: 0.4rem;
  }
}  /* <-- important closing brace */

/* ==============
   MERCH
   ============== */
.page-merch .page-inner {
  display: flex;
  flex-direction: column;
}

.merch-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.merch-item h2 {
  font-family: 'PunkKid', 'AllAges', sans-serif;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.merch-img-frame {
  background: radial-gradient(circle at 10% 10%, #ff8787, transparent 55%),
              radial-gradient(circle at 90% 90%, #3b5bdb, transparent 55%),
              #050308;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.merch-img-frame img {
  width: 100%;
  display: block;
}

.merch-meta {
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price {
  font-family: 'PunkTypewriter', monospace;
}

/* ==============
   CART
   ============== */
.page-cart .page-inner {
  display: flex;
  flex-direction: column;
}

.cart-empty {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.cart-items {
  margin-top: 1rem;
  flex: 1;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.cart-item-row {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr auto;
  gap: 0.5rem;
  font-size: 0.85rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.cart-item-name {
  font-family: 'PunkKid', 'AllAges', sans-serif;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.cart-item-controls button {
  border: 1px solid var(--accent-soft);
  background: transparent;
  color: var(--fg);
  width: 1.2rem;
  height: 1.2rem;
  font-size: 0.75rem;
  cursor: pointer;
}

.cart-summary {
  margin-top: 1rem;
  border-top: 1px solid var(--border-grunge);
  padding-top: 0.6rem;
  font-size: 0.85rem;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

/* ==============
   CONTACT
   ============== */
.page-contact .page-inner {
  display: flex;
  flex-direction: column;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.2rem;
  margin-top: 1rem;
}

.contact-form label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 0.25rem;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--fg);
  padding: 0.45rem 0.6rem;
  font-family: inherit;
  font-size: 0.85rem;
}

.contact-form textarea {
  resize: vertical;
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.contact-note h2 {
  font-family: 'PunkKid', 'AllAges', sans-serif;
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* ==============
   RESPONSIVE TWEAKS
   ============== */
@media (max-width: 900px) {
  .page-home .page-inner {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================
   FEATURED PRE-ORDER CARD
   ===================== */

.featured-card {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 0.9rem;
  align-items: center;
}

.featured-media img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.featured-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.featured-title {
  margin: 0.2rem 0 0.25rem;
  font-family: 'Nitrogods', 'AllAges', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.featured-copy {
  margin: 0;
  color: var(--fg);
  opacity: 0.9;
  font-size: 0.92rem;
}

.featured-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.featured-meta {
  margin-top: 0.6rem;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

@media (max-width: 900px) {
  .featured-card {
    grid-template-columns: 1fr;
  }
  .featured-media img {
    height: 180px;
  }
}

/* =====================
   PRODUCT MODAL
   ===================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
}

.modal.modal-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.modal-panel {
  position: absolute;
  inset: 5vh 5vw;
  background: rgba(15, 15, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.75);
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.6);
  color: var(--fg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
}

.product-modal {
  height: 100%;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.product-media {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.product-stage {
  flex: 1;
  min-height: 280px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
}

.product-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumbs {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
}

.thumb {
  flex: 0 0 auto;
  width: 92px;
  height: 70px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
  cursor: pointer;
}

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

.thumb.thumb-active {
  outline: 2px solid rgba(255, 255, 255, 0.7);
}

.product-info {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.product-top {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: baseline;
}

.product-price {
  font-family: 'Nitrogods', 'AllAges', sans-serif;
  text-transform: uppercase;
}

.variant-block {
  margin-top: 0.4rem;
}

.variant-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
}

.variant-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.variant-tab {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.35);
  color: var(--fg);
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
}

.variant-tab.variant-tab-active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.product-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.form-status {
  font-size: 0.9rem;
  color: var(--muted);
  min-height: 1.1em;
}

@media (max-width: 900px) {
  .modal-panel {
    inset: 4vh 4vw;
  }
  .product-modal {
    grid-template-columns: 1fr;
  }
  .product-media {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* =====================
   CART + SAVED UI
   ===================== */

.cart-item-namewrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cart-item-variant {
  font-size: 0.78rem;
  color: var(--muted);
}

.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.account-card {
  padding: 1rem;
}

.auth-form input {
  width: 100%;
  margin-top: 0.35rem;
}

.auth-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.saved-items {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.7rem;
}

.saved-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  background: rgba(0,0,0,0.25);
}

.saved-left {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.saved-left img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.saved-name {
  font-weight: 700;
}

.saved-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.newsletter-form {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.6rem;
}

.newsletter-form input {
  flex: 1;
}

@media (max-width: 900px) {
  .account-grid {
    grid-template-columns: 1fr;
  }
}

