/*
Theme Name: S. Rostami Automotive
Theme URI: https://example.com/srostami
Author: Your Name
Author URI: https://example.com
Description: Modern minimal automotive education & product theme for Saeid Rostami platform. Tailwind CSS, Swiper.js, WooCommerce-ready, RTL-friendly.
Version: 1.0.0
Text Domain: srostami
*/

/* IRANSans Font Face is loaded via functions.php with absolute paths */

/* Base layout helpers (most styling via Tailwind utilities) */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html {
  overflow-x: hidden;
  overflow-y: auto;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: auto;
  min-height: 100vh;
}

body {
  font-family: "IRANSans", "Shabnam", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif !important;
  background: transparent;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  font-size: 16px !important;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark Mode Styles */
html.dark body {
  background: #020617;
  color: #f1f5f9;
}

html:not(.dark) body {
  background: transparent;
  color: #0f172a;
}

html.dark {
  color-scheme: dark;
}

html:not(.dark) {
  color-scheme: light;
}

/* Dark mode toggle icons: sun when dark (click to go light), moon when light (click to go dark) */
#dark-mode-icon-sun,
#dark-mode-icon-sun-mobile {
  display: none !important;
}
#dark-mode-icon-moon,
#dark-mode-icon-moon-mobile {
  display: block !important;
}
html.dark #dark-mode-icon-sun,
html.dark #dark-mode-icon-sun-mobile {
  display: block !important;
}
html.dark #dark-mode-icon-moon,
html.dark #dark-mode-icon-moon-mobile {
  display: none !important;
}

/* Instant theme switch: disable transitions during toggle to avoid lag */
html.theme-switching body,
html.theme-switching .glass-surface,
html.theme-switching .glass-soft,
html.theme-switching .glass-header {
  transition: none !important;
}

/* Ensure consistent font on mobile */
@media (max-width: 767px) {
  body,
  html {
    font-family: "IRANSans", "Shabnam", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
      sans-serif !important;
    font-size: 16px !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
  }
  
  * {
    font-family: "IRANSans", "Shabnam", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
      sans-serif !important;
  }
}

body.rtl {
  direction: rtl;
}

/* IRANSans font for Persian content */
.font-shabnam,
.font-iransans,
body {
  font-family: "IRANSans", "Shabnam", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif !important;
}

/* Force IRANSans font on all elements */
* {
  font-family: "IRANSans", "Shabnam", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif !important;
}

/* Override Tailwind font utilities to use IRANSans */
.font-sans,
.font-serif,
.font-mono {
  font-family: "IRANSans", "Shabnam", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif !important;
}

/* Glassmorphism shell */
.glass-surface {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

html.dark .glass-surface {
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid rgba(71, 85, 105, 0.3);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.3);
}

html:not(.dark) .glass-surface {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
}

.glass-soft {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

html.dark .glass-soft {
  background: rgba(30, 41, 59, 0.82);
  border: 1px solid rgba(71, 85, 105, 0.25);
}

html:not(.dark) .glass-soft {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.glass-header {
  background: rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

html.dark .glass-header {
  background: rgba(30, 41, 59, 0.86);
  border: 1px solid rgba(71, 85, 105, 0.3);
}

html:not(.dark) .glass-header {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.shadow-soft {
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.12);
}

/* Animated atmospheric gradient background */

.gradient-shell {
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}

.gradient-shell::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 20% 30%, rgba(239, 68, 68, 0.35), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.38), transparent 50%),
    radial-gradient(circle at 15% 80%, rgba(239, 68, 68, 0.30), transparent 55%),
    radial-gradient(circle at 85% 75%, rgba(59, 130, 246, 0.32), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.25), transparent 60%),
    radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.28), transparent 58%),
    radial-gradient(circle at 70% 30%, rgba(239, 68, 68, 0.25), transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.25), transparent 60%);
  opacity: 1;
  filter: blur(100px);
  -webkit-filter: blur(100px);
  z-index: -2;
  transform-origin: center center;
  animation: gradientFloatRotate 15s ease-in-out infinite;
  will-change: transform;
  pointer-events: none;
}

.gradient-shell::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.75) 50%, rgba(255, 255, 255, 0.55) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: -1;
  pointer-events: none;
  animation: gradientOverlay 10s ease-in-out infinite alternate;
}

/* Dark Mode for Gradient Overlay */
html.dark .gradient-shell::after {
  background: 
    linear-gradient(135deg, rgba(2, 6, 23, 0.85) 0%, rgba(2, 6, 23, 0.95) 50%, rgba(2, 6, 23, 0.85) 100%);
}

html:not(.dark) .gradient-shell::after {
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.75) 50%, rgba(255, 255, 255, 0.55) 100%);
}

@keyframes gradientFloatRotate {
  0% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }
  20% {
    transform: translate3d(-12rem, 10rem, 0) scale(1.2) rotate(72deg);
  }
  40% {
    transform: translate3d(10rem, -12rem, 0) scale(1.15) rotate(144deg);
  }
  60% {
    transform: translate3d(-10rem, 11rem, 0) scale(1.22) rotate(216deg);
  }
  80% {
    transform: translate3d(11rem, -10rem, 0) scale(1.18) rotate(288deg);
  }
  100% {
    transform: translate3d(12rem, -11rem, 0) scale(1.2) rotate(360deg);
  }
}

@keyframes gradientOverlay {
  0% {
    opacity: 0.70;
  }
  50% {
    opacity: 0.60;
  }
  100% {
    opacity: 0.70;
  }
}

/* Sticky floating header behaviour */

.site-header-shell {
  height: 80px;
  min-height: 80px;
  max-height: 80px;
  display: flex;
  align-items: center;
  transition: transform 220ms ease, box-shadow 220ms ease,
    background-color 220ms ease, border-color 220ms ease, padding 200ms ease,
    border-radius 200ms ease;
}

.site-header-shell.is-scrolled {
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(148, 163, 184, 0.5);
  transform: translateY(0);
  height: 70px;
  min-height: 70px;
  max-height: 70px;
}

.site-header-shell.is-scrolled .site-logo-text {
  font-size: 0.9rem;
}

/* Ensure logo doesn't break header height */
.site-header-shell img,
.site-header-shell .custom-logo-link img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.site-header-shell .shrink-0 img {
  max-height: 48px;
  max-width: 160px;
  height: auto;
  width: auto;
  object-fit: contain;
}

/* Simple micro interactions */

.link-soft {
  position: relative;
}

.link-soft::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -0.35rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease-out;
}

.link-soft:hover::after,
.link-soft:focus-visible::after {
  transform: scaleX(1);
}

.btn-soft {
  transition: transform 140ms ease, box-shadow 140ms ease,
    background-color 160ms ease, color 160ms ease;
}

.btn-soft:hover,
.btn-soft:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(96, 165, 250, 0.4);
}

.card-hover {
  border-radius: 1.25rem;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  transition: transform 200ms ease, box-shadow 200ms ease,
    border-color 200ms ease, background-color 200ms ease;
  text-decoration: none;
  color: inherit;
}

.card-hover:hover,
.card-hover:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
  border-color: rgba(129, 140, 248, 0.6);
  text-decoration: none;
  color: inherit;
}

/* Swiper tweaks */

.swiper {
  padding-block: 0.5rem 2.5rem;
  width: 100%;
  height: 100%;
}

.swiper-slide {
  height: auto;
  display: flex;
  align-items: stretch;
}
.swiper-button-next:after, .swiper-button-prev:after {
  font-size: 28px !important;
}
.swiper-button-next, .swiper-button-prev {
  margin-top: 0;
 padding: 0;
  width: 40px;
  height: 50px;
  text-align: center;
  border-radius: 12px;
}
/* Homepage product cards - Equal height */
.swiper-slide {
  height: auto !important;
  display: flex !important;
  align-items: stretch !important;
}

.swiper-slide .homepage-product-card {
  height: 100% !important;
  min-height: 380px !important; /* Minimum height to ensure consistency */
  display: flex !important;
  flex-direction: column !important;
}

.swiper-slide .homepage-product-card .product-card-wrapper {
  height: 100% !important;
  min-height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
}

