/*
Theme Name: LatexJoy
Theme URI: https://latexjoy.com
Author: LatexJoy
Author URI: https://latexjoy.com
Description: A dark, minimalist, high-end WooCommerce theme for LatexJoy — premium latex fashion. Unique design language with glitch effects, particle backgrounds, 3D product cards, and immersive shopping experience.
Version: 1.3.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: latexjoy
Tags: woocommerce, dark, minimalist, fashion, e-commerce
*/

/* ============================================
   0. CSS Custom Properties
   ============================================ */
:root {
  --color-bg: #000000;
  --color-surface: #1a1a1a;
  --color-surface-2: #333333;
  --color-text: #ffffff;
  --color-text-muted: #666666;
  --color-border: #ffffff;
  --color-accent: #ffffff;
  --color-glow: rgba(255, 255, 255, 0.06);
  --color-danger: #ff3b3b;
  --font-display: 'Red Rose', cursive;
  --font-body: 'Inter', sans-serif;
  --transition-fast: 0.2s ease;
  --transition-mid: 0.35s ease;
  --transition-slow: 0.6s ease;
  --container-max: 1440px;
  --container-padding: 24px;
  --nav-height: 72px;
}

/* ============================================
   1. Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-particles, .cursor-glow { display: none !important; }
}

/* ============================================
   2. Custom Scrollbar
   ============================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
  border: 2px solid #000;
}
::-webkit-scrollbar-thumb:hover { background: #555; }
html { scrollbar-color: #333 #000; scrollbar-width: thin; }

/* ============================================
   3. Cursor Glow (Desktop Only)
   ============================================ */
.cursor-glow {
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .cursor-glow {
    display: block;
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    will-change: transform;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--color-text-muted); }

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  font-family: inherit;
}

input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

::selection { background: var(--color-text); color: var(--color-bg); }

/* ============================================
   5. Page Transition Overlay
   ============================================ */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.page-transition.active {
  opacity: 1;
  pointer-events: all;
}

/* ============================================
   6. Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

/* ============================================
   7. Layout
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ============================================
   8. Navigation
   ============================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background-color var(--transition-mid), backdrop-filter var(--transition-mid), box-shadow var(--transition-mid);
  background-color: transparent;
}

.site-nav.scrolled {
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.site-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.nav-logo a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-text);
}

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

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--color-text);
  transition: width var(--transition-mid);
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--color-text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-actions a,
.nav-actions button {
  color: var(--color-text);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  transition: opacity var(--transition-fast);
  position: relative;
}

.nav-actions a:hover,
.nav-actions button:hover { opacity: 0.7; }

.cart-count {
  position: absolute;
  top: 2px; right: -2px;
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 0.5625rem;
  font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.cart-count.bounce {
  animation: badge-bounce 0.5s ease;
}

@keyframes badge-bounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.6); }
  50%  { transform: scale(0.9); }
  70%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 4px 0;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%; height: 2px;
  background: var(--color-text);
  transition: transform var(--transition-mid), opacity var(--transition-mid);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height); left: 0;
  width: 100%;
  height: calc(100vh - var(--nav-height));
  background: rgba(0, 0, 0, 0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 48px var(--container-padding);
  flex-direction: column;
  gap: 24px;
}

.mobile-menu.open {
  display: flex;
  animation: fadeSlideIn 0.35s ease forwards;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-text);
}

/* Nav Dropdown (Desktop) */
.nav-item.has-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item.has-dropdown > a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--color-text);
  transition: width var(--transition-mid);
}

.nav-item.has-dropdown > a:hover::after { width: 100%; }

.nav-dropdown {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 12px 0;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  z-index: 1001;
}

.nav-item.has-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 24px;
  white-space: nowrap;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-dropdown a::after {
  display: none;
}

.nav-dropdown a:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.05);
}

/* Mobile Menu Brand Sections */
.mobile-menu .mobile-nav-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu .mobile-brand-link {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-text);
}

.mobile-menu .mobile-nav-subs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 20px;
}

.mobile-menu .mobile-sub-link {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.03em;
}

