/*
Theme Name: RoboticWorld
Theme URI: https://roboticworld.store
Author: RoboticWorld
Description: Dark premium theme for RoboticWorld desk robot collectibles
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GPL v2 or later
Text Domain: roboticworld
*/

/* ============================================================
   TOKENS & RESET
   ============================================================ */
:root {
  --bg:            #08080f;
  --bg-1:          #0d0d1a;
  --bg-card:       #0f0f1c;
  --bg-img:        #f2f2f5;
  --border:        rgba(255,255,255,0.07);
  --border-acc:    rgba(139,92,246,0.35);
  --text:          #ffffff;
  --text-dim:      rgba(255,255,255,0.45);
  --text-dimmer:   rgba(255,255,255,0.2);
  --acc:           #8b5cf6;
  --acc-2:         #6366f1;
  --acc-glow:      rgba(139,92,246,0.22);
  --acc-glow-lg:   rgba(139,92,246,0.14);
  --nav-h:         64px;
  --radius:        16px;
  --radius-sm:     10px;
  --ff-head:       'Inter', sans-serif;
  --ff-body:       'Inter', sans-serif;
  --ease:          cubic-bezier(0.16,1,0.3,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* subtle dot grid across whole page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,h2,h3,h4,h5 {
  font-family: var(--ff-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acc);
}

/* ============================================================
   UTILITY
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 50px;
  font-family: var(--ff-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--acc);
  color: #fff;
  box-shadow: 0 0 24px var(--acc-glow);
}
.btn-primary:hover {
  background: #9f75ff;
  box-shadow: 0 0 40px rgba(139,92,246,0.45);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-1px);
}

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(8,8,15,0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.nav-logo-mark {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--acc), var(--acc-2));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  box-shadow: 0 0 16px var(--acc-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: color 0.2s;
  font-weight: 400;
}
.nav-links a:hover { color: var(--text); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}
.nav-cart:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  background: var(--acc);
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cart-count:empty,
.cart-count[data-count="0"] { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 60px) 24px 80px;
  overflow: hidden;
}

/* ── Neon wave canvas ── */
#hero-wave-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 767px) {
  #hero-wave-canvas { display: none; }
}

/* radial glow blobs */
.hero::after {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(139,92,246,0.18) 0%, transparent 70%);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -60%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 50px;
  border: 1px solid var(--border-acc);
  background: rgba(139,92,246,0.08);
  font-size: 0.75rem;
  color: var(--acc);
  letter-spacing: 0.06em;
  font-weight: 500;
  margin-bottom: 36px;
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 6px var(--acc);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.hero-img-wrap {
  width: min(560px, 90vw);
  margin-bottom: 52px;
  position: relative;
}

/* glow blob behind the image */
.hero-img-wrap::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(139,92,246,0.28) 0%, transparent 65%);
  filter: blur(30px);
  z-index: 0;
  animation: glow-breathe 4s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%,100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.08); }
}

.hero-img-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 24px;
  filter: drop-shadow(0 40px 80px rgba(0,0,0,0.6));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-12px); }
}

.hero-title {
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}

.hero-title .dim { color: rgba(255,255,255,0.3); font-weight: 700; }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-dim);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   SECTION: THE COLLECTION (product grid on front page)
   ============================================================ */
.section {
  position: relative;
  z-index: 1;
  padding: 120px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 64px;
}

.section-head h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-top: 12px;
}

.section-head p {
  color: var(--text-dim);
  max-width: 480px;
  margin: 16px auto 0;
}

/* divider line */
.section::before {
  content: '';
  display: block;
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
  margin: 0 auto 0;
}

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-acc);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 40px var(--acc-glow);
}

.product-card-img {
  background: var(--bg-img);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s var(--ease);
}

.product-card:hover .product-card-img img {
  transform: scale(1.06);
}

