/*
Theme Name: Life Research
Theme URI: https://liferesearch.shop
Author: Life Research
Description: Custom WordPress theme for Life Research — research peptides and lab supplies. Scientific Lab Dark design with Three.js molecular animation, interactive effects, and WooCommerce integration.
Version: 1.0.0
Requires PHP: 8.0
License: GPL v2 or later
Text Domain: life-research
*/

/* ============================================
   Life Research Theme — Main Stylesheet
   Scientific Lab Dark + Clean Minimal Hybrid
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #0a1628;
  --navy-light: #0f1f3a;
  --cyan: #00d4ff;
  --cyan-dark: #0099cc;
  --purple: #8b5cf6;
  --purple-dark: #6d28d9;
  --emerald: #10b981;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --glass: rgba(255,255,255,0.05);
  --glass-border: rgba(255,255,255,0.1);
  --glass-hover: rgba(255,255,255,0.08);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1200px;
  --nav-h: 72px;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0,212,255,0.03) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(139,92,246,0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: var(--transition);
  background: transparent;
}
.nav.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--white), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-cart {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  cursor: pointer;
}
.nav-cart:hover { border-color: var(--cyan); background: var(--glass); }
.nav-cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Navigation Light (for light-background pages) --- */
.nav-light:not(.scrolled) {
  background: transparent;
}
.nav-light.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
}
.nav-light .nav-links a {
  color: rgba(0,0,0,0.55);
}
.nav-light .nav-links a:hover {
  color: var(--cyan-dark);
}
.nav-light .nav-links a::after {
  background: var(--cyan-dark);
}
.nav-light .nav-cart {
  border-color: var(--gray-200);
}
.nav-light .nav-cart:hover {
  border-color: var(--cyan-dark);
  background: rgba(0,212,255,0.05);
}
.nav-light .nav-cart svg {
  stroke: var(--gray-600);
}
.nav-light .nav-user svg,
.nav-light .nav-user {
  stroke: var(--gray-600);
  color: var(--gray-600);
}
.nav-light .nav-user:hover svg {
  stroke: var(--cyan-dark);
  color: var(--cyan-dark);
}
.nav-light .nav-user:hover {
  border-color: var(--cyan-dark);
}
.nav-light .nav-cart-count {
  background: var(--cyan-dark);
  color: #fff;
}
.nav-light .nav-toggle span {
  background: var(--gray-600);
}
.nav-light .nav-logo {
  background: linear-gradient(135deg, var(--gray-900), var(--cyan-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Nav Link Entrance Animation --- */
.nav-links a,
.nav-links .nav-user,
.nav-links .nav-cart {
  opacity: 0;
  transform: translateY(-10px);
  animation: navFadeIn 0.5s ease forwards;
}
.nav-links a:nth-child(1) { animation-delay: 0.05s; }
.nav-links a:nth-child(2) { animation-delay: 0.10s; }
.nav-links a:nth-child(3) { animation-delay: 0.15s; }
.nav-links a:nth-child(4) { animation-delay: 0.20s; }
.nav-links a:nth-child(5) { animation-delay: 0.25s; }
.nav-links .nav-user { animation-delay: 0.30s; }
.nav-links .nav-cart { animation-delay: 0.35s; }

@keyframes navFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Nav user icon */
.nav-user {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  cursor: pointer;
}
.nav-user:hover {
  border-color: var(--cyan);
  background: var(--glass);
}
.nav-user svg {
  stroke: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.nav-user:hover svg {
  stroke: var(--cyan);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-video-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.4;
  z-index: 0;
}
.hero-particles {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg,
    rgba(10,22,40,0.9) 0%,
    rgba(10,22,40,0.6) 50%,
    rgba(10,22,40,0.85) 100%
  );
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: var(--nav-h);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  background: rgba(0, 212, 255, 0.08);
  font-size: 12px;
  font-weight: 500;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-secondary:hover {
  border-color: var(--cyan);
  background: var(--glass);
  transform: translateY(-2px);
}
.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-top: 64px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}
.hero-stat { text-align: center; }
.hero-stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--cyan);
}
.hero-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

/* --- Sections Common --- */
.section { padding: 100px 0; }
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 16px;
  color: var(--gray-400);
  max-width: 500px;
  margin: 0 auto;
}