/* ============================================
   9. Hero Section
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-bg);
  background-image: 
    radial-gradient(ellipse at 20% 50%, rgba(60,0,80,0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(20,20,60,0.5) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(80,0,60,0.3) 0%, transparent 60%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg video,
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.5) 0%,
    rgba(0,0,0,0.2) 40%,
    rgba(0,0,0,0.7) 100%
  );
  z-index: 1;
}

/* Particle layer */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.hero-particles .particle {
  position: absolute;
  width: 2px; height: 2px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: particle-float linear infinite;
  will-change: transform, opacity;
}

@keyframes particle-float {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 var(--container-padding);
}

.hero-content .hero-tag {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}

/* Glitch Title */
.glitch-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  position: relative;
  display: inline-block;
  color: var(--color-text);
}

.glitch-title::before,
.glitch-title::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: hidden;
}

.glitch-title::before {
  color: #ff3b3b;
  z-index: -1;
  animation: glitch-1 3s infinite linear alternate-reverse;
  clip-path: inset(0 0 65% 0);
}

.glitch-title::after {
  color: #3bfff0;
  z-index: -2;
  animation: glitch-2 2.5s infinite linear alternate-reverse;
  clip-path: inset(65% 0 0 0);
}

@keyframes glitch-1 {
  0%   { transform: translate(0); }
  20%  { transform: translate(-3px, 2px); }
  40%  { transform: translate(3px, -2px); }
  60%  { transform: translate(-2px, 1px); }
  80%  { transform: translate(2px, -1px); }
  100% { transform: translate(0); }
}

@keyframes glitch-2 {
  0%   { transform: translate(0); }
  25%  { transform: translate(2px, -3px); }
  50%  { transform: translate(-3px, 2px); }
  75%  { transform: translate(3px, 1px); }
  100% { transform: translate(0); }
}

/* Typewriter */
.typewriter {
  display: inline-block;
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.05em;
  border-right: 2px solid var(--color-text);
  padding-right: 4px;
  animation: blink-caret 0.8s step-end infinite;
  overflow: hidden;
  white-space: nowrap;
  max-width: 0;
}

.typewriter.typing {
  max-width: 100%;
  transition: max-width 2s steps(40, end);
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50%      { border-color: var(--color-text); }
}

.hero-content .hero-cta {
  margin-top: 40px;
}

/* ============================================
   10. Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 40px;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  background: transparent;
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--color-text);
  transition: left var(--transition-mid);
  z-index: -1;
}

.btn:hover::before { left: 0; }
.btn:hover { color: var(--color-bg); }

.btn-primary {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

.btn-primary::before { background: transparent; }

.btn-primary:hover {
  background: transparent;
  color: var(--color-text);
}

.btn-sm { padding: 10px 24px; font-size: 0.75rem; }

.btn-link {
  border: none;
  padding: 0;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-link::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.btn-link:hover { color: var(--color-text); }
.btn-link:hover::after { transform: translateX(4px); }

/* ============================================
   11. Category Grid
   ============================================ */
/* ============================================
   11. Category-based Product Sections (v2)
   ============================================ */
.section-category-products { padding: 80px 0; }
.section-category-products:nth-child(even) {
  background: rgba(255,255,255,0.015);
}

.section-category-products .products-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

/* ============================================
   12. Brand Quick Links Section
   ============================================ */
.section-brands { padding: 100px 0 120px; }

.brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 48px;
}

.brand-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  cursor: pointer;
}

.brand-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease, filter 0.5s ease;
  will-change: transform;
}

.brand-card:hover img {
  transform: scale(1.06);
  filter: brightness(1.1);
}

.brand-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  transition: background var(--transition-mid);
}

.brand-card:hover .brand-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%);
}

.brand-card-overlay h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.brand-tagline {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}

.brand-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.brand-links a {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  transition: all 0.2s ease;
}

.brand-links a:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

/* ============================================
   13. Products Grid (shared)
   ============================================ */
.section-products { padding: 120px 0; }

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

/* ============================================
   14. Product Card — Enhanced
   ============================================ */