.product-card-info {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-card-name {
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-price {
  font-family: var(--ff-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--acc);
}

.add-to-cart-btn,
.product-card .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
  font-family: var(--ff-body);
  background: rgba(139,92,246,0.15);
  color: var(--acc);
  border: 1px solid rgba(139,92,246,0.25);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.add-to-cart-btn:hover,
.product-card .button:hover {
  background: var(--acc);
  color: #fff;
  border-color: var(--acc);
  box-shadow: 0 0 20px var(--acc-glow);
}

/* ============================================================
   BUNDLE SECTION
   ============================================================ */
.bundle-section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.bundle-inner {
  background: linear-gradient(135deg, rgba(139,92,246,0.12) 0%, rgba(99,102,241,0.08) 100%);
  border: 1px solid var(--border-acc);
  border-radius: 24px;
  padding: 64px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.bundle-inner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.bundle-label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(139,92,246,0.2);
  border: 1px solid rgba(139,92,246,0.4);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 20px;
}

.bundle-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.bundle-text p {
  color: var(--text-dim);
  margin-bottom: 32px;
  line-height: 1.7;
}

.bundle-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 32px;
}

.bundle-price-new {
  font-family: var(--ff-body);
  font-size: 2rem;
  font-weight: 700;
  color: var(--acc);
}

.bundle-price-old {
  font-size: 1rem;
  color: var(--text-dimmer);
  text-decoration: line-through;
}

.bundle-price-save {
  font-size: 0.8rem;
  background: rgba(139,92,246,0.15);
  color: var(--acc);
  padding: 3px 10px;
  border-radius: 50px;
  font-weight: 600;
}

.bundle-img {
  position: relative;
}

.bundle-img img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

/* ============================================================
   SHOP PAGE (archive-product)
   ============================================================ */
.shop-page {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 120px;
  min-height: 100vh;
}

.shop-header {
  text-align: center;
  padding: 60px 0 72px;
  position: relative;
}

.shop-header h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-top: 12px;
}

.shop-header p {
  color: var(--text-dim);
  margin-top: 16px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* WooCommerce overrides for shop page */
.shop-page .woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop-page .woocommerce ul.products li.product {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
  float: none;
  width: auto;
  margin: 0;
}

.shop-page .woocommerce ul.products li.product:hover {
  transform: translateY(-8px);
  border-color: var(--border-acc);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 40px var(--acc-glow);
}

.shop-page .woocommerce ul.products li.product a img {
  background: var(--bg-img);
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 20px;
}

.shop-page .woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--ff-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  padding: 16px 20px 4px;
  letter-spacing: -0.01em;
}

.shop-page .woocommerce ul.products li.product .price {
  color: var(--acc);
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 0 20px;
}

.shop-page .woocommerce ul.products li.product .button {
  margin: 12px 20px 20px;
  display: inline-flex;
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
  font-family: var(--ff-body);
  background: rgba(139,92,246,0.15);
  color: var(--acc);
  border: 1px solid rgba(139,92,246,0.25) !important;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.shop-page .woocommerce ul.products li.product .button:hover {
  background: var(--acc);
  color: #fff;
  box-shadow: 0 0 20px var(--acc-glow);
}

/* ============================================================
   SINGLE PRODUCT PAGE
   ============================================================ */
.single-product-page {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 120px;
  min-height: 100vh;
}

.single-product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.product-gallery-wrap {
  background: var(--bg-img);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

.product-gallery-wrap img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.product-details {
  padding-top: 8px;
}

.product-details .eyebrow {
  margin-bottom: 16px;
}

.product-details h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 24px;
}

.product-details .price-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 32px;
}

.product-details .price {
  font-family: var(--ff-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--acc);
}

.product-details .product-description {
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 40px;
}

.product-details .product-description p { margin-bottom: 12px; }

.add-to-cart-form .qty-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.qty-wrap label {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.qty-wrap input[type="number"] {
  width: 64px;
  padding: 8px 12px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 0.9rem;
  text-align: center;
}

.single_add_to_cart_button,
.single_add_to_cart_button.button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 32px !important;
  border-radius: 50px !important;
  font-family: var(--ff-body) !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  background: var(--acc) !important;
  color: #fff !important;
  border: none !important;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  box-shadow: 0 0 30px var(--acc-glow);
}
.single_add_to_cart_button:hover {
  background: #9f75ff !important;
  box-shadow: 0 0 50px rgba(139,92,246,0.45) !important;
  transform: translateY(-2px);
}