/* --- Category Cards --- */
#categories { background: var(--navy-light); }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.category-card {
  position: relative;
  padding: 40px 32px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.category-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-4px);
  background: var(--glass-hover);
}
.category-card:hover::before { transform: scaleX(1); }
.category-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
}
.category-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.category-card p { font-size: 14px; color: var(--gray-400); line-height: 1.6; }
.category-count {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--cyan);
}

/* --- Featured Products --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.product-card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  opacity: 0;
  transform: translateY(40px);
}
.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.product-card-image {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: var(--navy-light);
}
.onsale-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 4px;
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .product-card-image img {
  transform: scale(1.08);
}
.product-card-image .video-play {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.product-card:hover .video-play { opacity: 1; }
.product-card-video {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  z-index: 2;
}
.product-card:hover .product-card-video { opacity: 1; }
.product-card-body {
  padding: 20px;
}
.product-card-category {
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.product-card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-price {
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-current {
  font-size: 20px;
  font-weight: 700;
  color: var(--cyan);
}
.price-original {
  font-size: 14px;
  color: var(--gray-500);
  text-decoration: line-through;
}
.product-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-popular { background: rgba(0, 212, 255, 0.2); color: var(--cyan); }
.badge-new { background: rgba(139, 92, 246, 0.2); color: var(--purple); }

/* --- Trust Section --- */
#trust {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
}
.trust-card:hover {
  border-color: rgba(0, 212, 255, 0.2);
  transform: translateY(-2px);
}
.trust-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 12px;
  background: rgba(0, 212, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.trust-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.trust-card p { font-size: 13px; color: var(--gray-400); line-height: 1.6; }

/* --- Newsletter --- */
#newsletter {
  background: var(--navy);
  text-align: center;
}
.newsletter-box {
  max-width: 560px;
  margin: 0 auto;
  padding: 48px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(139, 92, 246, 0.05));
  border: 1px solid var(--glass-border);
}
.newsletter-box h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}
.newsletter-box p {
  font-size: 14px;
  color: var(--gray-400);
  margin-bottom: 24px;
}
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}
.newsletter-form input::placeholder { color: var(--gray-500); }
.newsletter-form input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

/* --- Footer --- */
.footer {
  background: var(--navy-light);
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--gray-400);
  margin-top: 16px;
  line-height: 1.7;
  max-width: 320px;
}
.footer h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--white);
}
.footer-links a {
  display: block;
  font-size: 14px;
  color: var(--gray-400);
  padding: 4px 0;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--cyan); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--gray-500);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.2); }
  50% { box-shadow: 0 0 40px rgba(0, 212, 255, 0.4); }
}
@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.001% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Cursor glow */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.3s;
  will-change: transform;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* CTA Banner */
#cta-banner {
  background: linear-gradient(135deg, rgba(0,212,255,0.03), rgba(139,92,246,0.03));
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}
.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 20px 0;
}
.cta-banner-inner h3 {
  font-size: 22px;
  font-weight: 700;
}
.cta-banner-inner p {
  font-size: 14px;
  color: var(--gray-400);
}

/* ============================================
   Product Detail Page
   ============================================ */
.product-detail {
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 80px;
  background: var(--gray-50);
  color: var(--gray-900);
  min-height: 100vh;
}
.product-detail .container { max-width: 1280px; width: 100%; padding: 0 24px; margin: 0 auto; }
.product-breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 32px;
}
.product-breadcrumb a { color: var(--gray-500); }
.product-breadcrumb a:hover { color: var(--cyan); }
.product-main {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  margin-bottom: 60px;
}
.product-gallery {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  align-self: start;
}
.product-gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-100);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border: 1px solid var(--gray-200);
}
.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-gallery-thumbs {
  display: flex;
  gap: 8px;
}
.product-gallery-thumbs img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}
.product-gallery-thumbs img.active { border-color: var(--cyan); }
.product-gallery-thumbs img:hover { border-color: var(--cyan); }

