/**
 * =====================================================
 * S/R CAFÉ - SHOP STYLESHEET
 * =====================================================
 * 
 * @package     srcafe
 * @version     2.1.0-alpha
 * @build       20251230
 * @codename    Liquid Glass
 * 
 * @author      S/R Café Dev Team
 * @copyright   2025 S/R Café
 * 
 * DESIGN SYSTEM:
 * --------------
 * - iOS 26 Liquid Glass aesthetic
 * - App-like Bottom Navigation
 * - Tropical Green + Gold accents
 * - Mobile-first responsive
 * 
 * =====================================================
 */

/* ================================================= */
/* === S/R CAFÉ - iOS 26 LIQUID GLASS v5 =========== */
/* === App-Like Interface with Bottom Nav ========== */
/* ================================================= */

:root {
  /* Brand Colors - Tropical Green & Gold */
  --primary: #2d5a3d;
  --primary-light: #4a7c59;
  --primary-dark: #1e3d29;
  --accent: #d4a853;
  --accent-light: #e8c87a;
  --accent-dark: #b8923f;
  
  /* Liquid Glass */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-bg-light: rgba(255, 255, 255, 0.5);
  --glass-bg-elevated: rgba(255, 255, 255, 0.85);
  --glass-bg-dark: rgba(30, 61, 41, 0.85);
  --glass-blur: 20px;
  --glass-blur-strong: 40px;
  --glass-saturation: 180%;
  
  /* Specular Highlight */
  --specular-color: rgba(255, 255, 255, 0.5);
  --specular-width: 1px;
  
  /* Shadows */
  --glass-inner-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.4);
  --glass-outer-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-elevated: 0 8px 32px rgba(0, 0, 0, 0.12);
  
  /* Neutrals */
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  
  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  
  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', var(--font);
  
  /* Animations */
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --duration: 0.3s;
  --duration-fast: 0.15s;
  
  /* Border Radius */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  /* Safe Areas & Layout */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --bottom-nav-height: 72px;
  --header-height: 56px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: linear-gradient(180deg, #f0f4f1 0%, #f8f8fa 100%);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  /* Space for bottom nav */
  padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 20px);
}
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  padding-bottom: calc(100px + var(--safe-bottom));
}

/* ================================================= */
/* === SVG FILTER DEFINITIONS ====================== */
/* === (Injected via footer.php) =================== */
/* ================================================= */

/* 
 * The SVG filters for true refraction will be added to the page.
 * This CSS defines the classes that use them.
 * Fallback for non-Chrome browsers uses CSS-only approach.
 */

/* ================================================= */
/* === LIQUID GLASS BASE CLASS ===================== */
/* ================================================= */

.liquid-glass {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  border: var(--specular-width) solid var(--specular-color);
  box-shadow: var(--glass-inner-shadow), var(--glass-outer-shadow);
  border-radius: var(--radius-lg);
}

/* ================================================= */
/* === ANNOUNCEMENT BANNER ========================= */
/* ================================================= */

.announcement-banner {
  position: relative;
  overflow: hidden;
  padding: 12px 0;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--primary-dark);
}

/* Soft fade on edges */
.announcement-banner::before,
.announcement-banner::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.announcement-banner::before {
  left: 0;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
}

.announcement-banner::after {
  right: 0;
  background: linear-gradient(270deg, var(--accent-dark) 0%, transparent 100%);
}

.announcement-track {
  display: flex;
  gap: 80px;
  animation: marquee 20s linear infinite;
}

.announcement-track span {
  flex-shrink: 0;
  padding: 0 40px;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================================================= */
/* === HEADER - MINIMAL CENTERED LOGO ============== */
/* ================================================= */

#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, rgba(248, 248, 250, 0.95) 0%, rgba(248, 248, 250, 0) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform var(--duration) var(--ease-spring);
}

.logo-link:hover { transform: scale(1.05); }
.logo-link:active { transform: scale(0.95); }

.site-logo {
  height: 40px;
  width: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* ================================================= */
/* === BOTTOM NAVIGATION BAR ======================= */
/* ================================================= */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 0 var(--space-sm) calc(var(--safe-bottom) + 8px);
  pointer-events: none;
}

.bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  max-width: 420px;
  margin: 0 auto;
  padding: 8px 12px;
  height: 64px;
  
  /* Liquid Glass - Dark Variant */
  background: var(--glass-bg-dark);
  backdrop-filter: blur(var(--glass-blur-strong)) saturate(200%);
  -webkit-backdrop-filter: blur(var(--glass-blur-strong)) saturate(200%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.1),
    0 -4px 24px rgba(0, 0, 0, 0.1),
    0 8px 32px rgba(30, 61, 41, 0.3);
  
  pointer-events: all;
}

/* Nav Items */
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 48px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.nav-item:hover {
  color: rgba(255, 255, 255, 0.9);
}

.nav-item:active {
  transform: scale(0.9);
}

.nav-item.active {
  color: var(--accent);
}

.nav-item.nav-disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* Nav Icons */
.nav-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.75;
  transition: all var(--duration-fast) var(--ease-spring);
}

.nav-item:active .nav-icon svg {
  transform: scale(0.85);
}

/* Home Button - Special Styling */
.nav-home {
  position: relative;
}

.nav-icon-home {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-full);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 4px 16px rgba(45, 90, 61, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  margin-top: -16px;
  transition: all var(--duration-fast) var(--ease-spring);
}

.nav-icon-home svg {
  width: 26px;
  height: 26px;
  color: #fff;
  stroke-width: 1.75;
}

.nav-home:hover .nav-icon-home {
  transform: scale(1.08);
  box-shadow: 
    0 6px 24px rgba(45, 90, 61, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nav-home:active .nav-icon-home {
  transform: scale(0.95);
}

.nav-home.active .nav-icon-home {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  box-shadow: 
    0 4px 16px rgba(212, 168, 83, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Cart Badge */
.nav-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--primary-dark);
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  border: 2px solid var(--primary-dark);
  box-shadow: 0 2px 8px rgba(212, 168, 83, 0.4);
}

/* ================================================= */
/* === LANGUAGE BOTTOM SHEET ======================= */
/* ================================================= */

.bottom-sheet {
  position: fixed;
  inset: 0;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration) var(--ease-smooth);
}

.bottom-sheet.visible {
  opacity: 1;
  visibility: visible;
}

.bottom-sheet-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.bottom-sheet-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--space-sm) var(--space-md) calc(var(--space-lg) + var(--safe-bottom));
  transform: translateY(100%);
  transition: transform var(--duration) var(--ease-spring);
  max-height: 70vh;
  overflow-y: auto;
}

.bottom-sheet.visible .bottom-sheet-content {
  transform: translateY(0);
}

.bottom-sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--gray-300);
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-md);
}

.bottom-sheet-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-align: center;
  margin-bottom: var(--space-md);
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.language-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--gray-50);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-fast);
  font-family: var(--font);
}

.language-option:hover {
  background: var(--gray-100);
  border-color: var(--primary-light);
}

.language-option:active {
  transform: scale(0.98);
}

.language-flag {
  font-size: 1.5rem;
}

.language-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark);
}
  width: auto;
  border-radius: var(--radius-sm);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 2;
}

/* Legacy Translation Button (hidden, using bottom sheet now) */
.translate-wrapper,
.translate-btn,
.translate-dropdown,
.member-btn {
  display: none !important;
}

.goog-te-banner-frame, .skiptranslate { display: none !important; }
body { top: 0 !important; }

/* Legacy Floating Cart (replaced by bottom nav) */
.cart-widget,
.easter-egg-trigger {
  display: none !important;
}

/* ================================================= */
/* === CATEGORIES ================================== */
/* ================================================= */

.categories-section {
  padding: var(--space-md) var(--space-sm);
  max-width: 1400px;
  margin: 0 auto;
}

.categories-section.minimal { padding-top: var(--space-sm); }

.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-sm);
}

.category {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: var(--specular-width) solid var(--specular-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all var(--duration) var(--ease-spring);
  box-shadow: var(--glass-inner-shadow), var(--glass-outer-shadow);
}

.category:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--glass-inner-shadow), 0 12px 40px rgba(0, 0, 0, 0.1);
}

