@charset "UTF-8";

/*
Theme Name: StyleKorean
Theme URI: https://kosmetics.mx
Author: Armando García
Author URI: https://armandogarcia.dev
Description: Custom theme, Kosmetics v2.0.
Version: 2.0
Text Domain: web-kosmetics
*/
:root {
  --bg-body: #F9FAFB;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-hero: linear-gradient(135deg, #f8f6ff 0%, #fff 50%, #f0f4ff 100%);
  --color-text: #111827;
  --color-text-secondary: #6B7280;
  --color-text-muted: #9ca3af;
  --color-border: #E5E7EB;
  --color-border-light: #f3f4f6;
  --color-primary: #8257E5;
  --color-primary-soft: #f3e8ff;
  --color-primary-hover: #7048d6;
  --color-accent: #F43F5E;
  --color-success: #10B981;
  --color-danger: #EF4444;
  --color-star: #FBBF24;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --header-bg: #ffffff;
  --header-text: #000000;
  --footer-bg: #111827;
  --footer-text: #ffffff;
}

/* Custom Selection Color */
::selection {
  background-color: var(--color-primary);
  color: #ffffff;
}

::-moz-selection {
  background-color: var(--color-primary);
  color: #ffffff;
}


[data-theme=dark] {
  --bg-body: #0f0f14;
  --bg-surface: #1a1a24;
  --bg-surface-elevated: #242430;
  --bg-hero: linear-gradient(135deg, #1a1a24 0%, #0f0f14 50%, #1e1e2a 100%);
  --color-text: #ffffff;
  --color-text-secondary: #d1d5db;
  --color-text-muted: #9ca3af;
  --color-border: #2d2d3a;
  --color-border-light: #1f1f2a;
  --color-primary-soft: rgba(130, 87, 229, 0.15);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
  --header-bg: rgba(15, 15, 20, 0.5);
  --header-text: #ffffff;
  --footer-bg: #0f0f14;
  --footer-text: #ffffff;
}

.theme-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle .toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle .toggle-switch:hover {
  border-color: var(--color-primary);
}

.theme-toggle .toggle-switch .toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  background: var(--color-primary);
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
}

.theme-toggle .toggle-switch .toggle-slider i {
  transition: opacity 0.2s ease;
}

.theme-toggle .toggle-switch .toggle-slider .icon-moon {
  display: none;
}

.theme-toggle .toggle-switch .toggle-slider .icon-sun {
  display: block;
}

[data-theme=dark] .theme-toggle .toggle-switch {
  background: #2d2d3a;
  border-color: #3d3d4a;
}

[data-theme=dark] .theme-toggle .toggle-switch .toggle-slider {
  transform: translateX(24px);
}

[data-theme=dark] .theme-toggle .toggle-switch .toggle-slider .icon-moon {
  display: block;
}

[data-theme=dark] .theme-toggle .toggle-switch .toggle-slider .icon-sun {
  display: none;
}

body[data-theme=dark] .theme-toggle .toggle-switch {
  background: #2d2d3a;
  border-color: #3d3d4a;
}

body[data-theme=dark] .theme-toggle .toggle-switch .toggle-slider {
  transform: translateX(24px);
}

body[data-theme=dark] .theme-toggle .toggle-switch .toggle-slider .icon-moon {
  display: block;
}

body[data-theme=dark] .theme-toggle .toggle-switch .toggle-slider .icon-sun {
  display: none;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Outfit", sans-serif;
  background-color: var(--bg-body);
  color: var(--color-text);
  margin: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.theme-transitioning * {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  opacity: 0.85;
}

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Outfit", sans-serif;
  color: var(--color-text);
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1.5rem;
  line-clamp: 1.6;
  color: var(--color-text-secondary);
}

ul,
ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

ul li,
ol li {
  margin-bottom: 0.5rem;
}

strong,
b {
  font-weight: 700;
}

hr {
  border: none;
  border-top: 1px solid #E5E7EB;
  margin: 2rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

table th,
table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #E5E7EB;
}

table th {
  font-weight: 600;
  color: #111827;
  background-color: #ffffff;
}

table td {
  color: #6B7280;
}

/* === LOGO VISIBILITY LOGIC (RESPONSIVE) === */
.header-logo-dynamic,
.site-header .logo-image {
  height: 22px;
  max-width: 200px;
  object-fit: contain;
  width: auto;
  display: block;
  transition: filter 0.3s ease;
}

/* En mobile, el logo desktop se oculta vía mobile-first.css */
@media (max-width: 768px) {
  .site-branding.desktop-only .logo-image {
    display: none !important;
  }
}

/* Light Mode (CSS Fallback) -> ORIGINAL COLORS */
/* Explicitly ensure visibility on white backgrounds before JS loads */
body:not([data-theme="dark"]) .site-header .header-logo-dynamic,
html:not([data-theme="dark"]) body .site-header .header-logo-dynamic {
  filter: none;
}

/* Dark Mode (CSS) -> FORCE WHITE */
html[data-theme="dark"] body .site-header .header-logo-dynamic,
body[data-theme="dark"] .site-header .header-logo-dynamic {
  filter: brightness(0) invert(1) !important;
}

/* Footer -> FORCE WHITE (Static, no JS toggle needed) */
.footer-always-white {
  filter: brightness(0) invert(1) !important;
  opacity: 1 !important;
  display: block;
}

/* --- HEADER UI/UX REFINEMENT --- */
.main-header {
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--color-border);
  color: var(--header-text);
  position: sticky;
  top: 0;
  z-index: 9999;
  height: 85px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

body.admin-bar .main-header {
  top: 32px !important;
}

@media (max-width: 782px) {
  body.admin-bar .main-header {
    top: 46px !important;
  }
}

.main-header .header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
}

.site-branding {
  flex: 0 0 auto;
}

/* Desktop Navigation */
.main-navigation {
  display: none;
  flex: 1;
  margin: 0 40px;
}

@media (min-width: 1100px) {
  .main-navigation {
    display: block;
  }
}

.main-navigation .nav-menu {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
  align-items: center;
}

.main-navigation .nav-menu li {
  position: relative;
}

.main-navigation .nav-menu li a {
  text-decoration: none;
  color: var(--header-text);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  position: relative;
}

.main-navigation .nav-menu li a i {
  font-size: 0.75rem;
  opacity: 0.7;
}

.main-navigation .nav-menu li a:hover {
  color: var(--color-primary);
}

.main-navigation .nav-menu li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

.main-navigation .nav-menu li a:hover::after {
  width: 100%;
}

/* Standard Dropdown Sub-menu */
.main-navigation .nav-menu li .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-surface-elevated);
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--color-border);
  z-index: 1000;
  list-style: none;
}

.main-navigation .nav-menu li:hover>.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-navigation .nav-menu .sub-menu li {
  display: block;
  width: 100%;
}

.main-navigation .nav-menu .sub-menu li a {
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 400;
  border-radius: 8px;
  display: block;
  white-space: nowrap;
}

.main-navigation .nav-menu .sub-menu li a::after {
  display: none;
}

.main-navigation .nav-menu .sub-menu li a:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

/* Scrollable Sub-menu (for Funciones/Propósitos with many items) */
.main-navigation .nav-menu li .sub-menu.sub-menu-scrollable {
  max-height: 420px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) transparent;
  min-width: 240px;
}

.main-navigation .nav-menu li .sub-menu.sub-menu-scrollable::-webkit-scrollbar {
  width: 5px;
}

.main-navigation .nav-menu li .sub-menu.sub-menu-scrollable::-webkit-scrollbar-track {
  background: transparent;
}

.main-navigation .nav-menu li .sub-menu.sub-menu-scrollable::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 10px;
}

/* Header Actions (Desktop Only) */
@media (min-width: 769px) {
  .header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 auto;
  }
}

@media (max-width: 768px) {
  .header-actions {
    display: none !important;
  }
}

.search-bar-wrapper {
  position: relative;
  width: 280px;
  transition: width 0.3s ease;
}

@media (max-width: 1200px) {
  .search-bar-wrapper {
    width: 200px;
  }
}

@media (max-width: 1024px) {
  .search-bar-wrapper {
    display: none;
  }
}

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

.search-form-visible .search-icon {
  position: absolute;
  left: 15px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.search-form-visible input.search-field {
  width: 100%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  padding: 10px 15px 10px 42px;
  font-size: 0.9rem;
  color: var(--color-text);
  outline: none;
  transition: all 0.2s ease;
}

.search-form-visible input.search-field:focus {
  border-color: var(--color-primary);
  background: var(--bg-surface);
  box-shadow: 0 0 0 4px var(--color-primary-soft);
}

/* Icons */
.header-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--header-text);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
}

.icon-btn:hover {
  background-color: var(--color-primary-soft);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.cart-btn-relative .cart-count {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--header-bg);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cart-btn-relative .cart-count-badge,
#wishlist-trigger .wishlist-count-badge {
  position: absolute;
  background: var(--color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border: 2px solid var(--header-bg);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cart-btn-relative .cart-count-badge {
  top: 5px !important;
  right: -1px !important;
}

#wishlist-trigger .wishlist-count-badge {
  top: 3px !important;
  right: 6px !important;
}

/* Wishlist Sidebar Items */
.wishlist-items-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wishlist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

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

.wishlist-item-image {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
}

.wishlist-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.wishlist-item-info {
  flex: 1;
  min-width: 0;
}

.wishlist-item-title {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.wishlist-item-title:hover {
  color: var(--color-primary);
}

.wishlist-item-price {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.wishlist-remove-btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #6B7280;
  transition: all 0.2s;
}

[data-theme="dark"] .wishlist-remove-btn {
  background: #374151;
  color: #9CA3AF;
}

.wishlist-remove-btn:hover {
  background: #EF4444;
  color: #fff;
  transform: scale(1.1);
}

.wishlist-remove-btn.loading {
  pointer-events: none;
  opacity: 0.6;
}

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

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

  to {
    transform: rotate(360deg);
  }
}

/* Utility to hide on mobile */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

/* Mobile Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--header-text);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s;
}

.mobile-menu-toggle:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

@media (max-width: 1100px) {
  .mobile-menu-toggle {
    display: block;
  }

  .main-header .header-container {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .main-header {
    height: 75px;
  }

  .main-logo {
    height: 34px;
  }

  .header-actions {
    gap: 10px;
  }

  .header-icons {
    gap: 5px;
  }

  .icon-btn {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
  }
}


.mobile-sidebar-backdrop,
.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(2px);
}

.mobile-sidebar-backdrop.active,
.active.sidebar-backdrop {
  opacity: 1;
  visibility: visible;
}

.mobile-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background-color: #fff;
  z-index: 100002;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.mobile-sidebar.active {
  transform: translateX(0);
}

.mobile-sidebar .sidebar-header {
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #E5E7EB;
  background-color: #fff;
  min-height: 70px;
}

.mobile-sidebar .sidebar-header .sidebar-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1;
}

.mobile-sidebar .sidebar-header .close-sidebar-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #6B7280;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  line-height: 1;
}

.mobile-sidebar .sidebar-header .close-sidebar-btn:hover {
  color: #EF4444;
  transform: rotate(90deg);
}

.mobile-sidebar .sidebar-content {
  height: calc(100% - 70px);
  overflow-y: auto;
  padding: 20px;
}

.mobile-sidebar .sidebar-content .mobile-nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-sidebar .sidebar-content .mobile-nav-menu li {
  border-bottom: 1px solid #E5E7EB;
}

.mobile-sidebar .sidebar-content .mobile-nav-menu li a {
  display: block;
  padding: 15px 0;
  text-decoration: none;
  color: #111827;
  font-weight: 500;
  font-size: 1rem;
}

.right-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 350px;
  max-width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 200001;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.right-sidebar.active {
  transform: translateX(0);
}

.right-sidebar .sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface);
}

.right-sidebar .sidebar-header .sidebar-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
}

.right-sidebar .sidebar-header .close-sidebar-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--color-text);
  cursor: pointer;
  padding: 5px;
}

.right-sidebar .sidebar-header .close-sidebar-btn:hover {
  color: var(--color-primary);
}

.right-sidebar .sidebar-content {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  background: var(--bg-surface);
}

.right-sidebar .sidebar-content .widget_shopping_cart_content ul.woocommerce-mini-cart {
  padding: 0;
  margin: 0;
  list-style: none;
}

.right-sidebar .sidebar-content .widget_shopping_cart_content ul.woocommerce-mini-cart li.woocommerce-mini-cart-item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.right-sidebar .sidebar-content .widget_shopping_cart_content ul.woocommerce-mini-cart li.woocommerce-mini-cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.right-sidebar .sidebar-content .widget_shopping_cart_content ul.woocommerce-mini-cart li.woocommerce-mini-cart-item a {
  font-weight: 600;
  color: var(--color-text);
  font-size: 14px;
  display: block;
  margin-bottom: 5px;
}

.right-sidebar .sidebar-content .widget_shopping_cart_content ul.woocommerce-mini-cart li.woocommerce-mini-cart-item .quantity {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.right-sidebar .sidebar-content .widget_shopping_cart_content ul.woocommerce-mini-cart li.woocommerce-mini-cart-item .remove {
  position: absolute;
  top: 15px;
  right: 0;
  color: var(--color-danger);
  font-size: 16px;
}

.right-sidebar .sidebar-content .widget_shopping_cart_content ul.woocommerce-mini-cart li.woocommerce-mini-cart-item .remove:hover {
  background: none;
  color: var(--color-danger);
}

.right-sidebar .sidebar-content .widget_shopping_cart_content p.woocommerce-mini-cart__total {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
  color: var(--color-text);
}

.right-sidebar .sidebar-content .widget_shopping_cart_content p.woocommerce-mini-cart__buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.right-sidebar .sidebar-content .widget_shopping_cart_content p.woocommerce-mini-cart__buttons a.button {
  width: 100%;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
}

.right-sidebar .sidebar-content .widget_shopping_cart_content p.woocommerce-mini-cart__buttons a.button.checkout {
  background: var(--color-primary);
  color: #fff;
}

.right-sidebar .sidebar-content .widget_shopping_cart_content p.woocommerce-mini-cart__buttons a.button:not(.checkout) {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.right-sidebar .sidebar-content .widget_shopping_cart_content p.woocommerce-mini-cart__buttons a.button:not(.checkout):hover {
  background: var(--color-primary-soft);
}

.main-footer {
  background-color: var(--footer-bg);
  border-top: 1px solid var(--color-border);
  padding-top: 80px;
  margin-top: 80px;
  color: var(--footer-text);
}

.main-footer .footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 60px;
}

@media (min-width: 768px) {
  .main-footer .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .main-footer .footer-container {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }
}

.main-footer .footer-col h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.main-footer .footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.main-footer .footer-col ul li a {
  text-decoration: none;
  color: var(--footer-text);
  opacity: 0.7;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.main-footer .footer-col ul li a:hover {
  color: var(--color-primary);
  opacity: 1;
}

.main-footer .brand-col .footer-logo-img {
  max-width: 150px;
  margin-bottom: 20px;
}

.main-footer .brand-col .footer-bio {
  color: var(--footer-text);
  opacity: 0.7;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.main-footer .brand-col .social-links {
  display: flex;
  gap: 15px;
}

.main-footer .brand-col .social-links a {
  color: var(--footer-text);
  font-size: 1.2rem;
  transition: color 0.2s;
}

.main-footer .brand-col .social-links a:hover {
  color: var(--color-primary);
}

.main-footer .newsletter-col p {
  color: var(--footer-text);
  opacity: 0.7;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.main-footer .newsletter-col .newsletter-form {
  display: flex;
}

.main-footer .newsletter-col .newsletter-form input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid var(--color-border);
  border-radius: 12px 0 0 12px;
  outline: none;
  font-family: inherit;
  background: var(--bg-surface);
  color: var(--color-text);
}

.main-footer .newsletter-col .newsletter-form input:focus {
  border-color: var(--color-primary);
}

.main-footer .newsletter-col .newsletter-form button {
  padding: 0 20px;
  background-color: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 0 12px 12px 0;
  cursor: pointer;
  transition: background 0.2s;
}

.main-footer .newsletter-col .newsletter-form button:hover {
  background-color: var(--color-primary-hover);
}

.main-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 0;
}

.main-footer .footer-bottom .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
}

@media (min-width: 768px) {
  .main-footer .footer-bottom .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.main-footer .footer-bottom p {
  font-size: 0.85rem;
  color: var(--footer-text);
  opacity: 0.5;
  margin: 0;
}

.main-footer .footer-bottom .payment-methods {
  display: flex;
  gap: 15px;
  color: var(--footer-text);
  opacity: 0.5;
  font-size: 1.5rem;
}

nav.woocommerce-breadcrumb,
.woocommerce-breadcrumb {
  width: 100%;
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
  font-size: 14px;
  color: var(--color-text-secondary);
  box-sizing: border-box;
  display: block;
}

nav.woocommerce-breadcrumb a,
.woocommerce-breadcrumb a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
}

nav.woocommerce-breadcrumb a:hover,
.woocommerce-breadcrumb a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.shop-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 30px 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .shop-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}

.shop-header-bar .shop-header-left {
  width: 100%;
}

@media (min-width: 768px) {
  .shop-header-bar .shop-header-left {
    width: auto;
  }
}

.shop-header-bar .shop-header-left .page-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
}

.shop-header-bar {
  display: flex;
  flex-direction: row;
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: var(--bg-body);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: all 0.8s ease;
}

[data-theme='dark'] .shop-header-bar {
  background-color: var(--bg-body);
}

.shop-header-bar.is-sticky {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
  padding-top: 100px;
  padding-bottom: 15px;
  z-index: 999;
}

.shop-header-bar .shop-header-left .term-description {
  margin-top: 10px;
  color: var(--color-text-secondary);
}

.shop-header-bar .shop-header-right {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
}

@media (min-width: 768px) {
  .shop-header-bar .shop-header-right {
    width: auto;
    justify-content: flex-end;
  }
}

.shop-header-bar .shop-header-right .btn-filter-toggle {
  background: var(--bg-surface);
  border: 1px solid var(--color-border);
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  z-index: 90;
}

.shop-header-bar .shop-header-right .btn-filter-toggle:hover {
  background: var(--color-primary-soft);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* KOSMETICS: FAB Filters for Mobile */
@media (max-width: 767px) {
  .shop-header-bar .shop-header-right .btn-filter-toggle {
    position: fixed;
    bottom: 80px;
    /* Above bottom nav */
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(130, 87, 229, 0.4);
    padding: 12px 24px;
    font-size: 15px;
    border-radius: 50px;
    z-index: 999999;
  }

  [data-theme="dark"] .shop-header-bar .shop-header-right .btn-filter-toggle {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  }
}

.shop-sorting-row {
  display: flex;
  justify-content: space-between;
  /* Results left, Sorting right */
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 30px;
  padding: 0 20px;
  font-size: 14px;
  color: #6B7280;
  box-sizing: border-box;
  width: 100%;
}

.shop-sorting-row .woocommerce-result-count {
  margin: 0 !important;
  margin-right: auto !important;
  /* Force to left and push others right */
  text-align: left;
  white-space: nowrap;
  /* Prevent stacking */
}

.shop-sorting-row .woocommerce-ordering {
  margin: 0 !important;
}

.shop-sorting-row .woocommerce-ordering select {
  padding: 8px 35px 8px 15px;
  border-radius: 10px;
  border: 1px solid #E5E7EB;
  color: #374151;
  cursor: pointer;
  background-color: #fff;
  font-size: 14px;
  font-weight: 500;
  height: 42px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280' %3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  transition: all 0.2s;
  display: none;
}

.shop-sorting-row .woocommerce-ordering select:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.shop-sorting-row .woocommerce-ordering select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb, 212, 165, 165), 0.2);
}