.swiper-slide .homepage-product-card .product-image-wrapper {
  flex-shrink: 0 !important;
  min-height: 200px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.swiper-slide .homepage-product-card .product-content-wrapper {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}

/* Ensure price section always takes same space */
.swiper-slide .homepage-product-card .product-price-section {
  min-height: 60px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

/* Title with fixed max height */
.swiper-slide .homepage-product-card .woocommerce-loop-product__title {
  min-height: 2.5rem !important;
  max-height: 3rem !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
}

/* Rating section - fixed height */
.swiper-slide .homepage-product-card .flex.items-center.justify-center.gap-1 {
  min-height: 1.5rem !important;
  margin-top: 0.5rem !important;
}

.swiper-pagination-bullet {
  width: 7px;
  height: 7px;
  background: rgba(148, 163, 184, 0.9);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

.swiper-button-next,
.swiper-button-prev {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: #3b82f6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 10;
  margin-top: 0;
  top: 50%;
  transform: translateY(-50%);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: #3b82f6;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
  transform: translateY(-50%) scale(1.05);
}

.swiper-button-next:active,
.swiper-button-prev:active {
  transform: translateY(-50%) scale(0.95);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px;
  font-weight: 700;
}

.swiper-button-next {
  right: 10px;
}

.swiper-button-prev {
  left: 10px;
}

/* RTL support for swiper buttons */
body.rtl .swiper-button-next {
  left: 10px;
  right: auto;
}

body.rtl .swiper-button-prev {
  right: 10px;
  left: auto;
}

/* Dark mode for swiper buttons */
html.dark .swiper-button-next,
html.dark .swiper-button-prev {
  background: #1e293b;
  color: #60a5fa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

html.dark .swiper-button-next:hover,
html.dark .swiper-button-prev:hover {
  background: #3b82f6;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.5);
}

/* Woo product tags inside cards */

.product-badge {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 0.7rem !important;
  padding: 0.25rem 0.75rem !important;
  border-radius: 999px !important;
  background: rgba(59, 130, 246, 0.1) !important;
  color: #0f172a !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

/* Product card title spacing */
.woocommerce-loop-product__title {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0.9375rem !important; /* 15px - Desktop */
  line-height: 1.5 !important;
  font-weight: 500 !important; /* medium */
  text-align: center !important;
}

.woocommerce-loop-product__title a {
  display: block !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  color: #1e293b !important;
  text-decoration: none !important;
  text-align: center !important;
}

html.dark .woocommerce-loop-product__title a {
  color: #f1f5f9 !important;
}

/* Product Discount Badge */
.product-discount-badge {
  font-size: 0.75rem !important;
  line-height: 1.2 !important;
  padding: 0.25rem 0.5rem !important;
  background-color: #dc2626 !important;
  color: #ffffff !important;
  border-radius: 0.25rem !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* Product Price Styling */
/* Product Price Section - Digikala Style */
.product-price-section {
  margin: 0 !important;
  padding: 0 !important;
}

.product-price-regular {
  font-size: 0.75rem !important; /* 12px - Desktop */
  font-weight: 400 !important; /* normal */
  color: #cbd5e1 !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  padding: 0 !important;
}

html.dark .product-price-regular {
  color: #64748b !important;
}

.product-price-current-wrapper {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.product-price-current {
  font-size: 1.125rem !important; /* 18px - Desktop */
  font-weight: 700 !important; /* bold */
  color: #1e293b !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  padding: 0 !important;
}

html.dark .product-price-current {
  color: #f1f5f9 !important;
}

.product-price-currency {
  font-size: 0.6875rem !important; /* 11px - Desktop */
  font-weight: 400 !important; /* normal */
  color: #94a3b8 !important;
  margin-top: 0.125rem !important;
  line-height: 1.2 !important;
}

html.dark .product-price-currency {
  color: #64748b !important;
}

.product-discount-badge {
  font-size: 0.6875rem !important; /* 11px - Desktop */
  font-weight: 600 !important; /* semibold */
  background-color: #dc2626 !important;
  color: #ffffff !important;
  padding: 0.1875rem 0.4375rem !important;
  border-radius: 0.25rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  line-height: 1.2 !important;
  min-width: 2rem !important;
}

/* Footer credit separation */

.footer-credit {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

/* Ensure images are responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Fix for RTL layout */
body.rtl .swiper-button-next {
  left: 10px;
  right: auto;
}

body.rtl .swiper-button-prev {
  right: 10px;
  left: auto;
}

/* Ensure proper spacing and layout */
section {
  scroll-margin-top: 100px;
}

/* WooCommerce shop page styles - CRITICAL: Must override Tailwind and WooCommerce */
.products-wrapper {
  width: 100% !important;
  display: block !important;
}

/* Shop loop header - Sorting and Results Count */
.woocommerce .woocommerce-ordering,
.woocommerce .woocommerce-result-count {
  margin: 0 !important;
  padding: 0 !important;
}

/* RTL support for shop header */
body.rtl .shop-sorting {
  order: 1 !important;
}

body.rtl .shop-results {
  order: 2 !important;
}

@media (min-width: 640px) {
  body.rtl .shop-sorting {
    order: 1 !important;
  }
  
  body.rtl .shop-results {
    order: 2 !important;
  }
}

.woocommerce .woocommerce-ordering select {
  padding: 0.5rem 2.5rem 0.5rem 0.75rem !important;
  border-radius: 0.5rem !important;
  border: 1px solid rgba(148, 163, 184, 0.3) !important;
  background: white !important;
  font-size: 0.875rem !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230f172a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: left 0.75rem center !important;
  background-size: 1rem !important;
  padding-right: 2.5rem !important;
  padding-left: 0.75rem !important;
}

body.rtl .woocommerce .woocommerce-ordering select {
  background-position: right 0.75rem center !important;
  padding-left: 2.5rem !important;
  padding-right: 0.75rem !important;
}

.woocommerce .woocommerce-result-count {
  font-size: 0.875rem !important;
  color: #0f172a !important;
  white-space: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Force grid on products list - highest priority */
.products-wrapper > ul.products,
.woocommerce .products-wrapper ul.products,
.woocommerce ul.products,
ul.products.products,
.products-wrapper ul.products {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
  clear: both !important;
  border: none !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  overflow: visible !important;
}

html.dark .products-wrapper > ul.products,
html.dark .woocommerce .products-wrapper ul.products,
html.dark .woocommerce ul.products,
html.dark ul.products.products,
html.dark .products-wrapper ul.products {
  border: none !important;
  background-color: transparent !important;
}

/* Responsive: List view for mobile (like Digikala) */
@media (max-width: 1023px) {
  .products-wrapper > ul.products,
  .woocommerce .products-wrapper ul.products,
  .woocommerce ul.products,
  ul.products.products,
  .products-wrapper ul.products {
    border: none !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
  
  .woocommerce ul.products li.product,
  .woocommerce ul.products li,
  ul.products li.product,
  ul.products li {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-radius: 0 !important;
    background-color: #ffffff !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Product Card Wrapper - Mobile Layout */
  .woocommerce ul.products li.product .product-card-wrapper {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    align-items: stretch !important;
  }
  
  /* Product Image - 40% width, determines card height */
  .woocommerce ul.products li.product .product-image-wrapper {
    width: 40% !important;
    height: auto !important;
    min-height: 120px !important;
    flex-shrink: 0 !important;
    background-color: #ffffff !important;
    display: block !important;
    position: relative !important;
  }
  
  .woocommerce ul.products li.product .product-image-wrapper img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
  }
  
  /* Product card height equals image height */
  .woocommerce ul.products li.product {
    align-items: stretch !important;
    height: auto !important;
  }
  
  .woocommerce ul.products li.product .product-card-wrapper {
    height: 100% !important;
  }
  
  /* Product Content - 60% width, matches image height exactly */
  .woocommerce ul.products li.product .product-content-wrapper {
    width: 60% !important;
    flex: 1 !important;
    padding: 0.75rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    height: 100% !important;
    align-self: stretch !important;
    overflow: hidden !important;
  }
  
  .woocommerce ul.products li.product:last-child {
    border-bottom: 1px solid #e5e7eb !important;
  }
  
  .woocommerce ul.products li.product:hover {
    background-color: #f8fafc !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px) !important;
    transition: all 0.3s ease !important;
  }
  
  /* Mobile Typography - Smaller Sizes, Less Bold */
  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.8125rem !important; /* 13px - Mobile */
    line-height: 1.5 !important;
    margin-bottom: 0.5rem !important;
    font-weight: 500 !important; /* medium */
    text-align: center !important;
  }
 
  .woocommerce ul.products li.product .product-price-regular {
    font-size: 0.625rem !important; /* 10px - Mobile (reduced) */
  }
  
  .woocommerce ul.products li.product .product-price-current {
    font-size: 0.875rem !important; /* 14px - Mobile (reduced) */
    font-weight: 500 !important; /* medium (less bold) */
  }
  
  .woocommerce ul.products li.product .product-price-currency {
    font-size: 0.5625rem !important; /* 9px - Mobile (reduced) */
  }
  
  .woocommerce ul.products li.product .product-discount-badge {
    font-size: 0.5625rem !important; /* 9px - Mobile (reduced) */
    padding: 0.125rem 0.375rem !important;
    min-width: 1.75rem !important;
    font-weight: 500 !important; /* medium (less bold) */
  }
  
  html.dark .woocommerce ul.products li.product {
    border-color: #334155 !important;
    border-bottom-color: #334155 !important;
    background-color: #1e293b !important;
  }
  
  html.dark .woocommerce ul.products li.product:last-child {
    border-bottom-color: #334155 !important;
  }
  
  html.dark .woocommerce ul.products li.product:hover {
    background-color: #1e293b !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-2px) !important;
    transition: all 0.3s ease !important;
  }
  
  .woocommerce ul.products li.product > a {
    flex-shrink: 0 !important;
    width: 120px !important;
    height: 120px !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    border-radius: 0.5rem !important;
    overflow: hidden !important;
    display: block !important;
  }
  
  .woocommerce ul.products li.product > a img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }
  
  .woocommerce ul.products li.product > .flex-1,
  .woocommerce ul.products li.product > div:not(:first-child) {
    flex: 1 !important;
    min-width: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  /* Ensure first div (content wrapper) is flex */
  .woocommerce ul.products li.product > div.flex-1 {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.875rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.5rem !important;
  }
  
  .woocommerce ul.products li.product .price {
    font-size: 1rem !important;
    margin-top: auto !important;
  }
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
ul.products::before,
ul.products::after,
.products-wrapper ul.products::before,
.products-wrapper ul.products::after {
  display: none !important;
  content: none !important;
}

@media (min-width: 640px) and (max-width: 1023px) {
  .products-wrapper > ul.products,
  .woocommerce .products-wrapper ul.products,
  .woocommerce ul.products,
  ul.products.products,
  .products-wrapper ul.products {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
}

@media (min-width: 1024px) {
  .products-wrapper > ul.products,
  .woocommerce .products-wrapper ul.products,
  .woocommerce ul.products,
  ul.products.products,
  .products-wrapper ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background-color: transparent !important;
  }
  
  /* Desktop: Each product card has border on all sides except shared borders */
  .woocommerce ul.products li.product {
    border: 1px solid #e5e7eb !important;
    border-right: none !important;
    margin: 0 !important;
  }
  
  .woocommerce ul.products li.product:nth-child(3n) {
    border-right: 1px solid #e5e7eb !important;
  }
  
  .woocommerce ul.products li.product:hover {
    background-color: #f8fafc !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px) !important;
    transition: all 0.3s ease !important;
  }
  
  .woocommerce ul.products li.product:nth-child(3n):hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  }
  
  .woocommerce ul.products li.product:nth-child(n+4) {
    border-top: none !important;
  }
  
  /* Desktop: Product card wrapper - column layout */
  .woocommerce ul.products li.product .product-card-wrapper {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }
  
  /* Desktop: Product image full width */
  .woocommerce ul.products li.product .product-image-wrapper {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
  }
  
  .woocommerce ul.products li.product .product-image-wrapper img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
  
  /* Desktop: Product content full width */
  .woocommerce ul.products li.product .product-content-wrapper {
    width: 100% !important;
  }
  
  /* Desktop: Typography */
  /* Desktop Typography - Standard Sizes */
  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.9375rem !important; /* 15px - Desktop */
    line-height: 1.5 !important;
    font-weight: 500 !important; /* medium */
    text-align: center !important;
  }
  
  .woocommerce ul.products li.product .product-price-regular {
    font-size: 0.75rem !important; /* 12px - Desktop */
  }
  
  .woocommerce ul.products li.product .product-price-current {
    font-size: 1.125rem !important; /* 18px - Desktop */
  }
  
  .woocommerce ul.products li.product .product-price-currency {
    font-size: 0.6875rem !important; /* 11px - Desktop */
  }
  
  .woocommerce ul.products li.product .product-discount-badge {
    font-size: 0.6875rem !important; /* 11px - Desktop */
    padding: 0.1875rem 0.4375rem !important;
    min-width: 2rem !important;
  }
  
  .woocommerce ul.products li.product .product-discount-badge {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
  }
  
  /* Desktop: Product image full width */
  .woocommerce ul.products li.product > a {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }
  
  .woocommerce ul.products li.product > a img {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }
  
  html.dark .woocommerce ul.products li.product {
    border-color: #334155 !important;
  }
  
  html.dark .woocommerce ul.products li.product:nth-child(3n) {
    border-right-color: #334155 !important;
  }
  
  html.dark .woocommerce ul.products li.product:hover {
    background-color: #1e293b !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-2px) !important;
    transition: all 0.3s ease !important;
  }
  
  html.dark .woocommerce ul.products li.product:nth-child(3n):hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  }
}

@media (min-width: 1280px) {
  .products-wrapper > ul.products,
  .woocommerce .products-wrapper ul.products,
  .woocommerce ul.products,
  ul.products.products,
  .products-wrapper ul.products {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background-color: transparent !important;
  }
  
  /* Large Desktop Typography - Standard Sizes */
  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.9375rem !important; /* 15px - Large Desktop */
    line-height: 1.5 !important;
    font-weight: 500 !important; /* medium */
    text-align: center !important;
  }
  
  .woocommerce ul.products li.product .product-price-regular {
    font-size: 0.75rem !important; /* 12px - Large Desktop */
  }
  
  .woocommerce ul.products li.product .product-price-current {
    font-size: 1.125rem !important; /* 18px - Large Desktop */
  }
  
  .woocommerce ul.products li.product .product-price-currency {
    font-size: 0.6875rem !important; /* 11px - Large Desktop */
  }
  
  .woocommerce ul.products li.product .product-discount-badge {
    font-size: 0.6875rem !important; /* 11px - Large Desktop */
    padding: 0.1875rem 0.4375rem !important;
    min-width: 2rem !important;
  }
  
  .woocommerce ul.products li.product .product-discount-badge {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
  }
  
  /* Large Desktop: Product card wrapper - column layout */
  .woocommerce ul.products li.product .product-card-wrapper {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }
  
  /* Large Desktop: Product image full width */
  .woocommerce ul.products li.product .product-image-wrapper {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
  }
  
  .woocommerce ul.products li.product .product-image-wrapper img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
  
  /* Large Desktop: Product content full width */
  .woocommerce ul.products li.product .product-content-wrapper {
    width: 100% !important;
  }
  
  /* Large Desktop: Each product card has border on all sides except shared borders */
  .woocommerce ul.products li.product {
    border: 1px solid #e5e7eb !important;
    border-right: none !important;
    margin: 0 !important;
  }
  
  /* Large Desktop: Product image full width */
  .woocommerce ul.products li.product > a {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }
  
  .woocommerce ul.products li.product > a img {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }
  
  .woocommerce ul.products li.product:nth-child(4n) {
    border-right: 1px solid #e5e7eb !important;
  }
  
  .woocommerce ul.products li.product:nth-child(n+5) {
    border-top: none !important;
  }
  
  html.dark .woocommerce ul.products li.product {
    border-color: #334155 !important;
  }
  
  html.dark .woocommerce ul.products li.product:nth-child(4n) {
    border-right-color: #334155 !important;
  }
  
  html.dark .woocommerce ul.products li.product:hover {
    background-color: #1e293b !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-2px) !important;
    transition: all 0.3s ease !important;
  }
  
  html.dark .woocommerce ul.products li.product:nth-child(4n):hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  }
}

/* Ensure product cards take full width in grid - Override everything */
.products-wrapper ul.products li,
.woocommerce .products-wrapper ul.products li,
.woocommerce ul.products li,
.woocommerce ul.products li.product,
ul.products li,
ul.products li.product {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  list-style: none !important;
  display: flex !important;
  float: none !important;
  clear: none !important;
  position: relative !important;
  padding: 0 !important;
}

/* Ensure product card content has proper padding */
.woocommerce ul.products li.product .glass-surface {
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

/* Product Cards - Digikala Style (No Shadow, Simple Border, Connected) */
.woocommerce ul.products li.product {
  background-color: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-bottom: 1px solid #e5e7eb !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: all 0.3s ease !important;
  margin: 0 !important;
  margin-bottom: 0 !important;
  margin-top: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Product Image - Full Width, No Padding */
.woocommerce ul.products li.product > a {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  display: block !important;
}

.woocommerce ul.products li.product > a img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.woocommerce ul.products li.product:hover {
  background-color: #f8fafc !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  transform: translateY(-2px) !important;
  transition: all 0.3s ease !important;
}

.woocommerce ul.products li.product:last-child {
  border-bottom: 1px solid #e5e7eb !important;
}

html.dark .woocommerce ul.products li.product {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  border-bottom-color: #334155 !important;
}

html.dark .woocommerce ul.products li.product:hover {
  background-color: #1e293b !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  transform: translateY(-2px) !important;
  transition: all 0.3s ease !important;
}

html.dark .woocommerce ul.products li.product:last-child {
  border-bottom-color: #374151 !important;
}

/* Product price styling */
.woocommerce ul.products li.product .price {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
}

/* Product description spacing */
.woocommerce ul.products li.product p {
  margin-bottom: 1rem !important;
  line-height: 1.5 !important;
}

/* Override WooCommerce default layout styles - Force grid layout */
.woocommerce ul.products li.product,
ul.products li.product,
.products-wrapper ul.products li.product,
.woocommerce-page ul.products li.product {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  clear: none !important;
  display: block !important;
  position: relative !important;
}

/* Reset WooCommerce columns classes - Override all column-based layouts */
.woocommerce.columns-1 ul.products li.product,
.woocommerce.columns-2 ul.products li.product,
.woocommerce.columns-3 ul.products li.product,
.woocommerce.columns-4 ul.products li.product,
.woocommerce.columns-5 ul.products li.product,
.woocommerce.columns-6 ul.products li.product,
.woocommerce-page.columns-1 ul.products li.product,
.woocommerce-page.columns-2 ul.products li.product,
.woocommerce-page.columns-3 ul.products li.product,
.woocommerce-page.columns-4 ul.products li.product {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Override WooCommerce clearfix */
.woocommerce ul.products::before,
.woocommerce-page ul.products::before {
  display: none !important;
  content: none !important;
}

/* WooCommerce buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product .add_to_cart_button,
.woocommerce ul.products li.product .btn-soft {
  background: #3b82f6 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 0.375rem !important;
  padding: 0.5rem 0.75rem !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce ul.products li.product a.button:hover {
  background: #2563eb !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 12px 30px rgba(96, 165, 250, 0.4) !important;
}

/* WooCommerce product images */
.woocommerce div.product div.images,
.woocommerce #content div.product div.images {
  width: 100%;
  float: none;
  margin: 0;
}

.woocommerce div.product div.summary,
.woocommerce #content div.product div.summary {
  width: 100%;
  float: none;
  margin: 0;
}

.woocommerce div.product .woocommerce-product-gallery__image img {
  border-radius: 1.25rem;
}

/* WooCommerce price - Currency on left */
.woocommerce .price {
  color: #3b82f6;
  font-weight: 600;
  direction: ltr !important;
  text-align: left !important;
  display: inline-block !important;
  unicode-bidi: embed !important;
}

/* Price elements - Keep currency on left */
.woocommerce .price .woocommerce-Price-currencySymbol,
.woocommerce .price .woocommerce-Price-amount,
.woocommerce .price span,
.woocommerce .price del,
.woocommerce .price ins {
  direction: ltr !important;
  display: inline !important;
  unicode-bidi: embed !important;
}

/* Ensure price container respects currency position */
.woocommerce .price bdi,
.woocommerce .price .amount {
  direction: ltr !important;
  unicode-bidi: embed !important;
}

/* WooCommerce tabs - Custom Implementation */
.woocommerce-tabs-wrapper {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce-tabs-wrapper .tabs-list {
  display: flex !important;
  flex-direction: row !important;
  list-style: none !important;
  margin: 0 0 2rem 0 !important;
  padding: 0 !important;
  border-bottom: 2px solid rgba(148, 163, 184, 0.2) !important;
  gap: 0 !important;
  flex-wrap: wrap !important;
  width: 100% !important;
}

.woocommerce-tabs-wrapper .tabs-list::before,
.woocommerce-tabs-wrapper .tabs-list::after {
  display: none !important;
  content: none !important;
}

.woocommerce-tabs-wrapper .tabs-list .tab-item {
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  display: block !important;
  position: relative !important;
}

.woocommerce-tabs-wrapper .tabs-list .tab-item::before,
.woocommerce-tabs-wrapper .tabs-list .tab-item::after {
  display: none !important;
  content: none !important;
}

.woocommerce-tabs-wrapper .tabs-list .tab-item .tab-link {
  display: block !important;
  padding: 1rem 1.5rem !important;
  color: #64748b !important;
  text-decoration: none !important;
  border-bottom: 3px solid transparent !important;
  transition: all 0.3s ease !important;
  font-weight: 500 !important;
  font-size: 0.9375rem !important;
  background: transparent !important;
  position: relative !important;
  margin-bottom: -2px !important;
  cursor: pointer !important;
  border-radius: 0 !important;
}

.woocommerce-tabs-wrapper .tabs-list .tab-item.active .tab-link,
.woocommerce-tabs-wrapper .tabs-list .tab-item .tab-link:hover {
  color: #0f172a !important;
  border-bottom-color: #3b82f6 !important;
  background: rgba(59, 130, 246, 0.05) !important;
}

.woocommerce-tabs-wrapper .tabs-content {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce-tabs-wrapper .tabs-content .tab-panel {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  width: 100% !important;
  animation: fadeIn 0.3s ease !important;
}

.woocommerce-tabs-wrapper .tabs-content .tab-panel.active {
  display: block !important;
}

.woocommerce-tabs-wrapper .tabs-content .tab-panel h2 {
  display: none !important;
}

.woocommerce-tabs-wrapper .tabs-content .tab-panel p,
.woocommerce-tabs-wrapper .tabs-content .tab-panel div {
  color: #475569 !important;
  line-height: 1.75 !important;
  margin-bottom: 1rem !important;
}

.woocommerce-tabs-wrapper .tabs-content .tab-panel table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 1rem 0 !important;
}

.woocommerce-tabs-wrapper .tabs-content .tab-panel table th,
.woocommerce-tabs-wrapper .tabs-content .tab-panel table td {
  padding: 0.75rem 1rem !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2) !important;
  text-align: right !important;
}

.woocommerce-tabs-wrapper .tabs-content .tab-panel table th {
  font-weight: 600 !important;
  color: #0f172a !important;
  background: rgba(148, 163, 184, 0.05) !important;
}

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

/* Legacy WooCommerce tabs support */
.woocommerce div.product .woocommerce-tabs {
  margin-top: 0 !important;
  width: 100% !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  border-bottom: 2px solid rgba(148, 163, 184, 0.2) !important;
  margin: 0 0 2rem 0 !important;
  padding: 0 !important;
  list-style: none !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 0.5rem !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
  width: 100% !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs::after {
  display: none !important;
  content: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  display: block !important;
  position: relative !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
  display: none !important;
  content: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: block !important;
  padding: 0.875rem 1.5rem !important;
  color: #64748b !important;
  text-decoration: none !important;
  border-bottom: 3px solid transparent !important;
  transition: all 0.3s ease !important;
  font-weight: 500 !important;
  font-size: 0.9375rem !important;
  border-radius: 0.5rem 0.5rem 0 0 !important;
  background: transparent !important;
  position: relative !important;
  margin-bottom: -2px !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
  color: #0f172a !important;
  border-bottom-color: #3b82f6 !important;
  background: rgba(59, 130, 246, 0.05) !important;
}

.woocommerce div.product .woocommerce-tabs .panel {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  width: 100% !important;
  clear: both !important;
}

.woocommerce div.product .woocommerce-tabs .panel h2 {
  display: none !important;
}

.woocommerce div.product .woocommerce-tabs .panel.woocommerce-Tabs-panel--description,
.woocommerce div.product .woocommerce-tabs .panel.woocommerce-Tabs-panel--additional_information,
.woocommerce div.product .woocommerce-tabs .panel.woocommerce-Tabs-panel--reviews {
  padding: 0 !important;
  margin: 0 !important;
}

.woocommerce div.product .woocommerce-tabs .panel p,
.woocommerce div.product .woocommerce-tabs .panel div {
  color: #475569 !important;
  line-height: 1.75 !important;
  margin-bottom: 1rem !important;
}

.woocommerce div.product .woocommerce-tabs .panel table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 1rem 0 !important;
}

.woocommerce div.product .woocommerce-tabs .panel table th,
.woocommerce div.product .woocommerce-tabs .panel table td {
  padding: 0.75rem 1rem !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2) !important;
  text-align: right !important;
}

.woocommerce div.product .woocommerce-tabs .panel table th {
  font-weight: 600 !important;
  color: #0f172a !important;
  background: rgba(148, 163, 184, 0.05) !important;
}

/* WooCommerce Reviews & Ratings */
.woocommerce #reviews {
  margin-top: 0 !important;
  padding: 0 !important;
}

.woocommerce #reviews h2 {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-bottom: 1.5rem !important;
  padding-bottom: 1rem !important;
  border-bottom: 2px solid rgba(148, 163, 184, 0.2) !important;
}

/* Star Ratings - Display in Comments */
.woocommerce .star-rating {
  float: right !important;
  position: relative !important;
  height: 1.2em !important;
  line-height: 1.2em !important;
  font-size: 1em !important;
  width: 5.5em !important;
  font-family: "Font Awesome 6 Free" !important;
  overflow: hidden !important;
  margin: 0 !important;
  display: inline-block !important;
  direction: ltr !important;
  text-align: right !important;
}

.woocommerce .star-rating::before {
  content: "\f005\f005\f005\f005\f005" !important;
  color: #d1d5db !important;
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  font-weight: 400 !important;
  letter-spacing: 0.15em !important;
  white-space: nowrap !important;
}

.woocommerce .star-rating span {
  overflow: hidden !important;
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  height: 100% !important;
  width: 100% !important;
  display: block !important;
}

.woocommerce .star-rating span::before {
  content: "\f005\f005\f005\f005\f005" !important;
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  color: #fbbf24 !important;
  font-weight: 900 !important;
  letter-spacing: 0.15em !important;
  white-space: nowrap !important;
}

/* Review List */
.woocommerce #reviews #comments {
  margin: 0 0 2rem 0 !important;
  padding: 0 !important;
}

.woocommerce #reviews #comments ol.commentlist {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.woocommerce #reviews #comments ol.commentlist li {
  margin: 0 0 2rem 0 !important;
  padding: 1.5rem !important;
  background: rgba(255, 255, 255, 0.5) !important;
  border-radius: 1rem !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  list-style: none !important;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text {
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

.woocommerce #reviews #comments ol.commentlist li .meta {
  margin-bottom: 0.75rem !important;
}

.woocommerce #reviews #comments ol.commentlist li .meta strong {
  font-weight: 600 !important;
  color: #0f172a !important;
  font-size: 1rem !important;
}

.woocommerce #reviews #comments ol.commentlist li .meta time {
  color: #64748b !important;
  font-size: 0.875rem !important;
  margin-right: 0.5rem !important;
}