.category-inner {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.category-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-smooth);
}

.category:hover .category-inner img { transform: scale(1.08); }

.category-content {
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 3;
}

.category-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 0;
}

.category-count {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--accent);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* ================================================= */
/* === PRODUCT GRID ================================ */
/* ================================================= */

#shop { padding: 0 0 var(--space-xl) 0; }
#shop-category { padding: 0 0 var(--space-xl) 0; }

.shop-header {
  padding: var(--space-xl) var(--space-md);
  text-align: center;
}

.shop-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: var(--space-sm);
}

.shop-header p {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 500px;
  margin: 0 auto;
}

.category-header {
  padding: var(--space-lg) var(--space-md);
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.category-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: var(--space-xs);
}

.category-description {
  font-size: 1rem;
  color: var(--gray-500);
  max-width: 500px;
  margin: 0 auto;
}

/* Back Link */
.back-link,
.back-to-shop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  margin-bottom: var(--space-md);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--specular-color);
  border-radius: var(--radius-full);
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--duration) var(--ease-spring);
  box-shadow: var(--glass-inner-shadow);
}

.back-link:hover,
.back-to-shop:hover {
  transform: translateX(-4px);
  background: var(--glass-bg-elevated);
}

.products-grid,
ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-md);
  padding: var(--space-md);
  max-width: 1400px;
  margin: 0 auto;
  list-style: none;
}

.products-grid .products,
.products-grid ul.products { display: contents; }
ul.products li.product { list-style: none; }

/* ================================================= */
/* === PRODUCT CARD ================================ */
/* ================================================= */

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: var(--specular-width) solid var(--specular-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration) var(--ease-spring);
  box-shadow: var(--glass-inner-shadow), var(--glass-outer-shadow);
}

.product-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--glass-inner-shadow), 0 16px 40px rgba(0, 0, 0, 0.1);
}

.product-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card-image {
  position: relative;
  overflow: hidden;
  background: var(--gray-100);
}

.product-card-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease-smooth);
}

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

.product-card-info { 
  padding: 16px; 
  position: relative;
  z-index: 3;
}

.product-card-info h2 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-info .price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.product-card-info .price del {
  color: var(--gray-400);
  font-weight: 400;
  font-size: 0.85rem;
  margin-right: 6px;
}

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

/* Add to Cart Button */
.product-card-add-to-cart {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--glass-bg-elevated);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--primary-dark);
  border: 1px solid var(--specular-color);
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transform: translateY(calc(100% + 24px));
  opacity: 0;
  transition: all var(--duration) var(--ease-spring);
  text-decoration: none;
  box-shadow: var(--glass-inner-shadow);
  z-index: 5;
}

.product-card:hover .product-card-add-to-cart {
  transform: translateY(0);
  opacity: 1;
}

.product-card-add-to-cart:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.02);
}

.product-card-add-to-cart:active {
  transform: scale(0.98);
}

.product-card-add-to-cart.loading { pointer-events: none; opacity: 0.6; }

.product-card-select {
  background: var(--accent);
  border-color: var(--accent);
}

/* WooCommerce Overrides */
.products .product { margin: 0 !important; padding: 0 !important; float: none !important; width: auto !important; }
.products .product .button.add_to_cart_button { display: none !important; }
.woocommerce-loop-product__link img,
.attachment-woocommerce_thumbnail,
.wp-post-image { width: 100% !important; height: auto !important; aspect-ratio: 1; object-fit: cover !important; border-radius: 0 !important; }
.woocommerce-Price-amount { color: var(--accent-dark); font-weight: 700; }
.woocommerce-loop-product__title { font-size: 0.9rem !important; font-weight: 600 !important; color: var(--primary-dark) !important; margin-bottom: 6px !important; }

/* ================================================= */
/* === SINGLE PRODUCT ============================== */
/* ================================================= */

#single-product {
  padding: 24px var(--space-sm) var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.product-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--specular-color);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: var(--space-lg);
  box-shadow: var(--glass-inner-shadow);
}

.product-breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.product-breadcrumb a:hover { color: var(--accent-dark); }

.single-product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