.product-info-category {
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.product-info h1 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
  line-height: 1.3;
}
.product-info-subtitle {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 20px;
  line-height: 1.6;
}
.product-info-price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
}
.product-info-price .current {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
}
.product-info-price .original {
  font-size: 20px;
  color: var(--gray-400);
  text-decoration: line-through;
}
.product-info-price .badge {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(0, 212, 255, 0.1);
  color: var(--cyan-dark);
}

.variant-section { margin-bottom: 24px; }
.variant-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}
.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.variant-btn {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition);
}
.variant-btn:hover { border-color: var(--cyan); color: var(--cyan-dark); }
.variant-btn.active {
  border-color: var(--cyan);
  background: rgba(0, 212, 255, 0.05);
  color: var(--cyan-dark);
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.product-actions-primary {
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex-wrap: wrap;
}
.product-actions-primary .qty-selector { flex: 0 0 auto; }
.product-actions-primary .btn-primary {
  flex: 1 1 220px;
  justify-content: center;
}
.buy-now-button {
  width: 100%;
  justify-content: center;
  background: linear-gradient(135deg, var(--purple), #7c3aed);
  color: #fff;
  border: none;
  padding: 15px 32px;
  font-weight: 600;
  font-size: 14px;
}
.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-selector button {
  width: 44px;
  height: 44px;
  border: none;
  background: var(--gray-50);
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
}
.qty-selector button:hover { background: var(--gray-200); }
.qty-selector input {
  width: 56px;
  height: 44px;
  border: none;
  border-left: 1px solid var(--gray-200);
  border-right: 1px solid var(--gray-200);
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-sans);
  outline: none;
}
.buy-now-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.3);
}

.product-accordion { border-top: 1px solid var(--gray-200); }
.accordion-item { border-bottom: 1px solid var(--gray-200); }
.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
  user-select: none;
}
.accordion-header svg { transition: transform 0.3s ease; }
.accordion-item.open .accordion-header svg { transform: rotate(180deg); }
.accordion-body {
  padding: 0 0 20px;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.8;
  display: none;
}
.accordion-item.open .accordion-body { display: block; }

.specs-table { width: 100%; border-collapse: collapse; }
.specs-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
}
.specs-table td:first-child {
  font-weight: 600;
  color: var(--gray-700);
  width: 140px;
}

.related-section h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 24px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.related-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.related-card-image {
  height: 180px;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.related-card:hover .related-card-image img { transform: scale(1.05); }
.related-card-body { padding: 16px; }
.related-card-body h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 6px;
}
.related-card-body .price {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

/* --- Login Modal --- */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  display: flex;
  opacity: 1;
}
.modal {
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  position: relative;
  transform: scale(0.92) translateY(24px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  background: transparent;
  color: var(--gray-400);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 16px;
}
.modal-close:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.modal h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}
.modal-desc {
  font-size: 14px;
  color: var(--gray-400);
  margin-bottom: 24px;
}
.modal-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 28px;
  background: var(--navy-light);
  border-radius: 12px;
  padding: 4px;
}
.modal-tab {
  flex: 1;
  padding: 11px;
  text-align: center;
  border: none;
  background: transparent;
  color: var(--gray-400);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.modal-tab.active {
  background: var(--cyan);
  color: var(--navy);
  font-weight: 600;
}
.modal-form {
  display: none;
}
.modal-form.active {
  display: block;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-300);
  margin-bottom: 6px;
}
.form-group input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  background: var(--navy-light);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}
.form-group input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.08);
}
.form-group input::placeholder {
  color: var(--gray-500);
}
.modal-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}
.modal-form .btn-primary {
  padding: 14px;
  font-size: 15px;
}
.modal-forgot {
  display: block;
  text-align: right;
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 18px;
  cursor: pointer;
  transition: var(--transition);
}
.modal-forgot:hover {
  color: var(--cyan);
}
.modal-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0 20px;
  color: var(--gray-500);
  font-size: 12px;
}
.modal-divider::before,
.modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.06);
}
.modal-social {
  display: flex;
  gap: 12px;
}
.modal-social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  background: transparent;
  color: var(--gray-300);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.modal-social-btn:hover {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.03);
}

/* --- WooCommerce Compatibility --- */