.product-card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform var(--transition-fast);
}

.product-card a {
  display: block;
  color: var(--color-text);
}

.product-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--color-surface);
}

.product-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
  will-change: transform;
}

.product-card-image .hover-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.product-card:hover .hover-image { opacity: 1; }

.product-card:hover .product-card-image img {
  transform: scale(1.06);
  filter: brightness(1.1);
}

/* Quick action buttons — slide up on hover */
.product-card-actions {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  transform: translateY(100%);
  transition: transform var(--transition-mid);
  z-index: 3;
}

.product-card:hover .product-card-actions {
  transform: translateY(0);
}

.product-card-actions .action-btn {
  flex: 1;
  padding: 14px 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  color: var(--color-text);
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.product-card-actions .action-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-bg);
}

.product-card-actions .action-btn + .action-btn {
  border-left: 1px solid rgba(255,255,255,0.15);
}

.product-card-info {
  padding: 16px 0;
}

.product-card-info .product-name {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
  line-height: 1.4;
}

.product-card-info .product-price {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.product-card-info .product-price del {
  color: var(--color-text-muted);
  opacity: 0.5;
  margin-right: 8px;
}

.product-card-info .product-price ins {
  color: var(--color-text);
  text-decoration: none;
}

/* Sale badge */
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--color-text);
  color: var(--color-bg);
  z-index: 2;
}

/* Stock urgency badge */
.stock-urgent {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  background: var(--color-danger);
  color: var(--color-text);
  z-index: 2;
  animation: pulse-urgent 2s infinite;
}

@keyframes pulse-urgent {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.6; }
}

/* Shimmer skeleton for lazy loading */
.shimmer-placeholder {
  background: linear-gradient(90deg,
    var(--color-surface) 25%,
    #222222 37%,
    var(--color-surface) 63%
  );
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

@keyframes shimmer {
  0%   { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* ============================================
   15. Quick View Modal
   ============================================ */
.quick-view-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-mid), visibility var(--transition-mid);
}

.quick-view-modal.open {
  opacity: 1;
  visibility: visible;
}

.quick-view-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.quick-view-content {
  position: relative;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 48px;
  max-width: 900px;
  width: 90%;
  max-height: 85vh;
  background: var(--color-surface);
  padding: 0;
  z-index: 1;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition-mid);
}

.quick-view-modal.open .quick-view-content {
  transform: scale(1) translateY(0);
}

.quick-view-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  color: var(--color-text);
  font-size: 1.25rem;
  z-index: 2;
  cursor: pointer;
  border: none;
  transition: background var(--transition-fast);
}

.quick-view-close:hover { background: rgba(255,255,255,0.1); }

.quick-view-image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.quick-view-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.quick-view-detail {
  padding: 40px 40px 40px 0;
  overflow-y: auto;
}

.quick-view-detail .qv-title {
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.quick-view-detail .qv-price {
  font-size: 1.125rem;
  margin-bottom: 24px;
}

.quick-view-detail .qv-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.quick-view-detail .qv-actions {
  display: flex;
  gap: 12px;
}

.quick-view-detail .qv-actions .btn { flex: 1; }

/* ============================================
   16. Footer
   ============================================ */
.site-footer {
  border-top: 1px solid var(--color-surface-2);
  padding: 80px 0 40px;
}

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

.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  display: block;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover { color: var(--color-text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--color-surface-2);
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

.footer-social a:hover { color: var(--color-text); }

/* ============================================
   17. WooCommerce Archive (Shop)
   ============================================ */
.archive-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-surface-2);
  margin-bottom: 32px;
}

.archive-toolbar .result-count {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.archive-toolbar .orderby {
  background: transparent;
  border: 1px solid var(--color-surface-2);
  color: var(--color-text);
  padding: 8px 16px;
  font-size: 0.8125rem;
}

.archive-toolbar .orderby option { background: var(--color-surface); }

.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding: 40px 0 120px;
}

.shop-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  align-self: start;
}

.filter-group { margin-bottom: 32px; }

.filter-group h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-surface-2);
}

.filter-group ul li { margin-bottom: 8px; }