.woocommerce #reviews #comments ol.commentlist li .description {
  color: #475569 !important;
  line-height: 1.75 !important;
  margin-top: 0.75rem !important;
}

/* Review Form */
.woocommerce #review_form {
  margin-top: 2rem !important;
  padding: 2rem !important;
  background: rgba(255, 255, 255, 0.5) !important;
  border-radius: 1rem !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
}

.woocommerce #review_form #respond {
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce #review_form #respond h3 {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-bottom: 1.5rem !important;
}

.woocommerce #review_form #respond .comment-form-rating {
  margin-bottom: 1.5rem !important;
}

.woocommerce #review_form #respond .comment-form-rating label {
  display: block !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  margin-bottom: 0.75rem !important;
  font-size: 0.9375rem !important;
}

.woocommerce #review_form #respond .comment-form-rating .stars,
.woocommerce #review_form .comment-form-rating .stars,
.comment-form-rating .stars {
  display: flex !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 0.5rem !important;
  margin-top: 0.75rem !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  border: none !important;
  background: transparent !important;
  flex-wrap: nowrap !important;
  width: auto !important;
  height: auto !important;
  flex-flow: row nowrap !important;
  direction: rtl !important;
  float: none !important;
  clear: both !important;
}

.woocommerce #review_form #respond .comment-form-rating .stars li,
.woocommerce #review_form .comment-form-rating .stars li,
.comment-form-rating .stars li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  display: inline-flex !important;
  float: none !important;
  clear: none !important;
  position: relative !important;
  vertical-align: middle !important;
  width: auto !important;
  height: auto !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  align-items: center !important;
}

.woocommerce #review_form #respond .comment-form-rating .stars::before,
.woocommerce #review_form #respond .comment-form-rating .stars::after,
.woocommerce #review_form .comment-form-rating .stars::before,
.woocommerce #review_form .comment-form-rating .stars::after,
.comment-form-rating .stars::before,
.comment-form-rating .stars::after {
  display: none !important;
  content: none !important;
}

.woocommerce #review_form #respond .comment-form-rating .stars li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  display: flex !important;
  float: none !important;
  clear: none !important;
  position: relative !important;
  vertical-align: middle !important;
  width: auto !important;
  height: auto !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
}

.woocommerce #review_form #respond .comment-form-rating .stars li::before,
.woocommerce #review_form #respond .comment-form-rating .stars li::after {
  display: none !important;
  content: none !important;
}

.woocommerce #review_form #respond .comment-form-rating .stars a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #d1d5db !important;
  font-size: 0 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  line-height: 1 !important;
  width: 2.5rem !important;
  height: 2.5rem !important;
  text-align: center !important;
  position: relative !important;
  overflow: hidden !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  text-indent: -9999px !important;
  white-space: nowrap !important;
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 400 !important;
}

.woocommerce #review_form #respond .comment-form-rating .stars a,
.woocommerce #review_form #respond .comment-form-rating .stars a * {
  color: transparent !important;
  text-shadow: none !important;
}

.woocommerce #review_form #respond .comment-form-rating .stars a::before {
  content: "\f005" !important;
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 400 !important;
  display: block !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-rendering: auto !important;
  -webkit-font-smoothing: antialiased !important;
  font-size: 1.5rem !important;
  line-height: 1 !important;
  color: #d1d5db !important;
  text-indent: 0 !important;
  width: auto !important;
  height: auto !important;
  z-index: 1 !important;
}

/* Hover and active states for star ratings */
.woocommerce #review_form #respond .comment-form-rating .stars a.hover-active::before,
.woocommerce #review_form #respond .comment-form-rating .stars a.active::before {
  color: #fbbf24 !important;
  font-weight: 900 !important;
  transform: translate(-50%, -50%) scale(1.05) !important;
}

.woocommerce #review_form #respond .comment-form-rating .stars a:hover::before {
  color: #fbbf24 !important;
  font-weight: 900 !important;
  transform: translate(-50%, -50%) scale(1.1) !important;
}

/* Hide text content inside star links */
.woocommerce #review_form #respond .comment-form-rating .stars a span,
.woocommerce #review_form #respond .comment-form-rating .stars a text,
.woocommerce #review_form #respond .comment-form-rating .stars a * {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  text-indent: -9999px !important;
  font-size: 0 !important;
  line-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Hide any text nodes inside stars */
.woocommerce #review_form #respond .comment-form-rating .stars li {
  font-size: 0 !important;
  line-height: 0 !important;
}

.woocommerce #review_form #respond .comment-form-rating .stars li *:not(a::before) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

/* Ensure only the star icon is visible */
.woocommerce #review_form #respond .comment-form-rating .stars li a::before {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  font-size: 1.5rem !important;
}

.woocommerce #review_form #respond .comment-form-comment label {
  display: block !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  margin-bottom: 0.75rem !important;
  font-size: 0.9375rem !important;
}

.woocommerce #review_form #respond .comment-form-comment textarea {
  width: 100% !important;
  padding: 0.875rem 1rem !important;
  border: 1px solid rgba(148, 163, 184, 0.3) !important;
  border-radius: 0.5rem !important;
  font-size: 0.9375rem !important;
  color: #0f172a !important;
  background: #ffffff !important;
  transition: all 0.2s ease !important;
  font-family: inherit !important;
  line-height: 1.5 !important;
  min-height: 120px !important;
  resize: vertical !important;
}

.woocommerce #review_form #respond .comment-form-comment textarea:focus {
  outline: none !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.woocommerce #review_form #respond .comment-form-author label,
.woocommerce #review_form #respond .comment-form-email label {
  display: block !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  margin-bottom: 0.75rem !important;
  font-size: 0.9375rem !important;
}

.woocommerce #review_form #respond .comment-form-author input,
.woocommerce #review_form #respond .comment-form-email input {
  width: 100% !important;
  padding: 0.875rem 1rem !important;
  border: 1px solid rgba(148, 163, 184, 0.3) !important;
  border-radius: 0.5rem !important;
  font-size: 0.9375rem !important;
  color: #0f172a !important;
  background: #ffffff !important;
  transition: all 0.2s ease !important;
  font-family: inherit !important;
}

.woocommerce #review_form #respond .comment-form-author input:focus,
.woocommerce #review_form #respond .comment-form-email input:focus {
  outline: none !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.woocommerce #review_form #respond .form-submit {
  margin-top: 1.5rem !important;
}

.woocommerce #review_form #respond .form-submit input[type="submit"] {
  background: #3b82f6 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 0.875rem 2rem !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: inline-block !important;
}

.woocommerce #review_form #respond .form-submit input[type="submit"]:hover {
  background: #2563eb !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

/* Rating Display in Reviews */
.woocommerce #reviews #comments ol.commentlist li .star-rating {
  margin-bottom: 0.5rem !important;
}

/* Average Rating Display */
.woocommerce .woocommerce-product-rating {
  margin-bottom: 1rem !important;
}

.woocommerce .woocommerce-product-rating .star-rating {
  display: inline-block !important;
  margin-left: 0.5rem !important;
}

/* Add border-radius to all cards and containers */
section > div:not(.swiper):not(.swiper-wrapper):not(.swiper-pagination):not(.swiper-button-next):not(.swiper-button-prev),
.swiper-slide > div,
.swiper-slide > article {
  border-radius: 1.25rem;
}

/* Ensure content doesn't overflow rounded corners */
.glass-surface,
.glass-soft,
.card-hover {
  overflow: hidden;
}

/* Ensure main content is scrollable */
main {
  position: relative;
  z-index: 1;
  overflow-x: hidden;
  overflow-y: visible;
}

/* Ensure wrapper div doesn't block scrolling */
.min-h-screen {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
}

/* Mobile menu toggle (if needed in future) */
@media (max-width: 767px) {
  .site-header-shell {
    width: 95%;
    height: 80px;
    min-height: 80px;
    max-height: 80px;
  }
  
  .site-header-shell.is-scrolled {
    height: 70px;
    min-height: 70px;
    max-height: 70px;
  }
}

/* Mobile Menu with Swiper */
.mobile-menu-overlay {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Mobile Submenu Title - Smaller, Not Bold, Single Line */
.mobile-submenu-title {
  font-size: 0.875rem !important; /* 14px */
  font-weight: 400 !important; /* normal */
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 60% !important;
  flex: 1 !important;
  text-align: center !important;
}

@media (max-width: 640px) {
  .mobile-submenu-title {
    font-size: 0.8125rem !important; /* 13px on small mobile */
    max-width: 55% !important;
  }
}

.mobile-menu-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
}

.mobile-menu-overlay.active .mobile-menu-container {
  transform: translateX(0) !important;
}

.menu-swiper {
  width: 100%;
  height: 100%;
}

.menu-swiper .swiper-slide {
  height: auto;
  overflow-y: auto;
}

.menu-item-with-children {
  cursor: pointer;
}

.menu-back-button {
  cursor: pointer;
}

/* Bottom Navigation */
.bottom-nav {
  display: none;
}