/* Override WooCommerce default single product styles */
.woocommerce div.product {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.woocommerce div.product .summary,
.woocommerce div.product .images {
  width: auto !important;
  max-width: none !important;
  float: none !important;
}
.woocommerce .products ul,
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.woocommerce li.product {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  width: 100% !important;
  margin: 0 !important;
}
.woocommerce li.product:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.woocommerce li.product a img {
  margin: 0;
}
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  color: var(--gray-400);
}

/* --- Page / Light Backgrounds --- */
.page-template-default .nav,
.page .nav,
.single .nav {
  /* nav-light is handled via PHP class */
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .product-main { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .categories-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter-form { flex-direction: column; }
  .product-detail { padding-top: calc(var(--nav-h) + 20px); }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .product-actions { flex-direction: column; }
}

/* ============================================
   WooCommerce light pages wrapper
   ============================================
   .woo-page is emitted by header.php on every cart / checkout / shop /
   account / product page. It flips the page from the dark hero theme to
   a clean white background, masks the body's dark radial gradient, and
   provides a single place to set the WC content container width.
   ============================================ */
.woo-page {
  background: #fff;
  color: var(--gray-900);
  position: relative;
  z-index: 1;
  min-height: 100vh;
}
/* Hide the dark global radial gradient (body::before) when a woo-page is shown */
body.woo-page::before { display: none !important; }

/* Container used inside page.php for cart / checkout / account */
.woo-page .woo-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
}

/* WC root element — let the page background show through */
.woo-page .woocommerce,
.woo-page .woocommerce-page { background: transparent; color: inherit; }

/* Typography reset inside woo-page so headings aren't white-on-white */
.woo-page h1, .woo-page h2, .woo-page h3, .woo-page h4 { color: var(--gray-900); }
.woo-page p,  .woo-page label,
.woo-page td, .woo-page th { color: var(--gray-700); }
.woo-page a { color: var(--cyan-dark); }

/* Cart layout polish: two-column with totals on the right */
.woo-page .woocommerce-cart-form { margin-bottom: 0; }
.woo-page .cart-collaterals {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 32px;
}
.woo-page .cart-collaterals .cart_totals { margin-left: auto; width: 100%; max-width: 420px; }

/* Empty cart state */
.woo-page .cart-empty,
.woo-page .wc-empty-cart-message {
  text-align: center;
  padding: 48px 24px;
  font-size: 16px;
  color: var(--gray-600);
}
.woo-page .return-to-shop { text-align: center; margin-top: 24px; }
.woo-page .return-to-shop .wc-backward {
  display: inline-block;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  color: #fff !important;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.woo-page .return-to-shop .wc-backward:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.25);
}