/* Base styles for options (Limited browser support) */
.shop-sorting-row .woocommerce-ordering select option {
  padding: 10px;
  background: #ffffff;
  color: #374151;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
}


.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px;
  margin: 0 auto 60px;
  padding: 0 20px;
  list-style: none;
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
}

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

@media (max-width: 767px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 15px;
    padding: 0 15px;
  }
}

@media (min-width: 768px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 30px;
  }
}

.woocommerce ul.products li.product {
  margin: 0 !important;
  padding: 0 !important;
  background: none;
  border: none;
  float: none !important;
  width: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
}

.woocommerce ul.products li.product .mgc-product-card {
  height: auto !important;
  flex: 1 !important;
  width: 100%;
}

.mgc-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: auto;
}

.mgc-product-card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
  z-index: 2;
}

.mgc-product-card:hover .mgc-image-container .img-wrapper .secondary-img {
  opacity: 1;
}

.mgc-product-card.sale {
  border-color: rgba(239, 68, 68, 0.3);
}

.mgc-product-card.sale .onsale {
  background-color: #EF4444;
  color: #fff;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
  text-transform: uppercase;
}

.mgc-product-card .mgc-image-container {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background-color: #ffffff;
}

.mgc-product-card .mgc-image-container .img-wrapper {
  position: relative;
  width: 100%;
}

.mgc-product-card .mgc-image-container .img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease-in-out;
}

.mgc-product-card .mgc-image-container .img-wrapper .secondary-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
}

/* --- BRAND BADGE --- */
.mgc-brand-badge {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: white;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #f3f4f6;
  max-width: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
}

.mgc-brand-badge img {
  max-height: 20px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* --- STATIC BRAND HEADER --- */
.mgc-brand-badge-static {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.mgc-card-header {
  padding: 8px;
  text-align: center;
  border-bottom: 1px solid var(--color-border-subtle, #f3f4f6);
  background-color: #fafafa;
  /* Subtle background */
  border-top: 3px solid var(--color-primary);
  /* Accent color pop */
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.mgc-brand-badge-static .brand-logo-img {
  max-height: 28px;
  max-width: 90%;
  object-fit: contain;
  filter: grayscale(100%);
  /* Elegant grayscale by default */
  opacity: 0.8;
  transition: all 0.3s;
}

.mgc-product-card:hover .mgc-brand-badge-static .brand-logo-img {
  filter: grayscale(0%);
  /* Color on hover */
  opacity: 1;
}

.mgc-brand-badge-static .brand-text {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  /* Use brand color for text fallback */
  letter-spacing: 0.5px;
}

.mgc-brand-badge.text-only {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* --- WISHLIST BUTTON STYLING (Standard Shortcode Override) --- */
.mgc-product-card .mgc-image-container .card-wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 100 !important;
  width: 34px;
  height: 34px;
}

/* Container generated by YITH */
.mgc-product-card .card-wishlist-btn .yith-wcwl-add-to-wishlist {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  height: 100%;
}

/* The clickable links inside */
.mgc-product-card .card-wishlist-btn .yith-wcwl-add-button a,
.mgc-product-card .card-wishlist-btn .yith-wcwl-wishlistaddedbrowse a,
.mgc-product-card .card-wishlist-btn .yith-wcwl-wishlistexistsbrowse a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none !important;
  transition: all 0.2s;
  position: relative;
}

/* Icon centering and sizing */
.mgc-product-card .card-wishlist-btn i,
.mgc-product-card .card-wishlist-btn svg {
  margin: 0 !important;
  font-size: 16px !important;
  line-height: 1 !important;
  color: #6B7280;
  display: block;
}

/* Hover state */
.mgc-product-card .card-wishlist-btn a:hover {
  transform: scale(1.1);
}

.mgc-product-card .card-wishlist-btn a:hover i {
  color: #EF4444;
}

/* Active/Added state icons */
.mgc-product-card .card-wishlist-btn .yith-wcwl-wishlistaddedbrowse i,
.mgc-product-card .card-wishlist-btn .yith-wcwl-wishlistexistsbrowse i {
  color: #EF4444 !important;
}

/* Hide unwanted components YITH might output */
.mgc-product-card .card-wishlist-btn .separator,
.mgc-product-card .card-wishlist-btn .feedback,
.mgc-product-card .card-wishlist-btn .yith-wcwl-icon {
  display: none !important;
}

/* --- FORCE WISHLIST STYLE --- */
.mgc-product-card .mgc-image-container .card-wishlist-btn .mgc-force-wishlist,
.mgc-product-card .mgc-image-container .card-wishlist-btn .mgc-custom-wishlist-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none !important;
  transition: all 0.2s;
  color: #6B7280;
}

.mgc-product-card .mgc-image-container .card-wishlist-btn .mgc-force-wishlist i,
.mgc-product-card .mgc-image-container .card-wishlist-btn .mgc-custom-wishlist-btn i {
  font-size: 16px;
  line-height: 1;
  display: block;
}

.mgc-product-card .mgc-image-container .card-wishlist-btn .mgc-force-wishlist:hover,
.mgc-product-card .mgc-image-container .card-wishlist-btn .mgc-custom-wishlist-btn:hover {
  transform: scale(1.1);
  color: #EF4444;
}

.mgc-product-card .mgc-image-container .card-wishlist-btn .mgc-force-wishlist.added,
.mgc-product-card .mgc-image-container .card-wishlist-btn .mgc-custom-wishlist-btn.added {
  color: #EF4444;
}

/* Spinner for custom AJAX */
.mgc-custom-wishlist-btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

.mgc-custom-wishlist-btn.loading i {
  animation: spin 1s linear infinite;
}

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

.mgc-product-card .mgc-card-inner {
  padding: 12px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
}

.mgc-product-card .mgc-card-inner .mgc-rating-container {
  font-size: 12px;
  color: #f59e0b;
}

.mgc-product-card .mgc-card-inner .mgc-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin: 4px 0 6px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  line-clamp: 4;
  overflow: hidden;
}

.mgc-product-card .mgc-card-inner .mgc-title a {
  text-decoration: none;
  color: inherit;
}

/* Fallback Wishlist Btn (if YITH inactive) */
.wishlist-button.fallback-wishlist {
  display: flex;
  width: 34px;
  height: 34px;
  background: white;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #6B7280;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
}

.wishlist-button.fallback-wishlist:hover {
  color: #EF4444;
  transform: scale(1.1);
}

.mgc-product-card .mgc-card-inner .mgc-price-block {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.mgc-product-card .mgc-card-inner .mgc-price-block del {
  color: #6B7280;
  font-size: 13px;
  font-weight: 400;
  margin-right: 6px;
  text-decoration: line-through;
}

.mgc-product-card .mgc-card-inner .mgc-price-block ins {
  text-decoration: none;
  color: #8257E5;
}

.mgc-product-card .mgc-card-inner .mgc-bottom-line {
  margin-top: auto !important;
  width: 100%;
}

.mgc-product-card .mgc-card-inner .mgc-bottom-line .cart {
  display: grid !important;
  grid-template-columns: 90px 1fr !important;
  gap: 8px;
  height: 40px !important;
  margin: 0;
  width: 100%;
}

.mgc-product-card .mgc-card-inner .mgc-bottom-line .cart .mgc-qty-wrapper {
  display: flex;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  height: 100%;
  width: 100%;
}

.mgc-product-card .mgc-card-inner .mgc-bottom-line .cart .mgc-qty-wrapper .mgc-qty-btn {
  width: 25px;
  border: none;
  background: #f9fafb;
  color: #111827;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.mgc-product-card .mgc-card-inner .mgc-bottom-line .cart .mgc-qty-wrapper .mgc-qty-btn:hover {
  background: #e5e7eb;
}

.mgc-product-card .mgc-card-inner .mgc-bottom-line .cart .mgc-qty-wrapper input.qty {
  flex: 1;
  width: 100% !important;
  border: none;
  border-left: 1px solid #E5E7EB;
  border-right: 1px solid #E5E7EB;
  background: transparent;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  padding: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}

.mgc-product-card .mgc-card-inner .mgc-bottom-line .cart .mgc-qty-wrapper input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
}

.mgc-product-card .mgc-card-inner .mgc-bottom-line .cart .mgc-add-btn {
  width: 100%;
  height: 100%;
  background-color: #8257E5;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s;
  text-decoration: none;
  padding: 0;
}

.mgc-product-card .mgc-card-inner .mgc-bottom-line .cart .mgc-add-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
  stroke: currentColor;
  fill: none;
}

.mgc-product-card .mgc-card-inner .mgc-bottom-line .cart .mgc-add-btn:hover {
  background-color: rgb(113.5695876289, 64.9175257732, 225.5824742268);
}

.mgc-product-card .mgc-card-inner .mgc-bottom-line .variable-options-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px !important;
  background-color: #8257E5;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.2s;
}

.mgc-product-card .mgc-card-inner .mgc-bottom-line .variable-options-btn:hover {
  background-color: rgb(113.5695876289, 64.9175257732, 225.5824742268);
}

#mgc-toast-container {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

/* Modificación Mobile: Toast de carrito y general emerge desde abajo,
   justo arriba del bottom nav bar vinculado visualmente. */
@media (max-width: 768px) {
  #mgc-toast-container {
    top: auto !important;
    bottom: calc(var(--mobile-bottom-nav-height, 65px) + env(safe-area-inset-bottom, 0px)) !important;
    right: 0 !important;
    left: 0 !important;
    width: 100%;
    align-items: center;
    gap: 0;
    padding: 0;
  }
}