.product-meta-info {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.meta-row span:first-child {
  color: var(--text-dimmer);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-width: 80px;
}

/* ============================================================
   WOOCOMMERCE NOTICES
   ============================================================ */
/* Inline notices (cart empty, info messages) */
.woocommerce-info,
.woocommerce-error {
  background: var(--bg-card);
  border-left: 3px solid var(--acc);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 16px 20px;
  margin-bottom: 24px;
  font-family: var(--ff-body);
  display: flex;
  align-items: center;
  gap: 12px;
}
.woocommerce-error {
  border-left-color: #f87171;
}

/* Toast-style add-to-cart notices — these stay fixed */
.woocommerce-notices-wrapper:has(.woocommerce-message) {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  max-width: 380px;
}

.woocommerce-message {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-acc) !important;
  border-radius: 12px !important;
  color: var(--text) !important;
  padding: 16px 20px !important;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5) !important;
  font-family: var(--ff-body) !important;
}

.woocommerce-message .button {
  background: var(--acc) !important;
  color: #fff !important;
  border-radius: 50px !important;
  border: none !important;
  padding: 6px 14px !important;
  font-size: 0.8rem !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.875rem;
  margin-top: 12px;
  max-width: 260px;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--ff-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dimmer);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul a {
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dimmer);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .shop-page .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); }
  .single-product-layout { grid-template-columns: 1fr; gap: 48px; }
  .product-gallery-wrap { position: static; }
  .bundle-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-right .btn { display: none; } /* hide Shop Now on mobile — in hamburger menu instead */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .shop-page .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
  .bundle-inner { padding: 40px 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero-title { font-size: clamp(3rem, 12vw, 5rem); }

  /* mobile nav */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(8,8,15,0.97);
    backdrop-filter: blur(20px);
    padding: 32px 24px;
    border-bottom: 1px solid var(--border);
    gap: 24px;
    z-index: 99;
  }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-cta { flex-direction: column; align-items: center; }
}

/* ============================================================
   PAGE.PHP WRAPPER (cart, checkout, my account, privacy, etc.)
   ============================================================ */
.wc-page-wrap {
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 120px;
  min-height: 100vh;
}

/* WooCommerce page headings */
.woocommerce-cart h1,
.woocommerce-checkout h1,
.woocommerce-account h1 {
  font-family: var(--ff-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 48px;
}

/* ============================================================
   PRODUCT PAGE — WooCommerce form elements
   ============================================================ */
.woocommerce form.cart {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.woocommerce .quantity {
  display: flex;
  align-items: center;
}

.woocommerce .quantity input.qty {
  width: 68px;
  padding: 12px 14px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 1rem;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.woocommerce .quantity input.qty:focus {
  outline: none;
  border-color: var(--acc);
  box-shadow: 0 0 0 3px var(--acc-glow);
}

/* ============================================================
   CART PAGE
   ============================================================ */
.woocommerce-cart .woocommerce {
  display: block;
}

/* Cart table */
.woocommerce table.shop_table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
}

.woocommerce table.shop_table thead th {
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dimmer);
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.woocommerce table.shop_table td {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
  font-family: var(--ff-body);
}

.woocommerce table.shop_table tr:last-child td {
  border-bottom: none;
}

.woocommerce table.shop_table td.product-name {
  font-family: var(--ff-head);
  font-weight: 600;
}

.woocommerce table.shop_table td.product-name a {
  color: var(--text);
  transition: color 0.2s;
}
.woocommerce table.shop_table td.product-name a:hover { color: var(--acc); }

.woocommerce table.shop_table td.product-price,
.woocommerce table.shop_table td.product-subtotal {
  color: var(--acc);
  font-family: var(--ff-head);
  font-weight: 700;
}

.woocommerce table.shop_table td.product-thumbnail img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: var(--bg-img);
  border-radius: 10px;
  padding: 8px;
}

.woocommerce table.shop_table td.product-remove a {
  color: var(--text-dimmer);
  font-size: 1.3rem;
  line-height: 1;
  transition: color 0.2s;
  font-weight: 400;
}
.woocommerce table.shop_table td.product-remove a:hover { color: #f87171; }

/* Cart actions row (coupon + update) */
.woocommerce table.shop_table td.actions {
  background: rgba(255,255,255,0.015);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.woocommerce td.actions .coupon {
  display: flex;
  gap: 10px;
  align-items: center;
}

.woocommerce td.actions .coupon input[type="text"] {
  padding: 10px 16px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 0.875rem;
  transition: border-color 0.2s;
}
.woocommerce td.actions .coupon input[type="text"]:focus {
  outline: none;
  border-color: var(--acc);
  box-shadow: 0 0 0 3px var(--acc-glow);
}

.woocommerce td.actions .coupon button,
.woocommerce td.actions .button {
  padding: 10px 20px;
  border-radius: 50px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--ff-body);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}
.woocommerce td.actions .coupon button:hover,
.woocommerce td.actions .button:hover {
  background: rgba(255,255,255,0.12);
  color: var(--text);
}

/* Cart totals */
.woocommerce-cart .cart-collaterals {
  display: flex;
  justify-content: flex-end;
}

.woocommerce .cart_totals {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 440px;
}

.woocommerce .cart_totals h2 {
  font-family: var(--ff-head);
  font-size: 1.25rem;
  margin-bottom: 24px;
}

.woocommerce .cart_totals table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.woocommerce .cart_totals table th,
.woocommerce .cart_totals table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--ff-body);
  font-size: 0.9rem;
}