/* Gallery */
.product-gallery { position: sticky; top: 90px; }

.gallery-main {
  position: relative;
  aspect-ratio: 1;
  background: var(--gray-100);
  margin-bottom: var(--space-sm);
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
}

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

.gallery-zoom {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg-elevated);
  border: 1px solid var(--specular-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration) var(--ease-spring);
  z-index: 5;
}

.gallery-zoom:hover {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.08);
}

.gallery-thumbnails { display: flex; gap: var(--space-xs); flex-wrap: wrap; }

.gallery-thumb {
  width: 60px;
  height: 60px;
  cursor: pointer;
  opacity: 0.5;
  transition: all var(--duration) var(--ease-spring);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.gallery-thumb:hover,
.gallery-thumb.active {
  opacity: 1;
  border-color: var(--accent);
}

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

/* Product Details */
.product-details { padding-top: var(--space-sm); }

.product-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: var(--space-sm);
  font-family: var(--font-display);
  line-height: 1.3;
}

.product-price-single .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-dark) !important;
  margin-bottom: var(--space-md);
  display: block;
}

.product-description {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--gray-200);
}

/* Add to Cart Area */
.product-add-to-cart {
  position: relative;
  background: var(--white);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* Favorite Button */
.btn-favorite {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration) var(--ease-spring);
  z-index: 10;
}

.btn-favorite svg { transition: all var(--duration); stroke: var(--gray-400); }

.btn-favorite:hover {
  background: rgba(254, 226, 226, 0.8);
  border-color: rgba(252, 165, 165, 0.5);
  transform: scale(1.08);
}

.btn-favorite:hover svg { stroke: #ef4444; }

.btn-favorite.is-favorite {
  background: #ef4444;
  border-color: #ef4444;
}

.btn-favorite.is-favorite svg { stroke: #fff; fill: #fff; }

/* Variations */
.variations { margin-bottom: var(--space-md); }
.variations select { display: none !important; }

.variation-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.variation-btn {
  padding: 10px 18px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration) var(--ease-spring);
}

.variation-btn:hover {
  border-color: var(--primary);
  background: var(--white);
}

.variation-btn.selected {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.variation-btn.out-of-stock { opacity: 0.4; text-decoration: line-through; pointer-events: none; }

/* Quantity */
.quantity {
  display: inline-flex;
  align-items: center;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.quantity input {
  width: 50px;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font);
  padding: 10px 0;
}

.quantity input:focus { outline: none; }

/* Main Add to Cart Button */
.single_add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease-spring);
  box-shadow: 0 4px 16px rgba(45, 90, 61, 0.25);
}

.single_add_to_cart_button:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 168, 83, 0.35);
}

/* ================================================= */
/* === CART POPUP ================================== */
/* ================================================= */

.cart-popup {
  position: fixed;
  top: 0;
  right: -100%;
  width: 380px;
  max-width: 100vw;
  height: 100%;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transition: right var(--duration) var(--ease-smooth);
}

.cart-popup.visible { right: 0; }

.cart-popup-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(var(--glass-blur-strong)) saturate(var(--glass-saturation));
  -webkit-backdrop-filter: blur(var(--glass-blur-strong)) saturate(var(--glass-saturation));
  border-left: var(--specular-width) solid var(--specular-color);
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.08);
}

.cart-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: -1;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration);
}

.cart-popup.visible .cart-popup-overlay { opacity: 1; visibility: visible; }

.cart-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cart-popup-header h2,
.cart-popup-header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}

.cart-close-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg-light);
  border: 1px solid var(--specular-color);
  border-radius: var(--radius-full);
  font-size: 1.3rem;
  color: var(--gray-500);
  cursor: pointer;
  transition: all var(--duration) var(--ease-spring);
}

.cart-close-btn:hover {
  color: var(--black);
  background: var(--gray-100);
  transform: rotate(90deg);
}

#cart-content,
.cart-popup-content {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-sm);
}

/* Cart Items */
.woocommerce-mini-cart-item,
.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: var(--glass-bg-light);
  border: 1px solid var(--specular-color);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xs);
  transition: all var(--duration);
}