/* WC notices */
.woo-page .woocommerce-message,
.woo-page .woocommerce-info,
.woo-page .woocommerce-error {
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 14px;
  list-style: none;
  border: 1px solid transparent;
}
.woo-page .woocommerce-message { background: #ecfdf5; border-color: #10b981; color: #065f46; }
.woo-page .woocommerce-info    { background: #eff6ff; border-color: #3b82f6; color: #1e40af; }
.woo-page .woocommerce-error   { background: #fef2f2; border-color: #ef4444; color: #991b1b; }

/* Shop archive on light bg */
.woo-page .shop-page { background: transparent; }

/* Product cards inside the shop / archive use the LIGHT theme.
   Same grid + card structure as the homepage's featured loop — just
   re-skinned for the white background. */
.woo-page .product-card,
.woo-page li.product {
  background: #fff !important;
  border: 1px solid var(--gray-200) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.woo-page .product-card:hover,
.woo-page li.product:hover {
  border-color: var(--cyan-dark) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
.woo-page .product-card-image { background: var(--gray-50); }
.woo-page .product-card-image img { object-fit: contain; padding: 16px; }
.woo-page .product-card-title { color: var(--gray-900); }
.woo-page .product-card-category { color: var(--cyan-dark); }
.woo-page .product-card-price .current,
.woo-page .product-card-price ins,
.woo-page .product-card-price .woocommerce-Price-amount { color: var(--navy2); }
.woo-page .product-card-price del,
.woo-page .product-card-price .original { color: var(--gray-400); }

/* Shop toolbar (sort / count) on light bg — already styled, just remove the
   dark .woocommerce override for these elements */
.woo-page .woocommerce-result-count,
.woo-page .woocommerce-ordering { color: var(--gray-600); }

/* WooCommerce fixes */
.woocommerce .products::before,
.woocommerce .products::after { display: none !important; }

/* Shop page grid — match product-showcase grid on homepage */
.woocommerce .products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0 !important;
}
.woocommerce .products .product {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  float: none !important;
  clear: none !important;
}
.woocommerce .products li {
  list-style: none;
}
.woocommerce .products .product-card {
  width: 100%;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Remove WooCommerce default button on shop cards — we use our own layout */
.woocommerce ul.products li.product .button {
  display: none !important;
}
.woocommerce ul.products li.product .price {
  font-size: inherit;
  margin-bottom: 0;
}

/* Hide default WooCommerce sale badge (we use .onsale-badge) */
.woocommerce ul.products li.product .onsale { display: none !important; }
.woocommerce span.onsale { display: none !important; }

/* ============================================
   Shop page (archive)
   ============================================ */
.shop-page {
  padding: calc(var(--nav-h) + 40px) 0 80px;
}
.shop-page .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.shop-page-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--gray-900);
  margin: 8px 0 24px;
  letter-spacing: -0.5px;
}

/* Toolbar: result count + ordering — flex instead of float */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--gray-200);
  flex-wrap: wrap;
}
.shop-page .woocommerce-result-count {
  margin: 0;
  font-size: 14px;
  color: var(--gray-500);
  float: none !important;
}
.shop-page .woocommerce-ordering {
  margin: 0;
  float: none !important;
}
.shop-page .woocommerce-ordering select {
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  padding: 10px 40px 10px 14px;
  font-size: 14px;
  background: #fff;
  color: var(--gray-700);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: var(--transition);
}
.shop-page .woocommerce-ordering select:hover { border-color: var(--cyan-dark); }

.shop-page .woocommerce-after-shop-loop { clear: both; }

/* ============================================
   Pagination — modern, light-themed
   ============================================ */
.shop-page .woocommerce-pagination,
.woo-page .woocommerce-pagination {
  margin: 48px 0 0;
  padding: 0;
  text-align: center;
  border: none;
}
.shop-page .woocommerce-pagination ul.page-numbers,
.woo-page .woocommerce-pagination ul.page-numbers {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: none;
}
.shop-page .woocommerce-pagination ul.page-numbers li,
.woo-page .woocommerce-pagination ul.page-numbers li {
  display: inline-flex;
  border: none !important;
  margin: 0;
}
.shop-page .woocommerce-pagination ul.page-numbers a,
.shop-page .woocommerce-pagination ul.page-numbers span,
.woo-page .woocommerce-pagination ul.page-numbers a,
.woo-page .woocommerce-pagination ul.page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  text-decoration: none;
  transition: var(--transition);
  line-height: 1;
}
.shop-page .woocommerce-pagination ul.page-numbers a:hover,
.woo-page .woocommerce-pagination ul.page-numbers a:hover {
  border-color: var(--cyan-dark);
  color: var(--cyan-dark);
  background: rgba(0, 212, 255, 0.04);
  transform: translateY(-1px);
}
.shop-page .woocommerce-pagination ul.page-numbers span.current,
.woo-page .woocommerce-pagination ul.page-numbers span.current {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  border-color: var(--cyan-dark);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.25);
}
.shop-page .woocommerce-pagination ul.page-numbers .dots {
  border: none;
  background: transparent;
  color: var(--gray-400);
}

@media (max-width: 640px) {
  .shop-toolbar { flex-direction: column; align-items: stretch; }
  .shop-page .woocommerce-ordering select { width: 100%; }
}

/* ============================================
   Defense against rogue product descriptions
   ============================================
   Imported / migrated products sometimes ship with <style> blocks,
   inline width="..." attributes, oversized images or fixed-width
   tables in their description / short_description. The single-product
   PHP template already strips <style>/<script>, but these rules cap
   anything that slips through so it can't shrink/distort the page.
   ============================================ */