.woocommerce .cart_totals table th {
  color: var(--text-dim);
  font-weight: 400;
}
.woocommerce .cart_totals table td {
  text-align: right;
  color: var(--text);
}

.woocommerce .cart_totals table .order-total th,
.woocommerce .cart_totals table .order-total td {
  font-weight: 700;
  border-bottom: none;
  padding-top: 16px;
}

.woocommerce .cart_totals table .order-total .amount {
  color: var(--acc);
  font-family: var(--ff-head);
  font-size: 1.35rem;
}

.woocommerce a.checkout-button,
.woocommerce .cart_totals .checkout-button {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 32px;
  border-radius: 50px;
  background: var(--acc);
  color: #fff !important;
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  box-shadow: 0 0 30px var(--acc-glow);
  border: none;
  text-decoration: none;
}
.woocommerce a.checkout-button:hover,
.woocommerce .cart_totals .checkout-button:hover {
  background: #9f75ff;
  box-shadow: 0 0 50px rgba(139,92,246,0.45);
  transform: translateY(-2px);
}

/* ============================================================
   CHECKOUT PAGE — single column, max-width centered
   ============================================================ */
.woocommerce-checkout .wc-page-wrap {
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 120px;
}

/* The form itself — two-column grid */
.woocommerce-checkout form.checkout {
  display: block;
}

.checkout-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.checkout-col-right {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

/* Section cards */
.checkout-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
}

.checkout-section-title {
  font-family: var(--ff-head);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
}

/* Checkout form fields */
.woocommerce form .form-row {
  margin-bottom: 18px;
}

.woocommerce form .form-row .woocommerce-input-wrapper {
  display: block;
  width: 100%;
}

.woocommerce form .form-row label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-dimmer);
  margin-bottom: 8px;
  font-family: var(--ff-body);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  outline: none;
  border-color: var(--acc);
  box-shadow: 0 0 0 3px var(--acc-glow);
}

/* Order review table inside checkout */
#order_review {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}

#order_review .checkout-section-title {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

#order_review table {
  width: 100%;
  border-collapse: collapse;
}

/* Thumbnail column */
#order_review table td.product-thumb {
  width: 48px;
  padding: 10px 0 10px 20px;
}
#order_review table td.product-thumb img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--bg-img);
  padding: 3px;
  display: block;
}

#order_review table thead th {
  padding: 10px 24px;
  background: rgba(255,255,255,0.03);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dimmer);
  font-family: var(--ff-body);
  border-bottom: 1px solid var(--border);
}