.woocommerce-mini-cart-item:hover,
.cart-item:hover {
  background: var(--glass-bg);
}

.woocommerce-mini-cart-item img,
.cart-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.woocommerce-mini-cart-item .product-name,
.cart-item-name,
.woocommerce-mini-cart-item a:not(.remove) {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary-dark);
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
  line-height: 1.3;
}

.woocommerce-mini-cart-item .quantity,
.cart-item-qty {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-500);
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

/* Cart item price */
.woocommerce-mini-cart-item .woocommerce-Price-amount,
.cart-item-price {
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.woocommerce-mini-cart-item .remove,
.cart-item-remove {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: 1rem;
  transition: all var(--duration) var(--ease-spring);
  border: none;
  cursor: pointer;
}

.woocommerce-mini-cart-item .remove:hover,
.cart-item-remove:hover {
  background: #ef4444;
  color: var(--white);
  transform: scale(1.1);
}

.cart-popup-footer {
  padding: var(--space-md);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--white);
}

.cart-popup-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.cart-popup-total span:first-child {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.cart-popup-total .amount,
.cart-popup-total strong {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-dark);
}

/* Checkout Button */
.checkout-btn,
.btn-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease-spring);
  box-shadow: 0 4px 16px rgba(45, 90, 61, 0.25);
}

.checkout-btn:hover,
.btn-checkout:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 168, 83, 0.35);
}

.btn-view-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  background: transparent;
  color: var(--primary-dark);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--duration);
}

.btn-view-cart:hover {
  background: var(--gray-100);
  border-color: var(--gray-300);
}

.cart-empty-state,
.cart-empty-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  color: var(--gray-500);
}

.cart-empty-icon,
.cart-empty-message svg {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-md);
  opacity: 0.3;
}

/* ================================================= */
/* === MEMBER PORTAL =============================== */
/* ================================================= */

.member-portal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration);
}

.member-portal.visible { opacity: 1; visibility: visible; }

.member-portal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.member-portal-content {
  position: relative;
  width: 100%;
  max-width: 380px;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-sm);
  transform: translateY(20px) scale(0.96);
  transition: all var(--duration) var(--ease-spring);
}

.member-portal.visible .member-portal-content { transform: translateY(0) scale(1); }

.member-portal-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 10;
  transition: all var(--duration) var(--ease-spring);
}

.member-portal-close:hover {
  background: var(--accent);
  color: var(--primary-dark);
  transform: rotate(90deg);
}

.member-loading { display: flex; justify-content: center; padding: 60px 20px; }

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Member Card - Dark Premium Style */
.member-card {
  position: relative;
  aspect-ratio: 1.586;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(145deg, rgba(40, 45, 55, 0.98) 0%, rgba(25, 30, 40, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 40px rgba(0, 0, 0, 0.4);
}

.member-card-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 0%, rgba(212,168,83,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(45,90,61,0.08) 0%, transparent 50%);
}

.member-card-content {
  position: relative;
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  z-index: 2;
}

.member-card-header { display: flex; justify-content: space-between; align-items: flex-start; }

.member-card-brand {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  color: var(--accent);
}

.member-card-tier,
.member-card-type {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--primary-dark);
  border-radius: var(--radius-full);
}

.member-card-id-row {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-card-id {
  font-family: 'SF Mono', 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-align: center;
  color: rgba(255,255,255,0.85);
}

.member-card-footer { display: flex; justify-content: space-between; align-items: flex-end; }

.member-card-name,
.member-since {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.member-card-since,
.member-network {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.4);
}

/* Member Stats - Inside the member card */
.member-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: auto;
}

.member-card-stats .member-stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  text-align: center;
}

.member-card-stats .stat-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2px;
  font-family: var(--font-display);
}

.member-card-stats .stat-label {
  display: block;
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
}

/* Member Sections (Orders, Favorites) */
.member-section {
  margin-top: var(--space-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.member-section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--duration);
}

.member-section-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}

.member-section-toggle svg {
  transition: transform var(--duration);
  opacity: 0.5;
}

.member-section-toggle.expanded svg {
  transform: rotate(180deg);
}

.member-section-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration) ease;
}