.mgc-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  pointer-events: auto;
  min-width: 280px;
  max-width: 360px;
}

.mgc-toast.show {
  transform: translateX(0);
  opacity: 1;
}

@media (max-width: 768px) {
  .mgc-toast {
    transform: translateY(120%) !important;
    max-width: 100%;
    width: 100%;
    justify-content: center;
    border-radius: 16px 16px 0 0 !important;
    /* Visualmente vinculado a la navbar inferior */
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    margin: 0;
    border-bottom: 1px solid #ebebeb;
  }

  .mgc-toast.show {
    transform: translateY(0) !important;
  }
}

.mgc-toast .icon-check {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981, rgb(20.0597014925, 231.9402985075, 161.7313432836));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}

.mgc-toast.wishlist-toast .icon-check {
  background: linear-gradient(135deg, #EF4444, rgb(243.0197044335, 114.9802955665, 114.9802955665));
}

.mgc-toast .toast-content {
  font-size: 14px;
  color: #111827;
  line-height: 1.4;
}

.mgc-toast .toast-content strong {
  color: #8257E5;
}

.fly-to-cart-dot {
  position: fixed;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #8257E5, rgb(179.2912371134, 153.2474226804, 239.2525773196));
  border-radius: 50%;
  z-index: 99999;
  pointer-events: none;
  box-shadow: 0 4px 15px rgba(130, 87, 229, 0.5);
  transform: translate(-50%, -50%);
  transition: all 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cart-bounce {
  animation: cart-bounce 0.3s ease;
}

@keyframes cart-bounce {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }
}

.woocommerce-cart .entry-content {
  padding: 40px 0;
}

.woocommerce-cart .woocommerce {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.woocommerce-cart table.shop_table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  margin-bottom: 30px;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
}

.woocommerce-cart table.shop_table thead {
  background: #ffffff;
}

.woocommerce-cart table.shop_table thead th {
  padding: 15px;
  font-weight: 700;
  color: #111827;
  border-bottom: 2px solid #E5E7EB;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.woocommerce-cart table.shop_table td {
  padding: 20px 15px;
  border-bottom: 1px solid #E5E7EB;
  vertical-align: middle;
}

.woocommerce-cart table.shop_table td.product-remove a.remove {
  color: #EF4444;
  font-size: 18px;
}

.woocommerce-cart table.shop_table td.product-remove a.remove:hover {
  background: none;
  color: rgb(234.9802955665, 21.0197044335, 21.0197044335);
}

.woocommerce-cart table.shop_table td.product-thumbnail img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
}

.woocommerce-cart table.shop_table td.product-name a {
  font-weight: 600;
  color: #111827;
  text-decoration: none;
}

.woocommerce-cart table.shop_table td.product-name a:hover {
  color: #8257E5;
}

.woocommerce-cart .cart-collaterals .cart_totals {
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
}

.woocommerce-cart .cart-collaterals .cart_totals h2 {
  font-size: 1.5rem;
  border-bottom: 2px solid #E5E7EB;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.woocommerce-cart .cart-collaterals .cart_totals table {
  width: 100%;
  margin-bottom: 20px;
}

.woocommerce-cart .cart-collaterals .cart_totals table th,
.woocommerce-cart .cart-collaterals .cart_totals table td {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.woocommerce-cart .cart-collaterals .cart_totals .wc-proceed-to-checkout a.checkout-button {
  display: block;
  width: 100%;
  text-align: center;
  background: #8257E5;
  color: #fff;
  padding: 15px;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.3s;
}

.woocommerce-cart .cart-collaterals .cart_totals .wc-proceed-to-checkout a.checkout-button:hover {
  background: rgb(113.5695876289, 64.9175257732, 225.5824742268);
}

input[type=text],
input[type=email],
input[type=password],
input[type=search],
input[type=tel],
input[type=number],
input[type=url],
input[type=date],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  background-color: #fff;
  color: #111827;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

input[type=text]::placeholder,
input[type=email]::placeholder,
input[type=password]::placeholder,
input[type=search]::placeholder,
input[type=tel]::placeholder,
input[type=number]::placeholder,
input[type=url]::placeholder,
input[type=date]::placeholder,
textarea::placeholder,
select::placeholder {
  color: rgba(17, 24, 39, 0.4);
}

input[type=text]:focus,
input[type=email]:focus,
input[type=password]:focus,
input[type=search]:focus,
input[type=tel]:focus,
input[type=number]:focus,
input[type=url]:focus,
input[type=date]:focus,
textarea:focus,
select:focus {
  border-color: #8257E5;
  box-shadow: 0 0 0 3px #f3e8ff;
}

input[type=text]:disabled,
input[type=email]:disabled,
input[type=password]:disabled,
input[type=search]:disabled,
input[type=tel]:disabled,
input[type=number]:disabled,
input[type=url]:disabled,
input[type=date]:disabled,
textarea:disabled,
select:disabled {
  background-color: #F9FAFB;
  cursor: not-allowed;
  opacity: 0.7;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input[type=checkbox],
input[type=radio] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  position: relative;
  top: 4px;
  margin-right: 8px;
  transition: all 0.2s;
}

input[type=checkbox]:checked,
input[type=radio]:checked {
  background-color: #8257E5;
  border-color: #8257E5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-position: center;
}

input[type=checkbox]:focus,
input[type=radio]:focus {
  box-shadow: 0 0 0 3px #f3e8ff;
}

input[type=radio] {
  border-radius: 50%;
}

input[type=radio]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3C/svg%3E");
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: #111827;
  font-size: 0.95rem;
}

button,
input[type=submit],
input[type=button],
input[type=reset],
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  background-color: #8257E5;
  color: #fff;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
  text-decoration: none;
}

button:hover,
input[type=submit]:hover,
input[type=button]:hover,
input[type=reset]:hover,
.btn:hover {
  background-color: rgb(103.7113402062, 51.6680412371, 223.5319587629);
  transform: translateY(-1px);
}

button:active,
input[type=submit]:active,
input[type=button]:active,
input[type=reset]:active,
.btn:active {
  transform: translateY(0);
}

button:disabled,
input[type=submit]:disabled,
input[type=button]:disabled,
input[type=reset]:disabled,
.btn:disabled {
  background-color: #6B7280;
  cursor: not-allowed;
  transform: none;
}

.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: "▼";
  font-size: 0.8rem;
  color: #6B7280;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.woocommerce-account .woocommerce {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 768px) {
  .woocommerce-account .woocommerce {
    flex-direction: row;
    align-items: flex-start;
  }
}

.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation {
  width: 100%;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  overflow: hidden;
}

@media (min-width: 768px) {
  .woocommerce-account .woocommerce .woocommerce-MyAccount-navigation {
    width: 250px;
    flex-shrink: 0;
  }
}

.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation ul li {
  border-bottom: 1px solid #E5E7EB;
}

.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation ul li:last-child {
  border-bottom: none;
}

.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation ul li.is-active a {
  background-color: #f3e8ff;
  color: #8257E5;
  font-weight: 600;
  border-left: 4px solid #8257E5;
}

.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 15px 20px;
  text-decoration: none;
  color: #111827;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation ul li a:hover {
  background-color: #ffffff;
  color: #8257E5;
}

.woocommerce-account .woocommerce .woocommerce-MyAccount-content {
  flex: 1;
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  width: 100%;
}

.woocommerce-account .woocommerce .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce .woocommerce-MyAccount-content h3 {
  color: #111827;
  margin-top: 0;
}

.woocommerce-account .woocommerce .woocommerce-MyAccount-content p {
  margin-bottom: 1rem;
  color: #6B7280;
}

.woocommerce-account .woocommerce .woocommerce-MyAccount-content form.edit-account fieldset,
.woocommerce-account .woocommerce .woocommerce-MyAccount-content form.woocommerce-EditAccountForm fieldset {
  border: 1px solid #E5E7EB;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 12px;
}

.woocommerce-account .woocommerce .woocommerce-MyAccount-content form.edit-account fieldset legend,
.woocommerce-account .woocommerce .woocommerce-MyAccount-content form.woocommerce-EditAccountForm fieldset legend {
  padding: 0 10px;
  font-weight: 600;
}

.woocommerce-account .woocommerce .woocommerce-MyAccount-content .u-columns {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .woocommerce-account .woocommerce .woocommerce-MyAccount-content .u-columns {
    grid-template-columns: 1fr 1fr;
  }
}

.woocommerce-account .woocommerce .woocommerce-MyAccount-content .u-columns .woocommerce-Address-title h3 {
  font-size: 1.2rem;
}

.woocommerce-form-row {
  margin-bottom: 15px;
}

.woocommerce-form-row label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #111827;
}

.woocommerce-form-row .woocommerce-Input {
  width: 100%;
  padding: 12px;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  outline: none;
  transition: border 0.2s;
}

.woocommerce-form-row .woocommerce-Input:focus {
  border-color: #8257E5;
  box-shadow: 0 0 0 3px #f3e8ff;
}

.woocommerce-Button.button {
  width: auto;
  display: inline-block;
  background: #8257E5;
  color: #fff;
}

.woocommerce-Button.button:hover {
  background: rgb(113.5695876289, 64.9175257732, 225.5824742268);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  border-left: 5px solid #8257E5;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
  display: none;
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
  float: right;
  margin-top: -8px;
  background: transparent;
  color: #111827;
  border: 1px solid #E5E7EB;
  padding: 5px 15px;
}

.woocommerce-message .button:hover,
.woocommerce-info .button:hover,
.woocommerce-error .button:hover {
  background: #ffffff;
}

.woocommerce-error {
  border-color: #F43F5E;
}

.woocommerce-info {
  border-color: #3B82F6;
}



.hero-section {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.hero-section .swiper {
  width: 100%;
  height: 100%;
  background: #f8fafc;
}

/* Base aspect ratio for desktop to replace absolute heights */
.hero-section .hero-slide-content {
  width: 100%;
  aspect-ratio: 16 / 7;
  background-size: cover;
  background-position: top center;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-section .hero-slide-content .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-section .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
}

.hero-section .hero-text {
  color: #fff;
  max-width: 600px;
  padding: 0 20px;
}

.hero-section .hero-text .badge-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-section .hero-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .hero-section .hero-text h1 {
    font-size: 2.5rem;
  }
}

.hero-section .hero-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .hero-section .hero-text p {
    font-size: 1rem;
  }
}

.hero-section .hero-text .hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(130, 87, 229, 0.3);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 60px 20px;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 40px 20px;
  }
}

.features-grid .feature-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 30px;
  background: var(--bg-surface-elevated);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease;
}

.features-grid .feature-item:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
}

.features-grid .feature-item .icon-box {
  width: 60px;
  height: 60px;
  background: var(--color-primary-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

.features-grid .feature-item .feature-text h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--color-text);
}

.features-grid .feature-item .feature-text p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin: 0;
}

.categories-section {
  padding: 40px 20px 80px;
}

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

.categories-section .section-header .section-subtitle {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.categories-section .section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0;
  color: var(--color-text);
}

.categories-section .section-header .view-all {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.categories-section .section-header .view-all:hover {
  text-decoration: underline;
}

.categories-section .categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
}

@media (max-width: 1024px) {
  .categories-section .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .categories-section .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.categories-section .categories-grid .category-circle {
  text-align: center;
  text-decoration: none;
}

.categories-section .categories-grid .category-circle .img-wrapper {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 15px;
  background: var(--color-primary-soft);
  position: relative;
}

.categories-section .categories-grid .category-circle .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.categories-section .categories-grid .category-circle span {
  display: block;
  font-weight: 600;
  color: var(--color-text);
  transition: color 0.3s;
}

.categories-section .categories-grid .category-circle:hover .img-wrapper img {
  transform: scale(1.1);
}

.categories-section .categories-grid .category-circle:hover span {
  color: var(--color-primary);
}

.product-section {
  padding: 80px 20px;
}

.product-section .section-header {
  margin-bottom: 40px;
}

.product-section .section-header .section-subtitle {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.product-section .section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0;
  color: var(--color-text);
}

@media (max-width: 768px) {
  .product-section .section-header h2 {
    font-size: 2rem;
  }
}

.newsletter-section {
  padding: 0 20px 80px;
}

.newsletter-section .newsletter-card {
  background: linear-gradient(135deg, #1f1f2e 0%, #2d2d44 100%);
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  position: relative;
  color: #fff;
}

@media (max-width: 992px) {
  .newsletter-section .newsletter-card {
    flex-direction: column;
  }
}

.newsletter-section .newsletter-card .content-col {
  flex: 1;
  padding: 80px;
  z-index: 2;
}

@media (max-width: 768px) {
  .newsletter-section .newsletter-card .content-col {
    padding: 40px;
  }
}

.newsletter-section .newsletter-card .content-col h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #fff;
}

.newsletter-section .newsletter-card .content-col h2 span {
  color: var(--color-primary);
}

.newsletter-section .newsletter-card .content-col p {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: 40px;
  max-width: 500px;
  color: #fff;
}

.newsletter-section .newsletter-card .content-col .newsletter-form-home {
  display: flex;
  gap: 15px;
  max-width: 500px;
}

@media (max-width: 600px) {
  .newsletter-section .newsletter-card .content-col .newsletter-form-home {
    flex-direction: column;
  }
}

.newsletter-section .newsletter-card .content-col .newsletter-form-home input {
  flex: 1;
  padding: 15px 25px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  outline: none;
  backdrop-filter: blur(10px);
}

.newsletter-section .newsletter-card .content-col .newsletter-form-home input:focus {
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.1);
}

.newsletter-section .newsletter-card .content-col .newsletter-form-home button {
  padding: 15px 35px;
  border-radius: 50px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.newsletter-section .newsletter-card .content-col .newsletter-form-home button:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(130, 87, 229, 0.4);
}

.newsletter-section .newsletter-card .image-col {
  flex: 1;
  position: relative;
  min-height: 400px;
}

.newsletter-section .newsletter-card .image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mask-image: linear-gradient(to right, transparent, black 20%);
  -webkit-mask-image: linear-gradient(to right, transparent, black 20%);
}

.scroll-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 5px 40px 5px;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.scroll-grid::-webkit-scrollbar {
  height: 6px;
}

.scroll-grid::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}

.scroll-grid::-webkit-scrollbar-track {
  background: var(--bg-surface-elevated);
  border-radius: 4px;
}

.scroll-grid li.product {
  min-width: 280px;
  max-width: 280px;
  flex: 0 0 auto;
  width: 280px !important;
  margin: 0 !important;
}