.filter-group ul li a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.filter-group ul li a:hover,
.filter-group ul li.current-cat a { color: var(--color-text); }

.filter-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 0;
}

/* ============================================
   18. Single Product
   ============================================ */
.single-product-layout {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 48px;
  padding: calc(var(--nav-height) + 40px) 0 120px;
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  align-self: start;
}

.product-gallery-main {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--color-surface);
  margin-bottom: 2px;
  cursor: crosshair;
}

.product-gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.15s ease;
}

/* Zoom lens */
.zoom-lens {
  position: absolute;
  width: 120px; height: 120px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  pointer-events: none;
  display: none;
  z-index: 2;
  transform: translate(-50%, -50%);
}

.product-gallery-main:hover .zoom-lens { display: block; }

.zoom-result {
  position: absolute;
  top: 0; right: -100%;
  width: 100%; height: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-surface-2);
  overflow: hidden;
  z-index: 10;
  display: none;
}

.zoom-result img {
  position: absolute;
  max-width: none;
}

.product-gallery-thumbs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
}

.product-gallery-thumbs::-webkit-scrollbar { display: none; }

.product-gallery-thumb {
  flex: 0 0 80px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

.product-gallery-thumb.active,
.product-gallery-thumb:hover { opacity: 1; }

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

.product-detail { padding-top: 24px; }

.product-detail .product-title {
  font-size: 2rem;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.product-detail .product-price {
  font-size: 1.25rem;
  margin-bottom: 32px;
  color: var(--color-text);
}

.product-detail .product-price del {
  color: var(--color-text-muted);
  opacity: 0.5;
  margin-right: 8px;
}

.product-detail .product-price ins { text-decoration: none; }

.product-detail .product-description {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 40px;
}

.product-detail .product-meta-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

/* Stock urgency on single product */
.stock-indicator {
  font-size: 0.8125rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stock-indicator.low {
  color: var(--color-danger);
  font-weight: 600;
  animation: pulse-urgent 2s infinite;
}

.stock-indicator.ok { color: var(--color-text-muted); }

/* Variations / Swatches */
.product-variations { margin-bottom: 32px; }

.variation-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.variation-option {
  padding: 10px 20px;
  border: 1px solid var(--color-surface-2);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: transparent;
}

.variation-option:hover,
.variation-option.selected {
  border-color: var(--color-text);
  color: var(--color-text);
}

/* Color swatches */
.color-swatch {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.color-swatch:hover,
.color-swatch.selected {
  border-color: var(--color-text);
  transform: scale(1.15);
}

/* Quantity + Add to cart */
.product-add-to-cart {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-surface-2);
}

.quantity-selector button {
  width: 44px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.quantity-selector button:hover { color: var(--color-text); }

.quantity-selector input {
  width: 48px; height: 48px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--color-surface-2);
  border-right: 1px solid var(--color-surface-2);
  background: transparent;
  color: var(--color-text);
  font-size: 0.875rem;
  -moz-appearance: textfield;
}

.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-add-to-cart .btn { flex: 1; }

/* Product tabs */
.product-tabs {
  border-top: 1px solid var(--color-surface-2);
  margin-top: 48px;
  padding-top: 48px;
}

.product-tabs .tabs {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--color-surface-2);
}

.product-tabs .tabs a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 12px 0;
  position: relative;
  transition: color var(--transition-fast);
}

.product-tabs .tabs a.active { color: var(--color-text); }

.product-tabs .tabs a.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%; height: 1px;
  background: var(--color-text);
}

.product-tabs .tab-content {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* Complete the Look carousel */
.complete-the-look {
  padding: 80px 0 120px;
  border-top: 1px solid var(--color-surface-2);
}

.complete-the-look h2 { margin-bottom: 48px; }

.ctl-carousel {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 var(--container-padding);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.ctl-carousel::-webkit-scrollbar { display: none; }

.ctl-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  overflow: hidden;
}

.ctl-card-image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-surface);
}

.ctl-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.ctl-card-info { padding: 12px 0; }