@media (max-width: 1023px) {
  .bottom-nav {
    display: flex !important;
    height: 50px !important;
  }
  
  /* Add padding to main content for bottom nav */
  main {
    padding-bottom: 3.125rem !important; /* 50px */
  }
  
  /* Bottom nav container */
  .bottom-nav > div {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  /* Each button takes 1/4 of width */
  .bottom-nav a,
  .bottom-nav button {
    width: 25% !important;
    flex: 0 0 25% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* Remove text from bottom nav */
  .bottom-nav span {
    display: none !important;
  }
  
  /* Make icons centered */
  .bottom-nav svg {
    width: 1.5rem !important;
    height: 1.5rem !important;
    margin: 0 auto !important;
  }
}

@media (min-width: 1024px) {
  .bottom-nav {
    display: none !important;
  }
}

/* Tablet and below: Hide desktop nav button, show mobile menu */
@media (max-width: 1023px) {
  .site-header-shell .btn-soft {
    display: none !important;
  }
  
  /* Make header more compact on tablet */
  .site-header-shell {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* Adjust logo size on tablet */
  .site-header-shell .site-logo-text {
    font-size: 0.875rem !important;
  }
}

/* Mobile specific adjustments */
@media (max-width: 767px) {
  /* More compact header on mobile */
  .site-header-shell {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    gap: 0.75rem !important;
  }
  
  /* Smaller logo text on mobile */
  .site-header-shell .site-logo-text {
    font-size: 0.8125rem !important;
  }
  
  /* Mobile menu container: wider panel and full-width content */
  .mobile-menu-container {
    max-width: 92% !important;
    width: 100% !important;
  }
  .mobile-menu-container .menu-swiper,
  .mobile-menu-container .swiper-wrapper,
  .mobile-menu-container .swiper-slide {
    width: 100% !important;
    max-width: 100% !important;
  }
  .mobile-menu-container .swiper-slide > div {
    width: 100% !important;
    min-width: 0 !important;
  }
  .mobile-menu-container nav {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .mobile-menu-container [id="dark-mode-toggle-mobile"] {
    width: 100% !important;
  }
}

/* Active state for bottom nav items */
.bottom-nav .bottom-nav-item.active {
  color: #3b82f6 !important;
  background-color: rgba(59, 130, 246, 0.1);
  position: relative;
}

.bottom-nav .bottom-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  border-radius: 0 0 4px 4px;
}

.bottom-nav .bottom-nav-item.active svg {
  color: #3b82f6 !important;
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

/* Dark mode active state */
html.dark .bottom-nav .bottom-nav-item.active {
  color: #60a5fa !important;
  background-color: rgba(59, 130, 246, 0.15);
}

html.dark .bottom-nav .bottom-nav-item.active svg {
  color: #60a5fa !important;
}

/* Ensure proper text rendering */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
}

/* Smooth transitions for all interactive elements */
a, button {
  transition: all 0.2s ease;
}

/* Footer Menu Styles */
footer nav.flex.flex-col a {
  display: block;
  padding: 0;
  margin: 0;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}

footer nav.flex.flex-col a:hover {
  color: #0f172a;
}

/* Dark Mode for Footer */
html.dark footer {
  background-color: rgba(15, 23, 42, 0.7) !important;
  border-color: rgba(71, 85, 105, 0.7) !important;
}

html.dark .bottom-nav {
  background-color: rgba(15, 23, 42, 0.95) !important;
  border-color: #475569 !important;
}

html.dark .footer-credit {
  background-color: rgba(15, 23, 42, 0.8) !important;
}

html.dark footer .text-slate-900 {
  color: #f1f5f9 !important;
}

html.dark footer .text-slate-600 {
  color: #94a3b8 !important;
}

html.dark footer .text-slate-500 {
  color: #94a3b8 !important;
}

html.dark footer .text-slate-400 {
  color: #94a3b8 !important;
}

html.dark footer .text-slate-800 {
  color: #e2e8f0 !important;
}

html.dark footer nav.flex.flex-col a {
  color: #94a3b8 !important;
}

html.dark footer nav.flex.flex-col a:hover {
  color: #f1f5f9 !important;
}

html.dark .bottom-nav a,
html.dark .bottom-nav button {
  color: #cbd5e1 !important;
}

html.dark .bottom-nav a:hover,
html.dark .bottom-nav button:hover {
  color: #3b82f6 !important;
}

/* Light Mode for Footer - Ensure light styles */
html:not(.dark) footer {
  background-color: rgba(255, 255, 255, 0.7) !important;
  border-color: rgba(226, 232, 240, 0.7) !important;
}

html:not(.dark) .bottom-nav {
  background-color: rgba(255, 255, 255, 0.95) !important;
  border-color: #e2e8f0 !important;
}

html:not(.dark) .footer-credit {
  background-color: rgba(255, 255, 255, 0.8) !important;
}

html:not(.dark) footer .dark\:text-slate-100 {
  color: #0f172a !important;
}

html:not(.dark) footer .dark\:text-slate-400 {
  color: #64748b !important;
}

html:not(.dark) footer .dark\:text-slate-300 {
  color: #475569 !important;
}

html:not(.dark) footer .dark\:bg-slate-900 {
  background-color: rgba(255, 255, 255, 0.7) !important;
}

html:not(.dark) footer .dark\:bg-slate-900\/70 {
  background-color: rgba(255, 255, 255, 0.7) !important;
}

html:not(.dark) footer .dark\:bg-slate-900\/80 {
  background-color: rgba(255, 255, 255, 0.8) !important;
}

html:not(.dark) footer .dark\:bg-slate-900\/95 {
  background-color: rgba(255, 255, 255, 0.95) !important;
}

html:not(.dark) footer .dark\:border-slate-700 {
  border-color: #e2e8f0 !important;
}

html:not(.dark) footer .dark\:border-slate-600\/80 {
  border-color: rgba(203, 213, 225, 0.8) !important;
}

html:not(.dark) footer .dark\:border-slate-700\/70 {
  border-color: rgba(226, 232, 240, 0.7) !important;
}

/* Line clamp utility for text truncation */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

/* Search Modal Styles */
.search-modal-overlay {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-modal-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
}

.search-modal-overlay.active .search-modal-container {
  transform: translateY(0) !important;
}

.search-modal-container {
  transition: transform 0.3s ease;
}

/* Search Results Styles */
#search-results a {
  text-decoration: none;
}

#search-results img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#search-results h3 {
  margin-bottom: 1rem;
}

#search-results h4 {
  word-break: break-word;
}

/* Search Input Focus Styles */
#search-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Loading Animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* WooCommerce Form Fields Styling */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  width: 100% !important;
  padding: 0.625rem 1rem !important;
  border: 1px solid rgba(148, 163, 184, 0.3) !important;
  border-radius: 0.75rem !important;
  font-size: 0.9375rem !important;
  color: #0f172a !important;
  background: #ffffff !important;
  transition: all 0.2s ease !important;
  font-family: inherit !important;
  line-height: 1.5 !important;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  outline: none !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.woocommerce form .form-row label {
  display: block !important;
  font-weight: 500 !important;
  color: #334155 !important;
  margin-bottom: 0.5rem !important;
  font-size: 0.875rem !important;
}

.woocommerce form .form-row .required {
  color: #3b82f6 !important;
}

/* WooCommerce Checkbox Styling */
.woocommerce form .form-row .input-checkbox,
.woocommerce form .form-row input[type="checkbox"] {
  width: 1rem !important;
  height: 1rem !important;
  border: 1px solid rgba(148, 163, 184, 0.5) !important;
  border-radius: 0.25rem !important;
  cursor: pointer !important;
  accent-color: #3b82f6 !important;
}

.woocommerce form .form-row .input-checkbox:checked,
.woocommerce form .form-row input[type="checkbox"]:checked {
  background-color: #3b82f6 !important;
  border-color: #3b82f6 !important;
}

/* WooCommerce Radio Styling */
.woocommerce form .form-row .input-radio,
.woocommerce form .form-row input[type="radio"] {
  width: 1rem !important;
  height: 1rem !important;
  border: 1px solid rgba(148, 163, 184, 0.5) !important;
  cursor: pointer !important;
  accent-color: #3b82f6 !important;
}

/* WooCommerce Select Styling */
.woocommerce form .form-row select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
  background-position: left 0.75rem center !important;
  background-repeat: no-repeat !important;
  background-size: 1.5em 1.5em !important;
  padding-left: 2.5rem !important;
  appearance: none !important;
}

/* WooCommerce Proceed to Checkout Button - Green */
.woocommerce .wc-proceed-to-checkout .checkout-button,
.woocommerce .wc-proceed-to-checkout a.checkout-button,
.wc-block-components-button,
.wp-block-woocommerce-checkout-actions-block .wc-block-components-button,
.wp-block-woocommerce-cart .wc-block-components-button,
.woocommerce-cart .wc-block-components-button,
.woocommerce-cart .wc-block-cart__submit-button {
  background: #22c55e !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 0.875rem 2rem !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  width: 100% !important;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2) !important;
  cursor: pointer !important;
  font-family: inherit !important;
}

.woocommerce .wc-proceed-to-checkout .checkout-button:hover,
.woocommerce .wc-proceed-to-checkout a.checkout-button:hover,
.wc-block-components-button:hover,
.wc-block-components-button:not(:disabled):not([aria-disabled="true"]):hover,
.wp-block-woocommerce-checkout-actions-block .wc-block-components-button:hover,
.wp-block-woocommerce-cart .wc-block-components-button:hover,
.woocommerce-cart .wc-block-components-button:hover,
.woocommerce-cart .wc-block-cart__submit-button:hover {
  background: #16a34a !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.4) !important;
}

.wc-block-components-button__text {
  color: #ffffff !important;
}

/* Checkout buttons container - Side by side */
.woocommerce-checkout-review-order .woocommerce-checkout-place-order,
.woocommerce-checkout-review-order .place-order,
.wp-block-woocommerce-checkout-actions-block,
.wc-block-components-checkout-actions {
  display: flex !important;
  flex-direction: row !important;
  gap: 1% !important;
  align-items: stretch !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  margin-top: 1rem !important;
}

/* Checkout actions wrapper */
.wc-block-components-checkout-actions__wrapper {
  display: flex !important;
  flex-direction: row !important;
  gap: 1% !important;
  align-items: stretch !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
}

/* WooCommerce Place Order Button - Green */
.woocommerce #place_order {
  background: #22c55e !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 0.875rem 1.25rem !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 54% !important;
  flex: 0 0 54% !important;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2) !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

.woocommerce #place_order:hover {
  background: #16a34a !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.4) !important;
}

/* Return to cart button - Blue outline */
.woocommerce-checkout-review-order .return-to-shop,
.woocommerce-checkout-review-order .wc-backward,
.woocommerce-checkout a.return-to-shop,
.woocommerce-checkout a.wc-backward,
.woocommerce-checkout .woocommerce-checkout-review-order a[href*="cart"],
.woocommerce-checkout .woocommerce-checkout-review-order .wc-backward,
.wc-block-components-checkout-return-to-cart-button,
.wp-block-woocommerce-checkout-actions-block .wc-block-components-checkout-return-to-cart-button,
.wc-block-components-checkout-return-to-cart-button__link,
.wc-block-components-checkout-return-to-cart-button a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.875rem 1.25rem !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: #3b82f6 !important;
  text-decoration: none !important;
  border-radius: 999px !important;
  border: 2px solid #3b82f6 !important;
  background: transparent !important;
  transition: all 0.2s ease !important;
  width: 45% !important;
  flex: 0 0 45% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

.woocommerce-checkout-review-order .return-to-shop:hover,
.woocommerce-checkout-review-order .wc-backward:hover,
.woocommerce-checkout a.return-to-shop:hover,
.woocommerce-checkout a.wc-backward:hover,
.woocommerce-checkout .woocommerce-checkout-review-order a[href*="cart"]:hover,
.woocommerce-checkout .woocommerce-checkout-review-order .wc-backward:hover,
.wc-block-components-checkout-return-to-cart-button:hover,
.wc-block-components-checkout-return-to-cart-button__link:hover,
.wc-block-components-checkout-return-to-cart-button a:hover {
  background: #3b82f6 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2) !important;
}

/* WooCommerce Quantity Input */
.woocommerce .quantity input.qty {
  width: 4rem !important;
  padding: 0.5rem !important;
  border: 1px solid rgba(148, 163, 184, 0.3) !important;
  border-radius: 0.5rem !important;
  text-align: center !important;
  font-size: 0.875rem !important;
}