.member-section-content.expanded {
  max-height: 300px;
  overflow-y: auto;
}

.member-section-loading {
  padding: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

/* Member Not Found */
.member-not-found {
  background: rgba(30, 30, 40, 0.95);
  border-radius: var(--radius-xl);
  padding: 40px 24px;
  text-align: center;
  color: #fff;
}

.not-found-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.not-found-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.not-found-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.not-found-promo {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
  margin-bottom: var(--space-md);
}

.not-found-promo .promo-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.not-found-promo strong {
  display: block;
  color: var(--accent);
  margin-bottom: 4px;
  font-size: 0.85rem;
}

.not-found-promo p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.not-found-contact {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.not-found-contact a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.not-found-contact a:hover {
  text-decoration: underline;
}

/* ================================================= */
/* === CHECKOUT ==================================== */
/* ================================================= */

/* Hide default WooCommerce notices and coupon form */
.woocommerce-message,
.woocommerce-info:not(.wc-memberships-restriction-message),
.woocommerce-form-coupon-toggle,
.checkout_coupon.woocommerce-form-coupon {
  display: none !important;
}

/* Keep error messages visible */
.woocommerce-error {
  display: block !important;
  padding: var(--space-sm) var(--space-md);
  background: rgba(239, 68, 68, 0.1);
  border-left: 3px solid #ef4444;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
  color: #b91c1c;
}

.checkout-content {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-md);
}

.checkout-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: var(--space-md);
}

/* Checkout Form Container */
.woocommerce-checkout {
  background: var(--white);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* Custom Coupon Box */
.sr-coupon-box {
  margin: var(--space-sm) 0;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.sr-coupon-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--gray-50);
  border: none;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
  transition: all var(--duration);
}

.sr-coupon-toggle:hover {
  background: var(--gray-100);
}

.sr-coupon-toggle svg {
  transition: transform var(--duration);
  opacity: 0.5;
}

.sr-coupon-toggle.expanded svg {
  transform: rotate(180deg);
}

.sr-coupon-form {
  padding: 12px 16px;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
}

.sr-coupon-input-wrap {
  display: flex;
  gap: 8px;
}

.sr-coupon-input-wrap input {
  flex: 1;
  padding: 10px 14px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: all var(--duration);
}

.sr-coupon-input-wrap input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}

.sr-coupon-apply-btn {
  padding: 10px 20px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration);
  white-space: nowrap;
}

.sr-coupon-apply-btn:hover {
  background: var(--primary-dark);
}

.sr-coupon-apply-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.sr-coupon-message {
  margin-top: 8px;
  font-size: 0.85rem;
  min-height: 20px;
}

/* Applied Coupons Display */
.cart-discount {
  color: #22c55e !important;
}

.cart-discount .woocommerce-Price-amount {
  color: #22c55e !important;
  font-weight: 600;
}

/* Section Headers */
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3,
#order_review_heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--gray-200);
}

/* Form Rows */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* Form Field Labels */
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.form-row label .required {
  color: #ef4444;
}

/* Input Fields */
.woocommerce-input-wrapper input,
.woocommerce-input-wrapper textarea,
.woocommerce-input-wrapper select,
.form-row input,
.form-row textarea,
.form-row select,
#billing_first_name,
#billing_state,
#billing_city,
#billing_address_1,
#order_comments {
  width: 100%;
  padding: 14px 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--black);
  transition: all var(--duration-fast);
}

.woocommerce-input-wrapper input:focus,
.woocommerce-input-wrapper textarea:focus,
.woocommerce-input-wrapper select:focus,
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1);
}

/* Readonly Fields */
input[readonly],
.form-row input[readonly] {
  background: var(--gray-100) !important;
  color: var(--gray-600) !important;
  cursor: not-allowed;
}

/* Select Dropdown */
.form-row select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23525252' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Order Review Table */
.woocommerce-checkout-review-order-table {
  width: 100%;
  margin: var(--space-md) 0;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem;
}

.woocommerce-checkout-review-order-table thead th {
  background: var(--primary-dark);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
}

.woocommerce-checkout-review-order-table tbody tr:last-child td {
  border-bottom: none;
}