.ctl-card-info .ctl-name {
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 2px;
}

.ctl-card-info .ctl-price {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* Related products */
.related-products {
  padding: 80px 0 120px;
  border-top: 1px solid var(--color-surface-2);
}

.related-products h2 { margin-bottom: 48px; }

/* ============================================
   19. Cart Page
   ============================================ */
.cart-layout {
  padding: calc(var(--nav-height) + 40px) 0 120px;
}

.cart-layout h1 { margin-bottom: 48px; }

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: left;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-surface-2);
}

.cart-table td {
  padding: 24px 0;
  border-bottom: 1px solid var(--color-surface-2);
  vertical-align: middle;
}

.cart-item-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-item-thumb {
  width: 80px; height: 100px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.cart-item-name { font-size: 0.9375rem; font-weight: 500; }

.cart-item-meta {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.cart-totals {
  max-width: 400px;
  margin-left: auto;
  margin-top: 48px;
}

.cart-totals .total-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-surface-2);
}

.cart-totals .total-row.grand {
  font-size: 1.125rem;
  font-weight: 600;
  border-bottom: none;
  padding: 20px 0;
}

.cart-totals .total-row .label {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.cart-totals .total-row.grand .label {
  color: var(--color-text);
  font-size: 1.125rem;
}

.cart-totals .btn { width: 100%; margin-top: 24px; }

/* Checkout progress steps */
.checkout-steps {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-surface-2);
}

.checkout-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 0 24px;
  position: relative;
}

.checkout-step::after {
  content: '';
  position: absolute;
  right: -1px;
  width: 1px; height: 16px;
  background: var(--color-surface-2);
}

.checkout-step:last-child::after { display: none; }

.checkout-step.active { color: var(--color-text); }

.checkout-step.completed { color: var(--color-text); }

.checkout-step .step-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
}

.checkout-step.active .step-num {
  border-color: var(--color-text);
  background: var(--color-text);
  color: var(--color-bg);
}

.checkout-step.completed .step-num {
  border-color: var(--color-text);
  background: var(--color-text);
  color: var(--color-bg);
}

/* ============================================
   20. Checkout Page
   ============================================ */
.checkout-layout {
  padding: calc(var(--nav-height) + 40px) 0 120px;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
}

.checkout-layout h1 { margin-bottom: 48px; }

.form-row { margin-bottom: 20px; }

.form-row label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--color-text-muted);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-surface-2);
  color: var(--color-text);
  font-size: 0.875rem;
  transition: border-color var(--transition-fast);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-text);
}

.form-row-wide { grid-column: 1 / -1; }

.form-row-first,
.form-row-last {
  display: inline-block;
  width: 48%;
}

.form-row-first { margin-right: 4%; }

.order-summary {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  align-self: start;
  background: var(--color-surface);
  padding: 32px;
}

.order-summary h3 { margin-bottom: 24px; font-size: 1.25rem; }

/* ============================================
   21. Page Template
   ============================================ */
.page-content {
  padding: calc(var(--nav-height) + 80px) 0 120px;
  min-height: 60vh;
}

.page-content h1 { margin-bottom: 32px; }

.page-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

/* ============================================
   22. Breadcrumb
   ============================================ */
.breadcrumb {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  padding: 24px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover { color: var(--color-text); }
.breadcrumb .sep { color: var(--color-surface-2); }

/* ============================================
   23. Pagination
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 64px 0;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--color-surface-2);
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.pagination a:hover,
.pagination .current {
  border-color: var(--color-text);
  color: var(--color-text);
}

/* ============================================
   24. Scroll Reveal
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.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; }

/* ============================================
   25. Fly-to-Cart Animation
   ============================================ */
.fly-to-cart {
  position: fixed;
  z-index: 99998;
  pointer-events: none;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.7s cubic-bezier(0.2, 1, 0.3, 1);
  opacity: 1;
}

.fly-to-cart img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ============================================
   26. WordPress Alignments
   ============================================ */
.alignleft   { float: left; margin-right: 1.5em; margin-bottom: 1.5em; }
.alignright  { float: right; margin-left: 1.5em; margin-bottom: 1.5em; }
.aligncenter { clear: both; display: block; margin-left: auto; margin-right: auto; margin-bottom: 1.5em; }
.alignwide   { margin-left: -80px; margin-right: -80px; max-width: calc(100% + 160px); }
.alignfull   { margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); max-width: 100vw; width: 100vw; }