.product-info-subtitle,
.product-detail .accordion-body,
.woo-page .entry-content {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.product-info-subtitle img,
.product-info-subtitle table,
.product-info-subtitle iframe,
.product-detail .accordion-body img,
.product-detail .accordion-body table,
.product-detail .accordion-body iframe,
.product-detail .accordion-body video {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  box-sizing: border-box;
}
.product-detail .accordion-body table,
.product-info-subtitle table {
  width: 100% !important;
  table-layout: fixed;
  border-collapse: collapse;
}

/* Hard floor: never let anything narrow the page itself */
html, body { min-width: 320px; }
body { max-width: 100vw; overflow-x: hidden; }

/* Reset WooCommerce default margins/padding */
.woocommerce .entry-content,
.woocommerce div.product,
.woocommerce .panel,
.woocommerce-tabs,
.woocommerce #content {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}
.woocommerce .panel { border: none; }

/* Checkout / Cart / Account page styles */
.woo-page .woocommerce {
  color: var(--gray-700);
  font-size: 15px;
  line-height: 1.7;
}
.woo-page .woocommerce h2,
.woo-page .woocommerce h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--gray-900);
}
.woo-page .woocommerce form .form-row label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 4px;
}
.woo-page .woocommerce form .form-row input,
.woo-page .woocommerce form .form-row textarea,
.woo-page .woocommerce form .form-row select {
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  background: #fff;
  color: var(--gray-800);
  width: 100%;
}
.woo-page .woocommerce form .form-row input:focus,
.woo-page .woocommerce form .form-row textarea:focus {
  border-color: var(--cyan-dark);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
  outline: none;
}
.woo-page .woocommerce-checkout .checkout_coupon { margin-bottom: 20px; }
.woo-page .woocommerce-checkout #customer_details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.woo-page .woocommerce-checkout #order_review {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
}
.woo-page .woocommerce-checkout #payment {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 20px;
}
.woo-page .woocommerce-checkout #payment .payment_methods {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
}
.woo-page .woocommerce-checkout #payment .payment_methods li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}
.woo-page .woocommerce-checkout #payment .payment_methods li label {
  font-weight: 600;
  cursor: pointer;
}
.woo-page .woocommerce-checkout .place-order button {
  background: linear-gradient(135deg, var(--purple), #7c3aed) !important;
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 40px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
  transition: var(--transition);
}
.woo-page .woocommerce-checkout .place-order button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139,92,246,0.3);
}
/* Cart page */
.woo-page .woocommerce-cart-form { margin-bottom: 32px; }
.woo-page .woocommerce-cart-form table.shop_table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.woo-page .woocommerce-cart-form table.shop_table th {
  background: var(--gray-50);
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-600);
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}
.woo-page .woocommerce-cart-form table.shop_table td {
  padding: 16px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}
.woo-page .woocommerce-cart-form table.shop_table .product-remove a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 20px;
}
.woo-page .woocommerce-cart-form table.shop_table .product-remove a:hover { color: #ef4444; }
.woo-page .cart-collaterals .cart_totals {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 480px;
  margin-left: auto;
}
.woo-page .cart-collaterals .cart_totals h2 {
  font-size: 18px;
  margin-bottom: 16px;
}
.woo-page .wc-proceed-to-checkout .checkout-button {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, var(--purple), #7c3aed) !important;
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 40px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.woo-page .wc-proceed-to-checkout .checkout-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139,92,246,0.3);
}
@media (max-width: 768px) {
  .woo-page .woocommerce-checkout #customer_details {
    grid-template-columns: 1fr;
  }
}

/* Mobile menu overlay */
@media (max-width: 768px) {
  .nav-open .nav-links {
    display: flex !important;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: rgba(6,13,26,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
  }
  .nav-open .nav-links a {
    font-size: 20px;
    color: rgba(255,255,255,0.8);
  }
  .nav-open .nav-links .nav-user,
  .nav-open .nav-links .nav-cart {
    width: 48px; height: 48px;
  }
  .nav-open .nav-toggle {
    position: relative;
    z-index: 1000;
  }
  .nav-open .nav-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  .nav-open .nav-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  /* Light nav mobile menu */
  .nav-light.nav-open .nav-links {
    background: rgba(255,255,255,0.98);
  }
  .nav-light.nav-open .nav-links a {
    color: rgba(0,0,0,0.7);
  }
  /* Product showcase grid responsive */
  .products-showcase {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 480px) {
  .products-showcase {
    grid-template-columns: 1fr !important;
  }
}