.woocommerce-checkout-review-order-table .order-total td,
.woocommerce-checkout-review-order-table .order-total th {
  font-weight: 700;
  font-size: 1rem;
  background: var(--gray-50);
}

.woocommerce-checkout-review-order-table .order-total .amount {
  color: var(--accent-dark);
  font-size: 1.1rem;
}

/* Payment Methods */
.woocommerce-checkout-payment {
  background: var(--gray-50);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-top: var(--space-md);
}

.wc_payment_methods {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-md) 0;
}

.wc_payment_method {
  padding: var(--space-sm);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xs);
  transition: all var(--duration);
}

.wc_payment_method:hover {
  border-color: var(--primary);
}

.wc_payment_method label {
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wc_payment_method .payment_box {
  margin-top: var(--space-xs);
  padding-top: var(--space-xs);
  border-top: 1px solid var(--gray-100);
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* Place Order Button */
#place_order {
  width: 100%;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--duration) var(--ease-spring);
  font-family: var(--font);
  box-shadow: 0 4px 16px rgba(45, 90, 61, 0.25);
}

#place_order:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%) !important;
  color: var(--primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 168, 83, 0.35);
}

/* Two Column Layout */
.col2-set {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

/* Hide unwanted fields */
.woocommerce-billing-fields .form-row:not(.unique-id-field):not([class*="billing_state"]):not([class*="billing_city"]):not([class*="billing_address_1"]) {
  /* Keep only the fields we want */
}

/* Error Messages */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
}

.woocommerce-error {
  background: rgba(239, 68, 68, 0.1);
  border-left: 3px solid #ef4444;
  color: #b91c1c;
}

.woocommerce-message {
  background: rgba(45, 90, 61, 0.1);
  border-left: 3px solid var(--primary);
  color: var(--primary-dark);
}

.woocommerce-info {
  background: rgba(59, 130, 246, 0.1);
  border-left: 3px solid #3b82f6;
  color: #1d4ed8;
}

/* ================================================= */
/* === TOAST NOTIFICATIONS ========================= */
/* ================================================= */

.toast-container {
  position: fixed;
  bottom: calc(96px + var(--safe-bottom));
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: var(--specular-width) solid var(--specular-color);
  border-radius: var(--radius-lg);
  box-shadow: 
    var(--glass-inner-shadow),
    0 12px 40px rgba(0, 0, 0, 0.12);
  transform: translateX(calc(100% + 40px));
  opacity: 0;
  transition: all var(--duration) var(--ease-spring);
}

.toast.visible { transform: translateX(0); opacity: 1; }

.toast-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
}

.toast-title { font-weight: 700; color: var(--primary-dark); font-size: 0.9rem; }
.toast-message { font-size: 0.8rem; color: var(--gray-600); }

.sr-toast {
  position: fixed;
  bottom: calc(96px + var(--safe-bottom));
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: var(--specular-width) solid var(--specular-color);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  box-shadow: 
    var(--glass-inner-shadow),
    0 12px 40px rgba(0, 0, 0, 0.12);
  z-index: 99999;
  transform: translateX(calc(100% + 40px));
  animation: slideInToast 0.4s var(--ease-spring) forwards;
}

@keyframes slideInToast { to { transform: translateX(0); } }

.sr-toast-title { font-weight: 700; color: var(--primary-dark); margin-bottom: 4px; }
.sr-toast-message { font-size: 0.85rem; color: var(--gray-600); }

/* ================================================= */
/* === WOOCOMMERCE MESSAGES ======================== */
/* ================================================= */

.woocommerce-message,
.woocommerce-info {
  padding: var(--space-md);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: var(--space-md);
}

.woocommerce-tabs, .related.products, .up-sells, .cross-sells { display: none !important; }

/* ================================================= */
/* === LIGHTBOX ==================================== */
/* ================================================= */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration);
}

.lightbox.visible { opacity: 1; visibility: visible; }

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
  transition: all var(--duration) var(--ease-spring);
}

.lightbox-close:hover {
  background: var(--accent);
  color: var(--primary-dark);
  transform: rotate(90deg);
}

/* ================================================= */
/* === FOOTER ====================================== */
/* ================================================= */