.wp-block-image figcaption,
.wp-caption-text {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 8px;
}

/* ============================================
   27. Screen Reader Text
   ============================================ */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px; margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ============================================
   28. WooCommerce Notices
   ============================================ */
.woocommerce-notices-wrapper { margin: 24px 0; }

.woocommerce-message {
  border-top: 3px solid var(--color-text);
  padding: 16px 24px;
  background: var(--color-surface);
  font-size: 0.875rem;
}

.woocommerce-message::before { color: var(--color-text); }

.woocommerce-error {
  border-top: 3px solid #e2401c;
  padding: 16px 24px;
  background: var(--color-surface);
  font-size: 0.875rem;
}

.woocommerce-info {
  border-top: 3px solid var(--color-text-muted);
  padding: 16px 24px;
  background: var(--color-surface);
  font-size: 0.875rem;
}

/* ============================================
   29. Responsive
   ============================================ */
@media (max-width: 1024px) {
  .brands-grid     { grid-template-columns: repeat(2, 1fr); }
  .products-grid   { grid-template-columns: repeat(3, 1fr); }

  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { display: none; }
  .shop-sidebar.open { display: block; }
  .filter-toggle { display: flex; }

  .single-product-layout { grid-template-columns: 1fr; gap: 32px; }
  .product-gallery { position: relative; top: 0; }

  .checkout-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .quick-view-content { grid-template-columns: 1fr; }
  .quick-view-image { max-height: 50vh; aspect-ratio: auto; }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 16px;
    --nav-height: 60px;
  }

  .nav-links { display: none; }
  .hamburger  { display: flex; }

  .glitch-title { font-size: clamp(2.5rem, 12vw, 4rem); }

  .brands-grid     { grid-template-columns: 1fr; }
  .products-grid   { grid-template-columns: repeat(2, 1fr); }

  .single-product-layout { grid-template-columns: 1fr; gap: 24px; }
  .product-add-to-cart   { flex-direction: column; }
  .product-add-to-cart .btn { width: 100%; }

  /* Disable 3D tilt on mobile */
  .product-card { transform: none !important; }

  .footer-grid   { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  .section-category-products,
  .section-brands,
  .section-products { padding: 80px 0; }

  .section-category-products,
  .section-brands,
  .section-products { padding: 60px 0; }

  .checkout-steps { flex-wrap: wrap; gap: 8px; }
  .checkout-step  { padding: 0 12px; }
  .checkout-step::after { display: none; }

  .quick-view-content {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }
  .quick-view-detail { padding: 24px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 2px; }
  .product-card-info { padding: 10px 0; }
  .product-card-info .product-name,
  .product-card-info .product-price { font-size: 0.8125rem; }

  .hero { min-height: 500px; }
  .glitch-title { font-size: 2rem; }

  .product-card-actions { display: none; }
}

/* ===== Elementor Conflict Fixes ===== */
.elementor-widget-container p,
.elementor-widget-container h1,
.elementor-widget-container h2,
.elementor-widget-container h3 {
  color: var(--color-text) !important;
}