.scroll-grid li.product .mgc-product-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--color-border);
  height: 100%;
}


/* =====================================================
   HEADER SEARCH - SIMPLIFIED LIKE REFERENCE
   ===================================================== */
.header-search {
  flex: 0 0 auto;
}

.header-search-form {
  display: flex;
  align-items: center;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  padding: 10px 20px;
  gap: 10px;
  min-width: 200px;
  transition: all 0.2s ease;
}

.header-search-form:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-soft);
}

.header-search-form i {
  color: var(--color-text-muted);
  font-size: 14px;
}

.header-search-form input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.9rem;
  color: var(--color-text);
  width: 150px;
}

.header-search-form input::placeholder {
  color: var(--color-text-muted);
}

@media (max-width: 1100px) {
  .header-search {
    display: none;
  }
}

/* =====================================================
   DARK MODE PRODUCT CARD TEXT FIX
   ===================================================== */
[data-theme="dark"] .mgc-product-card .product-title,
[data-theme="dark"] .mgc-product-card .product-brand,
[data-theme="dark"] .mgc-product-card .price,
[data-theme="dark"] .woocommerce-loop-product__title,
[data-theme="dark"] .woocommerce ul.products li.product .woocommerce-loop-product__title,
[data-theme="dark"] .woocommerce ul.products li.product .price {
  color: var(--color-text) !important;
}

[data-theme="dark"] .mgc-product-card .product-brand,
[data-theme="dark"] .woocommerce ul.products li.product .product-brand {
  color: var(--color-text-secondary) !important;
}

[data-theme="dark"] .mgc-product-card {
  background: var(--bg-surface-elevated);
  border-color: var(--color-border);
}


/* =====================================================
   HEADER SEARCH - SIMPLIFIED LIKE REFERENCE
   ===================================================== */
.header-search {
  flex: 0 0 auto;
}

.header-search-form {
  display: flex;
  align-items: center;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  padding: 10px 20px;
  gap: 10px;
  min-width: 200px;
  transition: all 0.2s ease;
}

.header-search-form:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-soft);
}

.header-search-form i {
  color: var(--color-text-muted);
  font-size: 14px;
}

.header-search-form input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.9rem;
  color: var(--color-text);
  width: 150px;
}

.header-search-form input::placeholder {
  color: var(--color-text-muted);
}

@media (max-width: 1100px) {
  .header-search {
    display: none;
  }
}


/* =====================================================
   DARK MODE FIXES (LOGO & TEXT)
   ===================================================== */

/* Logo Toggle */
.logo-dark {
  display: none;
}

.logo-light {
  display: block;
}

[data-theme="dark"] .logo-light {
  display: none !important;
}

[data-theme="dark"] .logo-dark {
  display: block !important;
  height: 45px !important;
  width: auto;
  max-width: 200px;
}

/* =====================================================
   HEADER UI/UX REDESIGN (Professional Layout)
   ===================================================== */
.site-header.main-header {
  background: var(--bg-surface);
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1440px;
  /* Wider for premium feel */
  margin: 0 auto;
  padding: 10px 40px;
  /* More breathing room */
  height: 90px;
}

.site-branding {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.logo-image {
  max-height: 45px;
  width: auto;
  transition: all 0.3s ease;
}

/* Inline SVG Logo specific sizes */
.k-dynamic-svg-logo {
  height: 28px;
  width: auto;
  transition: color 0.3s ease;
}

.site-branding.desktop-only .k-dynamic-svg-logo {
  height: 38px;
}

.main-navigation {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  /* Menu pushed towards search bar */
  padding: 0 40px 0 20px;
}

.main-navigation .nav-menu {
  display: flex;
  gap: 30px;
  /* Optimal spacing */
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
}

.main-navigation .nav-menu li a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  text-transform: capitalize;
  letter-spacing: 0.3px;
  padding: 8px 0;
  position: relative;
  text-decoration: none;
}

.main-navigation .nav-menu li a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.main-navigation .nav-menu li a:hover:after {
  width: 100%;
}

.header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Dark Mode Header Adjustments */
[data-theme="dark"] .site-header.main-header {
  background: #0f0f13;
  /* Deep dark background */
  border-bottom: 1px solid #1f1f2e;
}

/* =====================================================
   DARK MODE PRODUCT CARD - POLISHED DESIGN
   ===================================================== */

/* 1. Contenedor Principal: Suavizar contraste */
[data-theme="dark"] .mgc-product-card {
  background: #23232e !important;
  /* Slightly lighter than pure black */
  border: 1px solid #363645;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  /* Ensure inner elements conform to border-radius */
}

/* 2. Área Superior (Imagen + Header): Unificar en blanco para las imágenes JPG */
[data-theme="dark"] .mgc-product-card .mgc-card-header,
[data-theme="dark"] .mgc-product-card .mgc-image-container {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  /* Subtle separation */
}

[data-theme="dark"] .mgc-product-card .mgc-card-header {
  border-bottom: none;
  /* Seamless join with image */
  padding-bottom: 0 !important;
}

/* 3. Área Inferior (Contenido): Fondo oscuro integrado */
[data-theme="dark"] .mgc-product-card .mgc-card-inner {
  background-color: #23232e;
  padding: 15px;
}

/* 4. Textos: Alta legibilidad */
[data-theme="dark"] .mgc-product-card .mgc-title a,
[data-theme="dark"] .woocommerce-loop-product__title {
  color: #f3f4f6 !important;
  /* Off-white for title */
  font-weight: 600;
}

[data-theme="dark"] .mgc-product-card .mgc-card-header .brand-text {
  color: #111827 !important;
  /* Dark text on white header */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 5. PRECIO: Corrección Crítica de Visibilidad */
[data-theme="dark"] .mgc-product-card .price,
[data-theme="dark"] .mgc-product-card .price .amount,
[data-theme="dark"] .mgc-product-card .mgc-price-block {
  color: #a78bfa !important;
  /* Bright gentle purple */
  font-size: 1.1em;
  font-weight: 700;
}

[data-theme="dark"] .mgc-product-card .price del,
[data-theme="dark"] .mgc-product-card .price del .amount {
  color: #6b7280 !important;
  opacity: 0.7;
  font-size: 0.9em;
}

/* 6. Inputs y Botones en Dark Mode */
[data-theme="dark"] .mgc-qty-wrapper {
  background: transparent !important;
  border: 1px solid #3d3d4d !important;
  border-radius: 8px !important;
}

[data-theme="dark"] .mgc-qty-wrapper input.qty {
  color: #fff !important;
  background: transparent !important;
  border-left: 1px solid #3d3d4d !important;
  border-right: 1px solid #3d3d4d !important;
}

[data-theme="dark"] .mgc-qty-wrapper .mgc-qty-btn {
  color: #fff !important;
  background: transparent !important;
  border: none !important;
}

[data-theme="dark"] .mgc-qty-wrapper .mgc-qty-btn:hover {
  background: #3d3d4d !important;
  color: #a78bfa !important;
}

/* Wishlist Button in Card Positioning */
.mgc-product-card {
  position: relative;
}

.mgc-product-card .yith-wcwl-add-to-wishlist {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 20;
  margin: 0;
}

.mgc-product-card .yith-wcwl-add-to-wishlist a {
  color: var(--color-text-muted);
  font-size: 1rem;
  background: #fff;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
}

[data-theme="dark"] .mgc-product-card .yith-wcwl-add-to-wishlist a {
  background: #2a2a35;
  color: #fff;
}

.mgc-product-card .yith-wcwl-add-to-wishlist a:hover {
  color: var(--color-danger);
  transform: scale(1.1);
}

/* Brands Mega Menu UI Improvements */
.cuadricula-marcas.normales {
  max-height: 180px;
  /* Limit height initially */
  overflow: hidden;
  position: relative;
  transition: max-height 0.5s ease;
}

.cuadricula-marcas.normales.expanded {
  max-height: 1000px;
  /* Expand */
}

.ver-mas-marcas-btn {
  display: block;
  margin: 15px auto 0;
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.ver-mas-marcas-btn:hover {
  background: var(--color-primary);
  color: #fff;
}

/* =====================================================
   MEGA MENU STYLES
   ===================================================== */
.main-navigation .nav-menu li.has-mega-menu {
  position: static;
}

.mega-menu-wrapper {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 999;
  padding: 30px 0;
  max-height: 80vh;
  overflow-y: auto;
}

.main-navigation .nav-menu li.has-mega-menu:hover>.mega-menu-wrapper {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Rutina Mega Menu - Grid Layout */
.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 40px;
}

.mega-menu-grid .mega-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--color-text);
  padding: 15px 10px;
  border-radius: 12px;
  transition: all 0.2s ease;
  background: transparent;
}

.mega-menu-grid .mega-menu-item:hover {
  background: var(--color-primary-soft);
  transform: translateY(-3px);
}

.mega-menu-grid .mega-menu-item-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 10px;
  background: var(--bg-surface);
  border: 2px solid var(--color-border);
  transition: border-color 0.2s;
}

.mega-menu-grid .mega-menu-item:hover .mega-menu-item-img {
  border-color: var(--color-primary);
}

.mega-menu-grid .mega-menu-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mega-menu-grid .mega-menu-item-name {
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  color: var(--color-text);
  transition: color 0.2s;
}

.mega-menu-grid .mega-menu-item:hover .mega-menu-item-name {
  color: var(--color-primary);
}

/* Legacy column-based menu (kept for compatibility) */
.mega-menu-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.mega-menu-container .column {
  flex: 1;
  min-width: 200px;
}

.mega-menu-container .column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-menu-container .column li {
  margin-bottom: 12px;
}

.mega-menu-container .column a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
  display: block;
}

.mega-menu-container .column a:hover {
  color: var(--color-primary);
  transform: translateX(5px);
}

.mega-menu-container .image-column .imagen-preview {
  width: 100%;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mega-menu-container .image-column .imagen-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

/* Marcas Mega Menu - Simplified (Featured Only) */
.marcas-mega-menu-simple {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
}

.marcas-mega-menu-simple .marcas-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}

.marcas-mega-menu-simple .mega-menu-grid {
  margin-bottom: 25px;
}

.marcas-mega-menu-simple .view-all-brands-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
  padding: 10px 24px;
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.marcas-mega-menu-simple .view-all-brands-link:hover {
  background: var(--color-primary);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.marcas-mega-menu-simple .view-all-brands-link i {
  transition: transform 0.2s;
  font-size: 0.85rem;
}

.marcas-mega-menu-simple .view-all-brands-link:hover i {
  transform: translateX(5px);
}

/* Marcas Mega Menu - New Design */
.marcas-mega-menu-new {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.marcas-section {
  margin-bottom: 25px;
}

.marcas-section:last-child {
  margin-bottom: 0;
}

.marcas-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}

.marcas-grid {
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
}

.marcas-grid .mega-menu-item-img {
  width: 60px;
  height: 60px;
  background: #fff;
  border: 1px solid var(--color-border);
}

[data-theme="dark"] .marcas-grid .mega-menu-item-img {
  background: #2d2d3a;
  border-color: #3d3d4a;
}

.marcas-grid .mega-menu-item-img img {
  object-fit: contain;
  padding: 5px;
}

.marcas-grid-compact .mega-menu-item {
  padding: 10px 5px;
}

.marcas-grid-compact .mega-menu-item-name {
  font-size: 0.75rem;
}

.toggle-brands-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px auto 0;
  padding: 10px 25px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.toggle-brands-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

.toggle-brands-btn i {
  transition: transform 0.3s;
}

.toggle-brands-btn.expanded i {
  transform: rotate(180deg);
}

/* View All Brands Link */
.view-all-brands-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px auto 0;
  padding: 12px 25px;
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  width: fit-content;
}

.view-all-brands-link:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.view-all-brands-link i {
  transition: transform 0.2s;
}

.view-all-brands-link:hover i {
  transform: translateX(5px);
}

/* Legacy Marcas Mega Menu (kept for compatibility) */
.marcas-mega-menu {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.mega-menu-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
  padding-bottom: 5px;
}

.cuadricula-marcas {
  display: grid;
  gap: 15px;
}

.cuadricula-marcas.destacadas {
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  margin-bottom: 30px;
}

.cuadricula-marcas.normales {
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}

.marca-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px;
  height: 80px;
  transition: all 0.2s;
}

[data-theme="dark"] .marca-item {
  background: #242430;
  border-color: #2d2d3a;
}

.marca-item:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.marca-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.marca-item .sin-imagen {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
}

.separador-marcas {
  height: 1px;
  background: var(--color-border);
  margin: 20px 0;
}

/* Skin Type Test Section */
.skin-test-section {
  margin-top: 80px;
  margin-bottom: 80px;
}

.skin-test-card {
  background: var(--bg-surface);
  border-radius: 30px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-border);
  min-height: 480px;
}

[data-theme="dark"] .skin-test-card {
  background: #1e1e26;
  border-color: #2d2d3a;
}

.skin-test-card .content-col {
  flex: 1.2;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.skin-test-card .badge {
  background: rgba(var(--color-primary-rgb), 0.1);
  color: var(--color-primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  width: fit-content;
  margin-bottom: 20px;
}

.skin-test-card h2 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--color-text);
}

.skin-test-card h2 span {
  color: var(--color-primary);
}

.skin-test-card p {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  margin-bottom: 30px;
  max-width: 500px;
}

.test-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 40px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--color-text);
}

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

.test-btn {
  width: fit-content;
  padding: 18px 40px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.test-btn i {
  transition: transform 0.3s;
}

.test-btn:hover i {
  transform: translateX(8px);
}

.skin-test-card .image-col {
  flex: 1;
  position: relative;
  overflow: hidden;
}

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

.floating-badge {
  position: absolute;
  top: 30px;
  right: 30px;
  background: #fff;
  padding: 12px 20px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  animation: float 3s ease-in-out infinite;
}

[data-theme="dark"] .floating-badge {
  background: #2d2d3a;
  color: #fff;
}

.floating-badge i {
  color: #ffb800;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Stories Rail */
.stories-rail {
  margin: 40px auto;
  /* Centered with vertical margin */
  padding: 0 15px;
  /* Horizontal padding from screen edge */
  max-width: 1400px;
  /* Limit max width */
}

.stories-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 5px 20px;
  scrollbar-width: none;
}

.stories-container::-webkit-scrollbar {
  display: none;
}

.story-circle {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  width: 90px;
  text-decoration: none !important;
}

.story-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  position: relative;
  transition: transform 0.2s;
}

.story-circle:hover .story-ring {
  transform: scale(1.05);
}

.story-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid var(--bg-surface);
  overflow: hidden;
  background: #eee;
}

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

