/* CSS Custom Properties for Theme System */
:root {
  /* Light Theme Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --accent-primary: #3b82f6;
  --accent-secondary: #8b5cf6;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-lg: rgba(0, 0, 0, 0.15);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gradient-secondary: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);

  /* Spacing */
  --container-max-width: 1200px;
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --transition: all 0.3s ease;

  /* Masonry Grid Variables */
  --masonry-gap: 20px;
  --masonry-column-width: 300px;
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #334155;
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-lg: rgba(0, 0, 0, 0.4);
}

/* Dark theme adjustments for transparent backgrounds */
[data-theme="dark"] .product-page {
  background: rgba(15, 23, 42, 0.85); /* Semi-transparent dark overlay */
}

[data-theme="dark"] .header {
  background: rgba(30, 41, 59, 0.95); /* Semi-transparent dark header */
}

[data-theme="dark"] .footer {
  background: rgba(30, 41, 59, 0.9); /* Semi-transparent dark footer */
}

[data-theme="dark"] .product-card {
  background: rgba(30, 41, 59, 0.9); /* Semi-transparent dark product cards */
}

[data-theme="dark"] .checkout-sidebar {
  background: rgba(30, 41, 59, 0.85); /* Semi-transparent dark sidebar */
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: transparent; /* Changed from var(--bg-primary) to transparent */
  color: var(--text-primary);
  line-height: 1.6;
  transition: var(--transition);
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Animated Background */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0.1;
  animation: float 8s ease-in-out infinite;
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 8s;
}

.shape-2 {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
  animation-duration: 10s;
}

.shape-3 {
  width: 60px;
  height: 60px;
  bottom: 30%;
  left: 20%;
  animation-delay: 4s;
  animation-duration: 7s;
}

.shape-4 {
  width: 100px;
  height: 100px;
  top: 40%;
  right: 30%;
  animation-delay: 1s;
  animation-duration: 9s;
}

.particles::before,
.particles::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 4s ease-in-out infinite;
}

.particles::before {
  top: 25%;
  left: 25%;
  animation-delay: 0s;
}

.particles::after {
  top: 75%;
  right: 25%;
  animation-delay: 2s;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(248, 250, 252, 0.95); /* Semi-transparent */
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.navbar {
  padding: 1rem 0;
  background: var(--bg-secondary);
  transition: var(--transition);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.logo i {
  color: var(--accent-primary);
  font-size: 1.8rem;
}

.desktop-nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--accent-primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  padding: 0.75rem 1rem;
  padding-right: 3rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.9rem;
  width: 250px;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-btn {
  position: absolute;
  right: 0.5rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.search-btn:hover {
  color: var(--accent-primary);
  background: var(--bg-tertiary);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.dropdown-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-primary);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: 0 10px 25px var(--shadow-lg);
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 1000;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
  border-bottom: 1px solid var(--border-color);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: var(--bg-tertiary);
  color: var(--accent-primary);
}

/* Theme Toggle */
.theme-toggle {
  padding: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: var(--bg-tertiary);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

/* Cart Button */
.cart-btn {
  position: relative;
  padding: 0.5rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  overflow: hidden;
  width: 40px;
  height: 40px;
}

.cart-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.cart-btn:hover {
  background: transparent;
  color: white;
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 
    0 12px 32px rgba(59, 130, 246, 0.3),
    0 0 0 1px rgba(59, 130, 246, 0.2);
}

.cart-btn:hover::before {
  opacity: 1;
}

.cart-btn:active {
  transform: translateY(0);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 50px;
  min-width: 20px;
  text-align: center;
  line-height: 1;
  box-shadow: 
    0 4px 12px rgba(239, 68, 68, 0.4),
    0 0 0 2px var(--bg-primary);
  animation: cartCountPulse 2s ease-in-out infinite;
}

@keyframes cartCountPulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 
      0 4px 12px rgba(239, 68, 68, 0.4),
      0 0 0 2px var(--bg-primary);
  }
  50% { 
    transform: scale(1.1);
    box-shadow: 
      0 6px 16px rgba(239, 68, 68, 0.6),
      0 0 0 2px var(--bg-primary),
      0 0 0 5px rgba(239, 68, 68, 0.2);
  }
}

.cart-count:empty {
  display: none;
}

/* Interactive Cart Dropdown */
.cart-container {
  position: relative;
}

.cart-dropdown-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(0px);
  background: rgba(0, 0, 0, 0);
}

.cart-dropdown-wrapper.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.4);
}

.cart-dropdown-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

.cart-dropdown-wrapper.active .cart-dropdown-overlay {
  opacity: 1;
}

.cart-dropdown {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9) rotateX(10deg);
  width: 50vw !important;
  max-width: 800px !important;
  min-width: 400px !important;
  height: 80vh !important;
  max-height: 700px !important;
  min-height: 500px !important;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  box-shadow: 
    0 32px 64px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  perspective: 1000px;
}

[data-theme="dark"] .cart-dropdown {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(51, 65, 85, 0.3);
}

.cart-dropdown-wrapper.active .cart-dropdown {
  transform: translate(-50%, -50%) scale(1) rotateX(0deg);
  opacity: 1;
}

.mini-cart-dropdown {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 500px;
  max-height: 100%;
  position: relative;
  overflow: hidden;
}

/* Animated background */
.mini-cart-dropdown::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  animation: cartBackgroundFlow 15s ease-in-out infinite;
  z-index: 0;
}

@keyframes cartBackgroundFlow {
  0%, 100% { transform: rotate(0deg) scale(1); }
  33% { transform: rotate(5deg) scale(1.1); }
  66% { transform: rotate(-5deg) scale(0.9); }
}

.mini-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.1) 0%, 
    rgba(139, 92, 246, 0.1) 100%);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.mini-cart-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 24px 24px 0 0;
}

.mini-cart-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(59, 130, 246, 0.3), 
    transparent);
}

.mini-cart-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.mini-cart-title i {
  color: var(--accent-primary);
  font-size: 1.3rem;
  animation: cartIconBounce 2s ease-in-out infinite;
}

@keyframes cartIconBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-3px) rotate(-5deg); }
  75% { transform: translateY(-1px) rotate(5deg); }
}

.mini-cart-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 1rem;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  position: relative;
  overflow: hidden;
}

.mini-cart-close::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(0.8);
}

.mini-cart-close:hover {
  color: var(--error);
  transform: rotate(90deg) scale(1.1);
}

.mini-cart-close:hover::before {
  opacity: 1;
  transform: scale(1);
}

.mini-cart-content {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.mini-cart-content::-webkit-scrollbar {
  width: 8px;
}

.mini-cart-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.mini-cart-content::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.mini-cart-content::-webkit-scrollbar-thumb:hover {
  background: var(--accent-secondary);
}

.woocommerce-mini-cart {
  padding: 0;
  margin: 0;
  list-style: none;
  flex: 1;
}

.mini-cart-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  backdrop-filter: blur(10px);
}

[data-theme="dark"] .mini-cart-item {
  border-bottom-color: rgba(51, 65, 85, 0.3);
}

.mini-cart-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0 4px 4px 0;
}

.mini-cart-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.05) 0%, 
    rgba(139, 92, 246, 0.05) 100%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
  margin: 8px;
}

.mini-cart-item:hover {
  transform: translateX(8px);
  background: rgba(255, 255, 255, 0.05);
}

.mini-cart-item:hover::before {
  opacity: 1;
  width: 6px;
}

.mini-cart-item:hover::after {
  opacity: 1;
}

.mini-cart-item:last-child {
  border-bottom: none;
}

.mini-cart-item-image {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--bg-secondary);
  border: 3px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.mini-cart-item-image::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.mini-cart-item:hover .mini-cart-item-image {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 12px 48px rgba(59, 130, 246, 0.2);
}

.mini-cart-item:hover .mini-cart-item-image::before {
  opacity: 1;
}

.mini-cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mini-cart-item:hover .mini-cart-item-image img {
  transform: scale(1.1);
}

.mini-cart-item-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 70px;
  position: relative;
}

.mini-cart-item-info {
  margin-bottom: 0.5rem;
}

.mini-cart-item-name {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.mini-cart-item-name a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 3s ease-in-out infinite;
}

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

.mini-cart-item-name a:hover {
  transform: translateY(-1px);
}

.mini-cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: auto;
}

.quantity-label {
  font-weight: 600;
}

.quantity-value {
  font-weight: 800;
  color: var(--accent-primary);
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.1), 
    rgba(139, 92, 246, 0.1));
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  min-width: 32px;
  text-align: center;
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.quantity-price {
  font-weight: 800;
  color: var(--text-primary);
  font-size: 1.125rem;
  margin-left: auto;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mini-cart-item-remove {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  padding-top: 0.25rem;
}

.mini-cart-item-remove .remove {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  position: relative;
  overflow: hidden;
}

.mini-cart-item-remove .remove::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--error), #dc2626);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(0.8);
}

.mini-cart-item-remove .remove:hover::before {
  opacity: 1;
  transform: scale(1);
}

.mini-cart-item-remove .remove:hover {
  color: white;
  transform: scale(1.1) rotate(90deg);
}

.mini-cart-footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.05) 0%, 
    rgba(139, 92, 246, 0.05) 100%);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

[data-theme="dark"] .mini-cart-footer {
  border-top-color: rgba(51, 65, 85, 0.3);
}

.mini-cart-total {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.mini-cart-total::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0.05;
  animation: totalGlow 3s ease-in-out infinite;
}

@keyframes totalGlow {
  0%, 100% { opacity: 0.05; }
  50% { opacity: 0.1; }
}

.mini-cart-total .woocommerce-Price-amount {
  font-size: 1.75rem !important;
  font-weight: 900 !important;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.mini-cart-total strong {
  font-size: 1.125rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.mini-cart-total strong::before {
  content: '💳';
  font-size: 1.5rem;
  animation: float 2s ease-in-out infinite;
}

.mini-cart-total span {
  font-size: inherit !important;
  color: inherit !important;
}

.mini-cart-buttons {
  display: flex;
  gap: 1rem;
  flex-direction: column;
}

.mini-cart-buttons .button {
  flex: 1;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-lg);
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  min-height: 50px;
}

.mini-cart-buttons .button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.2), 
    transparent);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.mini-cart-buttons .button:hover::before {
  left: 100%;
}

.btn-view-cart {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn-view-cart:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.2);
}

.btn-checkout {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  font-weight: 900;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
}

.btn-checkout:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(59, 130, 246, 0.4);
  filter: brightness(1.1) saturate(1.2);
}

.btn-checkout:active {
  transform: translateY(-2px);
}

/* Empty Cart State */
.mini-cart-empty {
  padding: 4rem 2rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.empty-cart-icon {
  font-size: 5rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  opacity: 0.7;
  animation: emptyCartFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

@keyframes emptyCartFloat {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg);
    opacity: 0.7;
  }
  25% { 
    transform: translateY(-15px) rotate(-2deg);
    opacity: 0.9;
  }
  75% { 
    transform: translateY(-5px) rotate(2deg);
    opacity: 0.8;
  }
}

.empty-cart-message {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-weight: 600;
  line-height: 1.4;
}

.btn-continue-shopping {
  background: var(--gradient-primary);
  color: white;
  padding: 1.25rem 2.5rem;
  border-radius: var(--border-radius-lg);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
}

.btn-continue-shopping::before {
  content: '🛍️';
  font-size: 1.2rem;
  animation: shopping 2s ease-in-out infinite;
}

@keyframes shopping {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(-2px) rotate(-5deg); }
  75% { transform: translateX(2px) rotate(5deg); }
}

.btn-continue-shopping:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 48px rgba(59, 130, 246, 0.4);
  filter: brightness(1.1) saturate(1.2);
}