#order_review table thead th.product-total {
  text-align: right;
}

#order_review table tbody td {
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  font-family: var(--ff-body);
  font-size: 0.9rem;
  color: var(--text);
  vertical-align: middle;
}

#order_review table tbody td.product-total {
  text-align: right;
  color: var(--text-dim);
}

#order_review table tfoot tr th,
#order_review table tfoot tr td {
  padding: 10px 24px;
  font-family: var(--ff-body);
  font-size: 0.85rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}

#order_review table tfoot tr td {
  text-align: right;
}

#order_review table tfoot .order-total th,
#order_review table tfoot .order-total td {
  padding: 16px 24px;
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
  border-bottom: none;
  background: rgba(124,92,252,0.06);
}

#order_review table .order-total .amount {
  color: var(--acc);
  font-family: var(--ff-head);
  font-size: 1.1rem;
}

/* Payment section — now inside its own .checkout-section card */
#payment {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

#payment fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

#payment ul.payment_methods {
  list-style: none;
  margin-bottom: 0;
}

#payment ul.payment_methods li {
  padding: 10px 0;
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--ff-body);
}

#payment ul.payment_methods li label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 500;
  color: var(--text);
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0;
}

/* Stripe UPE payment box — solid dark bg so Stripe detects dark theme */
#payment .payment_box {
  background: var(--bg-1);
  border: none;
  border-radius: 12px;
  padding: 16px;
  margin: 10px 0 4px;
}

/* Stripe UPE iframe container fills the box */
.wc-stripe-upe-element,
.wc-stripe-upe-element iframe {
  width: 100%;
  min-height: 40px;
}

/* Hide save-card checkbox — irrelevant for a digital guest-checkout store */
.woocommerce-SavedPaymentMethods-saveNew {
  display: none !important;
}

/* Testmode info banner */
#payment .payment_box .testmode-info {
  font-size: 0.78rem;
  color: var(--text-dimmer);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 14px;
}

/*
 * ── Stripe UPE appearance bridge ────────────────────────────────
 * The Stripe plugin reads getComputedStyle() from #wc-stripe-hidden-style-input
 * and maps those values into Stripe's Appearance API (colorBackground,
 * colorText, colorBorder, borderRadius, fontFamily, fontSize, etc.).
 * Style this element to control how the card fields look inside the iframe.
 */
/* Target both the source element AND the clone Stripe reads from */
#wc-stripe-hidden-style-input,
#wc-stripe-hidden-input,
#wc-stripe-hidden-div input {
  background-color: #0d0d1a      !important; /* --bg-1, must be literal for getComputedStyle */
  color:            #ffffff      !important;
  border-width:     0px          !important;
  border-style:     solid        !important;
  border-color:     #0d0d1a     !important; /* same as background = invisible border */
  border-radius:    10px         !important;
  font-family:      'DM Sans', sans-serif !important;
  font-size:        0.9rem       !important;
  padding:          12px 16px    !important;
  box-shadow:       none         !important;
  outline:          none         !important;
}

/* ── Legacy Stripe element iFrame ──────────────────────────────── */
.StripeElement {
  background: transparent;
  min-height: 24px;
  color: var(--text);
}

.StripeElement--focus { outline: none; }
.StripeElement--invalid { color: #f87171; }

/* Stripe's separate card fields (legacy mode) */
.wc-stripe-elements-field {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  min-height: 48px;
  margin-bottom: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.wc-stripe-elements-field.focused,
.wc-stripe-elements-field:focus-within {
  border-color: var(--acc);
  box-shadow: 0 0 0 3px var(--acc-glow);
}

/* Place order button */
#place_order {
  display: block;
  width: 100%;
  padding: 15px 32px;
  border-radius: 50px;
  background: var(--acc);
  color: #fff;
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  box-shadow: 0 0 30px var(--acc-glow);
  margin-top: 24px;
}
#place_order:hover {
  background: #9f75ff;
  box-shadow: 0 0 50px rgba(139,92,246,0.45);
  transform: translateY(-2px);
}