.story-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text);
  max-width: 85px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .skin-test-card {
    flex-direction: column;
  }

  .skin-test-card .content-col {
    padding: 40px;
  }

  .skin-test-card .image-col {
    height: 350px;
  }
}

/* ==============================================
   SHOP FILTERS SIDEBAR (OFF-CANVAS)
   ============================================== */

.shop-filters-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 380px;
  max-width: 85%;
  height: 100vh;
  background: #ffffff;
  z-index: 999999;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.shop-filters-sidebar.active {
  transform: translateX(0);
}

.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Header */
.shop-filters-sidebar .sidebar-header {
  padding: 20px 25px;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
}

.shop-filters-sidebar .sidebar-header .sidebar-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-filters-sidebar .sidebar-header .close-sidebar-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6B7280;
  cursor: pointer;
  padding: 5px;
  transition: color 0.2s;
}

.shop-filters-sidebar .sidebar-header .close-sidebar-btn:hover {
  color: #EF4444;
}

/* Content */
.shop-filters-sidebar .sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

/* Accordion Groups */
.filter-group {
  border-bottom: 1px solid #E5E7EB;
}

.filter-header {
  padding: 18px 25px;
  cursor: pointer;
  font-weight: 600;
  color: #111827;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
  user-select: none;
}

.filter-header:hover {
  background: #F9FAFB;
}

.filter-header i {
  transition: transform 0.3s ease;
}

.filter-group.expanded .filter-header i {
  transform: rotate(180deg);
}

.filter-body {
  padding: 0 25px 20px;
  display: none;
}

.filter-group.expanded .filter-body {
  display: block;
}

/* Radio Cards (Sorting) */
.radio-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.radio-card:hover {
  background: #F3F4F6;
}

.radio-card input[type="radio"] {
  accent-color: var(--color-primary);
  width: 18px;
  height: 18px;
}

.radio-card span {
  font-size: 0.95rem;
  color: #374151;
}

/* Price Inputs */
.price-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-inputs .input-wrap {
  position: relative;
  flex: 1;
}

.price-inputs .input-wrap span {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
  font-size: 14px;
}

.price-inputs input {
  width: 100%;
  padding: 10px 10px 10px 25px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.price-inputs input:focus {
  border-color: var(--color-primary);
}

.separator {
  color: #9CA3AF;
  font-weight: 600;
}

/* Checkbox Lists */
.filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.checkbox-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  user-select: none;
}

.checkbox-item input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-item .checkmark {
  width: 20px;
  height: 20px;
  background-color: #fff;
  border: 2px solid #D1D5DB;
  border-radius: 4px;
  margin-right: 10px;
  position: relative;
  transition: all 0.2s;
  flex-shrink: 0;
}

.checkbox-item:hover input~.checkmark {
  border-color: var(--color-primary);
}

.checkbox-item input:checked~.checkmark {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.checkbox-item .checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-item input:checked~.checkmark:after {
  display: block;
}

.checkbox-item .label-text {
  font-size: 0.95rem;
  color: #374151;
}

.checkbox-item .count {
  margin-left: auto;
  font-size: 0.8rem;
  color: #9CA3AF;
  background-color: #F3F4F6;
  padding: 2px 6px;
  border-radius: 10px;
}

/* Sub-lists indent */
.sub-filter-list {
  list-style: none;
  padding-left: 25px;
  margin-top: 5px;
}

/* Search Box */
.filter-search-wrap {
  position: relative;
  margin-bottom: 15px;
}

.filter-search-wrap i {
  position: absolute;
  left: 15px;
  /* Adjusted from 12px */
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
  font-size: 14px;
  z-index: 5;
}

.filter-search-input {
  width: 100%;
  padding-top: 12px;
  padding-bottom: 12px;
  padding-right: 10px;
  padding-left: 35px !important;
  /* Force space for icon */
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  font-size: 14px;
  outline: none;
  background: #F9FAFB;
}

.filter-search-input:focus {
  background: #fff;
  border-color: var(--color-primary);
}

.scrollable-list {
  max-height: 250px;
  overflow-y: auto;
  padding-right: 5px;
}

/* Scrollbar styling */
.scrollable-list::-webkit-scrollbar {
  width: 4px;
}

.scrollable-list::-webkit-scrollbar-thumb {
  background-color: #D1D5DB;
  border-radius: 4px;
}

/* Footer Actions */
.sidebar-footer {
  padding: 20px 25px;
  border-top: 1px solid #E5E7EB;
  background: #fff;
  display: flex;
  gap: 15px;
}

.btn-reset {
  flex: 1;
  padding: 12px;
  border: 1px solid #D1D5DB;
  background: #fff;
  border-radius: 8px;
  font-weight: 600;
  color: #6B7280;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-reset:hover {
  background: #F3F4F6;
  color: #111827;
}

.btn-apply {
  flex: 2;
  padding: 12px;
  border: none;
  background: var(--color-primary);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

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

/* Loader */
.k-shop-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.k-shop-loader .spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--color-primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

.woocommerce ul.products.loading {
  position: relative;
  min-height: 400px;
}

/* =====================================================
   DARK MODE - SHOP FILTERS SIDEBAR
   ===================================================== */
[data-theme="dark"] .shop-filters-sidebar {
  background: #1a1a22;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .shop-filters-sidebar .sidebar-header {
  background: #1a1a22;
  border-bottom-color: #2d2d3a;
}

[data-theme="dark"] .shop-filters-sidebar .sidebar-header .sidebar-title {
  color: #f3f4f6;
}

[data-theme="dark"] .shop-filters-sidebar .sidebar-header .close-sidebar-btn {
  color: #9ca3af;
}

[data-theme="dark"] .shop-filters-sidebar .sidebar-header .close-sidebar-btn:hover {
  color: #EF4444;
}

[data-theme="dark"] .filter-group {
  border-bottom-color: #2d2d3a;
}

[data-theme="dark"] .filter-header {
  color: #e5e7eb;
}

[data-theme="dark"] .filter-header:hover {
  background: #242430;
}

[data-theme="dark"] .filter-header i {
  color: #9ca3af;
}

/* Checkbox Items */
[data-theme="dark"] .checkbox-item .checkmark {
  background-color: #242430;
  border-color: #3d3d4d;
}

[data-theme="dark"] .checkbox-item:hover input~.checkmark {
  border-color: var(--color-primary);
}

[data-theme="dark"] .checkbox-item .label-text {
  color: #d1d5db;
}

[data-theme="dark"] .checkbox-item .count {
  background-color: #2d2d3a;
  color: #9ca3af;
}

/* Radio Cards */
[data-theme="dark"] .radio-card:hover {
  background: #242430;
}

[data-theme="dark"] .radio-card span {
  color: #d1d5db;
}

/* Price Inputs */
[data-theme="dark"] .price-inputs input {
  background: #242430;
  border-color: #3d3d4d;
  color: #e5e7eb;
}

[data-theme="dark"] .price-inputs input:focus {
  border-color: var(--color-primary);
}

[data-theme="dark"] .price-inputs .input-wrap span {
  color: #6b7280;
}

[data-theme="dark"] .separator {
  color: #6b7280;
}

/* Search Input */
[data-theme="dark"] .filter-search-input {
  background: #242430;
  border-color: #3d3d4d;
  color: #e5e7eb;
}

[data-theme="dark"] .filter-search-input::placeholder {
  color: #6b7280;
}

[data-theme="dark"] .filter-search-input:focus {
  background: #2d2d3a;
  border-color: var(--color-primary);
}

[data-theme="dark"] .filter-search-wrap i {
  color: #6b7280;
}

/* Footer Actions */
[data-theme="dark"] .sidebar-footer {
  background: #1a1a22;
  border-top-color: #2d2d3a;
}

[data-theme="dark"] .btn-reset {
  background: #242430;
  border-color: #3d3d4d;
  color: #9ca3af;
}

[data-theme="dark"] .btn-reset:hover {
  background: #2d2d3a;
  color: #e5e7eb;
}

/* Scrollbar */
[data-theme="dark"] .scrollable-list::-webkit-scrollbar-thumb {
  background-color: #3d3d4d;
}

/* Loader Dark Mode */
[data-theme="dark"] .k-shop-loader {
  background: rgba(26, 26, 34, 0.8);
}

[data-theme="dark"] .k-shop-loader .spinner {
  border-color: #3d3d4d;
  border-top-color: var(--color-primary);
}

/* =====================================================
   PREMIUM LOGIN / REGISTER UI
   ===================================================== */

/* =====================================================
   AUTH / LOGIN STYLES — MOVED TO assets/css/auth-page.css
   Old styles below are deprecated (commented out).
   ===================================================== */

/* Hide default page title on login page */
.woocommerce-account:not(.logged-in) .page-title,
.woocommerce-account:not(.logged-in) .entry-content>.woocommerce:not(.k-auth-container) {
  display: none;
}

/* Main Container - Split Screen */
.k-auth-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  margin: -60px 0;
  /* Offset page padding */
}

/* Brand Side (Left) */
.k-auth-brand {
  display: none;
  width: 45%;
  background: linear-gradient(-45deg, #6C3ECE, #F43F5E, #23a6d5, #8257E5);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  position: relative;
  overflow: hidden;
}

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

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.k-auth-brand::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(120deg,
      rgba(255, 255, 255, 0) 30%,
      rgba(255, 255, 255, 0.05) 45%,
      rgba(255, 255, 255, 0) 60%);
  background-size: 200% 200%;
  animation: shimmer-premium 10s infinite linear;
  pointer-events: none;
}

@keyframes shimmer-premium {
  0% {
    transform: translate(-10%, -10%) rotate(0deg);
  }

  100% {
    transform: translate(10%, 10%) rotate(5deg);
  }
}

.k-auth-brand-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  /* Alineación izquierda */
  height: 100%;
  padding: 80px;
  /* Más aire */
  text-align: left;
  color: #fff;
}

.k-auth-logo h1 {
  font-size: 3rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -1px;
}

.k-auth-logo .k-dot {
  color: #F43F5E;
}

.k-auth-logo img {
  max-width: 200px;
  margin-bottom: 20px;
}

.k-auth-tagline {
  font-size: 1.8rem;
  line-height: 1.3;
  opacity: 0.95;
  margin: 20px 0 60px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.5px;
  max-width: 400px;
}

.k-auth-features-slider {
  position: relative;
  width: 100%;
  height: 80px;
  overflow: hidden;
  margin-top: 20px;
}

.k-feature-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 1.2rem;
  font-weight: 500;
  pointer-events: none;
}

.k-feature-slide.active {
  opacity: 1;
  transform: translateY(0);
}

.k-feature-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  font-size: 1.2rem;
}

/* Forms Side (Right) */
.k-auth-forms {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--bg-body);
}

.k-auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-surface);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

/* Tabs */
.k-auth-tabs {
  display: flex;
  position: relative;
  background: var(--bg-body);
  border-radius: 12px;
  padding: 5px;
  margin-bottom: 35px;
}

.k-tab-btn {
  flex: 1;
  padding: 14px 20px;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: color 0.3s;
  position: relative;
  z-index: 2;
}

.k-tab-btn.active {
  color: var(--color-primary);
}

.k-tab-indicator {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(50% - 5px);
  height: calc(100% - 10px);
  background: var(--bg-surface);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.k-auth-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 30px;
}

/* Tab Content */
.k-tab-content {
  display: none;
}

.k-tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

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

/* Form Groups */
.k-form-group {
  margin-bottom: 24px;
}

/* Floating Input */
.k-input-wrapper {
  position: relative;
}

.k-input-wrapper i:first-child {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: 1rem;
  transition: color 0.2s;
  z-index: 1;
}

.k-input {
  width: 100%;
  padding-left: 48px !important;
  padding-right: 50px !important;
  padding-top: 16px;
  padding-bottom: 16px;
  font-size: 1rem;
  border: 2px solid var(--color-border);
  border-radius: 14px;
  background: var(--bg-surface);
  color: var(--color-text);
  transition: all 0.2s ease;
  outline: none;
  min-height: 56px;
  /* Ensure consistent height */
}

.k-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-soft);
}

.k-input:focus+label,
.k-input:not(:placeholder-shown)+label {
  top: -10px;
  left: 40px;
  font-size: 0.8rem;
  background: var(--bg-surface);
  padding: 0 8px;
  color: var(--color-primary);
}

.k-input-wrapper label {
  position: absolute;
  left: 48px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--color-text-muted);
  pointer-events: none;
  transition: all 0.2s ease;
}

.k-input:focus~i:first-child {
  color: var(--color-primary);
}

/* Password Toggle */
/* Password Toggle - NUCLEAR RESET */
.k-password-toggle {
  position: absolute !important;
  right: 10px !important;
  top: 0 !important;
  height: 100% !important;
  width: 40px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #999 !important;
  /* Static gray */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  outline: none !important;
  border-radius: 0 !important;
}

.k-password-toggle:hover,
.k-password-toggle:focus,
.k-password-toggle:active {
  background: transparent !important;
  color: #999 !important;
  /* No change on hover */
  box-shadow: none !important;
  transform: none !important;
}

/* Form Options Row */
.k-form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  font-size: 0.9rem;
}

/* Custom Checkbox */
.k-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.k-checkbox input {
  display: none;
}