.woocommerce .quantity input.qty:focus {
  outline: none !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* WooCommerce Form Row Spacing */
.woocommerce form .form-row {
  margin-bottom: 1.25rem !important;
}

.woocommerce form .form-row-wide {
  width: 100% !important;
}

.woocommerce form .form-row-first,
.woocommerce form .form-row-last {
  width: 100% !important;
}

@media (min-width: 768px) {
  .woocommerce form .form-row-first {
    width: 48% !important;
    float: right !important;
  }
  
  .woocommerce form .form-row-last {
    width: 48% !important;
    float: left !important;
  }
}

/* WooCommerce Form Validation Messages */
.woocommerce .woocommerce-error,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message {
  padding: 1rem 1.25rem !important;
  border-radius: 0.75rem !important;
  margin-bottom: 1.5rem !important;
  border-left-width: 4px !important;
}

.woocommerce .woocommerce-error {
  background: #eff6ff !important;
  border-left-color: #3b82f6 !important;
  color: #1e40af !important;
}

.woocommerce .woocommerce-info {
  background: #eff6ff !important;
  border-left-color: #3b82f6 !important;
  color: #1e40af !important;
}

.woocommerce .woocommerce-message {
  background: #f0fdf4 !important;
  border-left-color: #22c55e !important;
  color: #166534 !important;
}

/* Admin: Hide conditional product fields by default */
.hide-if-js {
  display: none !important;
}

/* Admin: Product custom fields styling */
.product_custom_field .form-field {
  margin-bottom: 1.5rem;
}

.product_custom_field .form-field label {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
  display: block;
}

.product_custom_field .form-field select,
.product_custom_field .form-field input[type="text"],
.product_custom_field .form-field input[type="number"] {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}

.product_custom_field .form-field .description {
  font-size: 0.8125rem;
  color: #64748b;
  margin-top: 0.25rem;
  display: block;
}

/* Product Page: Smooth Scroll */
.scroll-mt-24 {
  scroll-margin-top: 6rem;
}

/* Product Page: Prose Styling */
.prose {
  color: #334155;
  line-height: 1.75;
}

.prose p {
  margin-bottom: 1.25em;
}

.prose h2,
.prose h3 {
  color: #0f172a;
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 1em;
}

.prose ul,
.prose ol {
  margin-bottom: 1.25em;
  padding-right: 1.625em;
}

.prose li {
  margin-bottom: 0.5em;
}

.prose a {
  color: #3b82f6;
  text-decoration: underline;
}

.prose a:hover {
  color: #2563eb;
}

/* Product Page: Add to Cart Form */
.product-add-to-cart-wrapper {
  text-align: center;
}

.product-add-to-cart-wrapper form.cart {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 1rem !important;
  width: 100% !important;
}

/* Variation Fields Styling */
.product-add-to-cart-wrapper .variations {
  width: 100% !important;
  margin-bottom: 1rem !important;
}

.product-add-to-cart-wrapper .variations tr {
  display: flex !important;
  flex-direction: column !important;
  margin-bottom: 1rem !important;
  text-align: center !important;
}

.product-add-to-cart-wrapper .variations td {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  text-align: center !important;
}

.product-add-to-cart-wrapper .variations td.label {
  margin-bottom: 0.5rem !important;
}

.product-add-to-cart-wrapper .variations td.label label {
  color: #ffffff !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  margin: 0 !important;
  display: block !important;
}

.product-add-to-cart-wrapper .variations td.value {
  width: 100% !important;
}

.product-add-to-cart-wrapper .variations select {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0.625rem 1rem !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 0.5rem !important;
  font-size: 0.9375rem !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  text-align: center !important;
  text-align-last: center !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="white"><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd"/></svg>') !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  padding-right: 2.5rem !important;
  padding-left: 1rem !important;
  cursor: pointer !important;
}

.rtl .product-add-to-cart-wrapper .variations select {
  background-position: left 1rem center !important;
  padding-left: 2.5rem !important;
  padding-right: 1rem !important;
}

.product-add-to-cart-wrapper .variations select:focus {
  outline: none !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  background-color: rgba(255, 255, 255, 0.15) !important;
}

.product-add-to-cart-wrapper .variations select option {
  background: #3b82f6 !important;
  color: #ffffff !important;
  text-align: center !important;
}

/* Reset Variation Button */
.product-add-to-cart-wrapper .reset_variations {
  display: inline-block !important;
  margin-top: 0.5rem !important;
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.8125rem !important;
  text-decoration: underline !important;
}

.product-add-to-cart-wrapper .reset_variations:hover {
  color: #ffffff !important;
}

/* Single Variation Price */
.product-add-to-cart-wrapper .woocommerce-variation-price {
  margin-bottom: 0.75rem !important;
  text-align: center !important;
}

.product-add-to-cart-wrapper .woocommerce-variation-price .price {
  color: #ffffff !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
}

/* Variation Availability */
.product-add-to-cart-wrapper .woocommerce-variation-availability {
  margin-bottom: 0.75rem !important;
  text-align: center !important;
}

.product-add-to-cart-wrapper .woocommerce-variation-availability p {
  color: #ffffff !important;
  font-size: 0.875rem !important;
  margin: 0 !important;
}

/* Quantity and Button Row */
.product-add-to-cart-wrapper .single_variation_wrap {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
  align-items: center !important;
}

.product-add-to-cart-wrapper .woocommerce-variation-add-to-cart {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.75rem !important;
  width: 100% !important;
  flex-wrap: wrap !important;
  flex-direction: row !important;
}

.product-add-to-cart-wrapper form.cart .quantity {
  flex-shrink: 0 !important;
  margin: 0 !important;
}

.product-add-to-cart-wrapper form.cart .quantity .qty {
  width: 70px !important;
  text-align: center !important;
  padding: 0.5rem 0.75rem !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 0.5rem !important;
  font-size: 0.9375rem !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

.product-add-to-cart-wrapper form.cart .quantity .qty:focus {
  outline: none !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  background: rgba(255, 255, 255, 0.15) !important;
}

.product-add-to-cart-wrapper form.cart .single_add_to_cart_button {
  flex: 1 !important;
  min-width: 120px !important;
  background: #ffffff !important;
  color: #3b82f6 !important;
  border: none !important;
  border-radius: 9999px !important;
  padding: 0.625rem 1.5rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.product-add-to-cart-wrapper form.cart .single_add_to_cart_button:hover {
  background: rgba(255, 255, 255, 0.9) !important;
  transform: translateY(-1px) !important;
}

.product-add-to-cart-wrapper form.cart .single_add_to_cart_button:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

/* General WooCommerce Add to Cart Form (fallback) */
.woocommerce form.cart {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  flex-wrap: wrap !important;
}

.woocommerce form.cart .quantity {
  flex-shrink: 0 !important;
  margin: 0 !important;
}

/* Product Page: Equal Height Boxes */
@media (min-width: 1024px) {
  .woocommerce .grid.lg\:grid-cols-3.items-stretch > div {
    display: flex;
    flex-direction: column;
  }
  
  .woocommerce .grid.lg\:grid-cols-3.items-stretch > div > div {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
}
/* Hide descriptionsite on tablet and below */
@media (max-width: 1023px) {
  .descriptionsite {
    font-size: 0 !important;
   
  }
  
  /* Hide dark mode toggle button on tablet and below (it's in mobile menu) */
  #dark-mode-toggle {
    display: none !important;
  }
}
/* Product Page: Scroll Navigation Buttons */
#scroll-nav-container {
  transition: all 0.3s ease;
  z-index: 40;
}

#scroll-nav-container.sticky-nav {
  position: fixed !important;
  top: 100px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: calc(96% - 2rem) !important;
  max-width: calc(100vw - 2rem) !important;
  margin: 0 !important;
  z-index: 50 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
  animation: slideDown 0.3s ease !important;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.scroll-nav-btn {
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.scroll-nav-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

.scroll-nav-btn.active,
.scroll-nav-btn.bg-blue-500 {
  background: #3b82f6 !important;
  background-color: #3b82f6 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
  transform: translateY(-2px) !important;
}

.scroll-nav-btn.active.text-white,
.scroll-nav-btn.bg-blue-500.text-white {
  color: #ffffff !important;
}

.scroll-nav-btn.active:hover,
.scroll-nav-btn.bg-blue-500:hover {
  background: #2563eb !important;
  background-color: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(96, 165, 250, 0.4) !important;
}

/* Responsive adjustments for sticky nav */
@media (max-width: 1024px) {
  #scroll-nav-container.sticky-nav {
    width: calc(96% - 1rem) !important;
    padding: 0.75rem !important;
  }
}

/* Cart Page Styles */
/* Product links in cart - no text decoration */
.woocommerce-cart-form .product-name a,
.woocommerce-cart-form .product-thumbnail a {
  color: #3b82f6 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
  font-weight: 500 !important;
}

.woocommerce-cart-form .product-name a:hover,
.woocommerce-cart-form .product-thumbnail a:hover {
  color: #2563eb !important;
  text-decoration: none !important;
}

/* Remove product button - Red button style like site buttons */
.woocommerce-cart-form .product-remove .remove,
.woocommerce-cart-form .product-remove a.remove,
.woocommerce table.cart .product-remove .remove,
.woocommerce table.cart .product-remove a.remove,
.woocommerce .product-remove .remove,
.woocommerce .product-remove a.remove,
td.product-remove .remove,
td.product-remove a.remove,
.wc-block-cart-item__remove-link,
.wp-block-woocommerce-cart-item .wc-block-cart-item__remove-link,
.wc-block-cart__cart-item .wc-block-cart-item__remove-link {
  background: #ef4444 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 0.5rem 1rem !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
}

.woocommerce-cart-form .product-remove .remove:hover,
.woocommerce-cart-form .product-remove a.remove:hover,
.woocommerce table.cart .product-remove .remove:hover,
.woocommerce table.cart .product-remove a.remove:hover,
.woocommerce .product-remove .remove:hover,
.woocommerce .product-remove a.remove:hover,
td.product-remove .remove:hover,
td.product-remove a.remove:hover,
.wc-block-cart-item__remove-link:hover,
.wp-block-woocommerce-cart-item .wc-block-cart-item__remove-link:hover,
.wc-block-cart__cart-item .wc-block-cart-item__remove-link:hover {
  background: #dc2626 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.4) !important;
}

/* Cart table links */
.woocommerce-cart-form a {
  color: #3b82f6 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.woocommerce-cart-form a:hover {
  color: #2563eb !important;
  text-decoration: none !important;
}

/* Cart continue shopping link */
.woocommerce-cart-form .return-to-shop a,
.woocommerce-cart-form .continue-shopping a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  color: #64748b !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  font-size: 0.875rem !important;
}

.woocommerce-cart-form .return-to-shop a:hover,
.woocommerce-cart-form .continue-shopping a:hover {
  color: #3b82f6 !important;
  text-decoration: underline !important;
}

/* Cart Page Responsive - Stack below 1100px */
@media (max-width: 1100px) {
  section .grid.xl\:grid-cols-2,
  section .grid.lg\:grid-cols-2 {
    grid-template-columns: 1fr !important;
    display: grid !important;
    gap: 1.5rem !important;
  }
  .wp-block-woocommerce-checkout-actions-block{
    display: block !important;
  }
  .wc-block-checkout__actions .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button .wc-block-components-checkout-place-order-button__text{
    display: block !important;
  }
  .wc-block-checkout__actions div{
    float:right !important;
    width: 100%!important;
   }
 
  section .grid.xl\:grid-cols-2 > div,
  section .grid.lg\:grid-cols-2 > div {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .woocommerce-cart-form {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .cart-collaterals {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Checkout Page Responsive - Stack below 1100px - STRONG OVERRIDE */
@media (max-width: 1100px) {
  /* Override ALL grid classes in checkout - Maximum specificity */
  section form.checkout.woocommerce-checkout > div[class*="grid"],
  section form[name="checkout"].woocommerce-checkout > div[class*="grid"],
  section .woocommerce-checkout form.checkout > div[class*="grid"],
  section .woocommerce-checkout form[name="checkout"] > div[class*="grid"],
  section .woocommerce-checkout form .grid,
  section form.checkout .grid,
  .woocommerce-checkout form .grid,
  .woocommerce-checkout form[class*="grid"],
  .woocommerce-checkout form .grid.xl\:grid-cols-2,
  .woocommerce-checkout form .grid.lg\:grid-cols-2,
  form.checkout .grid,
  form.checkout[class*="grid"],
  form.checkout .grid.xl\:grid-cols-2,
  form.checkout .grid.lg\:grid-cols-2,
  form[name="checkout"] .grid,
  form[name="checkout"] .grid.xl\:grid-cols-2,
  section form .grid.xl\:grid-cols-2,
  /* Universal selector for any grid in checkout section */
  section[class*="checkout"] form div[class*="grid"],
  section form[class*="checkout"] div[class*="grid"],
  /* Direct grid override - highest priority - MUST override Tailwind */
  section form div.grid,
  section form div[class*="grid"],
  section form > div.grid,
  section form > div[class*="grid"],
  /* Even more specific */
  section form.checkout.woocommerce-checkout > div.grid.xl\:grid-cols-2,
  section form[name="checkout"].woocommerce-checkout > div.grid.xl\:grid-cols-2,
  /* Target Tailwind classes directly */
  div.grid.gap-8.xl\:grid-cols-2,
  form.checkout.woocommerce-checkout div.grid.gap-8.xl\:grid-cols-2,
  form[name="checkout"] div.grid.gap-8.xl\:grid-cols-2 {
    grid-template-columns: 1fr !important;
    display: grid !important;
    gap: 1.5rem !important;
  }
  
  section form.checkout.woocommerce-checkout > div[class*="grid"] > div,
  section form[name="checkout"].woocommerce-checkout > div[class*="grid"] > div,
  section .woocommerce-checkout form.checkout > div[class*="grid"] > div,
  section .woocommerce-checkout form[name="checkout"] > div[class*="grid"] > div,
  section .woocommerce-checkout form .grid > div,
  section form.checkout .grid > div,
  .woocommerce-checkout form .grid > div,
  .woocommerce-checkout form .grid.xl\:grid-cols-2 > div,
  .woocommerce-checkout form .grid.lg\:grid-cols-2 > div,
  form.checkout .grid > div,
  form.checkout .grid.xl\:grid-cols-2 > div,
  form.checkout .grid.lg\:grid-cols-2 > div,
  form[name="checkout"] .grid > div,
  form[name="checkout"] .grid.xl\:grid-cols-2 > div,
  section form .grid.xl\:grid-cols-2 > div,
  section[class*="checkout"] form div[class*="grid"] > div,
  section form[class*="checkout"] div[class*="grid"] > div,
  /* Direct child override */
  section form div.grid > div,
  section form div[class*="grid"] > div,
  section form > div.grid > div,
  section form > div[class*="grid"] > div,
  /* Even more specific */
  section form.checkout.woocommerce-checkout > div.grid.xl\:grid-cols-2 > div,
  section form[name="checkout"].woocommerce-checkout > div.grid.xl\:grid-cols-2 > div {
    width: 100% !important;
    max-width: 100% !important;
    grid-column: 1 / -1 !important;
  }
  
  /* Remove sticky on mobile/tablet */
  section .woocommerce-checkout .sticky,
  section .woocommerce-checkout div.sticky,
  .woocommerce-checkout .sticky,
  .woocommerce-checkout .sticky.top-24,
  .woocommerce-checkout div.sticky {
    position: relative !important;
    top: auto !important;
  }
  
  /* ULTIMATE OVERRIDE - Force single column for any element with grid class */
  section form > div[class*="grid"],
  section form > div.grid,
  /* Target the exact class combination */
  div.grid.xl\:grid-cols-2,
  div[class*="grid"][class*="xl:grid-cols-2"] {
    grid-template-columns: 1fr !important;
    -ms-grid-columns: 1fr !important;
  }
  
  section form > div[class*="grid"] > *,
  section form > div.grid > *,
  div.grid.xl\:grid-cols-2 > *,
  div[class*="grid"][class*="xl:grid-cols-2"] > *,
  div.grid.gap-8.xl\:grid-cols-2 > *,
  form.checkout.woocommerce-checkout div.grid.gap-8.xl\:grid-cols-2 > *,
  form[name="checkout"] div.grid.gap-8.xl\:grid-cols-2 > * {
    grid-column: 1 !important;
    -ms-grid-column: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Make col2-set (billing and shipping) stack vertically */
  .col2-set,
  #customer_details.col2-set,
  .woocommerce-checkout .col2-set,
  section form .col2-set,
  section form #customer_details,
  .woocommerce-checkout #customer_details,
  .woocommerce .col2-set,
  .woocommerce #customer_details {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    clear: both !important;
  }
  
  .col2-set .col-1,
  .col2-set .col-2,
  #customer_details .col-1,
  #customer_details .col-2,
  .woocommerce-checkout .col2-set .col-1,
  .woocommerce-checkout .col2-set .col-2,
  section form .col2-set .col-1,
  section form .col2-set .col-2,
  .woocommerce-checkout #customer_details .col-1,
  .woocommerce-checkout #customer_details .col-2,
  .woocommerce .col2-set .col-1,
  .woocommerce .col2-set .col-2,
  .woocommerce #customer_details .col-1,
  .woocommerce #customer_details .col-2 {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 1.5rem !important;
    float: none !important;
    clear: both !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .col2-set .col-2:last-child,
  #customer_details .col-2:last-child {
    margin-bottom: 0 !important;
  }
  
  /* Make order_review and order summary stack vertically */
  #order_review,
  .woocommerce-checkout-review-order,
  section form #order_review,
  section form .woocommerce-checkout-review-order,
  .woocommerce-checkout #order_review {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 1.5rem !important;
  }
  
  /* Ensure order summary section (right column) stacks below order_review (left column) */
  section form > div.grid > div:first-child,
  section form > div[class*="grid"] > div:first-child {
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  section form > div.grid > div:last-child,
  section form > div[class*="grid"] > div:last-child {
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Make sure order summary section (with sticky) comes after order_review */
  section form > div.grid > div:last-child > div,
  section form > div[class*="grid"] > div:last-child > div {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* ABSOLUTE OVERRIDE - Target exact Tailwind classes */
  form.checkout.woocommerce-checkout > div.grid.xl\:grid-cols-2.gap-8,
  form[name="checkout"].woocommerce-checkout > div.grid.xl\:grid-cols-2.gap-8,
  form.checkout > div.grid.xl\:grid-cols-2.gap-8,
  form[name="checkout"] > div.grid.xl\:grid-cols-2.gap-8 {
    grid-template-columns: 1fr !important;
    display: grid !important;
    gap: 1.5rem !important;
  }
  
  form.checkout.woocommerce-checkout > div.grid.xl\:grid-cols-2.gap-8 > div,
  form[name="checkout"].woocommerce-checkout > div.grid.xl\:grid-cols-2.gap-8 > div,
  form.checkout > div.grid.xl\:grid-cols-2.gap-8 > div,
  form[name="checkout"] > div.grid.xl\:grid-cols-2.gap-8 > div {
    width: 100% !important;
    max-width: 100% !important;
    grid-column: 1 !important;
  }
}

/* FINAL OVERRIDE - Highest priority for checkout responsive */
@media (max-width: 1100px) {
  /* Force single column for checkout grid - Override everything including Tailwind */
  form.checkout.woocommerce-checkout > div[class*="grid"],
  form[name="checkout"].woocommerce-checkout > div[class*="grid"],
  form.checkout > div[class*="grid"],
  form[name="checkout"] > div[class*="grid"],
  section form.checkout.woocommerce-checkout > div[class*="grid"],
  section form[name="checkout"].woocommerce-checkout > div[class*="grid"] {
    grid-template-columns: 1fr !important;
    display: grid !important;
    gap: 1.5rem !important;
  }
  
  form.checkout.woocommerce-checkout > div[class*="grid"] > div,
  form[name="checkout"].woocommerce-checkout > div[class*="grid"] > div,
  form.checkout > div[class*="grid"] > div,
  form[name="checkout"] > div[class*="grid"] > div,
  section form.checkout.woocommerce-checkout > div[class*="grid"] > div,
  section form[name="checkout"].woocommerce-checkout > div[class*="grid"] > div {
    width: 100% !important;
    max-width: 100% !important;
    grid-column: 1 !important;
  }
}

/* Thank You / Order Received Page Styles */
.woocommerce-order-received .woocommerce-thankyou-order-received,
.woocommerce-order-received .woocommerce-order {
  margin-bottom: 2rem !important;
}

/* Order Details Table */
.woocommerce-order-details,
.woocommerce-order-details__title,
.woocommerce-order-details__title h2 {
  margin-bottom: 1.5rem !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  color: #0f172a !important;
}

.woocommerce-order-details table.shop_table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 0 !important;
}

.woocommerce-order-details table.shop_table thead th {
  text-align: right !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  border-bottom: 1px solid #e2e8f0 !important;
  background: transparent !important;
}

.woocommerce-order-details table.shop_table tbody td {
  text-align: right !important;
  padding: 1rem !important;
  font-size: 0.875rem !important;
  color: #475569 !important;
  border-bottom: 1px solid #f1f5f9 !important;
  vertical-align: middle !important;
}

.woocommerce-order-details table.shop_table tbody tr:last-child td {
  border-bottom: none !important;
}

.woocommerce-order-details table.shop_table .product-name {
  font-weight: 500 !important;
  color: #0f172a !important;
}

.woocommerce-order-details table.shop_table .product-name a {
  color: #3b82f6 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.woocommerce-order-details table.shop_table .product-name a:hover {
  color: #2563eb !important;
  text-decoration: underline !important;
}

.woocommerce-order-details table.shop_table .product-total {
  font-weight: 600 !important;
  color: #0f172a !important;
}

/* Order Totals */
.woocommerce-order-details .order_details {
  margin-top: 1.5rem !important;
}

.woocommerce-order-details .order_details tfoot th {
  text-align: right !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: #475569 !important;
  border-top: 1px solid #e2e8f0 !important;
}

.woocommerce-order-details .order_details tfoot td {
  text-align: left !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  border-top: 1px solid #e2e8f0 !important;
}

.woocommerce-order-details .order_details tfoot .order-total th,
.woocommerce-order-details .order_details tfoot .order-total td {
  border-top: 2px solid #cbd5e1 !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.woocommerce-order-details .order_details tfoot .order-total .amount {
  color: #3b82f6 !important;
  font-size: 1.125rem !important;
}

/* Customer Details */
.woocommerce-customer-details {
  margin-top: 2rem !important;
}

.woocommerce-customer-details h2,
.woocommerce-customer-details h3 {
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  margin-bottom: 1rem !important;
}

.woocommerce-customer-details address {
  font-style: normal !important;
  line-height: 1.75 !important;
  color: #475569 !important;
  padding: 1rem !important;
  background: #f8fafc !important;
  border-radius: 0.75rem !important;
    border: 1px solid #e5e7eb !important;
}

.woocommerce-customer-details address p {
  margin: 0.5rem 0 !important;
}

.woocommerce-customer-details address strong {
  color: #0f172a !important;
  font-weight: 600 !important;
}

/* Order Notes */
.woocommerce-order-details__customer-note {
  margin-top: 1.5rem !important;
  padding: 1rem !important;
  background: #fef3c7 !important;
  border-radius: 0.75rem !important;
  border-right: 4px solid #f59e0b !important;
}

.woocommerce-order-details__customer-note strong {
  display: block !important;
  margin-bottom: 0.5rem !important;
  color: #92400e !important;
  font-weight: 600 !important;
}

.woocommerce-order-details__customer-note p {
  margin: 0 !important;
  color: #78350f !important;
  font-size: 0.875rem !important;
}

/* Dark Mode Global Styles */
html.dark {
  color-scheme: dark;
}

html.dark .text-slate-900 {
  color: #f1f5f9 !important;
}

html.dark .text-slate-800 {
  color: #e2e8f0 !important;
}

html.dark .text-slate-700 {
  color: #cbd5e1 !important;
}

html.dark .text-slate-600 {
  color: #94a3b8 !important;
}

html.dark .text-slate-500 {
  color: #64748b !important;
}

html.dark .bg-white {
  background-color: #1e293b !important;
}

html.dark .bg-slate-50 {
  background-color: #0f172a !important;
}

html.dark .bg-slate-100 {
  background-color: #1e293b !important;
}

html.dark .border-slate-200 {
  border-color: #334155 !important;
}

html.dark .border-slate-300 {
  border-color: #475569 !important;
}

html.dark .hover\:bg-slate-50:hover {
  background-color: #1e293b !important;
}

html.dark .hover\:bg-slate-100:hover {
  background-color: #334155 !important;
}

html.dark .hover\:text-slate-900:hover {
  color: #f1f5f9 !important;
}

html.dark .hover\:text-slate-700:hover {
  color: #cbd5e1 !important;
}

/* Light Mode - Ensure light styles when NOT in dark mode */
html:not(.dark) .mobile-menu-container {
  background-color: #ffffff !important;
}

html:not(.dark) .search-modal-container {
  background-color: #ffffff !important;
}

html:not(.dark) #search-input {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

html:not(.dark) #search-input::placeholder {
  color: #94a3b8 !important;
}

/* Force light mode styles for header buttons when NOT in dark mode */
html:not(.dark) #dark-mode-toggle,
html:not(.dark) #header-search-toggle,
html:not(.dark) #mobile-menu-toggle,
html:not(.dark) a[href*="myaccount"] {
  background-color: #f1f5f9 !important;
  color: #334155 !important;
}

html:not(.dark) #dark-mode-toggle:hover,
html:not(.dark) #header-search-toggle:hover,
html:not(.dark) #mobile-menu-toggle:hover,
html:not(.dark) a[href*="myaccount"]:hover {
  background-color: #e2e8f0 !important;
  color: #1e293b !important;
}

/* Override Tailwind dark: classes in header buttons when NOT in dark mode */
html:not(.dark) #dark-mode-toggle.dark\:bg-slate-800,
html:not(.dark) #header-search-toggle.dark\:bg-slate-800,
html:not(.dark) #mobile-menu-toggle.dark\:bg-slate-800,
html:not(.dark) a[href*="myaccount"].dark\:bg-slate-800 {
  background-color: #f1f5f9 !important;
}

html:not(.dark) #dark-mode-toggle.dark\:hover\:bg-slate-700:hover,
html:not(.dark) #header-search-toggle.dark\:hover\:bg-slate-700:hover,
html:not(.dark) #mobile-menu-toggle.dark\:hover\:bg-slate-700:hover,
html:not(.dark) a[href*="myaccount"].dark\:hover\:bg-slate-700:hover {
  background-color: #e2e8f0 !important;
}

html:not(.dark) #dark-mode-toggle.dark\:text-slate-300,
html:not(.dark) #header-search-toggle.dark\:text-slate-300,
html:not(.dark) #mobile-menu-toggle.dark\:text-slate-300,
html:not(.dark) a[href*="myaccount"].dark\:text-slate-300 {
  color: #334155 !important;
}

/* Force light mode styles for mobile menu when NOT in dark mode */
html:not(.dark) .mobile-menu-overlay {
  background-color: rgba(0, 0, 0, 0.5) !important;
}

html:not(.dark) .mobile-menu-container h2,
html:not(.dark) .mobile-menu-container .text-slate-900 {
  color: #0f172a !important;
}

html:not(.dark) .mobile-menu-container .text-slate-700 {
  color: #334155 !important;
}

html:not(.dark) .mobile-menu-container .text-slate-600 {
  color: #475569 !important;
}

html:not(.dark) .mobile-menu-container .border-slate-200 {
  border-color: #e2e8f0 !important;
}

html:not(.dark) .mobile-menu-container .border-slate-700 {
  border-color: #e2e8f0 !important;
}

html:not(.dark) .mobile-menu-container .hover\:bg-slate-50:hover {
  background-color: #f8fafc !important;
}

html:not(.dark) .mobile-menu-container .hover\:bg-slate-800:hover {
  background-color: #f8fafc !important;
}

html:not(.dark) .mobile-menu-container .hover\:text-slate-900:hover {
  color: #0f172a !important;
}

html:not(.dark) .mobile-menu-container .hover\:text-slate-100:hover {
  color: #0f172a !important;
}

/* Override Tailwind dark: classes in mobile menu when NOT in dark mode */
html:not(.dark) .mobile-menu-container .dark\:text-slate-100 {
  color: #0f172a !important;
}

html:not(.dark) .mobile-menu-container .dark\:text-slate-300 {
  color: #334155 !important;
}

html:not(.dark) .mobile-menu-container .dark\:bg-slate-900 {
  background-color: #ffffff !important;
}

html:not(.dark) .mobile-menu-container .dark\:border-slate-700 {
  border-color: #e2e8f0 !important;
}

html:not(.dark) .mobile-menu-container .dark\:hover\:bg-slate-800:hover {
  background-color: #f8fafc !important;
}

html:not(.dark) .mobile-menu-container .dark\:hover\:text-slate-100:hover {
  color: #0f172a !important;
}

html:not(.dark) .mobile-menu-container .dark\:hover\:text-slate-300:hover {
  color: #334155 !important;
}

html:not(.dark) .mobile-menu-container button.dark\:hover\:bg-slate-800:hover,
html:not(.dark) .mobile-menu-container a.dark\:hover\:bg-slate-800:hover {
  background-color: #f8fafc !important;
}

/* Force light mode styles for search modal when NOT in dark mode */
html:not(.dark) .search-modal-container h2,
html:not(.dark) .search-modal-container .text-slate-900 {
  color: #0f172a !important;
}

html:not(.dark) .search-modal-container .text-slate-600 {
  color: #475569 !important;
}

html:not(.dark) .search-modal-container .text-slate-300 {
  color: #475569 !important;
}

html:not(.dark) .search-modal-container .border-slate-200 {
  border-color: #e2e8f0 !important;
}

html:not(.dark) .search-modal-container .border-slate-700 {
  border-color: #e2e8f0 !important;
}

html:not(.dark) .search-modal-container .dark\:bg-slate-900 {
  background-color: #ffffff !important;
}

html:not(.dark) .search-modal-container .dark\:text-slate-100 {
  color: #0f172a !important;
}

html:not(.dark) .search-modal-container .dark\:text-slate-300 {
  color: #475569 !important;
}

html:not(.dark) .search-modal-container .dark\:border-slate-600 {
  border-color: #cbd5e1 !important;
}

html:not(.dark) .search-modal-container .dark\:bg-slate-800 {
  background-color: #ffffff !important;
}

html:not(.dark) .search-modal-container .dark\:placeholder\:text-slate-500::placeholder {
  color: #94a3b8 !important;
}

html:not(.dark) .search-modal-container .dark\:hover\:bg-slate-800:hover {
  background-color: #f1f5f9 !important;
}

html:not(.dark) .search-modal-container button.dark\:hover\:bg-slate-800:hover {
  background-color: #f1f5f9 !important;
}

html:not(.dark) .search-modal-container input.dark\:bg-slate-800 {
  background-color: #ffffff !important;
}

html:not(.dark) .search-modal-container input.dark\:border-slate-600 {
  border-color: #cbd5e1 !important;
}

html:not(.dark) .search-modal-container input.dark\:text-slate-100 {
  color: #0f172a !important;
}

/* Override Tailwind dark: classes when NOT in dark mode */
html:not(.dark) .dark\:bg-slate-800 {
  background-color: #f1f5f9 !important;
}

html:not(.dark) .dark\:bg-slate-900 {
  background-color: #ffffff !important;
}

html:not(.dark) .dark\:bg-slate-700 {
  background-color: #e2e8f0 !important;
}

html:not(.dark) .dark\:text-slate-300 {
  color: #334155 !important;
}

html:not(.dark) .dark\:text-slate-100 {
  color: #0f172a !important;
}

html:not(.dark) .dark\:border-slate-600 {
  border-color: #cbd5e1 !important;
}

html:not(.dark) .dark\:border-slate-700 {
  border-color: #e2e8f0 !important;
}

html:not(.dark) .dark\:hover\:bg-slate-800:hover {
  background-color: #e2e8f0 !important;
}

html:not(.dark) .dark\:hover\:bg-slate-700:hover {
  background-color: #cbd5e1 !important;
}

html:not(.dark) .dark\:hover\:text-slate-100:hover {
  color: #0f172a !important;
}

html:not(.dark) .dark\:hover\:text-slate-300:hover {
  color: #334155 !important;
}

html:not(.dark) .dark\:hidden {
  display: none !important;
}

html:not(.dark) .dark\:block {
  display: block !important;
}

/* Override all Tailwind dark: utility classes when NOT in dark mode */
html:not(.dark) [class*="dark:bg-"] {
  /* Background colors will be overridden by specific selectors */
}

html:not(.dark) [class*="dark:text-"] {
  /* Text colors will be overridden by specific selectors */
}

html:not(.dark) [class*="dark:border-"] {
  /* Border colors will be overridden by specific selectors */
}

html:not(.dark) [class*="dark:hover:"] {
  /* Hover styles will be overridden by specific selectors */
}

/* Dark Mode for Header */
html.dark .site-logo-text {
  color: #f1f5f9 !important;
}

/* Dark Mode for Internal Pages */

/* WordPress Pages and Posts */
html.dark article.glass-surface h1,
html.dark .glass-surface h1,
html.dark article h1.text-slate-900,
html.dark .text-slate-900 {
  color: #f1f5f9 !important;
}

html.dark article .prose,
html.dark .prose,
html.dark .prose p,
html.dark .prose li,
html.dark .text-slate-700 {
  color: #cbd5e1 !important;
}

html.dark .text-slate-600 {
  color: #94a3b8 !important;
}

html.dark .text-slate-500 {
  color: #64748b !important;
}

html.dark .bg-white {
  background-color: #1e293b !important;
}

/* WooCommerce Single Product Page */
html.dark .woocommerce .product h1,
html.dark .woocommerce .product h2,
html.dark .woocommerce .product h3,
html.dark .woocommerce .product h4 {
  color: #f1f5f9 !important;
}

html.dark .woocommerce .product .text-slate-900 {
  color: #f1f5f9 !important;
}

html.dark .woocommerce .product .text-slate-700 {
  color: #cbd5e1 !important;
}

html.dark .woocommerce .product .text-slate-600 {
  color: #94a3b8 !important;
}

html.dark .woocommerce .product .text-slate-500 {
  color: #64748b !important;
}

html.dark .woocommerce .product .bg-white {
  background-color: #1e293b !important;
}

html.dark .woocommerce .product .border-slate-200 {
  border-color: #475569 !important;
}

/* WooCommerce Archive/Shop Page */
html.dark .woocommerce .shop-container h1,
html.dark .woocommerce .shop-container h2,
html.dark .woocommerce .shop-container h3 {
  color: #f1f5f9 !important;
}

html.dark .woocommerce .shop-container .text-slate-900 {
  color: #f1f5f9 !important;
}

html.dark .woocommerce .shop-container .text-slate-700 {
  color: #cbd5e1 !important;
}

html.dark .woocommerce .shop-container .text-slate-600 {
  color: #94a3b8 !important;
}

html.dark .woocommerce .shop-container .text-slate-500 {
  color: #64748b !important;
}

html.dark .woocommerce .shop-container .bg-white {
  background-color: #1e293b !important;
}

html.dark .woocommerce .shop-container .bg-slate-100 {
  background-color: #334155 !important;
}

html.dark .woocommerce .shop-container .bg-slate-200 {
  background-color: #475569 !important;
}

html.dark .woocommerce .shop-container .text-slate-700 {
  color: #cbd5e1 !important;
}

/* Breadcrumbs */
html.dark .breadcrumbs,
html.dark .breadcrumbs a,
html.dark .breadcrumbs span {
  color: #94a3b8 !important;
}

html.dark .breadcrumbs a:hover {
  color: #f1f5f9 !important;
}

html.dark .breadcrumbs .text-slate-900 {
  color: #f1f5f9 !important;
}

html.dark .breadcrumbs .text-slate-400 {
  color: #64748b !important;
}

/* Scroll Navigation Buttons */
html.dark .scroll-nav-btn {
  background-color: rgba(30, 41, 59, 0.6) !important;
  color: #cbd5e1 !important;
}

html.dark .scroll-nav-btn:hover {
  background-color: rgba(30, 41, 59, 0.8) !important;
  color: #f1f5f9 !important;
}

html.dark .scroll-nav-btn.bg-white\/60,
html.dark .scroll-nav-btn.bg-white\/80 {
  background-color: rgba(30, 41, 59, 0.6) !important;
}

html.dark .scroll-nav-btn.hover\:bg-white\/80:hover {
  background-color: rgba(30, 41, 59, 0.8) !important;
}

html.dark .scroll-nav-btn.text-slate-700 {
  color: #cbd5e1 !important;
}

/* Product Image Navigation Buttons */
html.dark .product-image-nav-btn {
  background-color: rgba(30, 41, 59, 0.6) !important;
}

html.dark .product-image-nav-btn:hover {
  background-color: rgba(30, 41, 59, 0.8) !important;
}

html.dark .product-image-nav-btn.bg-white\/20 {
  background-color: rgba(30, 41, 59, 0.6) !important;
}

html.dark .product-image-nav-btn.hover\:bg-white\/30:hover {
  background-color: rgba(30, 41, 59, 0.8) !important;
}

/* WooCommerce Form Elements */
html.dark .woocommerce form .form-row input.input-text,
html.dark .woocommerce form .form-row textarea,
html.dark .woocommerce form .form-row select {
  background-color: #1e293b !important;
  border-color: #475569 !important;
  color: #f1f5f9 !important;
}

html.dark .woocommerce form .form-row label {
  color: #cbd5e1 !important;
}

html.dark .woocommerce form .form-row .required {
  color: #ef4444 !important;
}

/* WooCommerce Buttons */
html.dark .woocommerce .button,
html.dark .woocommerce button.button,
html.dark .woocommerce a.button {
  background-color: #3b82f6 !important;
  color: #ffffff !important;
}

html.dark .woocommerce .button:hover,
html.dark .woocommerce button.button:hover,
html.dark .woocommerce a.button:hover {
  background-color: #2563eb !important;
}

html.dark .descriptionsite {
  color: #94a3b8 !important;
}

/* Dark Mode for Internal Pages - Comprehensive Styles */

/* WordPress Pages and Posts */
html.dark article.glass-surface h1,
html.dark .glass-surface h1,
html.dark article h1.text-slate-900,
html.dark section h1.text-slate-900,
html.dark section h2.text-slate-900,
html.dark section h3.text-slate-900 {
  color: #f1f5f9 !important;
}

html.dark article .prose,
html.dark .prose,
html.dark .prose p,
html.dark .prose li,
html.dark .prose a,
html.dark .prose strong,
html.dark .prose em {
  color: #cbd5e1 !important;
}

html.dark .prose a {
  color: #60a5fa !important;
}

html.dark .prose a:hover {
  color: #3b82f6 !important;
}

/* WooCommerce Single Product Page */
html.dark .woocommerce .product h1,
html.dark .woocommerce .product h2,
html.dark .woocommerce .product h3,
html.dark .woocommerce .product h4,
html.dark section h1.text-slate-900,
html.dark section h2.text-slate-900,
html.dark section h3.text-slate-900 {
  color: #f1f5f9 !important;
}

html.dark .woocommerce .product .text-slate-900,
html.dark section .text-slate-900 {
  color: #f1f5f9 !important;
}

html.dark .woocommerce .product .text-slate-700,
html.dark section .text-slate-700 {
  color: #cbd5e1 !important;
}

html.dark .woocommerce .product .text-slate-600,
html.dark section .text-slate-600 {
  color: #94a3b8 !important;
}

html.dark .woocommerce .product .text-slate-500,
html.dark section .text-slate-500 {
  color: #64748b !important;
}

html.dark .woocommerce .product .bg-white,
html.dark section .bg-white {
  background-color: #1e293b !important;
}

html.dark .woocommerce .product .border-slate-200,
html.dark section .border-slate-200 {
  border-color: #475569 !important;
}

/* WooCommerce Archive/Shop Page */
html.dark .woocommerce .shop-container h1,
html.dark .woocommerce .shop-container h2,
html.dark .woocommerce .shop-container h3,
html.dark aside h3.text-slate-900 {
  color: #f1f5f9 !important;
}

html.dark .woocommerce .shop-container .text-slate-900,
html.dark aside .text-slate-900,
html.dark label.text-slate-900 {
  color: #f1f5f9 !important;
}

html.dark .woocommerce .shop-container .text-slate-700,
html.dark aside .text-slate-700 {
  color: #cbd5e1 !important;
}

html.dark .woocommerce .shop-container .text-slate-600,
html.dark aside .text-slate-600 {
  color: #94a3b8 !important;
}

html.dark .woocommerce .shop-container .text-slate-500,
html.dark aside .text-slate-500 {
  color: #64748b !important;
}

html.dark .woocommerce .shop-container .bg-white,
html.dark aside .bg-white {
  background-color: #1e293b !important;
}

html.dark .woocommerce .shop-container .bg-slate-100,
html.dark aside .bg-slate-100,
html.dark a.bg-slate-100 {
  background-color: #334155 !important;
}

html.dark .woocommerce .shop-container .bg-slate-100:hover,
html.dark aside .bg-slate-100:hover,
html.dark a.bg-slate-100:hover {
  background-color: #475569 !important;
}

html.dark .woocommerce .shop-container .bg-slate-200,
html.dark aside .bg-slate-200 {
  background-color: #475569 !important;
}

html.dark .woocommerce .shop-container .text-slate-700,
html.dark aside .text-slate-700,
html.dark a.text-slate-700 {
  color: #cbd5e1 !important;
}

html.dark .woocommerce .shop-container .border-slate-300,
html.dark aside .border-slate-300,
html.dark select.border-slate-300,
html.dark input.border-slate-300 {
  border-color: #475569 !important;
}

/* Breadcrumbs */
html.dark .breadcrumbs,
html.dark .breadcrumbs a,
html.dark .breadcrumbs span,
html.dark .breadcrumbs ol {
  color: #94a3b8 !important;
}

html.dark .breadcrumbs a:hover {
  color: #f1f5f9 !important;
}

html.dark .breadcrumbs .text-slate-900,
html.dark .breadcrumbs span.text-slate-900 {
  color: #f1f5f9 !important;
}

html.dark .breadcrumbs .text-slate-400,
html.dark .breadcrumbs span.text-slate-400 {
  color: #64748b !important;
}

html.dark .breadcrumbs .text-slate-600,
html.dark .breadcrumbs a.text-slate-600 {
  color: #94a3b8 !important;
}

/* Scroll Navigation Buttons */
html.dark .scroll-nav-btn {
  background-color: rgba(30, 41, 59, 0.6) !important;
  color: #cbd5e1 !important;
}

html.dark .scroll-nav-btn:hover {
  background-color: rgba(30, 41, 59, 0.8) !important;
  color: #f1f5f9 !important;
}

html.dark .scroll-nav-btn.bg-white\/60,
html.dark .scroll-nav-btn.bg-white\/80 {
  background-color: rgba(30, 41, 59, 0.6) !important;
}

html.dark .scroll-nav-btn.hover\:bg-white\/80:hover {
  background-color: rgba(30, 41, 59, 0.8) !important;
}

html.dark .scroll-nav-btn.text-slate-700 {
  color: #cbd5e1 !important;
}

/* Product Image Navigation Buttons */
html.dark .product-image-nav-btn,
html.dark button.bg-white\/20 {
  background-color: rgba(30, 41, 59, 0.6) !important;
}

html.dark .product-image-nav-btn:hover,
html.dark button.bg-white\/20:hover,
html.dark button.hover\:bg-white\/30:hover {
  background-color: rgba(30, 41, 59, 0.8) !important;
}

html.dark .product-image-nav-btn.bg-white\/20 {
  background-color: rgba(30, 41, 59, 0.6) !important;
}

html.dark .product-image-nav-btn.hover\:bg-white\/30:hover {
  background-color: rgba(30, 41, 59, 0.8) !important;
}

/* WooCommerce Form Elements */
html.dark .woocommerce form .form-row input.input-text,
html.dark .woocommerce form .form-row textarea,
html.dark .woocommerce form .form-row select,
html.dark select.border-slate-300,
html.dark input.border-slate-300,
html.dark textarea.border-slate-300 {
  background-color: #1e293b !important;
  border-color: #475569 !important;
  color: #f1f5f9 !important;
}

html.dark .woocommerce form .form-row input.input-text:focus,
html.dark .woocommerce form .form-row textarea:focus,
html.dark .woocommerce form .form-row select:focus,
html.dark select:focus,
html.dark input:focus,
html.dark textarea:focus {
  border-color: #3b82f6 !important;
  background-color: #1e293b !important;
  color: #f1f5f9 !important;
}

html.dark .woocommerce form .form-row label,
html.dark label {
  color: #cbd5e1 !important;
}

html.dark .woocommerce form .form-row .required {
  color: #ef4444 !important;
}

/* WooCommerce Buttons */
html.dark .woocommerce .button,
html.dark .woocommerce button.button,
html.dark .woocommerce a.button {
  background-color: #3b82f6 !important;
  color: #ffffff !important;
}

html.dark .woocommerce .button:hover,
html.dark .woocommerce button.button:hover,
html.dark .woocommerce a.button:hover {
  background-color: #2563eb !important;
}

/* Product Cards and Items */
html.dark .woocommerce ul.products li.product,
html.dark .product-card,
html.dark .glass-soft {
  background-color: rgba(30, 41, 59, 0.72) !important;
}

html.dark .woocommerce ul.products li.product h2,
html.dark .woocommerce ul.products li.product h3,
html.dark .product-card h2,
html.dark .product-card h3 {
  color: #f1f5f9 !important;
}

html.dark .woocommerce ul.products li.product .price,
html.dark .product-card .price {
  color: #60a5fa !important;
}

/* Checkbox and Radio Buttons */
html.dark input[type="checkbox"],
html.dark input[type="radio"] {
  background-color: #1e293b !important;
  border-color: #475569 !important;
}

html.dark input[type="checkbox"]:checked,
html.dark input[type="radio"]:checked {
  background-color: #3b82f6 !important;
  border-color: #3b82f6 !important;
}

html.dark .link-soft {
  color: #cbd5e1 !important;
}

html.dark .link-soft:hover {
  color: #f1f5f9 !important;
}

/* Dark Mode for Mobile Menu */
html.dark .mobile-menu-container {
  background-color: #0f172a !important;
}

html.dark .mobile-menu-overlay {
  background-color: rgba(0, 0, 0, 0.7) !important;
}

html.dark .menu-item-with-children,
html.dark .menu-item-with-children:hover {
  color: #cbd5e1 !important;
  background-color: transparent !important;
}

html.dark .menu-item-with-children:hover {
  background-color: #1e293b !important;
}

html.dark nav a {
  color: #cbd5e1 !important;
}

html.dark nav a:hover {
  color: #f1f5f9 !important;
  background-color: #1e293b !important;
}

/* Dark Mode for Search Modal */
html.dark .search-modal-container {
  background-color: #1e293b !important;
}

html.dark .search-modal-overlay {
  background-color: rgba(0, 0, 0, 0.7) !important;
}

html.dark #search-input {
  background-color: #0f172a !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}

html.dark #search-input::placeholder {
  color: #64748b !important;
}

/* Dark Mode for WooCommerce */
html.dark .woocommerce .price,
html.dark .woocommerce .price .amount {
  color: #f1f5f9 !important;
}

html.dark .woocommerce table.shop_table {
  background-color: transparent !important;
}

html.dark .woocommerce table.shop_table thead th {
  background-color: transparent !important;
  color: #f1f5f9 !important;
  border-color: #334155 !important;
}

html.dark .woocommerce table.shop_table tbody td {
  color: #cbd5e1 !important;
  border-color: #334155 !important;
}

/* Light Mode - Ensure light styles are applied when NOT in dark mode */
html:not(.dark) .bg-slate-100 {
  background-color: #f1f5f9 !important;
}

html:not(.dark) .bg-slate-50 {
  background-color: #f8fafc !important;
}

html:not(.dark) .text-slate-700 {
  color: #334155 !important;
}

html:not(.dark) .text-slate-600 {
  color: #475569 !important;
}

html:not(.dark) .text-slate-900 {
  color: #0f172a !important;
}

html:not(.dark) .bg-white {
  background-color: #ffffff !important;
}

html:not(.dark) .border-slate-200 {
  border-color: #e2e8f0 !important;
}

html:not(.dark) .border-slate-300 {
  border-color: #cbd5e1 !important;
}

html:not(.dark) .hover\:bg-slate-50:hover {
  background-color: #f8fafc !important;
}

html:not(.dark) .hover\:bg-slate-100:hover {
  background-color: #f1f5f9 !important;
}

html:not(.dark) .hover\:text-slate-900:hover {
  color: #0f172a !important;
}

html:not(.dark) .hover\:text-slate-700:hover {
  color: #334155 !important;
}

/* Dark Mode Transitions */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Preserve important transitions */
button,
a,
input,
select,
textarea {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* Responsive for Thank You Page */
@media (max-width: 768px) {
  .woocommerce-order-details table.shop_table {
    font-size: 0.8125rem !important;
  }
  
  .woocommerce-order-details table.shop_table thead th,
  .woocommerce-order-details table.shop_table tbody td {
    padding: 0.75rem 0.5rem !important;
  }
  
  .woocommerce-customer-details {
    margin-top: 1.5rem !important;
  }
}

/* Emerald badge width fix */
.px-2.py-1.rounded-full.bg-emerald-50.text-emerald-700.border.border-emerald-100 {
  width: 88px;
}

/* Product Gallery Styles */
.product-gallery-wrapper {
  width: 100%;
}

.product-gallery-main {
  position: relative;
  width: 100%;
  margin-bottom: 1rem;
}

.product-gallery-main-image-wrapper {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
}

.product-gallery-main-image {
  max-width: 100%;
  max-height: 600px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-gallery-main-image-wrapper:hover .product-gallery-main-image {
  cursor: zoom-in;
}

.product-gallery-zoom-lens {
  position: absolute;
  border: 2px solid #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  display: none;
  pointer-events: none;
  z-index: 20;
}

.product-gallery-zoom-result {
  position: absolute;
  right: calc(100% + 20px);
  top: 0;
  width: 100%;
  height: 100%;
  border: 2px solid #e2e8f0;
  border-radius: 1rem;
  overflow: hidden;
  background: #ffffff;
  display: none;
  z-index: 30;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.product-gallery-zoom-result img {
  width: 200%;
  height: 200%;
  object-fit: cover;
  transform: translate(-25%, -25%);
}

.product-gallery-nav-btn {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.product-gallery-main:hover .product-gallery-nav-btn {
  opacity: 1;
}

.product-gallery-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.product-gallery-thumbnails {
  width: 100%;
}

.product-gallery-thumbnail {
  position: relative;
  background: #ffffff;
  cursor: pointer;
}

.product-gallery-thumbnail.active {
  border-color: #3b82f6 !important;
}

.product-gallery-thumbnail img {
  transition: transform 0.2s ease;
}

.product-gallery-thumbnail:hover img {
  transform: scale(1.05);
}

.product-gallery-lightbox {
  display: none;
}

.product-gallery-lightbox.show {
  display: flex;
}

.product-gallery-lightbox-image-container {
  width: 90%;
  height: 90%;
}

.product-gallery-lightbox-image {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Skip to content link */
.skip-to-content {
  position: absolute;
  left: -9999px;
  z-index: 999999;
}

.skip-to-content:focus {
  left: auto;
  right: 1rem;
  top: 1rem;
  background: #3b82f6;
  color: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  font-weight: 500;
}

html.dark .skip-to-content:focus {
  background: #2563eb;
}

/* Scrollbar styles for thumbnails */
.scrollbar-thin {
  scrollbar-width: thin;
}

.scrollbar-thin::-webkit-scrollbar {
  height: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {
  .product-gallery-main-image-wrapper {
    min-height: 300px;
  }
  
  .product-gallery-zoom-result {
    display: none !important;
  }
  
  .product-gallery-nav-btn {
    opacity: 1;
  }
  
  .product-gallery-thumbnail {
    width: 60px;
    height: 60px;
  }
}

/* Footer Menu Styling */
.footer-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.footer-menu-item {
  margin: 0;
  padding: 0;
}

.footer-menu-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Header Menu with Submenu */
.header-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-menu-item {
  position: relative;
}

.header-menu-item.has-children > a {
  position: relative;
}

.header-menu-item.has-children:hover > .header-submenu,
.header-menu-item.has-children.group:hover > .header-submenu {
  opacity: 1 !important;
  visibility: visible !important;
}

.header-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-submenu-item {
  position: relative;
}

.header-submenu-item.has-children > a {
  position: relative;
}

.header-submenu-item.has-children:hover > .header-submenu {
  opacity: 1 !important;
  visibility: visible !important;
}

.header-menu-item.has-children:hover > a svg,
.header-submenu-item.has-children:hover > a svg {
  transform: rotate(180deg);
}

.header-menu-item.has-children > a svg,
.header-submenu-item.has-children > a svg {
  transition: transform 0.2s ease;
}

/* Mobile Menu Submenu Navigation Fix */
.menu-back-button[data-back-to] {
  cursor: pointer;
}

/* Mobile Filter Modal/Drawer */
.mobile-filter-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  margin: 0 !important;
  padding: 0 !important;
}

.mobile-filter-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
}

.mobile-filter-container {
  position: fixed !important;
  inset-y: 0 !important;
  right: 0 !important;
  width: 100%;
  max-width: 28rem;
  background-color: #ffffff;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  z-index: 1000000 !important;
  margin: 0 !important;
  padding: 0 !important;
}

html[dir="rtl"] .mobile-filter-container {
  right: auto;
  left: 0;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

.mobile-filter-overlay.active .mobile-filter-container {
  transform: translateX(0) !important;
}

html[dir="rtl"] .mobile-filter-overlay.active .mobile-filter-container {
  transform: translateX(0) !important;
}

html.dark .mobile-filter-container {
  background-color: #0f172a;
}

html.dark .mobile-filter-container .border-slate-200 {
  border-color: #334155;
}

html.dark .mobile-filter-container .border-slate-700 {
  border-color: #475569;
}

html.dark .mobile-filter-container .bg-white {
  background-color: #0f172a;
}

html.dark .mobile-filter-container .bg-slate-100 {
  background-color: #1e293b;
}

html.dark .mobile-filter-container .hover\:bg-slate-100:hover {
  background-color: #334155;
}

html.dark .mobile-filter-container .hover\:bg-slate-800:hover {
  background-color: #475569;
}

/* Hide sidebar filters on mobile, show on desktop */
@media (max-width: 1023px) {
  #shop-filters-sidebar {
    display: none !important;
  }
}

/* Scrollbar hide utility */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

@media (min-width: 1024px) {
  #mobile-filter-toggle {
    display: none !important;
  }
}

/* Shop Products Header Bar - Glassmorphism Style */
.shop-results {
  font-size: 0.875rem;
  color: #0f172a;
  font-weight: 500;
}

html.dark .shop-results {
  color: #f1f5f9;
}

.woocommerce-result-count {
  font-size: 0.875rem !important;
  color: #0f172a !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}

html.dark .woocommerce-result-count {
  color: #f1f5f9 !important;
}

/* Shop Filters Styling - Digikala Style */
.shop-filter-select,
aside form select,
aside select[name="product_cat"],
aside select[name="product_type"],
aside select[name="educational_type"],
aside select[name="physical_type"],
aside select[name="educational_status"],
aside select[name="stock_status"] {
  width: 100%;
  padding: 0.5rem 2.25rem 0.5rem 0.625rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background-color: #ffffff;
  color: #0f172a;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  transition: all 0.2s ease;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 0.5rem center;
  background-size: 1rem;
}

html[dir="rtl"] .shop-filter-select,
html[dir="rtl"] aside form select,
html[dir="rtl"] aside select[name="product_cat"],
html[dir="rtl"] aside select[name="product_type"],
html[dir="rtl"] aside select[name="educational_type"],
html[dir="rtl"] aside select[name="physical_type"],
html[dir="rtl"] aside select[name="educational_status"] {
  background-position: right 0.75rem center;
  padding-left: 2.75rem;
  padding-right: 2.5rem;
}


/* Shop Filter Labels - Digikala Style */
aside form label,
aside label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

html.dark aside form label,
html.dark aside label {
  color: #f1f5f9;
}

/* Shop Filter Checkbox - Digikala Style */
aside input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.25rem;
  background-color: #ffffff;
  accent-color: #3b82f6;
  cursor: pointer;
}

html.dark aside input[type="checkbox"] {
  background-color: #1e293b;
  border-color: #475569;
}

/* Shop Filter Buttons - Digikala Style */
aside button[type="submit"],
aside form button[type="submit"] {
  width: 100%;
  padding: 0.625rem 1rem;
  background-color: #3b82f6;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

aside button[type="submit"]:hover,
aside form button[type="submit"]:hover {
  background-color: #2563eb;
}

/* Shop Filter Reset Link - Digikala Style */
aside a[href*="shop"] {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.625rem 1rem;
  background-color: #f1f5f9;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
  border: 1px solid #e2e8f0;
}

html.dark aside a[href*="shop"] {
  background-color: #334155;
  color: #cbd5e1;
  border-color: #475569;
}

aside a[href*="shop"]:hover {
  background-color: #e2e8f0;
  text-decoration: none;
}

html.dark aside a[href*="shop"]:hover {
  background-color: #475569;
}

/* Single Product Page - Standard Font Sizes and Weights */
/* Product Title */
.single-product-title {
  font-size: 1.125rem !important; /* 18px - Mobile */
  font-weight: 600 !important; /* semibold */
  line-height: 1.5 !important;
  margin-bottom: 0.75rem !important;
}

@media (min-width: 640px) {
  .single-product-title {
    font-size: 1.25rem !important; /* 20px - Desktop */
  }
}

/* Product Price */
.single-product-price {
  font-size: 1.5rem !important; /* 24px - Mobile */
  font-weight: 600 !important; /* semibold */
  line-height: 1.3 !important;
}

@media (min-width: 640px) {
  .single-product-price {
    font-size: 1.75rem !important; /* 28px - Desktop */
  }
}

/* Section Titles (Description, Reviews, Related Products) */
.single-product-section-title {
  font-size: 1rem !important; /* 16px - Mobile */
  font-weight: 600 !important; /* semibold */
  line-height: 1.5 !important;
}

@media (min-width: 640px) {
  .single-product-section-title {
    font-size: 1.125rem !important; /* 18px - Desktop */
  }
}

/* General Text Content */
.single-product-text {
  font-size: 0.8125rem !important; /* 13px */
  font-weight: 400 !important; /* normal */
  line-height: 1.5 !important;
}

/* Product Description */
.single-product-description {
  font-size: 0.875rem !important; /* 14px */
  font-weight: 400 !important; /* normal */
  line-height: 1.6 !important;
}

.single-product-description p {
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  margin-bottom: 0.75rem !important;
}

.single-product-description h1,
.single-product-description h2,
.single-product-description h3,
.single-product-description h4,
.single-product-description h5,
.single-product-description h6 {
  font-weight: 600 !important;
  margin-top: 1rem !important;
  margin-bottom: 0.5rem !important;
}

.single-product-description h1 {
  font-size: 1.125rem !important; /* 18px */
}

.single-product-description h2 {
  font-size: 1rem !important; /* 16px */
}

.single-product-description h3 {
  font-size: 0.9375rem !important; /* 15px */
}

.single-product-description h4,
.single-product-description h5,
.single-product-description h6 {
  font-size: 0.875rem !important; /* 14px */
}

/* Prose content in product description */
#product-description .prose,
#product-description .prose p {
  font-size: 0.875rem !important; /* 14px */
  font-weight: 400 !important;
  line-height: 1.6 !important;
}

#product-description .prose h1,
#product-description .prose h2,
#product-description .prose h3,
#product-description .prose h4,
#product-description .prose h5,
#product-description .prose h6 {
  font-weight: 600 !important;
  margin-top: 1rem !important;
  margin-bottom: 0.5rem !important;
}

#product-description .prose h1 {
  font-size: 1.125rem !important;
}

#product-description .prose h2 {
  font-size: 1rem !important;
}

#product-description .prose h3 {
  font-size: 0.9375rem !important;
}

#product-description .prose h4,
#product-description .prose h5,
#product-description .prose h6 {
  font-size: 0.875rem !important;
}

/* Product Categories */
.woocommerce .product_meta,
.woocommerce .product_meta a {
  font-size: 0.8125rem !important; /* 13px */
  font-weight: 400 !important;
}

/* Product Attributes */
.woocommerce div.product .product_attributes table th,
.woocommerce div.product .product_attributes table td {
  font-size: 0.8125rem !important; /* 13px */
  font-weight: 400 !important;
}

/* Price in product box */
.single-product-price .woocommerce-Price-amount,
.single-product-price .price {
  font-size: inherit !important;
  font-weight: inherit !important;
}

/* Dark mode adjustments */
html.dark .single-product-title,
html.dark .single-product-section-title {
  color: #f1f5f9 !important;
}

html.dark .single-product-text {
  color: rgba(255, 255, 255, 0.9) !important;
}

html.dark .single-product-description {
  color: #cbd5e1 !important;
}

html.dark .single-product-description p {
  color: #cbd5e1 !important;
}

/* Homepage Product Cards - Similar to Shop Page but with Border Radius */
.homepage-product-card {
  border-radius: 0.5rem !important; /* 8px */
  transition: all 0.3s ease !important;
  box-shadow: none !important;
}

.homepage-product-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  transform: translateY(-2px) !important;
}