/* ============================================================
   CART EMPTY STATE
   ============================================================ */
.cart-empty-state {
  text-align: center;
  padding: 80px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cart-empty-icon {
  font-size: 4rem;
  line-height: 1;
  filter: grayscale(0.3);
}

.cart-empty-state h2 {
  font-family: var(--ff-head);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--text);
}

.cart-empty-state p {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 300px;
}

/* ============================================================
   MY ACCOUNT PAGE
   ============================================================ */
.woocommerce-account .woocommerce {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

.woocommerce-MyAccount-navigation {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 8px 0;
}

.woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 12px 20px;
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: all 0.2s;
  font-family: var(--ff-body);
}

.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a {
  color: var(--text);
  background: rgba(139,92,246,0.1);
  padding-left: 24px;
}

.woocommerce-MyAccount-navigation ul li.is-active a {
  color: var(--acc);
}

.woocommerce-MyAccount-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
}

.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
  color: var(--text);
  margin-bottom: 20px;
}

/* ============================================================
   RESPONSIVE — WC pages
   ============================================================ */
@media (max-width: 768px) {
  .checkout-section { padding: 20px; }

  .woocommerce-account .woocommerce {
    grid-template-columns: 1fr;
  }

  .woocommerce-cart .cart-collaterals {
    justify-content: stretch;
  }
  .woocommerce .cart_totals {
    max-width: 100%;
  }

  .woocommerce table.shop_table thead { display: none; }
  .woocommerce table.shop_table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    padding: 14px 16px;
  }
  .woocommerce table.shop_table tr { border-bottom: none; }
}

/* ============================================================
   THANK-YOU / ORDER RECEIVED PAGE
   ============================================================ */
.thankyou-page {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 120px;
  min-height: 100vh;
}

.thankyou-hero {
  text-align: center;
  margin-bottom: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.thankyou-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--acc), var(--acc-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 0 48px var(--acc-glow-lg);
}

.thankyou-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
}

.thankyou-sub {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 480px;
  line-height: 1.7;
}

.thankyou-sub strong {
  color: var(--text);
  font-weight: 500;
}

/* Download section */
.download-section {
  margin-bottom: 64px;
}

.download-section-head {
  text-align: center;
  margin-bottom: 40px;
}

.download-section-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-top: 12px;
}

.download-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-acc);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: box-shadow 0.3s;
}

.download-card:hover {
  box-shadow: 0 0 40px var(--acc-glow);
}