.k-checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.k-checkbox input:checked+.k-checkmark {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.k-checkbox input:checked+.k-checkmark::after {
  content: '✓';
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.k-forgot-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.k-forgot-link:hover {
  text-decoration: underline;
}

/* Primary Button */
.k-btn-primary {
  width: 100%;
  padding: 18px;
  font-size: 1.1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #8257E5 0%, #6C3ECE 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(130, 87, 229, 0.3);
}

.k-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(130, 87, 229, 0.4);
}

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

/* Auth Switch */
.k-auth-switch {
  text-align: center;
  margin-top: 30px;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.k-switch-btn {
  background: none;
  border: none;
  color: var(--color-primary);
  font-weight: 600;
  cursor: pointer;
  font-size: inherit;
}

.k-switch-btn:hover {
  text-decoration: underline;
}

/* Terms */
.k-terms a {
  color: var(--color-primary);
}

/* Desktop Styles */
@media (min-width: 992px) {
  .k-auth-brand {
    display: flex;
  }

  .k-auth-forms {
    width: 55%;
  }

  .k-auth-card {
    padding: 50px;
  }
}

/* =====================================================
   DARK MODE - LOGIN/REGISTER
   ===================================================== */
[data-theme="dark"] .k-auth-forms {
  background: #13131a;
}

[data-theme="dark"] .k-auth-card {
  background: #1a1a22;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .k-auth-tabs {
  background: #242430;
}

[data-theme="dark"] .k-tab-btn {
  color: #9ca3af;
}

[data-theme="dark"] .k-tab-btn.active {
  color: #a78bfa;
}

[data-theme="dark"] .k-tab-indicator {
  background: #1a1a22;
}

[data-theme="dark"] .k-auth-title {
  color: #f3f4f6;
}

[data-theme="dark"] .k-input {
  background: #242430;
  border-color: #3d3d4d;
  color: #f3f4f6;
}

[data-theme="dark"] .k-input:focus {
  border-color: #a78bfa;
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.15);
}

[data-theme="dark"] .k-input-wrapper label {
  color: #6b7280;
}

[data-theme="dark"] .k-input:focus+label,
[data-theme="dark"] .k-input:not(:placeholder-shown)+label {
  background: #1a1a22;
  color: #a78bfa;
}

[data-theme="dark"] .k-input-wrapper i:first-child {
  color: #6b7280;
}

[data-theme="dark"] .k-input:focus~i:first-child {
  color: #a78bfa;
}

[data-theme="dark"] .k-password-toggle {
  color: #6b7280;
}

[data-theme="dark"] .k-password-toggle:hover {
  color: #a78bfa;
}

[data-theme="dark"] .k-checkbox {
  color: #9ca3af;
}

[data-theme="dark"] .k-checkmark {
  border-color: #3d3d4d;
  background: #242430;
}

[data-theme="dark"] .k-checkbox input:checked+.k-checkmark {
  background: #8257E5;
  border-color: #8257E5;
}

[data-theme="dark"] .k-forgot-link,
[data-theme="dark"] .k-switch-btn,
[data-theme="dark"] .k-terms a {
  color: #a78bfa;
}

[data-theme="dark"] .k-auth-switch {
  color: #6b7280;
}

[data-theme="dark"] .k-btn-primary {
  background: linear-gradient(135deg, #8257E5 0%, #6C3ECE 100%);
  box-shadow: 0 4px 20px rgba(130, 87, 229, 0.25);
}

[data-theme="dark"] .k-btn-primary:hover {
  box-shadow: 0 8px 30px rgba(130, 87, 229, 0.35);
}

/* Logo Fix for Login Page */
/* Logo Fix for Login Page */
.k-logo-img {
  height: auto;
  width: 180px;
  /* Explicit width */
  max-width: 80%;
  filter: brightness(0) invert(1);
  margin: 0 auto 10px;
  display: block;
}

@media (max-width: 768px) {
  .k-logo-img {
    width: 140px;
  }
}

/* ========================================
   SINGLE PRODUCT PAGE - KOSMETICS PREMIUM
   ======================================== */

/* === MAIN CONTAINER === */
.k-single-product-main {
  background: var(--bg-body);
  min-height: 100vh;
  padding-top: 2rem;
}

.k-single-product-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* === BREADCRUMB === */
.k-product-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  padding: 1rem 1.5rem;
  background: var(--bg-surface);
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.k-product-breadcrumb a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.k-product-breadcrumb a:hover {
  color: var(--color-primary);
}

.k-product-breadcrumb .separator {
  color: var(--color-border);
}

.k-product-breadcrumb .current {
  color: var(--color-text);
  font-weight: 500;
}

/* === PRODUCT LAYOUT === */
.k-product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (max-width: 992px) {
  .k-product-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* === GALLERY === */
.k-product-gallery {
  position: sticky;
  top: 100px;
  align-self: start;
  min-width: 0;
}

@media (max-width: 992px) {
  .k-product-gallery {
    position: static;
  }
}

.k-gallery-main {
  position: relative;
  background: var(--bg-surface);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-bottom: 1rem;
}

.k-main-image-wrapper {
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.k-main-image-wrapper .k-main-img {
  width: 100%;
  height: auto;
  max-height: 550px;
  display: block;
  object-fit: contain;
  background: #fff;
}

[data-theme="dark"] .k-main-image-wrapper .k-main-img {
  background: var(--bg-surface);
}

/* Sale Badge */
.k-sale-badge {
  position: absolute;
  bottom: 1.25rem;
  top: auto;
  left: 1.25rem;
  background: linear-gradient(135deg, #FF0055 0%, #FF416C 100%);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  z-index: 10;
  box-shadow: 0 6px 16px rgba(255, 0, 85, 0.3);
  border: none;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: max-content;
  max-width: fit-content;
  right: auto;
}

[data-theme="dark"] .k-sale-badge {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.3);
}

/* Wishlist in Gallery */
.k-gallery-wishlist {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}

.k-gallery-wishlist .k-wishlist-btn {
  width: 44px;
  height: 44px;
  background: var(--bg-surface);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.k-gallery-wishlist .k-wishlist-btn:hover {
  transform: scale(1.1);
  border-color: var(--color-accent);
}

.k-gallery-wishlist .k-wishlist-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* Thumbnails */
.k-gallery-thumbs {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  scrollbar-width: none;
  /* Firefox */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.k-gallery-thumbs::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.k-thumb {
  flex-shrink: 0;
  scroll-snap-align: start;
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--color-border);
  transition: all 0.2s ease;
  background: var(--bg-surface);
}

.k-thumb:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.k-thumb.active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}

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

/* === PRODUCT INFO === */
.k-product-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

/* Brand */
.k-product-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.k-product-brand .k-brand-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.k-product-brand .k-brand-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Title */
.k-product-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
  margin: 0;
}

@media (max-width: 768px) {
  .k-product-title {
    font-size: 1.5rem;
  }
}

/* Rating */
.k-product-rating {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.k-product-rating .star-rating {
  font-size: 1rem;
}

.k-product-rating .k-rating-count {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.k-product-rating .k-write-review {
  font-size: 0.875rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  margin-left: auto;
}

.k-product-rating .k-write-review:hover {
  text-decoration: underline;
}

/* Price */
.k-product-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
}

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

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

/* Excerpt */
.k-product-excerpt {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.k-product-excerpt p {
  margin: 0;
}

/* Stock Status */
.k-stock-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
}

.k-stock-status.in-stock {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
}

.k-stock-status.out-of-stock {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-danger);
}

.k-stock-status .k-low-stock {
  color: var(--color-star);
  font-weight: 600;
}

/* === ADD TO CART SECTION === */
.k-add-to-cart-section {
  padding: 1.5rem;
  background: var(--bg-surface-elevated);
  border-radius: 16px;
  border: 1px solid var(--color-border);
}

.k-add-to-cart-section .cart {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.k-add-to-cart-section .quantity {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  width: fit-content;
  background: var(--bg-surface);
}

.k-add-to-cart-section .quantity .qty {
  width: 60px;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  padding: 0.75rem 0;
  appearance: textfield;
  -moz-appearance: textfield;
}

.k-add-to-cart-section .quantity .qty::-webkit-outer-spin-button,
.k-add-to-cart-section .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.k-add-to-cart-section .single_add_to_cart_button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.k-add-to-cart-section .single_add_to_cart_button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(130, 87, 229, 0.35);
}

.k-add-to-cart-section .single_add_to_cart_button:active {
  transform: translateY(0);
}

/* Variations */
.k-add-to-cart-section .variations {
  width: 100%;
  border-collapse: collapse;
}

.k-add-to-cart-section .variations td {
  padding: 0.5rem 0;
}

.k-add-to-cart-section .variations .label label {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.875rem;
}

.k-add-to-cart-section .variations select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--bg-surface);
  color: var(--color-text);
  font-size: 0.9375rem;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.k-add-to-cart-section .variations select:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* === PRODUCT META === */
.k-product-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.k-meta-item {
  display: flex;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.k-meta-label {
  color: var(--color-text-muted);
}

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

.k-meta-value a {
  color: var(--color-primary);
  text-decoration: none;
}

.k-meta-value a:hover {
  text-decoration: underline;
}

/* === SHARE BUTTONS === */
.k-share-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.k-share-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.k-share-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: all 0.2s ease;
}

.k-share-btn:hover {
  transform: translateY(-2px);
}

.k-share-btn.facebook {
  background: #1877F2;
}

.k-share-btn.twitter {
  background: #1DA1F2;
}

.k-share-btn.whatsapp {
  background: #25D366;
}

.k-share-btn.pinterest {
  background: #E60023;
}

/* === TABS SECTION === */
.k-product-tabs-section {
  margin-bottom: 4rem;
}

.k-product-tabs-section .woocommerce-tabs {
  background: var(--bg-surface);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.k-product-tabs-section .wc-tabs {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--color-border);
}

.k-product-tabs-section .wc-tabs li {
  margin: 0;
}

.k-product-tabs-section .wc-tabs li a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

.k-product-tabs-section .wc-tabs li a:hover {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.k-product-tabs-section .wc-tabs li.active a {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  background: var(--bg-surface);
}

.k-product-tabs-section .woocommerce-Tabs-panel {
  padding: 2rem;
}

.k-product-tabs-section .woocommerce-Tabs-panel h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.k-product-tabs-section .woocommerce-Tabs-panel p {
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* Reviews in Tabs */
.k-product-tabs-section #reviews {
  padding: 0;
}

.k-product-tabs-section .woocommerce-Reviews-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.k-product-tabs-section .commentlist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.k-product-tabs-section .commentlist .comment {
  padding: 1.5rem;
  background: var(--bg-surface-elevated);
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
}

.k-product-tabs-section .comment_container {
  display: flex;
  gap: 1rem;
}

.k-product-tabs-section .comment_container .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}

.k-product-tabs-section .comment-text {
  flex: 1;
}

.k-product-tabs-section .comment-text .meta {
  margin-bottom: 0.75rem;
}

.k-product-tabs-section .comment-text .woocommerce-review__author {
  font-weight: 600;
  color: var(--color-text);
}

.k-product-tabs-section .comment-text .woocommerce-review__dash {
  display: none;
}

.k-product-tabs-section .comment-text .woocommerce-review__published-date {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  display: block;
  margin-top: 0.25rem;
}

.k-product-tabs-section .comment-text .description p {
  margin: 0;
  font-size: 0.9375rem;
}

/* Review Form */
.k-product-tabs-section #review_form_wrapper {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.k-product-tabs-section .comment-reply-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.k-product-tabs-section .comment-form label {
  display: block;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.k-product-tabs-section .comment-form input[type="text"],
.k-product-tabs-section .comment-form input[type="email"],
.k-product-tabs-section .comment-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--bg-surface);
  color: var(--color-text);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s ease;
}

.k-product-tabs-section .comment-form input:focus,
.k-product-tabs-section .comment-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.k-product-tabs-section .comment-form .form-submit input {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.k-product-tabs-section .comment-form .form-submit input:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(130, 87, 229, 0.3);
}

/* === RELATED PRODUCTS === */
.k-related-products-section {
  padding-top: 2rem;
}

.k-related-products-section>section {
  background: var(--bg-surface);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid var(--color-border);
}

.k-related-products-section .related>h2,
.k-related-products-section .upsells>h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2rem;
  text-align: center;
}

.k-related-products-section ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.5rem !important;
  padding: 0 !important;
  margin: 0 !important;
}

@media (max-width: 1024px) {
  .k-related-products-section ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .k-related-products-section ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .k-related-products-section ul.products {
    grid-template-columns: 1fr !important;
  }
}

/* Fix aplastadas cards in related */
.k-related-products-section ul.products li.product {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  float: none !important;
}

.k-related-products-section .mgc-product-card {
  height: 100%;
}

/* ========================================
   SINGLE PRODUCT - ENHANCED STYLES
   ======================================== */

/* === BREADCRUMB ENHANCED === */
.k-product-breadcrumb .separator {
  font-size: 0.65rem;
  color: var(--color-text-muted);
}

.k-product-breadcrumb .separator i {
  font-size: 0.5rem;
}

/* === SALE BADGE ENHANCED === */
.k-sale-badge .k-discount {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0px;
}

.k-sale-badge .k-sale-text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: none;
}

/* === WISHLIST BUTTON === */
.k-wishlist-btn {
  width: 44px;
  height: 44px;
  background: var(--bg-surface);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  color: var(--color-text-secondary);
  font-size: 1.125rem;
}

.k-wishlist-btn:hover {
  transform: scale(1.1);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.k-wishlist-btn.active,
.k-wishlist-btn.active:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* === ZOOM HINT === */
.k-zoom-hint {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.875rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 5;
}

.k-gallery-main:hover .k-zoom-hint {
  opacity: 1;
}

.k-main-image-wrapper {
  cursor: zoom-in;
}

/* === PRICE SECTION ENHANCED === */
.k-product-price-section {
  padding: 1rem 1.25rem;
  background: var(--bg-surface-elevated);
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.k-product-price-section.on-sale {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.02) 100%);
  border-color: rgba(16, 185, 129, 0.3);
}

.k-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.k-price-current {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text);
}

.k-product-price-section.on-sale .k-price-current {
  color: var(--color-success);
}

.k-price-original {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.k-price-save {
  font-size: 0.85rem;
  font-weight: 700;
  color: #059669;
  background: #d1fae5;
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.k-price-save bdi,
.k-price-save span.woocommerce-Price-amount,
.k-price-save span.woocommerce-Price-currencySymbol {
  color: #059669 !important;
}

[data-theme="dark"] .k-price-save,
[data-theme="dark"] .k-price-save bdi,
[data-theme="dark"] .k-price-save span.amount,
[data-theme="dark"] .k-price-save span.woocommerce-Price-currencySymbol,
[data-theme="dark"] .k-price-save * {
  color: #059669 !important;
}

/* Badge de Oferta KOSMETICS - Ribbon Naranja (exacto al mockup) */
.mgc-image-container .kosmetics-sale-tag {
  position: absolute;
  top: 12px;
  left: -4px;
  background: linear-gradient(135deg, #f97316, #ea580c) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 5px 12px 5px 8px !important;
  border-radius: 0 6px 6px 0 !important;
  z-index: 10;
  letter-spacing: 0.3px !important;
  text-transform: uppercase;
  border: none !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.15);
}

.mgc-image-container .kosmetics-sale-tag::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  border-top: 4px solid #c2410c;
  border-left: 4px solid transparent;
}

[data-theme="dark"] .mgc-image-container .kosmetics-sale-tag {
  background: linear-gradient(135deg, #f97316, #ea580c) !important;
  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.4);
}

/* Precios en oferta: Precio de venta grande naranja, original gris tachado */
.mgc-price-block ins {
  text-decoration: none !important;
  font-size: 1.3rem !important;
  font-weight: 800 !important;
  color: #f97316 !important;
  display: block !important;
  order: -1;
}

.mgc-price-block del {
  font-size: 0.85rem !important;
  color: #9ca3af !important;
  text-decoration: line-through !important;
  font-weight: 400 !important;
  display: block !important;
}

[data-theme="dark"] .mgc-price-block ins {
  color: #fb923c !important;
}

[data-theme="dark"] .mgc-price-block del {
  color: #6b7280 !important;
}

.k-single-product .kosmetics-sale-tag {
  display: none !important;
}

/* === ADD TO CART SECTION === */
.k-add-to-cart-section {
  padding: 1.5rem;
  background: var(--bg-surface);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Stock Row */
.k-stock-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.k-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.8rem;
  font-weight: 600;
}

.k-stock-badge.in-stock {
  background: rgba(16, 185, 129, 0.12);
  color: var(--color-success);
}

.k-stock-badge.out-of-stock {
  background: rgba(239, 68, 68, 0.12);
  color: var(--color-danger);
}

.k-stock-warning {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-star);
  animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

.k-stock-qty {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Cart Form */
.k-cart-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.k-cart-row {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}

@media (max-width: 480px) {
  .k-cart-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Quantity Selector */
.k-qty-selector {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.k-qty-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.k-qty-controls {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-surface-elevated);
}

.k-qty-btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  transition: all 0.2s ease;
}

.k-qty-btn:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.k-qty-input {
  width: 50px;
  min-width: 50px;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  padding: 0;
  appearance: textfield;
  -moz-appearance: textfield;
}

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

/* Add to Cart Button */
.k-add-to-cart-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: none;
  letter-spacing: 0;
  min-height: 50px;
}

.k-add-to-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(130, 87, 229, 0.35);
}

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