html.dark .homepage-product-card {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}

html.dark .homepage-product-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* Ensure homepage cards stay vertical in responsive (not horizontal) */
@media (max-width: 1023px) {
  .swiper-slide .homepage-product-card {
    min-height: 360px !important;
  }
  
  .swiper-slide .homepage-product-card .product-image-wrapper {
    min-height: 180px !important;
  }
  
  .homepage-product-card .product-card-wrapper {
    flex-direction: column !important;
  }
  
  .homepage-product-card .product-image-wrapper {
    width: 100% !important;
    height: auto !important;
  }
  
  .homepage-product-card .product-content-wrapper {
    width: 100% !important;
  }
  
  /* Prevent horizontal layout */
  .homepage-product-card {
    display: flex !important;
    flex-direction: column !important;
  }
}

@media (max-width: 640px) {
  .swiper-slide .homepage-product-card {
    min-height: 340px !important;
  }
  
  .swiper-slide .homepage-product-card .product-image-wrapper {
    min-height: 160px !important;
  }
}

/* Apply same styles as shop page cards */
.homepage-product-card .woocommerce-loop-product__title {
  font-size: 0.9375rem !important; /* 15px - Desktop */
  line-height: 1.5 !important;
  font-weight: 500 !important; /* medium */
  text-align: center !important;
}