.download-card-img {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  background: var(--bg-img);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.download-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.download-card-info {
  flex: 1;
}

.download-card-name {
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}

.download-card-meta {
  font-size: 0.8rem;
  color: var(--text-dimmer);
  letter-spacing: 0.04em;
}

.download-btn {
  flex-shrink: 0;
  font-size: 0.875rem !important;
  padding: 10px 22px !important;
}

/* Order info summary */
.thankyou-order-info {
  max-width: 720px;
  margin: 0 auto 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.order-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.order-info-row:last-child { border-bottom: none; }

.order-info-row span:first-child {
  color: var(--text-dimmer);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-info-row span:last-child {
  color: var(--text);
  font-weight: 500;
}

.thankyou-notice {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-acc);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  color: var(--text-dim);
  line-height: 1.7;
}

.thankyou-notice strong { color: var(--text); }

.thankyou-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .download-card {
    flex-direction: column;
    text-align: center;
  }
  .download-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   CART SIDEBAR
   ============================================================ */
.rw-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.rw-sidebar-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.rw-cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 400px;
  max-width: 100vw;
  background: var(--bg-1);
  border-left: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.rw-cart-sidebar.is-open {
  transform: translateX(0);
}

.rw-cart-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.rw-cart-sidebar-head h3 {
  font-family: var(--ff-head);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}
.rw-cart-close {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.rw-cart-close:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.rw-cart-sidebar-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.rw-minicart {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.rw-minicart-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  flex: 1;
}

.rw-minicart-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.rw-minicart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

.rw-minicart-thumb {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: var(--bg-img);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rw-minicart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.rw-minicart-info {
  flex: 1;
  min-width: 0;
}
.rw-minicart-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rw-minicart-meta {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.rw-minicart-remove {
  flex-shrink: 0;
  color: var(--text-dimmer);
  font-size: 1.3rem;
  line-height: 1;
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.rw-minicart-remove:hover {
  color: #ff5c5c;
  background: rgba(255,92,92,0.1);
}

.rw-minicart-footer {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  flex-shrink: 0;
}
.rw-minicart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 0.95rem;
  font-weight: 600;
}
.rw-minicart-total span:first-child { color: var(--text-dim); }
.rw-minicart-total span:last-child  { color: var(--text); }

.rw-minicart-checkout {
  display: block;
  width: 100%;
  text-align: center;
}

/* ── Checkout two-column responsive ──────────────────────────── */
@media (max-width: 900px) {
  .checkout-columns {
    grid-template-columns: 1fr;
  }
  .checkout-col-right {
    position: static;
  }
}

/* ── Sidebar responsive ──────────────────────────────────────── */
@media (max-width: 480px) {
  .rw-cart-sidebar { width: 100vw; }
}

/* ============================================================
   MOBILE IMPROVEMENTS
   ============================================================ */
@media (max-width: 768px) {
  /* Sections — halve vertical padding */
  .section        { padding: 72px 0; }
  .bundle-section { padding: 60px 0; }

  /* Hero */
  .hero { padding-bottom: 60px; }
  .hero-img-wrap  { margin-bottom: 36px; }
  .hero-sub       { font-size: 1rem; }

  /* Bundle card */
  .bundle-inner { padding: 32px 20px; gap: 32px; }
  /* Put image above text when stacked */
  .bundle-img   { order: -1; }

  /* Product card — tighter info area */
  .product-card-info { padding: 12px 14px 14px; gap: 8px; }
  .product-card-name { font-size: 0.88rem; }

  /* Shop / single-product page top space */
  .shop-page         { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 80px; }
  .single-product-page { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 80px; }
  .wc-page-wrap      { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 80px; }
  .thankyou-page     { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 80px; }
  .thankyou-hero     { margin-bottom: 48px; }

  /* Cart totals — full width, centred */
  .woocommerce-cart .cart-collaterals { justify-content: stretch; }
  .woocommerce .cart_totals { max-width: 100%; }

  /* Checkout review table — compress */
  .woocommerce-checkout-review-order-table td { padding: 12px 14px; }
}

@media (max-width: 480px) {
  /* Section padding even tighter */
  .section        { padding: 56px 0; }
  .bundle-section { padding: 48px 0; }

  /* Hero title — shrink on tiny phones */
  .hero-title { font-size: clamp(2.4rem, 11vw, 3rem); }
  .hero-badge { font-size: 0.72rem; }

  /* Product cards — reduce image padding so product shows larger */
  .product-card-img { padding: 12px; }
  .add-to-cart-btn,
  .product-card .button { padding: 6px 10px; font-size: 0.72rem; }

  /* Bundle inner  */
  .bundle-inner { padding: 28px 16px; }
  .bundle-price-row { flex-wrap: wrap; gap: 8px; }

  /* Cart table cells on very small screens */
  .woocommerce table.shop_table td { padding: 10px 12px; font-size: 0.85rem; }

  /* Checkout review: hide thumbnail to save space */
  .woocommerce-checkout-review-order-table td.product-thumb { display: none; }

  /* Order info rows on thank-you page */
  .order-info-row { flex-direction: column; gap: 2px; }
  .order-info-row span:last-child { font-size: 0.9rem; }

  /* Download card */
  .download-card { padding: 16px; gap: 12px; }
}

/* ── Hide Stripe test-mode developer badge ── */
#stripe-dev-tools-button,
iframe[name="stripe-dev-tools-button"] {
  display: none !important;
}

/* ── Stripe dev badge — broader net for dynamically injected elements ── */
iframe[src*="stripe.com"][src*="dev"],
iframe[src*="stripejs.com"],
[id^="stripe-dev"],
[class^="stripe-dev"] {
  display: none !important;
}