#site-footer {
  background: transparent;
  padding: var(--space-md) var(--space-md) var(--space-sm);
  text-align: center;
  margin-top: var(--space-lg);
}

.footer-inner { 
  max-width: 800px; 
  margin: 0 auto;
}

.footer-copyright { 
  font-size: 0.7rem; 
  color: var(--gray-400);
  margin: 0 0 2px;
}

.footer-version {
  font-size: 0.6rem;
  color: var(--gray-300);
  margin: 0;
  font-family: 'SF Mono', 'Consolas', monospace;
  letter-spacing: 0.3px;
}

/* ================================================= */
/* === RESPONSIVE ================================== */
/* ================================================= */

@media (max-width: 1024px) {
  .single-product-layout { grid-template-columns: 1fr; gap: var(--space-lg); }
  .product-gallery { position: static; }
  .col2-set { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  #site-header { top: 8px; margin: 0 8px; }
  
  .header-inner {
    height: 48px;
    padding: 4px 6px 4px 10px;
    max-width: 100%;
  }
  
  .site-logo { height: 26px; }
  .translate-btn { width: 32px; height: 32px; }
  
  /* Member Button Mobile */
  .member-btn {
    padding: 6px 10px;
    gap: 6px;
  }
  
  .member-greeting {
    display: none;
  }
  
  .member-id {
    font-size: 0.8rem;
  }
  
  .member-btn svg {
    width: 14px;
    height: 14px;
  }
  
  /* Translation dropdown - full width bottom sheet */
  .translate-dropdown {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0 !important;
    right: 0 !important;
    transform: translateY(100%);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: 60vh;
    padding-bottom: calc(var(--space-md) + var(--safe-bottom));
  }
  
  .translate-dropdown.visible {
    transform: translateY(0);
  }
  
  .cart-widget {
    width: 52px !important;
    height: 52px !important;
    bottom: calc(20px + var(--safe-bottom)) !important;
    right: 16px !important;
  }
  
  .easter-egg-trigger {
    width: 38px;
    height: 38px;
    bottom: calc(86px + var(--safe-bottom));
    right: 16px;
    font-size: 1.1rem;
  }
  
  .categories { grid-template-columns: repeat(2, 1fr); gap: var(--space-xs); }
  
  .products-grid,
  ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    padding: var(--space-sm);
  }
  
  .product-card-add-to-cart {
    position: static;
    transform: none;
    opacity: 1;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin: 0;
    padding: 10px;
    border-top: 1px solid var(--specular-color);
    border-left: none;
    border-right: none;
    border-bottom: none;
  }
  
  .cart-popup { width: 100%; }
  
  #single-product { padding: 16px var(--space-sm) var(--space-xl); }
  .product-title { font-size: 1.4rem; }
  .product-price-single .price { font-size: 1.4rem; }
  .product-add-to-cart { padding: var(--space-sm); }
  .btn-favorite { width: 44px; height: 44px; top: var(--space-sm); right: var(--space-sm); }
  
  .member-portal-content { padding: var(--space-sm); max-width: 100%; }
  .member-card { border-radius: var(--radius-lg); }
  .member-card-content { padding: 18px; }
  .member-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .member-stat { padding: 10px 8px; }
  .member-stat-value { font-size: 1.1rem; }
  
  .category-header { padding: var(--space-md) var(--space-sm); }
  .category-header h1 { font-size: 1.5rem; }
  
  .toast-container { right: 16px; left: 16px; bottom: calc(86px + var(--safe-bottom)); }
  .toast { width: 100%; }
}

@media (max-width: 480px) {
  .products-grid, ul.products { grid-template-columns: 1fr; }
  .categories { grid-template-columns: 1fr; }
  .shop-header h1 { font-size: 1.75rem; }
  .product-title { font-size: 1.25rem; }
  .member-stats { grid-template-columns: 1fr; }
  .member-stat { padding: 14px; }
  .member-stat-value { font-size: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

button:focus-visible, a:focus-visible, /* Hide WooCommerce tabs and related */
.woocommerce-tabs, .related.products, .up-sells, .cross-sells { display: none !important; }