.k-add-to-cart-btn i {
  font-size: 1.125rem;
}

/* Secondary Actions */
.k-secondary-actions {
  display: flex;
  gap: 0.75rem;
}

.k-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.k-action-btn.active {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Active state for Wishlist Button */
.k-action-btn.added,
.k-wishlist-action.added {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(var(--color-primary-rgb, 239, 68, 68), 0.1);
  /* Soft tint instead of solid if var missing */
}

.k-action-btn.added i,
.k-wishlist-action.added i {
  color: #EF4444 !important;
  /* Red heart */
}

/* Out of Stock Actions */
.k-out-of-stock-actions {
  text-align: center;
  padding: 1rem;
}

.k-notify-text {
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

.k-back-shop-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.k-back-shop-btn:hover {
  background: var(--color-primary);
  color: #fff;
}

/* === SHARE BUTTONS === */
.k-share-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-surface-elevated);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.k-share-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.k-share-icons {
  display: flex;
  gap: 0.5rem;
}

.k-share-btn.copy {
  background: var(--color-text-secondary);
}

/* === CUSTOM TABS === */
.k-tabs-container {
  background: var(--bg-surface);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.k-tabs-nav {
  display: flex;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--color-border);
}

.k-tab-btn {
  flex: 1;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.k-tab-btn:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.k-tab-btn.active {
  background: var(--bg-surface);
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.k-tabs-content {
  padding: 2rem;
}

.k-tab-panel {
  display: none;
}

.k-tab-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

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

.k-description-content {
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.k-description-content h2,
.k-description-content h3,
.k-description-content h4 {
  color: var(--color-text);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.k-description-content p {
  margin-bottom: 1rem;
}

.k-description-content ul,
.k-description-content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.k-description-content li {
  margin-bottom: 0.5rem;
}

.k-no-description {
  color: var(--color-text-muted);
  font-style: italic;
  text-align: center;
  padding: 2rem;
}

/* Reviews in custom tab */
.k-tab-panel #reviews {
  padding: 0;
}

.k-tab-panel .woocommerce-Reviews-title {
  font-size: 1.25rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.k-tab-panel #comments {
  margin: 0;
}

.k-tab-panel .commentlist {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.k-tab-panel .commentlist .comment {
  padding: 1.5rem;
  background: var(--bg-surface-elevated);
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
}

.k-tab-panel .comment_container {
  display: flex;
  gap: 1rem;
}

.k-tab-panel .comment_container .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}

.k-tab-panel .comment-text {
  flex: 1;
}

.k-tab-panel .comment-text .meta {
  margin-bottom: 0.5rem;
}

.k-tab-panel .woocommerce-review__author {
  font-weight: 600;
  color: var(--color-text);
}

.k-tab-panel .woocommerce-review__dash {
  display: none;
}

.k-tab-panel .woocommerce-review__published-date {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  display: block;
  margin-top: 0.25rem;
}

.k-tab-panel .description p {
  margin: 0;
  color: var(--color-text-secondary);
}

/* Review Form */
.k-tab-panel #review_form_wrapper {
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.k-tab-panel .comment-reply-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.k-tab-panel .comment-form label {
  display: block;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.k-tab-panel .comment-form input[type="text"],
.k-tab-panel .comment-form input[type="email"],
.k-tab-panel .comment-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--bg-surface-elevated);
  color: var(--color-text);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s ease;
}

.k-tab-panel .comment-form input:focus,
.k-tab-panel .comment-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.k-tab-panel .comment-form .form-submit input {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.k-tab-panel .comment-form .form-submit input:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(130, 87, 229, 0.3);
}

/* === LIGHTBOX === */
.k-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.k-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.k-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.k-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.k-lightbox-content {
  max-width: 90%;
  max-height: 90%;
}

.k-lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}

.k-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.k-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.k-lightbox-prev {
  left: 1.5rem;
}

.k-lightbox-next {
  right: 1.5rem;
}

/* === TOAST === */
.k-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-text);
  color: var(--bg-surface);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 99998;
  opacity: 0;
  transition: all 0.3s ease;
}

.k-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .k-toast {
    bottom: calc(var(--mobile-bottom-nav-height, 65px) + env(safe-area-inset-bottom, 0px));
    width: 100%;
    border-radius: 16px 16px 0 0;
    text-align: center;
    padding: 1.2rem 1.5rem;
  }

  .k-toast.show {
    transform: translateX(-50%) translateY(0);
  }
}

/* === RELATED PRODUCTS FIX === */
.k-related-products-section ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.5rem !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

.k-related-products-section ul.products::before,
.k-related-products-section ul.products::after {
  display: none !important;
  content: none !important;
}

@media (max-width: 1024px) {
  .k-related-products-section ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .k-related-products-section ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
}

@media (max-width: 480px) {
  .k-related-products-section ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

.k-related-products-section ul.products li.product {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  clear: none !important;
}

.k-related-products-section ul.products li.product .mgc-product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Hide WC default sale badge on single product */
.k-single-product .woocommerce-product-gallery__trigger,
.k-single-product .onsale {
  display: none !important;
}

/* Hide default WC breadcrumb */
.woocommerce-breadcrumb {
  display: none !important;
}

/* No reviews message */
.k-no-rating-text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* WC default tabs override (for fallback) */
.k-product-tabs-section .woocommerce-tabs {
  display: none !important;
}

/* Hide default WC breadcrumb */
.woocommerce-breadcrumb {
  display: none !important;
}

/* Hide default sale flash (we have our own) */
.k-single-product .onsale {
  display: none !important;
}

/* ========================================
   PRODUCT CARDS FIX - Related Products
   ======================================== */

/* Force proper card layout */
.k-related-products-section .mgc-product-card,
.woocommerce ul.products .mgc-product-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 380px;
}

/* Brand header - prevent cutoff */
.mgc-card-header {
  flex-shrink: 0 !important;
  min-height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  z-index: 1 !important;
  background: var(--bg-surface-elevated) !important;
}