.homepage-product-card .woocommerce-loop-product__title a {
  text-align: center !important;
}

@media (max-width: 1023px) {
  .homepage-product-card .woocommerce-loop-product__title {
    font-size: 0.8125rem !important; /* 13px - Mobile */
    line-height: 1.5 !important;
    font-weight: 500 !important; /* medium */
    text-align: center !important;
  }
}

/* Price styles for homepage cards */
.homepage-product-card .product-price-regular {
  font-size: 0.75rem !important; /* 12px - Desktop */
  font-weight: 400 !important; /* normal */
}

.homepage-product-card .product-price-current {
  font-size: 1.125rem !important; /* 18px - Desktop */
  font-weight: 700 !important; /* bold */
}

@media (max-width: 1023px) {
  .homepage-product-card .product-price-regular {
    font-size: 0.625rem !important; /* 10px - Mobile */
  }
  
  .homepage-product-card .product-price-current {
    font-size: 0.875rem !important; /* 14px - Mobile */
    font-weight: 500 !important; /* medium */
  }
}

/* Discount badge for homepage cards */
.homepage-product-card .product-discount-badge {
  font-size: 0.6875rem !important; /* 11px - Desktop */
  font-weight: 500 !important; /* medium */
}

@media (max-width: 1023px) {
  .homepage-product-card .product-discount-badge {
    font-size: 0.5625rem !important; /* 9px - Mobile */
    font-weight: 500 !important; /* medium */
  }
}