/* ===== Nav Logo Image Fix ===== */
.nav-logo img {
  max-height: 48px;
  width: auto;
  display: block;
}
.nav-logo a {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== Shimmer Placeholder Fix ===== */
.shimmer-placeholder {
  background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  min-height: 200px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== WooCommerce Demo Cleanup ===== */
.woocommerce-breadcrumb {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

/* ===== WooCommerce Add-to-Cart Form Styling ===== */
.product-add-to-cart .cart {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.product-add-to-cart .quantity {
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.product-add-to-cart .quantity .qty {
  background: var(--color-surface);
  border: 1px solid var(--color-surface-2);
  color: var(--color-text);
  font-size: 1rem;
  padding: 10px 14px;
  width: 80px;
  text-align: center;
  border-radius: 4px;
  -moz-appearance: textfield;
}
.product-add-to-cart .quantity .qty::-webkit-inner-spin-button,
.product-add-to-cart .quantity .qty::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.product-add-to-cart .quantity .minus,
.product-add-to-cart .quantity .plus {
  background: var(--color-surface);
  border: 1px solid var(--color-surface-2);
  color: var(--color-text);
  width: 36px;
  height: 42px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.product-add-to-cart .quantity .minus:hover,
.product-add-to-cart .quantity .plus:hover {
  background: var(--color-surface-2);
}
.product-add-to-cart .quantity .minus {
  border-radius: 4px 0 0 4px;
}
.product-add-to-cart .quantity .plus {
  border-radius: 0 4px 4px 0;
}
.product-add-to-cart button.single_add_to_cart_button,
.product-add-to-cart .btn.btn-primary {
  background: var(--color-text);
  color: var(--color-bg);
  border: none;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
  border-radius: 4px;
  width: 100%;
}
.product-add-to-cart button.single_add_to_cart_button:hover,
.product-add-to-cart .btn.btn-primary:hover {
  opacity: 0.85;
}

/* ===== EPO (Extra Product Options) Styling — v2 Dark Premium ===== */

/* -- Reset EPO defaults -- */
.tm-extra-product-options,
.tm-extra-product-options *,
.tm-epo-totals,
.tm-epo-totals * {
  box-sizing: border-box;
}

/* -- Main container -- */
.tm-extra-product-options {
  margin-bottom: 24px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
}
.tm-extra-product-options.tm-cart-main {
  padding: 0;
}

/* -- Field wrapper spacing -- */
.tm-extra-product-options .tmcp-field-wrap {
  margin-bottom: 0;
}
.tm-extra-product-options .cpf-section {
  margin-bottom: 20px;
}
.tm-extra-product-options-field {
  margin-bottom: 0 !important;
}

/* -- Section labels (e.g. "Color", "Style") -- */
.tc-epo-label.tm-epo-element-label {
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
  border: none !important;
  font-family: var(--font-body) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--color-text) !important;
  line-height: 1 !important;
}
.tc-epo-element-label-text {
  font-size: inherit !important;
  font-weight: inherit !important;
  letter-spacing: inherit !important;
  text-transform: inherit !important;
  color: inherit !important;
}
.tm-epo-required {
  color: var(--color-danger) !important;
  margin-right: 4px !important;
  font-size: 14px !important;
}

/* -- Field label (inner label under section) -- */
.tm-extra-product-options .tm-epo-field-label,
.tm-extra-product-options .tmcp-field-label {
  font-family: var(--font-body) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
  color: var(--color-text-muted) !important;
  margin-bottom: 6px !important;
}

/* -- SELECT dropdown (Color) -- */
.tm-extra-product-options select.tmcp-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background: var(--color-surface) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.2' fill='none'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  border: 1px solid var(--color-surface-2) !important;
  border-radius: 6px !important;
  color: var(--color-text) !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: 0.01em !important;
  padding: 10px 36px 10px 14px !important;
  width: 100% !important;
  max-width: 100% !important;
  cursor: pointer !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  outline: none !important;
  line-height: 1.4 !important;
  height: auto !important;
}
.tm-extra-product-options select.tmcp-select:hover {
  border-color: #555 !important;
}
.tm-extra-product-options select.tmcp-select:focus {
  border-color: var(--color-text) !important;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.08) !important;
}
/* Select option items (works in some browsers) */
.tm-extra-product-options select.tmcp-select option {
  background: var(--color-surface) !important;
  color: var(--color-text) !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  padding: 8px !important;
}

/* -- RADIO buttons (Style) -- */
.tmcp-ul-wrap.tm-extra-product-options-radio {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.tmcp-ul-wrap.tm-extra-product-options-radio li {
  list-style: none !important;
  margin: 0 !important;
}
.tmcp-ul-wrap.tm-extra-product-options-radio .tmcp-field-wrap {
  margin: 0 !important;
}
.tmcp-ul-wrap.tm-extra-product-options-radio .tmcp-field-wrap-inner {
  display: flex !important;
  align-items: center !important;
}
/* Hide native radio, style label as pill button */
.tmcp-ul-wrap.tm-extra-product-options-radio input[type="radio"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}
.tmcp-ul-wrap.tm-extra-product-options-radio label {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 7px 16px !important;
  background: var(--color-surface) !important;
  border: 1px solid var(--color-surface-2) !important;
  border-radius: 6px !important;
  font-family: var(--font-body) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  color: var(--color-text) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  line-height: 1.3 !important;
  margin: 0 !important;
}
.tmcp-ul-wrap.tm-extra-product-options-radio label:hover {
  background: #252525 !important;
  border-color: #555 !important;
}
.tmcp-ul-wrap.tm-extra-product-options-radio input[type="radio"]:checked + label,
.tmcp-ul-wrap.tm-extra-product-options-radio label.tm-active-radio {
  background: var(--color-text) !important;
  color: var(--color-bg) !important;
  border-color: var(--color-text) !important;
  font-weight: 600 !important;
}

/* -- CHECKBOX styling -- */
.tmcp-ul-wrap.tm-extra-product-options-checkbox {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}
.tm-extra-product-options input[type="checkbox"] {
  accent-color: var(--color-text) !important;
  width: 16px !important;
  height: 16px !important;
}

/* -- COLOR SWATCHES -- */
.tmcp-ul-wrap.tc-colors-container {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.tmcp-ul-wrap.tc-colors-container li {
  list-style: none !important;
  margin: 0 !important;
}
.tm-color-swatches,
.tmcp-ul-wrap.tc-colors-container .tmcp-color-box .tm-color-swatches {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  border: 2px solid var(--color-surface-2) !important;
  cursor: pointer !important;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s !important;
  display: inline-block !important;
  outline: none !important;
}
.tm-color-swatches:hover,
.tm-color-swatches.active,
.tmcp-color-box .tm-color-swatches:hover,
.tmcp-color-box .tm-color-swatches.active {
  border-color: var(--color-text) !important;
  transform: scale(1.15) !important;
  box-shadow: 0 0 8px rgba(255,255,255,0.15) !important;
}

/* -- Totals box -- */
.tm-extra-product-options-totals,
.tm-epo-totals {
  margin-top: 20px !important;
  padding: 14px 18px !important;
  background: var(--color-surface) !important;
  border: 1px solid var(--color-surface-2) !important;
  border-radius: 6px !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
}
.tm-extra-product-options-totals .tm-final-totals,
.tm-epo-totals .tm-final-totals {
  color: var(--color-text) !important;
  font-weight: 600 !important;
  font-size: 15px !important;
}

/* -- Options price display -- */
.tm-unit-price,
.tm-epo-field .amount {
  font-size: 12px !important;
  color: var(--color-text-muted) !important;
  font-weight: 400 !important;
}

/* -- Final builder (optional, usually hidden) -- */
.tm-fb {
  display: none !important;
}

/* -- Section title (tm-section-title inside cpf-section) -- */
.tm-section-title {
  color: var(--color-text) !important;
  font-family: var(--font-body) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  margin-bottom: 10px !important;
  padding-bottom: 6px !important;
  border-bottom: 1px solid var(--color-surface-2) !important;
}

/* -- Hide EPO's built-in price display in option labels -- */
.tmcp-field-wrap .tc-price {
  font-size: 12px !important;
  color: var(--color-text-muted) !important;
}

/* -- Container spacing -- */
.tc-container {
  margin-bottom: 16px !important;
}
.tc-element-inner-wrap {
  padding: 0 !important;
}

/* -- Override EPO plugin inline styles -- */
.tm-extra-product-options .tc-cell {
  font-size: 14px !important;
}
.tm-extra-product-options h3 {
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
}

/* -- EPO animation override: instant, no flash -- */
.tm-extra-product-options.flasho {
  animation: none !important;
  -webkit-animation: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}