.mgc-brand-badge-static {
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.mgc-brand-badge-static .brand-logo-img {
  max-height: 24px !important;
  max-width: 80% !important;
  object-fit: contain !important;
}

/* Image container - proper sizing */
.mgc-image-container {
  flex-shrink: 0 !important;
  position: relative !important;
  aspect-ratio: 1 / 1;
  overflow: hidden !important;
}

.mgc-image-container .img-wrapper {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.mgc-image-container img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Wishlist button - fix position */
.mgc-image-container .card-wishlist-btn {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  z-index: 10 !important;
  width: 32px !important;
  height: 32px !important;
  background: var(--bg-surface) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid var(--color-border) !important;
}

.mgc-image-container .card-wishlist-btn a,
.mgc-image-container .card-wishlist-btn .mgc-custom-wishlist-btn {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
}

.mgc-image-container .card-wishlist-btn i {
  font-size: 14px !important;
  color: var(--color-text-secondary) !important;
  transition: all 0.2s ease !important;
}

.mgc-image-container .card-wishlist-btn:hover i {
  color: var(--color-accent) !important;
}

.mgc-image-container .card-wishlist-btn .added i,
.mgc-image-container .card-wishlist-btn i.fa-solid {
  color: #EF4444 !important;
}

/* Card inner content - flex grow */
.mgc-card-inner {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 12px !important;
}

/* Rating container */
.mgc-rating-container {
  min-height: 18px !important;
  margin-bottom: 6px !important;
}

/* Title - proper height */
.mgc-product-title {
  font-size: 13px !important;
  line-height: 1.4 !important;
  margin-bottom: 8px !important;
  min-height: 36px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* Price section */
.mgc-price-block {
  margin-bottom: 10px !important;
}

/* Cart section - stick to bottom */
.mgc-cart-section {
  margin-top: auto !important;
}

/* Sale badge inside image */
.mgc-image-container .onsale {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  z-index: 5 !important;
  padding: 4px 10px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  background: #EF4444 !important;
  color: #fff !important;
  border-radius: 4px !important;
  text-transform: uppercase !important;
}

/* Dark mode fixes for cards */
[data-theme="dark"] .mgc-card-header {
  background: var(--bg-surface) !important;
  border-color: var(--color-border) !important;
}

[data-theme="dark"] .mgc-image-container .card-wishlist-btn {
  background: var(--bg-surface-elevated) !important;
  border-color: var(--color-border) !important;
}

[data-theme="dark"] .mgc-brand-badge-static .brand-logo-img {
  filter: grayscale(100%) brightness(1.5) !important;
}

[data-theme="dark"] .mgc-product-card:hover .mgc-brand-badge-static .brand-logo-img {
  filter: grayscale(0%) brightness(1) !important;
}

/* ========================================
   RELATED PRODUCTS CARDS - CRITICAL FIX
   ======================================== */

/* Force proper layout for bottom line */
.k-related-products-section .mgc-bottom-line,
.woocommerce ul.products .mgc-bottom-line {
  width: 100% !important;
}

.k-related-products-section .mgc-bottom-line .cart,
.woocommerce ul.products .mgc-bottom-line .cart {
  display: flex !important;
  flex-direction: row !important;
  gap: 6px !important;
  width: 100% !important;
  height: auto !important;
  min-height: 38px !important;
}

/* Quantity wrapper */
.k-related-products-section .mgc-qty-wrapper,
.woocommerce ul.products .mgc-qty-wrapper {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: var(--bg-surface-elevated) !important;
  flex-shrink: 0 !important;
  width: 80px !important;
  min-width: 80px !important;
  height: 38px !important;
}

.k-related-products-section .mgc-qty-btn,
.woocommerce ul.products .mgc-qty-btn {
  width: 24px !important;
  min-width: 24px !important;
  height: 100% !important;
  border: none !important;
  background: var(--bg-surface) !important;
  color: var(--color-text-secondary) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  transition: all 0.2s ease !important;
}

.k-related-products-section .mgc-qty-btn:hover,
.woocommerce ul.products .mgc-qty-btn:hover {
  background: var(--color-primary-soft) !important;
  color: var(--color-primary) !important;
}

.k-related-products-section .mgc-qty-wrapper input.qty,
.woocommerce ul.products .mgc-qty-wrapper input.qty {
  flex: 1 !important;
  width: 32px !important;
  min-width: 32px !important;
  border: none !important;
  border-left: 1px solid var(--color-border) !important;
  border-right: 1px solid var(--color-border) !important;
  background: transparent !important;
  text-align: center !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--color-text) !important;
  padding: 0 !important;
  appearance: textfield !important;
  -moz-appearance: textfield !important;
}

.k-related-products-section .mgc-qty-wrapper input.qty::-webkit-inner-spin-button,
.k-related-products-section .mgc-qty-wrapper input.qty::-webkit-outer-spin-button,
.woocommerce ul.products .mgc-qty-wrapper input.qty::-webkit-inner-spin-button,
.woocommerce ul.products .mgc-qty-wrapper input.qty::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
  appearance: none !important;
  margin: 0 !important;
}

/* Add to cart button */
.k-related-products-section .mgc-add-btn,
.woocommerce ul.products .mgc-add-btn {
  flex: 1 !important;
  min-width: 0 !important;
  height: 38px !important;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  padding: 0 8px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

.k-related-products-section .mgc-add-btn:hover,
.woocommerce ul.products .mgc-add-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(130, 87, 229, 0.3) !important;
}

.k-related-products-section .mgc-add-btn i,
.woocommerce ul.products .mgc-add-btn i {
  font-size: 12px !important;
}

.k-related-products-section .mgc-add-btn .txt,
.woocommerce ul.products .mgc-add-btn .txt {
  font-size: 11px !important;
}

/* Card inner fixes */
.k-related-products-section .mgc-card-inner,
.woocommerce ul.products .mgc-card-inner {
  padding: 10px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

/* Price block */
.k-related-products-section .mgc-price-block,
.woocommerce ul.products .mgc-price-block {
  font-size: 14px !important;
  font-weight: 700 !important;
  margin-bottom: 6px !important;
}

/* Dark mode specific */
[data-theme="dark"] .k-related-products-section .mgc-qty-wrapper,
[data-theme="dark"] .woocommerce ul.products .mgc-qty-wrapper {
  background: var(--bg-surface) !important;
  border-color: var(--color-border) !important;
}

[data-theme="dark"] .k-related-products-section .mgc-qty-btn,
[data-theme="dark"] .woocommerce ul.products .mgc-qty-btn {
  background: var(--bg-surface-elevated) !important;
}

[data-theme="dark"] .k-related-products-section .mgc-qty-wrapper input.qty,
[data-theme="dark"] .woocommerce ul.products .mgc-qty-wrapper input.qty {
  border-color: var(--color-border) !important;
}

/* ==========================================================================
   20. MY ACCOUNT ORDERS REDESIGN
   ========================================================================== */

/* Grid and Cards Container */
.k-orders-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-top: 20px;
}

@media (min-width: 768px) {
  .k-orders-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.k-order-card {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .k-order-card {
  background: var(--bg-surface-elevated, #1f2937);
  border-color: var(--color-border, #374151);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
}

.k-order-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.k-order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--color-border, #f3f4f6);
  padding-bottom: 15px;
}

[data-theme="dark"] .k-order-header {
  border-color: rgba(255, 255, 255, 0.05);
}

.k-order-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.k-order-number {
  font-weight: 700;
  font-size: 16px;
  color: var(--color-text, #111827);
}

.k-order-date {
  font-size: 13px;
  color: var(--color-text-secondary, #6b7280);
}

.k-order-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  text-transform: capitalize;
  background: #f3f4f6;
  color: #4b5563;
}

.k-order-badge.badge-completed {
  background: #dcfce7;
  color: #166534;
}

.k-order-badge.badge-processing {
  background: #dbeafe;
  color: #1e40af;
}

.k-order-badge.badge-on-hold {
  background: #fef9c3;
  color: #854d0e;
}

.k-order-badge.badge-cancelled,
.k-order-badge.badge-failed {
  background: #fee2e2;
  color: #991b1b;
}

[data-theme="dark"] .k-order-badge.badge-completed {
  background: rgba(22, 101, 52, 0.3);
  color: #4ade80;
}

[data-theme="dark"] .k-order-badge.badge-processing {
  background: rgba(30, 64, 175, 0.3);
  color: #60a5fa;
}

[data-theme="dark"] .k-order-badge.badge-on-hold {
  background: rgba(133, 77, 14, 0.3);
  color: #facc15;
}

[data-theme="dark"] .k-order-badge.badge-cancelled,
[data-theme="dark"] .k-order-badge.badge-failed {
  background: rgba(153, 27, 27, 0.3);
  color: #f87171;
}

.k-order-body {
  flex-grow: 1;
  margin-bottom: 20px;
}

.k-order-total-info {
  font-size: 15px;
  color: var(--color-text-secondary, #4b5563);
}

.k-order-total-info strong {
  color: var(--color-text, #111827);
  font-size: 18px;
}

.k-order-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 500px) {
  .k-order-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.k-btn-action {
  flex: 1;
  text-align: center;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.k-btn-view {
  background: var(--color-primary, #8257e5);
  color: #fff;
}

.k-btn-view:hover {
  background: #6d44cc;
  color: #fff;
}

.k-btn-products,
.k-btn-invoice {
  background: #f3f4f6;
  color: #374151;
}

.k-btn-products:hover,
.k-btn-invoice:hover {
  background: #e5e7eb;
}

[data-theme="dark"] .k-btn-products,
[data-theme="dark"] .k-btn-invoice {
  background: var(--bg-surface, #111827);
  color: #d1d5db;
  border: 1px solid var(--color-border);
}

[data-theme="dark"] .k-btn-products:hover,
[data-theme="dark"] .k-btn-invoice:hover {
  background: #374151;
}

/* Reward Ribbon */
.k-order-review-prompt {
  margin-top: 15px;
  border-top: 1px dashed var(--color-border, #e5e7eb);
  padding-top: 15px;
}

[data-theme="dark"] .k-order-review-prompt {
  border-color: rgba(255, 255, 255, 0.1);
}

.k-review-reward-btn {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #FFB800 0%, #FF8A00 100%);
  color: #fff !important;
  font-weight: 800;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none !important;
  box-shadow: 0 4px 10px rgba(255, 138, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: pulse-reward 2.5s infinite;
}

.k-review-reward-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(255, 138, 0, 0.4);
}

@keyframes pulse-reward {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1);
  }
}

/* Modal Styling */
.k-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

.k-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.k-modal-content {
  position: relative;
  background: var(--bg-surface, #fff);
  width: 90%;
  max-width: 450px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  z-index: 10;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

[data-theme="dark"] .k-modal-content {
  background: var(--bg-surface-elevated, #1f2937);
  border: 1px solid var(--color-border, #374151);
}

.k-modal-header {
  padding: 20px;
  border-bottom: 1px solid var(--color-border, #f3f4f6);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

[data-theme="dark"] .k-modal-header {
  border-color: rgba(255, 255, 255, 0.05);
}

.k-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}

.k-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: 0;
}

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

.k-modal-body {
  padding: 20px;
  overflow-y: auto;
}

.k-modal-loader {
  text-align: center;
  padding: 40px;
  color: var(--color-text-secondary);
  font-weight: 600;
}

.k-modal-product-item {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 15px;
}

.k-modal-products-list hr:last-child {
  display: none;
}

.k-modal-products-list hr {
  border: 0;
  border-top: 1px solid var(--color-border, #f3f4f6);
  margin: 15px 0;
}

[data-theme="dark"] .k-modal-products-list hr {
  border-color: rgba(255, 255, 255, 0.05);
}

.k-modal-product-img img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--color-border, #e5e7eb);
}

.k-modal-product-info h4 {
  margin: 0 0 5px;
  font-size: 14px;
  line-height: 1.3;
  color: var(--color-text);
}

.k-modal-product-qty {
  font-size: 13px;
  color: var(--color-text-secondary);
  background: var(--bg-body);
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}

/* ==========================================================================
   21. RECEIPT / TICKET VIEW (view-order.php)
   ========================================================================== */
.k-receipt-container {
  background: var(--bg-surface, #fff);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 12px;
  padding: 20px;
  max-width: 600px;
  margin: 0 auto 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .k-receipt-container {
  background: var(--bg-surface-elevated, #1f2937);
  border-color: var(--color-border, #374151);
}

.k-receipt-header {
  text-align: center;
  border-bottom: 2px dashed var(--color-border, #e5e7eb);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

[data-theme="dark"] .k-receipt-header {
  border-color: rgba(255, 255, 255, 0.1);
}

.k-receipt-title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 800;
  color: var(--color-primary);
}

.k-receipt-order-no,
.k-receipt-date {
  margin: 2px 0;
  color: var(--color-text-secondary);
  font-size: 14px;
}

.k-receipt-header .k-order-badge {
  display: inline-block;
  margin-top: 10px;
}

.k-receipt-item {
  padding: 15px 0;
  border-bottom: 1px solid var(--color-border, #f3f4f6);
}

[data-theme="dark"] .k-receipt-item {
  border-color: rgba(255, 255, 255, 0.05);
}

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

.k-receipt-item-info {
  display: flex;
  gap: 15px;
  align-items: center;
}

.k-receipt-item-img img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--color-border, #e5e7eb);
}

.k-receipt-item-meta h4 {
  margin: 0 0 5px;
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.3;
}

.k-item-qty {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.k-item-review-action {
  margin-top: 15px;
  padding-left: 65px;
  /* Aligns with text under image */
}

.k-btn-review-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(130, 87, 229, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none !important;
  transition: all 0.2s;
}

.k-btn-review-item:hover {
  background: var(--color-primary);
  color: #fff;
}

.k-receipt-totals {
  margin-top: 20px;
  border-top: 2px dashed var(--color-border, #e5e7eb);
  padding-top: 20px;
}

[data-theme="dark"] .k-receipt-totals {
  border-color: rgba(255, 255, 255, 0.1);
}

.k-receipt-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--color-text-secondary);
}

.k-receipt-total-row.order_total {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text);
  margin-top: 10px;
  border-top: 1px solid var(--color-border, #f3f4f6);
  padding-top: 10px;
}

[data-theme="dark"] .k-receipt-total-row.order_total {
  border-color: rgba(255, 255, 255, 0.05);
}

.k-receipt-note {
  margin-top: 20px;
  background: var(--bg-body);
  padding: 15px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

/* ==========================================================================
   HERO ARROWS
   ========================================================================== */
.hero-swiper {
  position: relative;
  padding: 0 40px;
  /* Space for arrows on large screens */
}

@media (max-width: 768px) {
  .hero-swiper {
    padding: 0;
  }
}

.k-hero-arrow {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.k-hero-arrow::after {
  font-size: 18px !important;
  font-weight: 900;
}

.k-hero-arrow:hover {
  background: rgba(255, 255, 255, 0.8);
  color: #8257e5;
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .k-hero-arrow {
    width: 32px;
    height: 32px;
    /* we want them somewhat visible on mobile, maybe smaller */
  }

  .k-hero-arrow::after {
    font-size: 14px !important;
  }
}

/* ==========================================================================
   LEGAL AND DEFAULT PAGES RESPONSIVE PADDING
   (Excluye WooCommerce Account para no romper el login fullscreen)
   ========================================================================== */
body:not(.woocommerce-account).page-template-default.page .entry-content>*:not(.woocommerce),
.k-legal-container {
  max-width: 800px !important;
  margin: 0 auto !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
}

@media (max-width: 768px) {

  body:not(.woocommerce-account).page-template-default.page .entry-content,
  .k-legal-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .k-legal-container {
    padding-top: 40px !important;
  }
}


/* ==========================================
   DARK MODE — Carrito (/cart)
   ========================================== */

/* Cart page container */
[data-theme="dark"] .woocommerce-cart .woocommerce {
  color: var(--color-text, #fff);
  background: var(--bg-surface, #1a1a24) !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* Cart table */
[data-theme="dark"] .woocommerce-cart table.shop_table {
  background: var(--bg-surface, #1a1a24);
  border-color: var(--color-border, #2d2d3a);
}

[data-theme="dark"] .woocommerce-cart table.shop_table th,
[data-theme="dark"] .woocommerce-cart table.shop_table thead,
[data-theme="dark"] .woocommerce-cart table.shop_table thead th {
  background: var(--bg-surface-elevated, #242430) !important;
  color: #e5e7eb !important;
  border-color: var(--color-border, #2d2d3a) !important;
}

[data-theme="dark"] .woocommerce-cart table.shop_table td {
  border-color: var(--color-border, #2d2d3a);
  color: #d1d5db;
}

[data-theme="dark"] .woocommerce-cart table.shop_table td.product-name a {
  color: #f3f4f6 !important;
}

[data-theme="dark"] .woocommerce-cart table.shop_table td.product-name a:hover {
  color: #a78bfa !important;
}

[data-theme="dark"] .woocommerce-cart table.shop_table td.product-price,
[data-theme="dark"] .woocommerce-cart table.shop_table td.product-subtotal {
  color: #e5e7eb;
}

[data-theme="dark"] .woocommerce-cart table.shop_table td.product-price .amount,
[data-theme="dark"] .woocommerce-cart table.shop_table td.product-subtotal .amount {
  color: #f3f4f6;
}

/* Quantity inputs dark mode (Cart & Single Product) */
[data-theme="dark"] .quantity input.qty,
[data-theme="dark"] input.k-qty-input.qty,
[data-theme="dark"] .k-qty-input {
  background: var(--bg-surface-elevated, #242430) !important;
  color: #f3f4f6 !important;
  border-color: var(--color-border, #2d2d3a) !important;
}

/* Titles fix */
[data-theme="dark"] .woocommerce-cart h1.page-title,
[data-theme="dark"] .woocommerce-cart .entry-title,
[data-theme="dark"] .woocommerce-cart .page-title,
[data-theme="dark"] .woocommerce h1,
[data-theme="dark"] .woocommerce h2 {
  color: #ffffff !important;
}

/* Cart row hover */
[data-theme="dark"] .woocommerce-cart table.shop_table tr:hover td {
  background: rgba(130, 87, 229, 0.04);
}

/* Remove button */
[data-theme="dark"] .woocommerce-cart table.shop_table .remove {
  color: #ef4444 !important;
}

[data-theme="dark"] .woocommerce-cart table.shop_table .remove:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* Coupon input */
[data-theme="dark"] .woocommerce-cart .coupon input[type="text"] {
  background: var(--bg-surface-elevated, #242430);
  border-color: var(--color-border, #2d2d3a);
  color: #f3f4f6;
}

[data-theme="dark"] .woocommerce-cart .coupon input[type="text"]:focus {
  border-color: #8257E5;
  box-shadow: 0 0 0 3px rgba(130, 87, 229, 0.12);
}

/* Cart Buttons */
[data-theme="dark"] .woocommerce-cart .coupon .button,
[data-theme="dark"] .woocommerce-cart button[name="update_cart"] {
  background: var(--bg-surface-elevated, #242430);
  color: #e5e7eb;
  border-color: var(--color-border, #2d2d3a);
}

[data-theme="dark"] .woocommerce-cart .coupon .button:hover,
[data-theme="dark"] .woocommerce-cart button[name="update_cart"]:hover {
  background: rgba(130, 87, 229, 0.1);
  color: #a78bfa;
  border-color: rgba(130, 87, 229, 0.3);
}

/* Cart Totals */
[data-theme="dark"] .woocommerce-cart .cart_totals {
  background: var(--bg-surface, #1a1a24);
  border-color: var(--color-border, #2d2d3a);
}

[data-theme="dark"] .woocommerce-cart .cart_totals h2 {
  color: #f3f4f6;
}

[data-theme="dark"] .woocommerce-cart .cart_totals table {
  border-color: var(--color-border, #2d2d3a);
}

[data-theme="dark"] .woocommerce-cart .cart_totals th {
  color: #d1d5db;
  border-color: var(--color-border, #2d2d3a);
  background: transparent;
}

[data-theme="dark"] .woocommerce-cart .cart_totals td {
  color: #f3f4f6;
  border-color: var(--color-border, #2d2d3a);
}

[data-theme="dark"] .woocommerce-cart .cart_totals .order-total .amount {
  color: #a78bfa;
}

/* Shipping section */
[data-theme="dark"] .woocommerce-cart .woocommerce-shipping-methods label {
  color: #d1d5db;
}

[data-theme="dark"] .woocommerce-cart .shipping-calculator-form input[type="text"],
[data-theme="dark"] .woocommerce-cart .shipping-calculator-form select {
  background: var(--bg-surface-elevated, #242430);
  border-color: var(--color-border, #2d2d3a);
  color: #f3f4f6;
}

/* Checkout button */
[data-theme="dark"] .woocommerce-cart .wc-proceed-to-checkout .checkout-button {
  box-shadow: 0 4px 14px rgba(130, 87, 229, 0.2);
}

[data-theme="dark"] .woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover {
  box-shadow: 0 8px 20px rgba(130, 87, 229, 0.3);
}

/* Cart page title */
[data-theme="dark"] .woocommerce-cart .entry-title,
[data-theme="dark"] .woocommerce-cart .page-title {
  color: #fff;
}

/* Empty cart message */
[data-theme="dark"] .woocommerce-cart .cart-empty {
  color: #9ca3af;
}

[data-theme="dark"] .woocommerce-cart .return-to-shop a {
  background: var(--bg-surface-elevated, #242430);
  color: #a78bfa;
  border-color: var(--color-border, #2d2d3a);
}

[data-theme="dark"] .woocommerce-cart .return-to-shop a:hover {
  background: rgba(130, 87, 229, 0.1);
}