/* Responsive Design for Cart */
@media (max-width: 768px) {
  .cart-dropdown {
    width: 85vw !important;
    height: 85vh !important;
    max-width: 85vw !important;
    max-height: 85vh !important;
    min-width: 320px !important;
    min-height: 500px !important;
    border-radius: 16px !important;
    transform: translate(-50%, -50%) scale(0.95) translateY(20px);
  }
  
  .cart-dropdown-wrapper.active .cart-dropdown {
    transform: translate(-50%, -50%) scale(1) translateY(0);
  }

  .mini-cart-header {
    padding: 1.5rem 1rem;
  }

  .mini-cart-title {
    font-size: 1.25rem;
  }

  .mini-cart-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .mini-cart-item {
    padding: 1.25rem 1rem;
    gap: 1rem;
  }

  .mini-cart-footer {
    padding: 1.5rem 1rem;
  }

  .mini-cart-item-name {
    font-size: 0.95rem;
  }

  .mini-cart-item-image {
    width: 60px;
    height: 60px;
  }

  .mini-cart-item-details {
    height: 60px;
  }
}

@media (max-width: 480px) {
  .cart-dropdown {
    width: 95vw !important;
    height: 90vh !important;
    max-width: 95vw !important;
    max-height: 90vh !important;
    min-width: 280px !important;
    border-radius: 12px !important;
  }

  .mini-cart-header {
    padding: 1.25rem 0.75rem;
  }

  .mini-cart-title {
    font-size: 1.125rem;
  }

  .mini-cart-item {
    padding: 1rem 0.75rem;
    gap: 0.75rem;
  }

  .mini-cart-item-image {
    width: 55px;
    height: 55px;
  }

  .mini-cart-item-details {
    height: 55px;
  }

  .mini-cart-footer {
    padding: 1.25rem 0.75rem;
  }

  .mini-cart-buttons .button {
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
  }

  .mini-cart-total {
    padding: 1rem;
    margin-bottom: 1.25rem;
  }

  .mini-cart-total .woocommerce-Price-amount {
    font-size: 1.5rem !important;
  }
}

/* Login Button */
.login-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--border-radius);
  color: white;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.mobile-search {
  margin-bottom: 1rem;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-links .nav-link {
  padding: 0.75rem 0;
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  line-height: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

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

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-primary);
}

.btn-outline {
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
}

.btn-outline:hover {
  background: var(--accent-primary);
  color: white;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

/* Hero Section */
.hero {
  padding: 8rem 0 4rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  animation: slideInLeft 0.8s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.hero-image {
  animation: slideInRight 0.8s ease-out;
}

.hero-card {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px var(--shadow-lg);
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-card-glow {
  position: absolute;
  inset: -2px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-lg);
  z-index: -1;
  opacity: 0.1;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.2;
  }
}

/* Products Section */
.products-section {
  padding: 4rem 0;
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Product Filters */
.product-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

/* Modern Responsive Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
  width: 100%;
  max-width: 1200px; /* Reduced from 1400px for wider cards */
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  justify-content: center;
  justify-items: center;
  place-items: center;
  place-content: center;
}

/* Grid Responsive Breakpoints - Max 3 items per row */
@media (min-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 380px));
    gap: 1.75rem;
    justify-content: center;
    justify-items: center;
    max-width: 800px; /* Constrain width for 2 columns */
  }
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 380px));
    gap: 2rem;
    justify-content: center;
    justify-items: center;
    max-width: 1200px; /* Full width for 3 columns */
  }
}

/* Enforce max 3 columns on all larger screens */
@media (min-width: 1024px) {
  .products-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
  }
  
  .products-grid .product-card {
    flex: 0 1 350px;
    max-width: 380px;
    min-width: 350px;
  }
}

/* Featured Products Grid - Same responsive behavior */
.products-section .products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
  width: 100%;
  max-width: 1200px; /* Reduced from 1400px for wider cards */
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  justify-content: center;
  justify-items: center;
  place-items: center;
  place-content: center;
}

@media (min-width: 480px) {
  .products-section .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 380px));
    gap: 1.75rem;
    justify-content: center;
    justify-items: center;
    max-width: 800px; /* Constrain width for 2 columns */
  }
}

@media (min-width: 768px) {
  .products-section .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 380px));
    gap: 2rem;
    justify-content: center;
    justify-items: center;
    max-width: 1200px; /* Full width for 3 columns */
  }
}

/* Enforce max 3 columns for featured products on all larger screens */
@media (min-width: 1024px) {
  .products-section .products-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
  }
  
  .products-section .products-grid .product-card {
    flex: 0 1 350px;
    max-width: 380px;
    min-width: 350px;
  }
}

/* Ensure product cards have consistent width */
.products-section .product-card,
.product-card {
  width: 100%;
  max-width: 380px; /* Set max width for individual cards */
  justify-self: center;
}

/* Better grid centering using CSS Grid auto-fit */