/* Product Badges (Status, Type) */
.single-product-badge {
  font-size: 0.75rem !important; /* 12px */
  font-weight: 500 !important; /* medium */
  padding: 0.25rem 0.625rem !important;
}

/* Scroll Navigation Buttons */
.scroll-nav-btn {
  font-size: 0.9rem !important; /* 12px */
  font-weight: 500 !important; /* medium */
  padding: 0.5rem 0.75rem !important;
}

/* Ensure active tab has white text - highest priority */
.scroll-nav-btn.active,
.scroll-nav-btn.bg-blue-500,
.scroll-nav-btn.active.text-white,
.scroll-nav-btn.bg-blue-500.text-white {
  color: #ffffff !important;
}

.scroll-nav-btn.active.text-slate-700,
.scroll-nav-btn.bg-blue-500.text-slate-700 {
  color: #ffffff !important;
}

/* Product Categories Links */
.single-product-text a,
.woocommerce .product_meta a {
  font-size: inherit !important;
  font-weight: 500 !important;
}

/* Educational Info Boxes */
.woocommerce div.product .bg-slate-50 p {
  font-size: 0.8125rem !important; /* 13px */
  font-weight: 400 !important;
}

.woocommerce div.product .bg-slate-50 p.text-xs {
  font-size: 0.75rem !important; /* 12px */
}

.woocommerce div.product .bg-slate-50 p.text-sm {
  font-size: 0.8125rem !important; /* 13px */
  font-weight: 500 !important; /* medium */
}

/* WooCommerce Reviews Section */
.woocommerce #reviews #comments ol.commentlist li .comment-text {
  font-size: 0.875rem !important; /* 14px */
  font-weight: 400 !important;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text .meta {
  font-size: 0.8125rem !important; /* 13px */
  font-weight: 400 !important;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text p {
  font-size: 0.875rem !important; /* 14px */
  font-weight: 400 !important;
  line-height: 1.6 !important;
}

/* Related Products Title */
#related-products h2 {
  font-size: 1rem !important; /* 16px - Mobile */
  font-weight: 600 !important; /* semibold */
}

@media (min-width: 640px) {
  #related-products h2 {
    font-size: 1.125rem !important; /* 18px - Desktop */
  }
}

/* WooCommerce Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  font-size: 0.875rem !important; /* 14px */
  font-weight: 500 !important; /* medium */
}

.woocommerce div.product .woocommerce-tabs .panel {
  font-size: 0.875rem !important; /* 14px */
  font-weight: 400 !important;
}

.woocommerce div.product .woocommerce-tabs .panel p {
  font-size: 0.875rem !important; /* 14px */
  line-height: 1.6 !important;
}

/* Add to Cart Button */
.product-add-to-cart-wrapper form.cart .single_add_to_cart_button {
  font-size: 0.8125rem !important; /* 13px */
  font-weight: 500 !important; /* medium */
}

/* Quantity Input */
.product-add-to-cart-wrapper form.cart .quantity .qty {
  font-size: 0.875rem !important; /* 14px */
  font-weight: 400 !important;
}

/* Variation Labels */
.product-add-to-cart-wrapper .variations td.label label {
  font-size: 0.8125rem !important; /* 13px */
  font-weight: 500 !important; /* medium */
}

/* Variation Select */
.product-add-to-cart-wrapper .variations select {
  font-size: 0.8125rem !important; /* 13px */
  font-weight: 400 !important;
}

/* Social Share Icons */
.woocommerce div.product .w-10.h-10 {
  width: 2.25rem !important; /* 36px */
  height: 2.25rem !important; /* 36px */
}

.woocommerce div.product .w-10.h-10 svg {
  width: 1rem !important; /* 16px */
  height: 1rem !important; /* 16px */
}