.product-card {
  position: relative;
  background: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
  backdrop-filter: blur(5px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 0 0 1px var(--accent-primary);
  border-color: var(--accent-primary);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-link {
  display: block;
  text-decoration: none;
  color: inherit;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-link:hover {
  text-decoration: none;
  color: inherit;
}

.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3; /* 4:3 Aspect Ratio */
  overflow: hidden;
  background: rgba(248, 250, 252, 0.8); /* Semi-transparent instead of solid */
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 2;
}

.badge {
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.badge-discount {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.badge-instant {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.badge-secure {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

.badge-premium {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.badge-genuine {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
}

.badge-family {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
}

.out-of-stock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(239, 68, 68, 0.95);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 3;
  backdrop-filter: blur(10px);
}

.product-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
}

.product-price .woocommerce-Price-amount {
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.product-price del {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 1.1rem;
  margin-right: 0.5rem;
}

.product-price del .woocommerce-Price-amount {
  background: none;
  -webkit-text-fill-color: var(--text-muted);
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: auto;
}

.meta-item {
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.meta-item i {
  color: var(--accent-primary);
  font-size: 0.8rem;
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
}

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

.product-overlay .btn {
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

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

.product-overlay .btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(59, 130, 246, 0.6);
}

/* Add to Cart Button in Product Card */
.product-card .add-to-cart-btn,
.product-card .add_to_cart_button {
  width: 100%;
  padding: 1.25rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  margin-top: auto;
}

.product-card .add-to-cart-btn::before,
.product-card .add_to_cart_button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card .add-to-cart-btn:hover::before,
.product-card .add_to_cart_button:hover::before {
  left: 100%;
}

.product-card .add-to-cart-btn:hover,
.product-card .add_to_cart_button:hover {
  background: var(--accent-secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.product-card .add-to-cart-btn:disabled {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Product Filters Enhancement */
.product-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 1rem 2rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.filter-btn:hover,
.filter-btn.active {
  background: transparent;
  color: white;
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.filter-btn:hover::before,
.filter-btn.active::before {
  opacity: 1;
}

/* Load More / Pagination Enhancement */
.load-more {
  text-align: center;
  margin-top: 3rem;
}

.load-more .page-numbers {
  display: inline-flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.load-more .page-numbers a,
.load-more .page-numbers span {
  padding: 1rem 1.5rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  min-width: 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.load-more .page-numbers a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.load-more .page-numbers a:hover,
.load-more .page-numbers span.current {
  background: transparent;
  color: white;
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.load-more .page-numbers a:hover::before,
.load-more .page-numbers span.current::before {
  opacity: 1;
}

.load-more .page-numbers span.current {
  background: var(--gradient-primary);
  border-color: var(--accent-primary);
}

/* Responsive Design for Custom Products Grid */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
  }
  
  /* Featured Products Grid - Mobile adjustments */
  .products-section .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    gap: 1.75rem;
    max-width: 700px;
  }
  
  .products-section .product-card {
    max-width: 320px;
  }
  
  .product-filters {
    gap: 0.75rem;
  }
  
  .filter-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .product-info {
    padding: 1.25rem;
  }
  
  .product-name {
    font-size: 1.125rem;
  }
  
  .product-price {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Featured Products Grid - Single column on small mobile */
  .products-section .products-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 380px;
  }
  
  .products-section .product-card {
    max-width: 100%;
  }
  
  .product-filters {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.75rem;
    font-size: 0.85rem;
  }
  
  .product-info {
    padding: 1rem;
  }
  
  .product-card .add-to-cart-btn,
  .product-card .add_to_cart_button {
    padding: 1rem;
    font-size: 0.95rem;
  }
  
  .load-more .page-numbers a,
  .load-more .page-numbers span {
    padding: 0.75rem 1rem;
    min-width: 40px;
  }
}

/* Features Section */
.features-section {
  padding: 4rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px var(--shadow-lg);
  border-color: var(--accent-primary);
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 1.5rem;
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* About Section */
.about-section {
  padding: 4rem 0;
  background: var(--bg-secondary);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.about-img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 15px 35px var(--shadow-lg);
}

/* Footer */
.footer {
  margin-top: 4rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border-color);
  background: rgba(248, 250, 252, 0.9); /* Semi-transparent */
  backdrop-filter: blur(10px);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-decoration: none;
}

.footer-logo i {
  color: var(--accent-primary);
}

.footer-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-controls {
  display: flex;
  gap: 1rem;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.contact-info i {
  color: var(--accent-primary);
  width: 1rem;
}

.contact-info a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.contact-info a:hover {
  color: var(--accent-primary);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

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

.footer-legal {
  display: flex;
  gap: 1rem;
}

.footer-legal a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-legal a:hover {
  color: var(--accent-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-content {
    flex-wrap: wrap;
  }

  .search-input {
    width: 200px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu.active {
    display: block;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  .hero {
    padding: 6rem 0 2rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .search-input {
    width: 150px;
  }

  .header-controls {
    gap: 0.5rem;
  }

  .footer-legal {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Product Page Styles */
.breadcrumb {
  padding: 1rem 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  margin-top: 5rem;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

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

.breadcrumb-nav span {
  color: var(--text-secondary);
}

.product-page {
  padding: 2rem 0;
  background: rgba(255, 255, 255, 0.85); /* Semi-transparent white overlay */
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-lg);
  margin: 1rem;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3rem;
}

.product-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-image {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: rgba(248, 250, 252, 0.8); /* Semi-transparent instead of solid */
  border: 1px solid var(--border-color);
}

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

.image-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.thumbnail-images {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
}

.thumbnail {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  background: none;
  padding: 0;
}

.thumbnail.active {
  border-color: var(--accent-primary);
}

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

.product-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.product-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

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

.action-btn {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: rgba(248, 250, 252, 0.8); /* Semi-transparent instead of solid */
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.product-badges-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-description h3,
.product-features h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.product-description p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.features-list {
  list-style: none;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.features-list i {
  color: var(--success);
  font-size: 0.9rem;
}

/* Product Tabs */
.product-tabs {
  margin-top: 2rem;
}

.tab-buttons {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  border-bottom: 2px solid transparent;
}

.tab-btn.active,
.tab-btn:hover {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.specifications-table {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.spec-label {
  font-weight: 600;
  color: var(--text-primary);
}

.spec-value {
  color: var(--text-secondary);
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.review-item {
  padding: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.reviewer-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.reviewer-name {
  font-weight: 600;
  color: var(--text-primary);
}

.review-rating {
  display: flex;
  gap: 0.25rem;
}

.review-rating i {
  color: #fbbf24;
  font-size: 0.8rem;
}

.review-date {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.review-text {
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  padding: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
}

.faq-item h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.faq-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Checkout Sidebar */
.checkout-sidebar {
  position: sticky;
  top: 2rem;
  padding: 2rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  background: rgba(248, 250, 252, 0.85); /* Semi-transparent instead of solid */
  backdrop-filter: blur(10px);
}

.price-section {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.original-price {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: 0.5rem;
}

.discount-badge {
  display: inline-block;
  background: var(--error);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.current-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.stock-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--success);
  font-weight: 500;
  font-size: 0.9rem;
}

.quantity-section {
  margin-bottom: 2rem;
}

.quantity-section label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-primary);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

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

.quantity-controls input {
  flex: 1;
  text-align: center;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-weight: 600;
}

.checkout-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.security-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.security-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.security-item i {
  color: var(--success);
}

/* Related Products */
.related-products {
  margin-top: 4rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.related-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow-lg);
  border-color: var(--accent-primary);
}

.related-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
}

.related-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.related-rating .stars {
  display: flex;
  gap: 0.25rem;
}

.related-rating .stars i {
  color: #fbbf24;
  font-size: 0.8rem;
}

.related-rating span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.related-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 2rem;
}

.empty-cart {
  text-align: center;
  padding: 2rem;
}

.empty-cart i {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.empty-cart p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Load More */
.load-more {
  text-align: center;
}

/* WooCommerce Integration Styles */
.woocommerce-main {
  padding-top: 100px;
  min-height: 100vh;
}

/* Enhanced WooCommerce Breadcrumbs */
.woocommerce-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

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

.woocommerce-breadcrumb a:hover {
  color: var(--accent-secondary);
}

/* Enhanced Product Rating */
.woocommerce-product-rating {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.star-rating {
  display: flex;
  gap: 0.25rem;
  font-size: 1.1rem;
}

.star-rating span {
  color: #fbbf24;
}

.woocommerce-review-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.woocommerce-review-link:hover {
  color: var(--accent-primary);
}

/* Enhanced Product Price Display */
.price {
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: var(--accent-primary) !important;
  margin: 0 !important;
}

.price del {
  color: var(--text-muted) !important;
  font-size: 1.5rem !important;
  font-weight: 400 !important;
  margin-right: 1rem !important;
}

.price ins {
  text-decoration: none !important;
}

/* WooCommerce Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.woocommerce-message {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.woocommerce-info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
}

.woocommerce-error {
  background: #fecaca;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.woocommerce-message::before {
  content: "\f058";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

.woocommerce-info::before {
  content: "\f05a";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

.woocommerce-error::before {
  content: "\f071";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

/* Enhanced Image Zoom Modal */
.image-zoom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.zoom-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 10000;
}

.zoom-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--border-radius-lg);
}

.zoom-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  transition: var(--transition);
}

.zoom-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Notification */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--accent-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* --- DARK THEME FIXES FOR HEADER & FOOTER --- */
[data-theme="dark"] .logo i,
[data-theme="dark"] .footer-logo i {
  color: var(--accent-primary);
}
[data-theme="dark"] .header-controls i,
[data-theme="dark"] .theme-toggle i,
[data-theme="dark"] .cart-btn i,
[data-theme="dark"] .login-btn i {
  color: var(--text-primary);
}
[data-theme="dark"] .footer {
  background: var(--bg-secondary);
  color: var(--text-primary);
}
[data-theme="dark"] .footer-title,
[data-theme="dark"] .footer-links a,
[data-theme="dark"] .footer-description,
[data-theme="dark"] .footer-bottom,
[data-theme="dark"] .footer-legal a,
[data-theme="dark"] .contact-info p {
  color: var(--text-secondary);
}
[data-theme="dark"] .footer-links a:hover,
[data-theme="dark"] .footer-legal a:hover {
  color: var(--accent-primary);
}
[data-theme="dark"] .social-links a {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border-color: var(--border-color);
}
[data-theme="dark"] .social-links a:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

/* --- DISABLE VISITED LINK COLOR CHANGE --- */
a:link,
a:visited {
  color: inherit !important;
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .animated-bg,
  .modal,
  .checkout-sidebar {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .container {
    max-width: none !important;
    padding: 0 !important;
  }
}

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

  .animated-bg {
    display: none;
  }
}

/* Focus styles for accessibility */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border-color: #000000;
    --shadow: rgba(0, 0, 0, 0.8);
    --shadow-lg: rgba(0, 0, 0, 0.9);
  }

  [data-theme="dark"] {
    --border-color: #ffffff;
  }
}

.logo a,
.footer-logo a {
  text-decoration: none;
  color: inherit;
}

/* === ANIMATED BACKGROUND THEME FIX === */
/* Force animated background elements to update colors immediately when theme changes */

/* Light Theme - Animated Background */
[data-theme="light"] .floating-shape {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%) !important;
  opacity: 0.1 !important;
}

[data-theme="light"] .particles::before,
[data-theme="light"] .particles::after {
  background: #3b82f6 !important;
  opacity: 0.3 !important;
}

/* Dark Theme - Animated Background */
[data-theme="dark"] .floating-shape {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%) !important;
  opacity: 0.15 !important;
}

[data-theme="dark"] .particles::before,
[data-theme="dark"] .particles::after {
  background: #60a5fa !important;
  opacity: 0.4 !important;
}

/* === COMPREHENSIVE DARK THEME OVERRIDE === */
/* High specificity dark theme styles to override any conflicting CSS */

html[data-theme="dark"] {
  --bg-primary: #0f172a !important;
  --bg-secondary: #1e293b !important;
  --bg-tertiary: #334155 !important;
  --text-primary: #f8fafc !important;
  --text-secondary: #cbd5e1 !important;
  --text-muted: #94a3b8 !important;
  --border-color: #334155 !important;
  --shadow: rgba(0, 0, 0, 0.3) !important;
  --shadow-lg: rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] body {
  background-color: #0f172a !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .header,
html[data-theme="dark"] .navbar {
  background: #1e293b !important;
  border-bottom-color: #334155 !important;
}

html[data-theme="dark"] .logo {
  color: #f8fafc !important;
}

html[data-theme="dark"] .nav-link {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .nav-link:hover {
  color: #3b82f6 !important;
}

html[data-theme="dark"] .search-input {
  background: #1e293b !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

html[data-theme="dark"] .dropdown-btn {
  background: #1e293b !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

html[data-theme="dark"] .dropdown-menu {
  background: #1e293b !important;
  border-color: #334155 !important;
}

html[data-theme="dark"] .dropdown-item {
  color: #f8fafc !important;
  border-bottom-color: #334155 !important;
}

html[data-theme="dark"] .theme-toggle {
  background: #1e293b !important;
  color: #cbd5e1 !important;
  border-color: #334155 !important;
}

html[data-theme="dark"] .cart-btn {
  background: #1e293b !important;
  color: #cbd5e1 !important;
  border-color: #334155 !important;
}

/* CART MODAL SIZE FIX - HIGH SPECIFICITY OVERRIDE */
.cart-dropdown-wrapper .cart-dropdown,
.cart-dropdown-wrapper.active .cart-dropdown,
html .cart-dropdown-wrapper .cart-dropdown,
body .cart-dropdown-wrapper .cart-dropdown {
  width: 50vw !important;
  max-width: 800px !important;
  min-width: 400px !important;
  height: 80vh !important;
  max-height: 700px !important;
  min-height: 500px !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) scale(0.9) rotateX(10deg) !important;
}

.cart-dropdown-wrapper.active .cart-dropdown {
  transform: translate(-50%, -50%) scale(1) rotateX(0deg) !important;
}

/* Responsive overrides with high specificity */
@media (max-width: 768px) {
  .cart-dropdown-wrapper .cart-dropdown,
  .cart-dropdown-wrapper.active .cart-dropdown,
  html .cart-dropdown-wrapper .cart-dropdown,
  body .cart-dropdown-wrapper .cart-dropdown {
    width: 85vw !important;
    height: 85vh !important;
    max-width: 85vw !important;
    max-height: 85vh !important;
    min-width: 320px !important;
    min-height: 500px !important;
  }
}

@media (max-width: 480px) {
  .cart-dropdown-wrapper .cart-dropdown,
  .cart-dropdown-wrapper.active .cart-dropdown,
  html .cart-dropdown-wrapper .cart-dropdown,
  body .cart-dropdown-wrapper .cart-dropdown {
    width: 95vw !important;
    height: 90vh !important;
    max-width: 95vw !important;
    max-height: 90vh !important;
    min-width: 280px !important;
  }
}

/* Featured Products Badge Enhancements */
.badge-featured {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1f2937;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.badge-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease-in-out;
}

.product-card:hover .badge-featured::before {
  left: 100%;
}

.badge-sale {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  font-weight: 700;
}

/* Product Actions Enhancement */
.product-actions {
  padding: 1rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

.product-actions .btn {
  width: 100%;
  padding: 1rem 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--border-radius);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.product-actions .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-actions .btn:hover::before {
  left: 100%;
}

.product-actions .add-to-cart-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
}

.product-actions .add-to-cart-btn:hover {
  background: var(--accent-secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.product-actions .btn-primary:not(.add-to-cart-btn) {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.product-actions .btn-primary:not(.add-to-cart-btn):hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* No Products Message Styling */
.no-products-message {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  padding: 3rem;
  text-align: center;
}

.no-products-content {
  background: var(--bg-secondary);
  padding: 3rem 2rem;
  border-radius: var(--border-radius-lg);
  border: 2px solid var(--border-color);
  max-width: 500px;
  position: relative;
  overflow: hidden;
}

.no-products-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.no-products-content i {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

.no-products-content h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.no-products-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.no-products-content .btn {
  margin-top: 1rem;
  padding: 1rem 2rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.no-products-content .btn:hover {
  background: var(--accent-secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* Enhanced Product Card Interaction */
.product-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .product-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Product Visibility and Loading States */
.product-card.loading {
  opacity: 0.7;
  pointer-events: none;
}

.product-card.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

[data-theme="dark"] .product-card.loading::after {
  background: rgba(0, 0, 0, 0.8);
}

/* Price Display Enhancements */
.product-price .price {
  font-weight: 700;
  font-size: 1.1rem;
}

.product-price .woocommerce-Price-amount {
  color: var(--accent-primary);
  font-weight: 700;
}

.product-price del .woocommerce-Price-amount {
  color: var(--text-muted);
  font-weight: 400;
  text-decoration: line-through;
}

.product-price ins .woocommerce-Price-amount {
  color: var(--accent-primary);
  text-decoration: none;
}

/* Responsive Enhancements for Product Actions */
@media (max-width: 768px) {
  .product-actions .btn {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }
  
  .no-products-content {
    padding: 2rem 1.5rem;
  }
  
  .no-products-content h3 {
    font-size: 1.3rem;
  }
  
  .product-card:hover {
    transform: translateY(-4px) scale(1.01);
  }
}

@media (max-width: 480px) {
  .product-actions {
    padding: 0.8rem;
  }
  
  .product-actions .btn {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }
  
  .no-products-message {
    min-height: 300px;
    padding: 2rem 1rem;
  }
  
  .no-products-content {
    padding: 1.5rem 1rem;
  }
  
  .no-products-content i {
    font-size: 2rem;
  }
  
  .no-products-content h3 {
    font-size: 1.2rem;
  }
}

/* Notification System */
.vccsell-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 350px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vccsell-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.vccsell-notification.notification-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(37, 99, 235, 0.95));
    color: white;
    border-left: 4px solid #2563eb;
}

.vccsell-notification.notification-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(22, 163, 74, 0.95));
    color: white;
    border-left: 4px solid #16a34a;
}

.vccsell-notification.notification-warning {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.95), rgba(202, 138, 4, 0.95));
    color: white;
    border-left: 4px solid #ca8a04;
}

.vccsell-notification.notification-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(220, 38, 38, 0.95));
    color: white;
    border-left: 4px solid #dc2626;
}

.vccsell-notification .notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.vccsell-notification .notification-content {
    flex-grow: 1;
}

.vccsell-notification .notification-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.vccsell-notification .notification-message {
    font-size: 0.9rem;
    opacity: 0.9;
}

.vccsell-notification .notification-close {
    background: none;
    border: none;
    color: white;
    opacity: 0.7;
    cursor: pointer;
    padding: 0.25rem;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.vccsell-notification .notification-close:hover {
    opacity: 1;
}

@media (max-width: 480px) {
    .vccsell-notification {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

.products-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    width: 100%;
}

.loading-spinner {
    text-align: center;
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.loading-spinner p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color);
}

/* Enhanced Products Section with Masonry Grid */
.all-products-section {
  padding: 60px 0;
  background: var(--bg-primary);
  min-height: 100vh;
}

.all-products-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 20px;
}

.all-products-title {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1.2;
}

.all-products-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

/* Enhanced Filter Section */
.products-filters-section {
  margin-bottom: 40px;
  padding: 0 20px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.enhanced-filter-btn {
  padding: 10px 20px;
  border: 2px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-transform: capitalize;
}

.enhanced-filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: left 0.3s ease;
  z-index: 0;
}

.enhanced-filter-btn span {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.enhanced-filter-btn:hover::before,
.enhanced-filter-btn.active::before {
  left: 0;
}

.enhanced-filter-btn:hover span,
.enhanced-filter-btn.active span {
  color: white;
}

.enhanced-filter-btn.active {
  border-color: var(--accent-primary);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* View Toggle Buttons */
.view-toggle {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.view-btn {
  width: 40px;
  height: 40px;
  border: 2px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.view-btn:hover,
.view-btn.active {
  border-color: var(--accent-primary);
  background: var(--accent-primary);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* Hide text labels, keep only icons */
.view-btn .view-name,
.view-btn span:not(.sr-only) {
  display: none !important;
}

/* Screen reader only class for accessibility */
.view-btn .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Results Info */
.filter-results-info {
  text-align: center;
  margin-bottom: 30px;
  padding: 15px;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.results-count {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 600;
}

.results-meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 5px;
}

/* Masonry Grid Layout */
.masonry-container {
  padding: 0 20px;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.masonry-grid {
  column-count: 1;
  column-gap: 1.5rem;
  column-fill: balance;
  width: 100%;
  max-width: 1200px; /* Reduced from 1400px for wider cards */
  margin: 0 auto;
}

/* Masonry Grid Responsive Breakpoints - Max 3 columns */
@media (min-width: 480px) {
  .masonry-grid {
    column-count: 2;
    column-gap: 1.75rem;
  }
}

@media (min-width: 768px) {
  .masonry-grid {
    column-count: 3;
    column-gap: 2rem;
  }
}

/* Enforce max 3 columns on all larger screens */
@media (min-width: 1024px) {
  .masonry-grid {
    column-count: 3;
    column-gap: 2rem;
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

/* Responsive margin for masonry items */
@media (min-width: 480px) {
  .masonry-item {
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 768px) {
  .masonry-item {
    margin-bottom: 2rem;
  }
}

/* Removed larger breakpoint spacing - keeping max 3 columns */

.masonry-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced Product Card for Masonry */
.masonry-product-card {
  background: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 2px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--shadow);
}

.masonry-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px var(--shadow-lg);
  border-color: var(--accent-primary);
}

.masonry-product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.masonry-product-card:hover::before {
  opacity: 0.05;
}

/* Product Image with Variable Heights for Masonry Effect */
.masonry-product-image {
  position: relative;
  overflow: hidden;
  height: auto;
  min-height: 180px;
  background: var(--bg-tertiary);
}

.masonry-product-image.large {
  min-height: 280px;
}

.masonry-product-image.medium {
  min-height: 220px;
}

.masonry-product-image.small {
  min-height: 180px;
}

/* On mobile, use consistent aspect ratio for better layout */
@media (max-width: 767px) {
  .masonry-product-image,
  .masonry-product-image.large,
  .masonry-product-image.medium,
  .masonry-product-image.small {
    aspect-ratio: 4/3;
    height: auto;
    min-height: auto;
  }
}

.masonry-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

/* Product Badges for Masonry */
.masonry-product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.masonry-badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.masonry-badge-sale {
  background: rgba(239, 68, 68, 0.9);
  color: white;
}

.masonry-badge-featured {
  background: rgba(16, 185, 129, 0.9);
  color: white;
}

.masonry-badge-new {
  background: rgba(59, 130, 246, 0.9);
  color: white;
}

/* Product Content */
.masonry-product-content {
  padding: 20px;
  position: relative;
  z-index: 2;
}

.masonry-product-header {
  margin-bottom: 12px;
}

.masonry-product-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.masonry-product-category {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--accent-primary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.masonry-product-category i {
  font-size: 0.625rem;
}

/* Product Description with Variable Length */
.masonry-product-description {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.masonry-product-description.short {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.masonry-product-description.medium {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.masonry-product-description.long {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Price Section */
.masonry-product-price {
  margin-bottom: 16px;
}

.masonry-price-current {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.masonry-price-original {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 8px;
}

/* Product Meta Information */
.masonry-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.masonry-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.masonry-meta-item i {
  font-size: 0.875rem;
  color: var(--accent-secondary);
}

/* Action Buttons */
.masonry-product-actions {
  display: flex;
  gap: 8px;
}

.masonry-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.masonry-btn-primary {
  background: var(--accent-primary);
  color: white;
}

.masonry-btn-primary:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.masonry-btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.masonry-btn-secondary:hover {
  background: var(--border-color);
}

/* Loading States */
.masonry-grid.loading {
  opacity: 0.6;
}

.masonry-loading-skeleton {
  background: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin-bottom: var(--masonry-gap);
  break-inside: avoid;
}

.skeleton-image {
  height: 200px;
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--border-color) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-content {
  padding: 20px;
}

.skeleton-line {
  height: 12px;
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--border-color) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
  margin-bottom: 8px;
}

.skeleton-line.title {
  height: 16px;
  width: 80%;
}

.skeleton-line.price {
  height: 14px;
  width: 40%;
}

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

/* Empty State */
.masonry-empty-state {
  text-align: center;
  padding: 60px 20px;
  grid-column: 1 / -1;
}

.masonry-empty-icon {
  font-size: 4rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.masonry-empty-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.masonry-empty-description {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  :root {
    --masonry-column-width: 280px;
  }
}

@media (max-width: 768px) {
  :root {
    --masonry-column-width: 100%;
    --masonry-gap: 16px;
  }

  .masonry-grid {
    column-count: 1;
  }

  .filter-row {
    flex-direction: column;
    gap: 12px;
  }

  .filter-group {
    justify-content: center;
  }

  .view-toggle {
    margin-left: 0;
  }

  .all-products-title {
    font-size: 2rem;
  }

  .masonry-container {
    padding: 0 16px;
  }

  .masonry-product-content {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .all-products-title {
    font-size: 1.75rem;
  }

  .enhanced-filter-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .masonry-product-actions {
    flex-direction: column;
  }

  .masonry-btn {
    padding: 12px 16px;
  }
}

/* Dark Theme Specific Styles */
[data-theme="dark"] .masonry-product-card {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

[data-theme="dark"] .masonry-product-card:hover {
  border-color: var(--accent-primary);
}

[data-theme="dark"] .skeleton-image,
[data-theme="dark"] .skeleton-line {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--border-color) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
}

/* Animation Classes */
.fade-in-up {
  animation: fadeInUpMasonry 0.6s ease-out forwards;
}

@keyframes fadeInUpMasonry {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stagger-children > * {
  animation-delay: calc(var(--stagger-delay, 0) * 0.1s);
}

/* Additional Masonry Animations */
.masonry-product-card.added-to-cart {
  animation: addedToCartPulse 0.6s ease-out;
  border-color: var(--success);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

@keyframes addedToCartPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Grid View Alternative */
.grid-view .masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--masonry-gap);
  column-count: auto;
  column-width: auto;
}

.grid-view .masonry-item {
  break-inside: auto;
  margin-bottom: 0;
}

.grid-view .masonry-product-image {
  min-height: 250px !important;
}

.grid-view .masonry-product-description {
  display: -webkit-box;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Enhanced Filter Animations */
.enhanced-filter-btn {
  transform: translateY(0);
  transition: all 0.3s ease;
}

.enhanced-filter-btn:hover {
  transform: translateY(-2px);
}

.enhanced-filter-btn:active {
  transform: translateY(0);
}

/* Loading Button States */
.masonry-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.masonry-btn.loading i {
  animation: spin 1s linear infinite;
}

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

/* Masonry Animations Enabled Class */
.masonry-animations-enabled .masonry-item {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.masonry-animations-enabled .masonry-product-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus States for Accessibility */
.enhanced-filter-btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.view-btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.masonry-btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .masonry-product-card {
    border-width: 3px;
  }
  
  .enhanced-filter-btn {
    border-width: 3px;
  }
  
  .masonry-badge {
    border: 2px solid;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .masonry-item {
    transition: none;
    animation: none;
  }
  
  .masonry-product-card {
    transition: none;
  }
  
  .masonry-product-card:hover {
    transform: none;
  }
  
  .enhanced-filter-btn {
    transition: none;
  }
  
  .masonry-btn {
    transition: none;
  }
  
  .skeleton-image,
  .skeleton-line {
    animation: none;
  }
}

/* =======================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ======================= */

/* DESKTOP HEADER RESET - ensure desktop styles work properly */
@media (min-width: 769px) {
  .header {
    position: relative;
    padding: 1rem 0;
    background: var(--bg-primary);
    backdrop-filter: none;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }
  
  .nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0;
    min-height: auto;
  }
  
  .logo {
    font-size: 1.5rem;
    font-weight: 700;
  }
  
  .logo-text {
    max-width: none;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  
  .desktop-nav,
  .desktop-search,
  .desktop-controls {
    display: flex !important;
  }
  
  .mobile-controls,
  .mobile-search-container,
  .mobile-menu-toggle {
    display: none !important;
  }
  
  .header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .desktop-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .theme-toggle,
  .login-btn,
  .cart-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    background: transparent;
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
  }
  
  .theme-toggle:hover,
  .login-btn:hover,
  .cart-btn:hover {
    background: var(--bg-secondary);
    color: var(--accent-primary);
  }
  
  .cart-btn {
    background: var(--accent-primary);
    color: white;
    position: relative;
  }
  
  .cart-btn:hover {
    background: var(--accent-secondary);
    color: white;
  }
  
  body {
    padding-top: 0;
  }
}

/* COMPACT MOBILE HEADER REWORK */
@media (max-width: 768px) {
  /* Compact Header Base */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
  }
  
  [data-theme="dark"] .header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }
  
  .navbar {
    padding: 0;
  }
  
  /* Compact Navigation Content */
  .nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    gap: 0.5rem;
    min-height: 60px;
  }
  
  /* Compact Logo */
  .logo {
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
    min-width: 0;
  }
  
  .logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
  }
  
  .logo i {
    font-size: 1.5rem;
    color: var(--accent-primary);
  }
  
  .logo-text {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
  }
  
  /* Hide desktop elements */
  .desktop-nav,
  .desktop-search,
  .desktop-controls {
    display: none !important;
  }
  
  /* Compact Header Controls */
  .header-controls {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
  }
  
  /* Mobile Controls Container */
  .mobile-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
  
  /* Compact Mobile Buttons */
  .mobile-search-toggle,
  .mobile-theme-toggle,
  .mobile-user-btn,
  .cart-btn,
  .mobile-menu-toggle {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    position: relative;
  }
  
  .mobile-search-toggle:hover,
  .mobile-theme-toggle:hover,
  .mobile-user-btn:hover,
  .cart-btn:hover {
    background: var(--bg-secondary);
    color: var(--accent-primary);
    transform: scale(1.05);
  }
  
  .mobile-user-btn {
    text-decoration: none;
  }
  
  /* Cart Button Styling */
  .cart-btn {
    background: var(--accent-primary);
    color: white;
    font-weight: 500;
  }
  
  .cart-btn:hover {
    background: var(--accent-secondary);
    color: white;
  }
  
  .cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.125rem 0.25rem;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
  
  /* Compact Mobile Menu Toggle */
  .mobile-menu-toggle {
    background: var(--bg-secondary);
    margin-left: 0.25rem;
  }
  
  .mobile-menu-toggle span {
    width: 16px;
    height: 2px;
    background: var(--text-primary);
    display: block;
    transition: all 0.3s ease;
    position: absolute;
  }
  
  .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(-4px);
  }
  
  .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(4px);
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
  }
  
  /* Mobile Search Container */
  .mobile-search-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 999;
  }
  
  .mobile-search-container.active {
    max-height: 80px;
    padding: 1rem 0;
  }
  
  .mobile-search-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .mobile-search-wrapper form {
    flex: 1;
    display: flex;
    gap: 0.5rem;
  }
  
  .mobile-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
  }
  
  .mobile-search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  }
  
  .mobile-search-btn {
    width: 40px;
    height: 40px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .mobile-search-close {
    width: 40px;
    height: 40px;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .mobile-search-close:hover {
    background: var(--bg-secondary);
  }
  
  /* Compact Mobile Menu */
  .mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-primary);
    border-left: 1px solid var(--border-color);
    padding: 0;
    transition: all 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  }
  
  .mobile-menu.active {
    right: 0;
  }
  
  [data-theme="dark"] .mobile-menu {
    background: var(--bg-primary);
    border-left-color: var(--border-color);
  }
  
  .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
  }
  
  .mobile-menu-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
  }
  
  .mobile-menu-close {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .mobile-menu-close:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
  }
  
  .mobile-nav-links {
    padding: 1rem 0;
  }
  
  .mobile-nav-links .nav-link {
    display: block;
    padding: 0.875rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
  }
  
  .mobile-nav-links .nav-link:hover {
    background: var(--bg-secondary);
    color: var(--accent-primary);
    padding-left: 1.5rem;
  }
  
  .mobile-nav-links .nav-link:last-child {
    border-bottom: none;
  }
  
  .mobile-menu-footer {
    margin-top: auto;
    padding: 1.25rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
  }
  
  .mobile-language-switcher {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
  }
  
  /* Mobile Menu Footer */
  .mobile-menu-footer {
    padding: 1.5rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
  }
  
  /* Mobile Language Switcher - Button Style */
  .mobile-language-switcher {
    margin-bottom: 1.5rem;
  }
  
  .mobile-language-switcher .mobile-lang-title {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    text-align: center;
  }
  
  .mobile-language-switcher .mobile-lang-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }
  
  /* Mobile Footer Links */
  .mobile-footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
  }
  
  .mobile-footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
  }
  
  .mobile-footer-link:hover {
    color: white;
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  }
  
  .mobile-footer-link i {
    opacity: 1;
  }
  
  /* Mobile Footer Info */
  .mobile-footer-info {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .mobile-footer-info .site-name {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
  }
  
  .mobile-footer-info .site-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    line-height: 1.4;
  }
  
  .mobile-language-switcher .mobile-lang-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer !important;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 100px;
    outline: none;
    pointer-events: auto !important;
    z-index: 100;
    position: relative;
    flex: 1;
    max-width: 140px;
  }
  
  .mobile-language-switcher .mobile-lang-btn:hover,
  .mobile-language-switcher .mobile-lang-btn:active,
  .mobile-language-switcher .mobile-lang-btn:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--accent-primary) !important;
    transform: translateY(-1px);
  }
  
  /* Touch feedback for mobile */
  .mobile-language-switcher .mobile-lang-btn:active {
    transform: scale(0.95) !important;
    background: rgba(255, 255, 255, 0.15) !important;
  }
  
  .mobile-language-switcher .mobile-lang-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
  }
  
  .mobile-language-switcher .mobile-lang-btn .flag {
    font-size: 1rem;
  }
  
  .mobile-language-switcher .mobile-lang-btn .lang-name {
    font-weight: 500;
  }
  
  /* Dark theme support for mobile language switcher */
  [data-theme="dark"] .mobile-language-switcher .mobile-lang-btn .lang-name,
  body.dark-theme .mobile-language-switcher .mobile-lang-btn .lang-name,
  .dark-mode .mobile-language-switcher .mobile-lang-btn .lang-name {
    color: #ffffff !important;
  }
  
  [data-theme="dark"] .mobile-language-switcher .mobile-lang-btn.active .lang-name,
  body.dark-theme .mobile-language-switcher .mobile-lang-btn.active .lang-name,
  .dark-mode .mobile-language-switcher .mobile-lang-btn.active .lang-name {
    color: #ffffff !important;
  }
  
  /* Hide original language switcher in mobile menu */
  @media (max-width: 768px) {
    .mobile-menu .vccsell-language-switcher {
      display: none;
    }
    
    /* Remove dark overlay from mobile menu */
    .mobile-menu-overlay {
      display: none !important;
    }
    
    /* Ensure buttons are above everything */
    .mobile-language-switcher {
      position: relative;
      z-index: 9999 !important;
    }
    
    .mobile-lang-btn {
      position: relative !important;
      z-index: 10000 !important;
      pointer-events: all !important;
    }
  }
  
  /* Mobile Menu Overlay */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  /* Adjust body when mobile menu is open */
  .mobile-menu-open {
    overflow: hidden;
  }
  
  /* Adjust main content for fixed header */
  body {
    padding-top: 60px;
  }
  
  /* Hero section mobile optimization */
  .hero {
    padding: 8rem 0 3rem;
    min-height: auto;
    margin-top: 0;
  }
  
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-text {
    order: 1;
  }
  
  .hero-image {
    order: 2;
    max-width: 280px;
    margin: 0 auto;
  }
  
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }
  
  .hero-stats {
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
  }
  
  .stat {
    text-align: center;
    min-width: 80px;
  }
  
  /* Products section mobile optimization */
  .products-section {
    padding: 2rem 0;
  }
  
  .section-header {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
  }
  
  .section-description {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .product-filters {
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    justify-content: center;
  }
  
  .filter-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    min-width: auto;
    white-space: nowrap;
  }
  
  /* Products grid mobile layout */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .product-card {
    max-width: 100%;
    margin: 0 auto;
  }
  
  .product-image {
    height: 220px;
  }
  
  .product-info {
    padding: 1.25rem;
  }
  
  .product-name {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
  }
  
  .product-description {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }
  
  .product-price {
    margin-bottom: 1rem;
  }
  
  .product-price .woocommerce-Price-amount {
    font-size: 1.25rem;
  }
  
  .product-meta {
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  .meta-item {
    font-size: 0.85rem;
  }
  
  .product-actions {
    gap: 0.75rem;
  }
  
  .product-actions .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    flex: 1;
    min-width: 0;
  }
  
  /* About section mobile */
  .about-section {
    padding: 3rem 0;
  }
  
  .about-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .about-text {
    order: 2;
  }
  
  .about-image {
    order: 1;
    max-width: 250px;
    margin: 0 auto;
  }
  
  .about-stats {
    gap: 1rem;
  }
  
  .stat-card {
    padding: 1.5rem 1rem;
    text-align: center;
  }
  
  /* Footer mobile */
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-legal {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Extra small phones - 480px and below */
@media (max-width: 480px) {
  /* Container adjustments */
  .container {
    padding: 0 1rem;
  }
  
  /* Header ultra-mobile */
  .logo {
    font-size: 1.3rem;
  }
  
  .header-controls {
    gap: 0.5rem;
  }
  
  .cart-btn,
  .theme-toggle,
  .dropdown-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  /* Hero ultra-mobile */
  .hero {
    padding: 7rem 0 2rem;
  }
  
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero-description {
    font-size: 1rem;
    max-width: 95%;
  }
  
  .hero-buttons .btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
  
  .hero-stats {
    gap: 1rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  /* Section headers ultra-mobile */
  .section-title {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  
  .section-description {
    font-size: 0.95rem;
    max-width: 95%;
  }
  
  /* Product filters ultra-mobile */
  .product-filters {
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }
  
  .filter-btn {
    padding: 0.625rem 1rem;
    font-size: 0.85rem;
  }
  
  /* Products grid ultra-mobile */
  .products-grid {
    gap: 1.25rem;
  }
  
  .product-card {
    border-radius: 12px;
  }
  
  .product-image {
    height: 200px;
    border-radius: 12px 12px 0 0;
  }
  
  .product-info {
    padding: 1rem;
  }
  
  .product-name {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .product-description {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }
  
  .product-price .woocommerce-Price-amount {
    font-size: 1.1rem;
  }
  
  .product-meta {
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }
  
  .meta-item {
    font-size: 0.8rem;
  }
  
  .product-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .product-actions .btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }
  
  /* About section ultra-mobile */
  .about-image {
    max-width: 200px;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .stat-card {
    padding: 1.25rem 0.75rem;
  }
  
  /* Enhanced touch targets */
  .btn,
  .filter-btn,
  .cart-btn,
  .theme-toggle,
  .mobile-menu-toggle {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Better typography for small screens */
  body {
    font-size: 14px;
    line-height: 1.5;
  }
  
  h1, h2, h3 {
    line-height: 1.3;
  }
  
  /* Improved spacing */
  .products-section {
    padding: 1.5rem 0;
  }
  
  .about-section {
    padding: 2rem 0;
  }
  
  .footer {
    padding: 1.5rem 0 1rem;
  }
}

/* Landscape phone orientation */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding: 6rem 0 2rem;
  }
  
  .hero-content {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 2rem;
  }
  
  .hero-text {
    flex: 1;
  }
  
  .hero-image {
    flex: 0 0 250px;
    max-width: 250px;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-buttons {
    flex-direction: row;
    gap: 1rem;
  }
  
  .hero-buttons .btn {
    max-width: 200px;
  }
}

/* Very small screens (< 360px) */
@media (max-width: 360px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .product-filters {
    gap: 0.375rem;
  }
  
  .filter-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .product-image {
    height: 180px;
  }
  
  .product-info {
    padding: 0.875rem;
  }
}

/* High-DPI displays (Retina) mobile optimization */
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
  .product-image img,
  .hero-img,
  .about-img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Dark mode mobile adjustments */
@media (max-width: 768px) {
  [data-theme="dark"] .hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  }
  
  [data-theme="dark"] .product-card {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(71, 85, 105, 0.3);
  }
  
  [data-theme="dark"] .filter-btn {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(71, 85, 105, 0.3);
    color: #e2e8f0;
  }
  
  [data-theme="dark"] .filter-btn.active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-color: #3b82f6;
    color: white;
  }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 768px) {
    .hero {
      padding-top: calc(7rem + env(safe-area-inset-top));
    }
    
    .header {
      padding-top: env(safe-area-inset-top);
    }
    
    .container {
      padding-left: max(1rem, env(safe-area-inset-left));
      padding-right: max(1rem, env(safe-area-inset-right));
    }
  }
}

/* Touch-friendly interactions */
@media (max-width: 768px) {
  .product-card {
    transition: transform 0.2s ease;
  }
  
  .product-card:active {
    transform: scale(0.98);
  }
  
  .filter-btn:active,
  .btn:active {
    transform: scale(0.95);
  }
  
  /* Remove hover effects on mobile */
  .product-card:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
  
  .filter-btn:hover,
  .btn:hover {
    transform: none;
  }
}

/* Loading states mobile optimization */
@media (max-width: 768px) {
  .products-loading {
    padding: 2rem 1rem;
  }
  
  .loading-spinner i {
    font-size: 2rem;
  }
  
  .loading-spinner p {
    font-size: 1rem;
    margin-top: 1rem;
  }
}

/* Mobile-specific animations */
@media (max-width: 768px) and (prefers-reduced-motion: no-preference) {
  .product-card {
    animation: fadeInUp 0.6s ease forwards;
  }
  
  .product-card:nth-child(2) { animation-delay: 0.1s; }
  .product-card:nth-child(3) { animation-delay: 0.2s; }
  .product-card:nth-child(4) { animation-delay: 0.3s; }
  .product-card:nth-child(5) { animation-delay: 0.4s; }
  .product-card:nth-child(6) { animation-delay: 0.5s; }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Accessibility improvements for mobile */
@media (max-width: 768px) {
  .skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--accent-primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 100;
  }
  
  .skip-link:focus {
    top: 6px;
  }
  
  /* Larger touch targets for accessibility */
  .product-actions .btn,
  .filter-btn,
  .cart-btn {
    min-height: 48px;
    min-width: 48px;
  }
}

/* Print styles for mobile */
@media print {
  .header,
  .mobile-menu,
  .product-filters,
  .footer {
    display: none !important;
  }
  
  .products-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
  }
  
  .product-card {
    break-inside: avoid;
    margin-bottom: 1rem;
  }
}

/* ===================================================================== */
/* PRODUCT PAGE RESPONSIVE DESIGN                                       */
/* ===================================================================== */

/* Large tablets and small laptops */
@media (max-width: 1200px) {
  .product-layout {
    grid-template-columns: 1fr 320px;
    gap: 2rem;
  }
  
  .product-main {
    gap: 2rem;
  }
  
  .checkout-sidebar {
    padding: 1.5rem;
    top: 5rem;
  }
  
  .current-price {
    font-size: 2.2rem;
  }
}

/* Tablets */
@media (max-width: 968px) {
  .product-layout {
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
  }
  
  .product-main {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .product-title {
    font-size: 1.8rem;
  }
  
  .current-price {
    font-size: 2rem;
  }
  
  .checkout-sidebar {
    padding: 1.25rem;
  }
  
  .related-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
  }
  
  .related-card {
    padding: 1rem;
  }
  
  .related-card img {
    height: 100px;
  }
}

/* Mobile and small tablets */
@media (max-width: 768px) {
  .product-page {
    padding: 1rem 0;
  }
  
  .product-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .product-main {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .product-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .product-title {
    font-size: 1.6rem;
    line-height: 1.3;
  }
  
  .product-actions {
    align-self: flex-end;
  }
  
  .main-image {
    aspect-ratio: 4/3;
  }
  
  .thumbnail-images {
    justify-content: center;
  }
  
  .thumbnail {
    width: 60px;
    height: 60px;
  }
  
  .tab-buttons {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .tab-btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .checkout-sidebar {
    position: static;
    order: -1;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    padding: 1.5rem;
  }
  
  .current-price {
    font-size: 1.8rem;
  }
  
  .quantity-controls {
    justify-content: center;
  }
  
  .qty-btn {
    width: 3rem;
    height: 3rem;
  }
  
  .quantity-controls input {
    min-width: 80px;
    padding: 1rem;
  }
  
  .related-products {
    margin-top: 2rem;
  }
  
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .related-card {
    padding: 1rem;
  }
  
  .related-card img {
    height: 80px;
  }
  
  .related-price {
    font-size: 1rem;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  .product-page {
    padding: 0.5rem 0;
  }
  
  .product-layout {
    gap: 1.5rem;
  }
  
  .product-main {
    gap: 1rem;
  }
  
  .product-title {
    font-size: 1.4rem;
  }
  
  .product-actions {
    width: 100%;
    justify-content: flex-end;
  }
  
  .action-btn {
    width: 2.25rem;
    height: 2.25rem;
  }
  
  .main-image {
    aspect-ratio: 1;
  }
  
  .thumbnail {
    width: 50px;
    height: 50px;
  }
  
  .tab-btn {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
    flex: 1;
    text-align: center;
  }
  
  .spec-row {
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
  }
  
  .spec-label {
    font-size: 0.9rem;
  }
  
  .spec-value {
    font-size: 0.85rem;
  }
  
  .review-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .checkout-sidebar {
    padding: 1rem;
    border-radius: var(--border-radius);
  }
  
  .current-price {
    font-size: 1.6rem;
  }
  
  .checkout-buttons {
    gap: 0.75rem;
  }
  
  .checkout-buttons .btn {
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
  }
  
  .security-features {
    gap: 0.5rem;
  }
  
  .security-item {
    font-size: 0.85rem;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .related-card {
    padding: 0.75rem;
    display: flex;
    gap: 1rem;
    text-align: left;
  }
  
  .related-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  
  .related-content {
    flex: 1;
  }
  
  .related-rating {
    justify-content: flex-start;
    margin-bottom: 0.5rem;
  }
  
  .related-price {
    font-size: 0.9rem;
    margin-bottom: 0;
  }
}

/* Ultra-wide mobile phones */
@media (max-width: 360px) {
  .product-title {
    font-size: 1.2rem;
  }
  
  .thumbnail-images {
    gap: 0.25rem;
  }
  
  .thumbnail {
    width: 45px;
    height: 45px;
  }
  
  .tab-btn {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
  
  .current-price {
    font-size: 1.4rem;
  }
  
  .checkout-buttons .btn {
    padding: 0.875rem;
    font-size: 0.9rem;
  }
}

/* Landscape orientation optimizations */
@media (max-width: 768px) and (orientation: landscape) {
  .product-page {
    padding: 1rem 0;
  }
  
  .product-layout {
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
  }
  
  .product-main {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  
  .checkout-sidebar {
    position: sticky;
    top: 4rem;
    order: 0;
    height: fit-content;
  }
  
  .main-image {
    aspect-ratio: 4/3;
  }
}

/* High-resolution mobile devices */
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
  .product-image img,
  .main-image img,
  .related-card img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Dark theme specific adjustments for product page */
[data-theme="dark"] .product-page {
  color: var(--text-primary);
}

[data-theme="dark"] .checkout-sidebar {
  border-color: var(--border-color);
  background: var(--bg-secondary);
}

[data-theme="dark"] .spec-row,
[data-theme="dark"] .review-item,
[data-theme="dark"] .related-card {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .action-btn,
  .qty-btn,
  .tab-btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .thumbnail {
    min-width: 60px;
    min-height: 60px;
  }
  
  .checkout-buttons .btn {
    min-height: 48px;
    padding: 1rem 1.5rem;
  }
  
  .product-actions .action-btn:active {
    transform: scale(0.95);
    opacity: 0.8;
  }
}

/* Focus and accessibility improvements */
.product-page *:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.tab-btn:focus-visible,
.action-btn:focus-visible,
.qty-btn:focus-visible {
  outline-offset: 1px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .product-card,
  .related-card,
  .action-btn,
  .qty-btn,
  .tab-btn {
    transition: none;
    animation: none;
  }
  
  .product-card:hover,
  .related-card:hover {
    transform: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .product-layout,
  .checkout-sidebar,
  .spec-row,
  .review-item {
    border-width: 2px;
    border-color: currentColor;
  }
  
  .action-btn,
  .qty-btn,
  .tab-btn {
    border: 2px solid currentColor;
  }
}

/* ===================================================================== */
/* ENHANCED PRODUCT PAGE FEATURES                                       */
/* ===================================================================== */

/* Share Modal Styles */
.share-modal .modal-content {
  max-width: 400px;
  width: 90%;
}

.share-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-secondary);
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
  font-weight: 500;
}

.share-btn:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.share-btn.facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
}

.share-btn.twitter:hover {
  background: #1da1f2;
  border-color: #1da1f2;
}

.share-btn.linkedin:hover {
  background: #0077b5;
  border-color: #0077b5;
}

.share-btn i {
  font-size: 1rem;
}

/* Enhanced Action Buttons */
.action-btn.active {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

.action-btn.active i {
  animation: heartBeat 0.6s ease-in-out;
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.3); }
  28% { transform: scale(1); }
  42% { transform: scale(1.3); }
  70% { transform: scale(1); }
}

/* Enhanced Image Zoom */
.main-image {
  position: relative;
  overflow: hidden;
}

.main-image::after {
  content: '\f00e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem;
  border-radius: 50%;
  font-size: 0.8rem;
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.main-image:hover::after {
  opacity: 1;
}

/* Enhanced Quantity Controls */
.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--bg-primary);
}

.quantity-controls .qty-btn {
  border: none;
  border-radius: 0;
  background: var(--bg-secondary);
  width: 2.5rem;
  height: 2.5rem;
}

.quantity-controls .qty-btn:first-child {
  border-right: 1px solid var(--border-color);
}

.quantity-controls .qty-btn:last-child {
  border-left: 1px solid var(--border-color);
}

.quantity-controls input[name="quantity"] {
  border: none;
  background: transparent;
  text-align: center;
  width: 60px;
  height: 2.5rem;
  padding: 0;
  margin: 0;
  font-weight: 600;
}

/* Enhanced Product Badges */
.product-badges-list .badge {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.product-badges-list .badge:nth-child(1) { animation-delay: 0.1s; }
.product-badges-list .badge:nth-child(2) { animation-delay: 0.2s; }
.product-badges-list .badge:nth-child(3) { animation-delay: 0.3s; }
.product-badges-list .badge:nth-child(4) { animation-delay: 0.4s; }

/* Enhanced Tab Animations */
.tab-pane {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Loading States */
.product-page.loading {
  pointer-events: none;
}

.product-page.loading::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .product-page.loading::after {
  background: rgba(0, 0, 0, 0.8);
}

/* Mobile Share Modal Adjustments */
@media (max-width: 480px) {
  .share-options {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .share-btn {
    padding: 1rem;
    font-size: 1rem;
  }
  
  .share-modal .modal-content {
    width: 95%;
    margin: 1rem;
  }
}

/* Print Styles for Product Page */
@media print {
  .product-actions,
  .checkout-sidebar,
  .action-btn,
  .share-modal {
    display: none !important;
  }
  
  .product-layout {
    grid-template-columns: 1fr;
  }
  
  .product-main {
    grid-template-columns: 1fr;
  }
  
  .main-image {
    max-width: 300px;
    margin: 0 auto;
  }
}

/* Product Tags Section */
.product-tags-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.product-categories-tags,
.product-attributes-tags {
  margin-bottom: 1.5rem;
}

.product-attributes-tags:last-child {
  margin-bottom: 0;
}

.tags-label {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.product-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.product-tag:hover::before {
  left: 100%;
}

/* Category Tags - Blue Theme */
.category-tag {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border: 1px solid #2563eb;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.category-tag:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Attribute Tags - Green Theme */
.attribute-tag {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: 1px solid #047857;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.attribute-tag:hover {
  background: linear-gradient(135deg, #059669, #047857);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Dark Theme Adjustments */
[data-theme="dark"] .product-tags-section {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .tags-label {
  color: var(--text-primary);
}

[data-theme="dark"] .category-tag {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

[data-theme="dark"] .category-tag:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.5);
}

[data-theme="dark"] .attribute-tag {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.4);
}

[data-theme="dark"] .attribute-tag:hover {
  background: linear-gradient(135deg, #047857, #065f46);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.5);
}

/* Responsive Design for Tags */
@media (max-width: 768px) {
  .product-tags-section {
    margin: 1.5rem 0;
    padding: 1rem;
  }
  
  .product-tag {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .tags-label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  
  .tags-container {
    gap: 0.4rem;
  }
}

@media (max-width: 480px) {
  .product-tags-section {
    margin: 1rem 0;
    padding: 0.75rem;
  }
  
  .product-tag {
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
  }
  
  .tags-label {
    font-size: 0.85rem;
  }
  
  .tags-container {
    gap: 0.3rem;
  }
}

/* Animation for tags */
.product-tag {
  animation: fadeInTag 0.6s ease-out;
  animation-fill-mode: both;
}

.product-tag:nth-child(1) { animation-delay: 0.1s; }
.product-tag:nth-child(2) { animation-delay: 0.2s; }
.product-tag:nth-child(3) { animation-delay: 0.3s; }
.product-tag:nth-child(4) { animation-delay: 0.4s; }
.product-tag:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInTag {
  from { 
    opacity: 0; 
    transform: translateY(10px) scale(0.9); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
  }
}

/* Legal Pages Styling */

/* Legal Page Main Container */
.terms-service-page,
.privacy-policy-page,
.terms-return-page {
  padding: 2rem 0;
  background: var(--bg-primary);
  min-height: calc(100vh - 120px);
}

/* Page Header */
.terms-service-page .page-header,
.privacy-policy-page .page-header,
.terms-return-page .page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: var(--border-radius-lg);
  color: white;
  position: relative;
  overflow: hidden;
}

.terms-service-page .page-header::before,
.privacy-policy-page .page-header::before,
.terms-return-page .page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
}

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

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.page-description {
  font-size: 1.1rem;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

/* Legal Section */
.legal-section {
  margin-bottom: 3rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.legal-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.legal-section h2 {
  color: var(--text-primary);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--accent-primary);
  padding-bottom: 0.5rem;
  display: inline-block;
}

/* Legal Links Grid */
.legal-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Legal Link Cards */
.legal-link-card {
  background: var(--bg-primary) !important;
  border: 2px solid var(--border-color) !important;
  border-radius: var(--border-radius-lg) !important;
  padding: 2rem !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  overflow: hidden !important;
  cursor: pointer !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  color: var(--text-primary) !important;
}

/* Ensure cards work in both light and dark modes */
body .legal-link-card,
.privacy-policy-page .legal-link-card,
.terms-service-page .legal-link-card,
.terms-return-page .legal-link-card {
  background: var(--bg-primary) !important;
  border: 2px solid var(--border-color) !important;
  color: var(--text-primary) !important;
}

.legal-link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.legal-link-card:hover::before {
  opacity: 0.03;
}

.legal-link-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Legal Link Icon */
.legal-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 50%;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.legal-link-card:hover .legal-link-icon {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(var(--accent-primary-rgb), 0.4);
}

.legal-link-icon i {
  font-size: 1.5rem;
  color: white;
}

/* Legal Link Content */
.legal-link-content {
  position: relative !important;
  z-index: 1 !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

.legal-link-content h3 {
  color: var(--text-primary) !important;
  font-size: 1.3rem !important;
  font-weight: 600 !important;
  margin-bottom: 1rem !important;
  transition: color 0.3s ease !important;
}

.legal-link-card:hover .legal-link-content h3 {
  color: var(--accent-primary) !important;
}

.legal-link-content p {
  color: var(--text-secondary) !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  margin-bottom: 1.5rem !important;
  flex: 1 !important;
}

/* Additional specific targeting for text colors */
body .legal-link-content h3,
.privacy-policy-page .legal-link-content h3,
.terms-service-page .legal-link-content h3,
.terms-return-page .legal-link-content h3 {
  color: var(--text-primary) !important;
}

body .legal-link-content p,
.privacy-policy-page .legal-link-content p,
.terms-service-page .legal-link-content p,
.terms-return-page .legal-link-content p {
  color: var(--text-secondary) !important;
}

/* Legal Link Button */
.legal-link-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: all 0.3s ease;
  margin-top: auto;
  width: fit-content;
}

.legal-link-button:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(var(--accent-primary-rgb), 0.4);
  color: white;
  text-decoration: none;
}

.legal-link-button i {
  transition: transform 0.3s ease;
}

.legal-link-button:hover i {
  transform: translateX(3px);
}

/* Button text color overrides */
.legal-link-card .legal-link-button,
.legal-link-card a.legal-link-button {
  color: #ffffff !important;
}

[data-theme="dark"] .legal-link-card .legal-link-button,
[data-theme="dark"] .legal-link-card a.legal-link-button,
html[data-theme="dark"] .legal-link-card .legal-link-button,
html[data-theme="dark"] .legal-link-card a.legal-link-button {
  color: #ffffff !important;
}

[data-theme="light"] .legal-link-card .legal-link-button,
[data-theme="light"] .legal-link-card a.legal-link-button,
html[data-theme="light"] .legal-link-card .legal-link-button,
html[data-theme="light"] .legal-link-card a.legal-link-button,
body:not([data-theme="dark"]) .legal-link-card .legal-link-button,
body:not([data-theme="dark"]) .legal-link-card a.legal-link-button {
  color: #ffffff !important;
}

.legal-link-unavailable {
  color: var(--text-secondary);
  font-style: italic;
  opacity: 0.7;
  margin-top: auto;
}

/* Legal Text Content */
.legal-text-content {
  background: var(--bg-primary) !important;
  border-radius: var(--border-radius) !important;
  padding: 2rem !important;
  border: 1px solid var(--border-color) !important;
}

.legal-text-content h3 {
  color: var(--text-primary) !important;
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  margin: 2rem 0 1rem 0 !important;
  position: relative !important;
  padding-left: 1rem !important;
}

.legal-text-content h3::before {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 4px !important;
  height: 20px !important;
  background: var(--accent-primary) !important;
  border-radius: 2px !important;
}

.legal-text-content p {
  color: var(--text-secondary) !important;
  line-height: 1.8 !important;
  margin-bottom: 1.5rem !important;
}

.legal-text-content h4 {
  color: var(--text-primary) !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  margin: 1.5rem 0 1rem 0 !important;
}

.legal-list {
  list-style: none !important;
  padding-left: 0 !important;
}

.legal-list li {
  color: var(--text-secondary) !important;
  line-height: 1.6 !important;
  margin-bottom: 0.8rem !important;
  padding-left: 1.5rem !important;
  position: relative !important;
}

.legal-list li::before {
  content: '✓' !important;
  position: absolute !important;
  left: 0 !important;
  color: var(--accent-primary) !important;
  font-weight: bold !important;
}

.last-updated {
  background: var(--bg-secondary) !important;
  border-radius: var(--border-radius) !important;
  padding: 1rem !important;
  margin-bottom: 2rem !important;
  border-left: 4px solid var(--accent-primary) !important;
}

.last-updated p {
  margin: 0 !important;
  color: var(--text-secondary) !important;
}

.last-updated strong {
  color: var(--text-primary) !important;
}

/* Ensure all text elements are visible in light theme */
[data-theme="light"] .legal-text-content,
html[data-theme="light"] .legal-text-content,
body:not([data-theme="dark"]) .legal-text-content {
  background: #ffffff !important;
  color: #111827 !important;
}

[data-theme="light"] .legal-text-content h3,
[data-theme="light"] .legal-text-content h4,
html[data-theme="light"] .legal-text-content h3,
html[data-theme="light"] .legal-text-content h4,
body:not([data-theme="dark"]) .legal-text-content h3,
body:not([data-theme="dark"]) .legal-text-content h4 {
  color: #111827 !important;
}

[data-theme="light"] .legal-text-content p,
[data-theme="light"] .legal-list li,
[data-theme="light"] .last-updated p,
html[data-theme="light"] .legal-text-content p,
html[data-theme="light"] .legal-list li,
html[data-theme="light"] .last-updated p,
body:not([data-theme="dark"]) .legal-text-content p,
body:not([data-theme="dark"]) .legal-list li,
body:not([data-theme="dark"]) .last-updated p {
  color: #6b7280 !important;
}

[data-theme="light"] .last-updated strong,
html[data-theme="light"] .last-updated strong,
body:not([data-theme="dark"]) .last-updated strong {
  color: #111827 !important;
}

/* Ensure all text elements are visible in dark theme */
[data-theme="dark"] .legal-text-content,
html[data-theme="dark"] .legal-text-content {
  background: rgba(255, 255, 255, 0.02) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .legal-text-content h3,
[data-theme="dark"] .legal-text-content h4,
html[data-theme="dark"] .legal-text-content h3,
html[data-theme="dark"] .legal-text-content h4 {
  color: #ffffff !important;
}

[data-theme="dark"] .legal-text-content p,
[data-theme="dark"] .legal-list li,
[data-theme="dark"] .last-updated p,
html[data-theme="dark"] .legal-text-content p,
html[data-theme="dark"] .legal-list li,
html[data-theme="dark"] .last-updated p {
  color: rgba(255, 255, 255, 0.8) !important;
}

[data-theme="dark"] .last-updated strong,
html[data-theme="dark"] .last-updated strong {
  color: #ffffff !important;
}

[data-theme="dark"] .last-updated {
  background: rgba(255, 255, 255, 0.05) !important;
}

/* Additional comprehensive text color fixes */
/* Make sure ALL text elements are visible */

/* Privacy Policy page specific - DEFAULT (Light theme) */
.privacy-policy-page .legal-text-content h3,
.privacy-policy-page .legal-text-content h4,
.privacy-policy-page .legal-text-content p,
.privacy-policy-page .legal-list li,
.privacy-policy-page .last-updated p,
.privacy-policy-page .last-updated strong {
  color: #111827 !important; /* Dark text for light theme */
}

.privacy-policy-page .legal-text-content p,
.privacy-policy-page .legal-list li,
.privacy-policy-page .last-updated p {
  color: #6b7280 !important; /* Gray text for light theme */
}

/* Terms pages specific - DEFAULT (Light theme) */
.terms-service-page .legal-text-content h3,
.terms-service-page .legal-text-content h4,
.terms-service-page .legal-text-content p,
.terms-service-page .legal-list li,
.terms-service-page .last-updated p,
.terms-service-page .last-updated strong,
.terms-return-page .legal-text-content h3,
.terms-return-page .legal-text-content h4,
.terms-return-page .legal-text-content p,
.terms-return-page .legal-list li,
.terms-return-page .last-updated p,
.terms-return-page .last-updated strong {
  color: #111827 !important; /* Dark text for light theme */
}

.terms-service-page .legal-text-content p,
.terms-service-page .legal-list li,
.terms-service-page .last-updated p,
.terms-return-page .legal-text-content p,
.terms-return-page .legal-list li,
.terms-return-page .last-updated p {
  color: #6b7280 !important; /* Gray text for light theme */
}

/* Dark theme overrides for all pages - ENHANCED HEADING VISIBILITY */
[data-theme="dark"] .privacy-policy-page .legal-text-content h3,
[data-theme="dark"] .privacy-policy-page .legal-text-content h4,
[data-theme="dark"] .privacy-policy-page .last-updated strong,
[data-theme="dark"] .terms-service-page .legal-text-content h3,
[data-theme="dark"] .terms-service-page .legal-text-content h4,
[data-theme="dark"] .terms-service-page .last-updated strong,
[data-theme="dark"] .terms-return-page .legal-text-content h3,
[data-theme="dark"] .terms-return-page .legal-text-content h4,
[data-theme="dark"] .terms-return-page .last-updated strong {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
  font-weight: 700 !important;
}

[data-theme="dark"] .privacy-policy-page .legal-text-content p,
[data-theme="dark"] .privacy-policy-page .legal-list li,
[data-theme="dark"] .privacy-policy-page .last-updated p,
[data-theme="dark"] .terms-service-page .legal-text-content p,
[data-theme="dark"] .terms-service-page .legal-list li,
[data-theme="dark"] .terms-service-page .last-updated p,
[data-theme="dark"] .terms-return-page .legal-text-content p,
[data-theme="dark"] .terms-return-page .legal-list li,
[data-theme="dark"] .terms-return-page .last-updated p {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Light theme overrides for all pages - ENHANCED HEADING VISIBILITY */
[data-theme="light"] .privacy-policy-page .legal-text-content h3,
[data-theme="light"] .privacy-policy-page .legal-text-content h4,
[data-theme="light"] .privacy-policy-page .last-updated strong,
[data-theme="light"] .terms-service-page .legal-text-content h3,
[data-theme="light"] .terms-service-page .legal-text-content h4,
[data-theme="light"] .terms-service-page .last-updated strong,
[data-theme="light"] .terms-return-page .legal-text-content h3,
[data-theme="light"] .terms-return-page .legal-text-content h4,
[data-theme="light"] .terms-return-page .last-updated strong,
body:not([data-theme="dark"]) .privacy-policy-page .legal-text-content h3,
body:not([data-theme="dark"]) .privacy-policy-page .legal-text-content h4,
body:not([data-theme="dark"]) .privacy-policy-page .last-updated strong,
body:not([data-theme="dark"]) .terms-service-page .legal-text-content h3,
body:not([data-theme="dark"]) .terms-service-page .legal-text-content h4,
body:not([data-theme="dark"]) .terms-service-page .last-updated strong,
body:not([data-theme="dark"]) .terms-return-page .legal-text-content h3,
body:not([data-theme="dark"]) .terms-return-page .legal-text-content h4,
body:not([data-theme="dark"]) .terms-return-page .last-updated strong {
  color: #111827 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5) !important;
  font-weight: 700 !important;
}

[data-theme="light"] .privacy-policy-page .legal-text-content p,
[data-theme="light"] .privacy-policy-page .legal-list li,
[data-theme="light"] .privacy-policy-page .last-updated p,
[data-theme="light"] .terms-service-page .legal-text-content p,
[data-theme="light"] .terms-service-page .legal-list li,
[data-theme="light"] .terms-service-page .last-updated p,
[data-theme="light"] .terms-return-page .legal-text-content p,
[data-theme="light"] .terms-return-page .legal-list li,
[data-theme="light"] .terms-return-page .last-updated p,
body:not([data-theme="dark"]) .privacy-policy-page .legal-text-content p,
body:not([data-theme="dark"]) .privacy-policy-page .legal-list li,
body:not([data-theme="dark"]) .privacy-policy-page .last-updated p,
body:not([data-theme="dark"]) .terms-service-page .legal-text-content p,
body:not([data-theme="dark"]) .terms-service-page .legal-list li,
body:not([data-theme="dark"]) .terms-service-page .last-updated p,
body:not([data-theme="dark"]) .terms-return-page .legal-text-content p,
body:not([data-theme="dark"]) .terms-return-page .legal-list li,
body:not([data-theme="dark"]) .terms-return-page .last-updated p {
  color: #6b7280 !important;
}

/* Universal fallback for any missed text elements */
.legal-section * {
  color: inherit !important;
}

.legal-text-content * {
  color: inherit !important;
}

/* DEFAULT (Light theme) - Force all h1-h6 to be visible - ENHANCED */
.legal-section h1,
.legal-section h2,
.legal-section h3,
.legal-section h4,
.legal-section h5,
.legal-section h6,
.legal-text-content h1,
.legal-text-content h2,
.legal-text-content h3,
.legal-text-content h4,
.legal-text-content h5,
.legal-text-content h6 {
  color: #111827 !important; /* Dark text for light theme */
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6) !important;
  font-weight: 700 !important;
}

/* DEFAULT (Light theme) - Force all paragraphs and spans to be visible */
.legal-section p,
.legal-section span,
.legal-text-content p,
.legal-text-content span,
.legal-list li {
  color: #6b7280 !important; /* Gray text for light theme */
}

/* Dark theme for universal elements - ENHANCED HEADING CONTRAST */
[data-theme="dark"] .legal-section h1,
[data-theme="dark"] .legal-section h2,
[data-theme="dark"] .legal-section h3,
[data-theme="dark"] .legal-section h4,
[data-theme="dark"] .legal-section h5,
[data-theme="dark"] .legal-section h6,
[data-theme="dark"] .legal-text-content h1,
[data-theme="dark"] .legal-text-content h2,
[data-theme="dark"] .legal-text-content h3,
[data-theme="dark"] .legal-text-content h4,
[data-theme="dark"] .legal-text-content h5,
[data-theme="dark"] .legal-text-content h6 {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4) !important;
  font-weight: 700 !important;
}

[data-theme="dark"] .legal-section p,
[data-theme="dark"] .legal-section span,
[data-theme="dark"] .legal-text-content p,
[data-theme="dark"] .legal-text-content span {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Light theme for universal elements */
[data-theme="light"] .legal-section h1,
[data-theme="light"] .legal-section h2,
[data-theme="light"] .legal-section h3,
[data-theme="light"] .legal-section h4,
[data-theme="light"] .legal-section h5,
[data-theme="light"] .legal-section h6,
[data-theme="light"] .legal-text-content h1,
[data-theme="light"] .legal-text-content h2,
[data-theme="light"] .legal-text-content h3,
[data-theme="light"] .legal-text-content h4,
[data-theme="light"] .legal-text-content h5,
[data-theme="light"] .legal-text-content h6,
body:not([data-theme="dark"]) .legal-section h1,
body:not([data-theme="dark"]) .legal-section h2,
body:not([data-theme="dark"]) .legal-section h3,
body:not([data-theme="dark"]) .legal-section h4,
body:not([data-theme="dark"]) .legal-section h5,
body:not([data-theme="dark"]) .legal-section h6,
body:not([data-theme="dark"]) .legal-text-content h1,
body:not([data-theme="dark"]) .legal-text-content h2,
body:not([data-theme="dark"]) .legal-text-content h3,
body:not([data-theme="dark"]) .legal-text-content h4,
body:not([data-theme="dark"]) .legal-text-content h5,
body:not([data-theme="dark"]) .legal-text-content h6 {
  color: #111827 !important;
}

[data-theme="light"] .legal-section p,
[data-theme="light"] .legal-section span,
[data-theme="light"] .legal-text-content p,
[data-theme="light"] .legal-text-content span,
body:not([data-theme="dark"]) .legal-section p,
body:not([data-theme="dark"]) .legal-section span,
body:not([data-theme="dark"]) .legal-text-content p,
body:not([data-theme="dark"]) .legal-text-content span {
  color: #6b7280 !important;
}

/* Dark Theme Adjustments */
[data-theme="dark"] .legal-link-card,
html[data-theme="dark"] .legal-link-card,
body[data-theme="dark"] .legal-link-card {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .legal-link-card:hover,
html[data-theme="dark"] .legal-link-card:hover,
body[data-theme="dark"] .legal-link-card:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--accent-primary) !important;
}

[data-theme="dark"] .legal-link-card::before,
html[data-theme="dark"] .legal-link-card::before,
body[data-theme="dark"] .legal-link-card::before {
  opacity: 0.05 !important;
}

[data-theme="dark"] .legal-link-card:hover::before,
html[data-theme="dark"] .legal-link-card:hover::before,
body[data-theme="dark"] .legal-link-card:hover::before {
  opacity: 0.08 !important;
}

/* Dark theme text colors */
[data-theme="dark"] .legal-link-content h3,
html[data-theme="dark"] .legal-link-content h3,
body[data-theme="dark"] .legal-link-content h3 {
  color: #ffffff !important;
}

[data-theme="dark"] .legal-link-content p,
html[data-theme="dark"] .legal-link-content p,
body[data-theme="dark"] .legal-link-content p {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Light theme explicit colors */
[data-theme="light"] .legal-link-card,
html[data-theme="light"] .legal-link-card,
body:not([data-theme="dark"]) .legal-link-card {
  background: #ffffff !important;
  border-color: #e5e7eb !important;
  color: #111827 !important;
}

[data-theme="light"] .legal-link-content h3,
html[data-theme="light"] .legal-link-content h3,
body:not([data-theme="dark"]) .legal-link-content h3 {
  color: #111827 !important;
}

[data-theme="light"] .legal-link-content p,
html[data-theme="light"] .legal-link-content p,
body:not([data-theme="dark"]) .legal-link-content p {
  color: #6b7280 !important;
}

/* Force text colors for all states */
.legal-link-card h3,
.legal-link-card .legal-link-content h3 {
  color: var(--text-primary) !important;
}

.legal-link-card p,
.legal-link-card .legal-link-content p {
  color: var(--text-secondary) !important;
}

/* Dark theme text overrides */
[data-theme="dark"] .legal-link-card h3,
[data-theme="dark"] .legal-link-card .legal-link-content h3,
html[data-theme="dark"] .legal-link-card h3,
html[data-theme="dark"] .legal-link-card .legal-link-content h3 {
  color: #ffffff !important;
}

[data-theme="dark"] .legal-link-card p,
[data-theme="dark"] .legal-link-card .legal-link-content p,
html[data-theme="dark"] .legal-link-card p,
html[data-theme="dark"] .legal-link-card .legal-link-content p {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Light theme text overrides */
[data-theme="light"] .legal-link-card h3,
[data-theme="light"] .legal-link-card .legal-link-content h3,
html[data-theme="light"] .legal-link-card h3,
html[data-theme="light"] .legal-link-card .legal-link-content h3,
body:not([data-theme="dark"]) .legal-link-card h3,
body:not([data-theme="dark"]) .legal-link-card .legal-link-content h3 {
  color: #111827 !important;
}

[data-theme="light"] .legal-link-card p,
[data-theme="light"] .legal-link-card .legal-link-content p,
html[data-theme="light"] .legal-link-card p,
html[data-theme="light"] .legal-link-card .legal-link-content p,
body:not([data-theme="dark"]) .legal-link-card p,
body:not([data-theme="dark"]) .legal-link-card .legal-link-content p {
  color: #6b7280 !important;
}

[data-theme="dark"] .legal-section {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .legal-text-content {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .last-updated {
  background: rgba(255, 255, 255, 0.05);
}

/* Responsive Design */
@media (max-width: 768px) {
  .terms-service-page,
  .privacy-policy-page,
  .terms-return-page {
    padding: 1rem 0;
  }

  .page-title {
    font-size: 2rem;
  }

  .page-description {
    font-size: 1rem;
  }

  .legal-section {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  .legal-section h2 {
    font-size: 1.5rem;
  }

  .legal-links-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .legal-link-card {
    padding: 1.5rem;
  }

  .legal-link-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
  }

  .legal-link-icon i {
    font-size: 1.2rem;
  }

  .legal-link-content h3 {
    font-size: 1.2rem;
  }

  .legal-text-content {
    padding: 1.5rem;
  }

  .legal-text-content h3 {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 1.8rem;
  }

  .legal-section {
    padding: 1rem;
  }

  .legal-section h2 {
    font-size: 1.3rem;
  }

  .legal-link-card {
    padding: 1rem;
  }

  .legal-link-icon {
    width: 45px;
    height: 45px;
  }

  .legal-link-content h3 {
    font-size: 1.1rem;
  }

  .legal-link-content p {
    font-size: 0.9rem;
  }

  .legal-link-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .legal-text-content {
    padding: 1rem;
  }

  .legal-text-content h3 {
    font-size: 1rem;
  }

  .legal-text-content p {
    font-size: 0.9rem;
  }
}

/* Animation for legal cards */
.legal-link-card {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.legal-link-card:nth-child(1) { animation-delay: 0.1s; }
.legal-link-card:nth-child(2) { animation-delay: 0.2s; }
.legal-link-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
  from { 
    opacity: 0; 
    transform: translateY(30px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* Focus states for accessibility */
.legal-link-button:focus,
.legal-link-card:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .legal-link-card {
    border-width: 3px;
  }
  
  .legal-link-card:hover {
    border-width: 3px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .legal-link-card,
  .legal-link-icon,
  .legal-link-button,
  .legal-section {
    transition: none;
    animation: none;
  }
  
  .legal-link-card:hover {
    transform: none;
  }
}


