/*
 * El Mundo de Madian - Children's Fashion E-commerce
 * Custom Stylesheet - Replacing Woodmart Theme
 *
 * Design Direction: "Soft Organic Whimsy"
 * A warm, artisanal Mediterranean boutique aesthetic with
 * hand-crafted details, soft textures, and playful elegance.
 */

/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
  /* Primary Palette - Warm & Inviting */
  --color-cream: #FDF8F3;
  --color-cream-dark: #F5EDE3;
  --color-parchment: #FAF6F1;

  /* Accent Colors - Mediterranean Warmth */
  --color-terracotta: #C4785A;
  --color-terracotta-light: #D99A7E;
  --color-terracotta-dark: #A85D42;
  --color-sage: #8FA88A;
  --color-sage-light: #A8C4A2;
  --color-sage-dark: #6B8566;
  --color-blush: #E8D4CA;
  --color-dusty-rose: #D4A5A5;

  /* Neutral Colors */
  --color-charcoal: #2D3A4A;
  --color-slate: #4A5568;
  --color-dove: #6B7280;
  --color-silver: #9CA3AF;
  --color-cloud: #E5E7EB;
  --color-white: #FFFFFF;

  /* Semantic Colors */
  --color-sale: #C4785A;
  --color-success: #8FA88A;
  --color-warning: #E8B86D;
  --color-error: #C25A5A;

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;
  --font-accent: 'Quicksand', 'Arial Rounded MT Bold', sans-serif;

  /* Font Sizes - Fluid Typography */
  --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.75rem);
  --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.875rem);
  --text-base: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
  --text-lg: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-xl: clamp(1.15rem, 1.05rem + 0.5vw, 1.25rem);
  --text-2xl: clamp(1.4rem, 1.2rem + 1vw, 1.75rem);
  --text-3xl: clamp(1.75rem, 1.5rem + 1.25vw, 2.25rem);
  --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);

  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --container-max: 1280px;
  --container-padding: clamp(1rem, 3vw, 2rem);
  --header-height: 80px;
  --header-height-mobile: 60px;

  /* Effects */
  --shadow-soft: 0 2px 8px rgba(45, 58, 74, 0.08);
  --shadow-medium: 0 4px 16px rgba(45, 58, 74, 0.12);
  --shadow-elevated: 0 8px 32px rgba(45, 58, 74, 0.16);
  --shadow-glow: 0 0 20px rgba(196, 120, 90, 0.15);

  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   CSS Reset & Base Styles
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-charcoal);
  background-color: var(--color-cream);
  background-image:
    radial-gradient(ellipse at 20% 30%, rgba(232, 212, 202, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(143, 168, 138, 0.15) 0%, transparent 40%);
  min-height: 100vh;
}

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

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

a:hover {
  color: var(--color-terracotta);
}

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

ul, ol {
  list-style: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6,
.title,
.woodmart-title-container,
.banner-title {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-charcoal);
  letter-spacing: -0.02em;
}

h1, .wd-fontsize-xxl { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

/* ==========================================================================
   Container & Layout
   ========================================================================== */

.container,
.elementor-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.website-wrapper,
.main-page-wrapper {
  overflow-x: hidden;
}

/* Elementor Overrides */
.elementor-section {
  padding: var(--space-xl) 0;
}

.elementor-section.wd-negative-gap {
  margin-top: calc(var(--space-xl) * -1);
}

.elementor-column-gap-default > .elementor-column > .elementor-element-populated {
  padding: var(--space-md);
}

/* ==========================================================================
   Header Styles
   ========================================================================== */

.whb-header {
  background: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-soft);
}

/* Top Bar */
.whb-top-bar,
.whb-row.whb-top-bar-row {
  background: linear-gradient(135deg, var(--color-terracotta) 0%, var(--color-terracotta-dark) 100%);
  color: var(--color-white);
  font-size: var(--text-xs);
  padding: var(--space-sm) 0;
}

.whb-top-bar a {
  color: var(--color-white);
  opacity: 0.9;
}

.whb-top-bar a:hover {
  opacity: 1;
  color: var(--color-cream);
}

/* Social Icons */
.wd-header-social-icons a,
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  margin-right: var(--space-xs);
  transition: all var(--transition-fast);
}

.wd-header-social-icons a:hover,
.social-icons a:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Main Header Row */
.whb-main-header,
.whb-row.whb-main-header-row {
  padding: var(--space-md) 0;
}

.whb-flex-row,
.whb-general-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.whb-column {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.whb-col-left { justify-content: flex-start; }
.whb-col-center { justify-content: center; flex: 1; }
.whb-col-right { justify-content: flex-end; }

/* Logo */
.site-logo,
.wd-logo {
  max-width: 180px;
}

.site-logo img,
.wd-logo img {
  height: auto;
  max-height: 60px;
  object-fit: contain;
}

/* Search Form */
.wd-search-form,
.searchform {
  position: relative;
  max-width: 320px;
  width: 100%;
}

.wd-search-form input[type="text"],
.searchform input[type="search"],
.search-field {
  width: 100%;
  padding: var(--space-sm) var(--space-lg);
  padding-right: 48px;
  border: 2px solid var(--color-cloud);
  border-radius: var(--radius-full);
  background: var(--color-parchment);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
}

.wd-search-form input:focus,
.searchform input:focus {
  outline: none;
  border-color: var(--color-terracotta-light);
  background: var(--color-white);
  box-shadow: var(--shadow-glow);
}

.wd-search-form button,
.searchform button {
  position: absolute;
  right: var(--space-sm);
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-terracotta);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.wd-search-form button:hover,
.searchform button:hover {
  background: var(--color-terracotta-dark);
  transform: translateY(-50%) scale(1.05);
}

/* Header Icons (Account, Cart) */
.wd-header-my-account,
.wd-header-cart,
.wd-header-wishlist,
.wd-header-compare {
  position: relative;
}

.wd-header-my-account a,
.wd-header-cart a,
.wd-header-wishlist a,
.wd-header-compare a {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.wd-header-my-account a:hover,
.wd-header-cart a:hover {
  background: var(--color-parchment);
}

/* Cart Count Badge */
.wd-cart-number,
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--color-terracotta);
  color: var(--color-white);
  font-size: 10px;
  font-weight: 600;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.wd-header-nav,
.wd-header-main-nav {
  display: flex;
  align-items: center;
}

.menu.wd-nav,
.wd-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.menu.wd-nav > li,
.wd-nav > .menu-item {
  position: relative;
}

.menu.wd-nav > li > a,
.wd-nav > .menu-item > a,
.woodmart-nav-link {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-charcoal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.menu.wd-nav > li > a:hover,
.wd-nav > .menu-item > a:hover,
.woodmart-nav-link:hover {
  color: var(--color-terracotta);
  background: var(--color-parchment);
}

.menu.wd-nav > li.current-menu-item > a,
.wd-nav > .menu-item.current-menu-item > a {
  color: var(--color-terracotta);
}

/* Navigation Text */
.nav-link-text {
  position: relative;
}

.nav-link-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-terracotta);
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

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

/* Dropdown Menus */
.wd-sub-menu,
.sub-menu,
.wd-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  padding: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  z-index: 100;
}

.menu-item:hover > .wd-sub-menu,
.menu-item:hover > .sub-menu,
.menu-item-has-children:hover > .wd-sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.wd-sub-menu li a,
.sub-menu li a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-slate);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.wd-sub-menu li a:hover,
.sub-menu li a:hover {
  background: var(--color-parchment);
  color: var(--color-terracotta);
  padding-left: calc(var(--space-md) + 4px);
}

/* Nested Dropdowns */
.sub-sub-menu {
  position: absolute;
  left: 100%;
  top: 0;
  min-width: 200px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  padding: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all var(--transition-base);
}

.menu-item:hover > .sub-sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* ==========================================================================
   Category Banners
   ========================================================================== */

.promo-banner-wrapper {
  margin-bottom: var(--space-lg);
}

.promo-banner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-charcoal);
}

.promo-banner .banner-image {
  position: relative;
}

.promo-banner .banner-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.promo-banner:hover .banner-image img,
.promo-banner.banner-hover-zoom:hover .banner-image img {
  transform: scale(1.08);
}

/* Banner Overlay */
.promo-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(45, 58, 74, 0.7) 0%,
    rgba(45, 58, 74, 0.3) 40%,
    transparent 70%
  );
  pointer-events: none;
}

/* Banner Content */
.wrapper-content-banner,
.content-banner {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl);
  z-index: 1;
  text-align: center;
}

.banner-title {
  color: var(--color-white);
  font-size: var(--text-2xl);
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: var(--space-sm);
}

/* Banner Button */
.banner-btn-wrapper {
  margin-top: var(--space-md);
}

.banner-btn-wrapper .btn,
.btn-style-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: transparent;
  color: var(--color-white);
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.banner-btn-wrapper .btn:hover,
.btn-style-link:hover {
  background: var(--color-white);
  color: var(--color-charcoal);
  border-color: var(--color-white);
}

/* ==========================================================================
   Product Grid
   ========================================================================== */

.products,
.wd-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-lg);
}

/* 5-column grid for desktop */
@media (min-width: 1024px) {
  .products.columns-5,
  .owl-items-lg-5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Product Card */
.product-grid-item,
.product {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-base);
}

.product-grid-item:hover,
.product:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated);
}

.product-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Product Image Container */
.product-element-top {
  position: relative;
  overflow: hidden;
  background: var(--color-parchment);
  aspect-ratio: 1;
}

.product-image-link {
  display: block;
  height: 100%;
}

.product-image-link img,
.product-element-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--transition-base), transform var(--transition-slow);
}

/* Hover Image Swap */
.hover-img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.product-grid-item:hover .hover-img {
  opacity: 1;
}

.product-grid-item:hover .product-image-link > img {
  opacity: 0;
}

/* ==========================================================================
   Product Labels / Discount Badges
   ========================================================================== */

.product-labels {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.product-label,
.onsale {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-terracotta);
  color: var(--color-white);
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(196, 120, 90, 0.4);
}

.labels-rounded .product-label,
.labels-rounded .onsale {
  border-radius: var(--radius-full);
  padding: var(--space-xs) var(--space-md);
}

/* Sale percentage styling */
.onsale.product-label::before {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: var(--color-white);
  border-radius: 50%;
  opacity: 0.5;
}

/* ==========================================================================
   Product Quick View & Action Buttons
   ========================================================================== */

.wd-buttons {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  z-index: 10;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-base);
}

.product-grid-item:hover .wd-buttons {
  opacity: 1;
  transform: translateX(0);
}

.wd-action-btn a,
.quick-view-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-medium);
  font-size: 0;
  transition: all var(--transition-fast);
}

.wd-action-btn a::before,
.quick-view-button::before {
  content: '👁';
  font-size: 16px;
}

.wd-action-btn a:hover,
.quick-view-button:hover {
  background: var(--color-terracotta);
  color: var(--color-white);
  transform: scale(1.1);
}

/* ==========================================================================
   Add to Cart Button
   ========================================================================== */

.wd-add-btn {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  right: var(--space-md);
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-base);
}

.product-grid-item:hover .wd-add-btn {
  opacity: 1;
  transform: translateY(0);
}

.wd-add-btn a,
.add_to_cart_button,
.add-to-cart-loop {
  display: block;
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-charcoal);
  color: var(--color-white);
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.wd-add-btn a:hover,
.add_to_cart_button:hover {
  background: var(--color-terracotta);
  transform: scale(1.02);
}

.wd-add-btn a span,
.add_to_cart_button span {
  display: block;
}

/* ==========================================================================
   Product Info (Title, Categories, Price)
   ========================================================================== */

.product-wrapper > *:not(.product-element-top) {
  padding: 0 var(--space-md);
}

/* Product Title */
.wd-entities-title {
  margin: var(--space-md) 0 var(--space-xs);
}

.wd-entities-title a {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-charcoal);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wd-entities-title a:hover {
  color: var(--color-terracotta);
}

/* Product Categories */
.wd-product-cats {
  font-size: var(--text-xs);
  color: var(--color-dove);
  margin-bottom: var(--space-sm);
}

.wd-product-cats a {
  color: var(--color-dove);
}

.wd-product-cats a:hover {
  color: var(--color-terracotta);
}

.wd-product-cats a:not(:last-child)::after {
  content: ', ';
}

/* ==========================================================================
   Product Pricing
   ========================================================================== */

.price {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-bottom: var(--space-md);
  font-family: var(--font-accent);
}

.woocommerce-Price-amount {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-charcoal);
}

/* Sale Pricing */
.price del {
  font-size: var(--text-sm);
  color: var(--color-silver);
  text-decoration: line-through;
}

.price del .woocommerce-Price-amount {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-silver);
}

.price ins {
  text-decoration: none;
}

.price ins .woocommerce-Price-amount {
  color: var(--color-terracotta);
}

/* Currency Symbol */
.woocommerce-Price-currencySymbol {
  font-size: 0.85em;
}

/* Price Range */
.price .woocommerce-Price-amount + .woocommerce-Price-amount::before {
  content: ' – ';
  color: var(--color-dove);
}

/* ==========================================================================
   Section Titles
   ========================================================================== */

.title-wrapper,
.wd-title-wrapper {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.liner-continer {
  position: relative;
  display: inline-block;
}

.liner-continer::before,
.liner-continer::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-terracotta-light));
}

.liner-continer::before {
  right: calc(100% + var(--space-md));
  background: linear-gradient(90deg, transparent, var(--color-terracotta-light));
}

.liner-continer::after {
  left: calc(100% + var(--space-md));
  background: linear-gradient(90deg, var(--color-terracotta-light), transparent);
}

.title.wd-fontsize-xxl {
  font-size: var(--text-3xl);
  color: var(--color-charcoal);
}

/* ==========================================================================
   Carousel / Owl Carousel
   ========================================================================== */

.wd-carousel-container,
.banners-carousel-wrapper {
  position: relative;
  padding: 0 var(--space-xl);
}

.owl-carousel {
  display: flex;
  overflow: hidden;
}

.owl-carousel .owl-stage {
  display: flex;
  gap: var(--space-lg);
}

.owl-carousel-item,
.slide-product {
  flex: 0 0 auto;
}

/* Carousel Navigation */
.owl-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.owl-prev,
.owl-next {
  width: 48px;
  height: 48px;
  background: var(--color-white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: all var(--transition-fast);
}

.owl-prev:hover,
.owl-next:hover {
  background: var(--color-terracotta);
  color: var(--color-white);
  transform: scale(1.1);
}

/* Carousel Dots */
.owl-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.owl-dot {
  width: 10px;
  height: 10px;
  background: var(--color-cloud);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.owl-dot.active,
.owl-dot:hover {
  background: var(--color-terracotta);
  transform: scale(1.2);
}

/* ==========================================================================
   Reviews Section
   ========================================================================== */

.ti-widget {
  padding: var(--space-xl) 0;
}

.ti-reviews-container-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.ti-review-item {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
}

.ti-review-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.ti-profile-img img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.ti-name {
  font-weight: 600;
  color: var(--color-charcoal);
}

.ti-date {
  font-size: var(--text-xs);
  color: var(--color-dove);
}

.ti-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-sm);
}

.ti-star {
  color: var(--color-warning);
  font-size: var(--text-lg);
}

.ti-star.f::before {
  content: '★';
}

.ti-review-content {
  font-size: var(--text-sm);
  color: var(--color-slate);
  line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer-container,
footer.site-footer {
  background: var(--color-charcoal);
  color: var(--color-cloud);
  padding: var(--space-3xl) 0 var(--space-xl);
  margin-top: var(--space-4xl);
}

.footer-container .widget-title,
footer h4 {
  color: var(--color-white);
  font-size: var(--text-lg);
  margin-bottom: var(--space-lg);
}

.footer-container a {
  color: var(--color-cloud);
  transition: color var(--transition-fast);
}

.footer-container a:hover {
  color: var(--color-terracotta-light);
}

/* Copyright */
.copyrights {
  text-align: center;
  padding-top: var(--space-xl);
  margin-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--text-sm);
  color: var(--color-silver);
}

/* ==========================================================================
   WhatsApp Button
   ========================================================================== */

.ht-ctc-chat {
  position: fixed !important;
  bottom: var(--space-lg) !important;
  right: var(--space-lg) !important;
  z-index: 9999 !important;
}

.ht_ctc_padding {
  width: 60px !important;
  height: 60px !important;
  border-radius: var(--radius-full) !important;
  box-shadow: var(--shadow-elevated) !important;
  transition: transform var(--transition-spring) !important;
}

.ht_ctc_padding:hover {
  transform: scale(1.1) !important;
}

/* ==========================================================================
   Mobile Navigation Overlay
   ========================================================================== */

.wd-side-hidden,
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  background: var(--color-white);
  z-index: 10000;
  transform: translateX(-100%);
  transition: transform var(--transition-base);
  overflow-y: auto;
}

.wd-side-hidden.wd-opened,
.mobile-nav.active {
  transform: translateX(0);
}

.wd-side-hidden.wd-right,
.cart-widget-side {
  left: auto;
  right: 0;
  transform: translateX(100%);
}

.wd-side-hidden.wd-right.wd-opened {
  transform: translateX(0);
}

/* Mobile Nav Header */
.wd-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-cloud);
}

.wd-heading .title {
  font-size: var(--text-lg);
  font-weight: 600;
}

.close-side-widget a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-parchment);
  border-radius: var(--radius-full);
  font-size: 0;
}

.close-side-widget a::before {
  content: '✕';
  font-size: 14px;
}

/* ==========================================================================
   Scroll to Top Button
   ========================================================================== */

.scrollToTop,
.wd-scroll-top {
  position: fixed;
  bottom: var(--space-lg);
  left: var(--space-lg);
  width: 48px;
  height: 48px;
  background: var(--color-terracotta);
  color: var(--color-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-medium);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: 999;
}

.scrollToTop.visible,
.wd-scroll-top.wd-shown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scrollToTop:hover,
.wd-scroll-top:hover {
  background: var(--color-terracotta-dark);
  transform: translateY(-4px);
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* Tablet and Below */
@media (max-width: 1024px) {
  :root {
    --header-height: var(--header-height-mobile);
  }

  .whb-visible-lg {
    display: none !important;
  }

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

  .promo-banner {
    border-radius: var(--radius-lg);
  }

  .banner-title {
    font-size: var(--text-xl);
  }
}

/* ==========================================================================
   Archive Recovery Notice & Placeholder Styling
   ========================================================================== */

.archive-notice {
  background: linear-gradient(135deg, var(--color-terracotta-light), var(--color-sage-light));
  color: var(--color-white);
  text-align: center;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
}

.archive-notice a {
  color: var(--color-white);
  text-decoration: underline;
}

/* Placeholder image styling */
img[src*="placeholder"] {
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-blush) 100%);
  object-fit: contain;
}

/* Contact price replacement for cart buttons */
.contact-price {
  display: inline-block;
  background: var(--color-sage);
  color: var(--color-white);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: center;
  cursor: default;
}

/* Mobile */
@media (max-width: 768px) {
  .products {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .product-grid-item {
    border-radius: var(--radius-lg);
  }

  /* Always show add to cart on mobile */
  .wd-add-btn {
    position: relative;
    opacity: 1;
    transform: none;
    bottom: auto;
    left: auto;
    right: auto;
    padding: var(--space-sm) var(--space-md) var(--space-md);
  }

  .wd-buttons {
    opacity: 1;
    transform: none;
  }

  .ti-reviews-container-wrapper {
    grid-template-columns: 1fr;
  }

  .liner-continer::before,
  .liner-continer::after {
    display: none;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .products {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .product-element-top {
    aspect-ratio: 4/5;
  }

  .wd-add-btn a {
    padding: var(--space-md);
    font-size: var(--text-base);
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  .whb-header,
  .wd-buttons,
  .wd-add-btn,
  .ht-ctc-chat,
  .scrollToTop {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .product-grid-item {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* ==========================================================================
   Animation Keyframes
   ========================================================================== */

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

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

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

/* Loading State */
.loading {
  background: linear-gradient(
    90deg,
    var(--color-cloud) 0%,
    var(--color-parchment) 50%,
    var(--color-cloud) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Entrance Animations */
.product-grid-item {
  animation: fadeInUp 0.4s ease forwards;
}

.product-grid-item:nth-child(1) { animation-delay: 0.1s; }
.product-grid-item:nth-child(2) { animation-delay: 0.15s; }
.product-grid-item:nth-child(3) { animation-delay: 0.2s; }
.product-grid-item:nth-child(4) { animation-delay: 0.25s; }
.product-grid-item:nth-child(5) { animation-delay: 0.3s; }

/* ==========================================================================
   Accessibility
   ========================================================================== */

/* Focus Styles */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 2px;
}

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

/* High Contrast */
@media (prefers-contrast: high) {
  :root {
    --color-charcoal: #000000;
    --color-white: #FFFFFF;
    --color-terracotta: #994400;
  }

  .product-grid-item {
    border: 2px solid var(--color-charcoal);
  }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.flex { display: flex; }
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* ==========================================================================
   Woodmart Theme Compatibility Classes
   ========================================================================== */

/* These ensure the existing HTML structure works with the new styles */

.wd-fill { width: 100%; }
.wd-items-middle { align-items: center; }
.wd-justify-left { justify-content: flex-start; }
.wd-justify-center { justify-content: center; }
.wd-justify-right { justify-content: flex-end; }

.reset-last-child > *:last-child {
  margin-bottom: 0;
}

.set-mb-s {
  margin-bottom: var(--space-md);
}

/* Column Classes */
.col-lg-20_0 { width: 20%; }
.col-md-3 { width: 25%; }
.col-6 { width: 50%; }

@media (max-width: 1024px) {
  .col-lg-20_0 { width: 33.333%; }
}

@media (max-width: 768px) {
  .col-md-3,
  .col-6 { width: 50%; }
}

@media (max-width: 480px) {
  .col-6 { width: 100%; }
}

/* ==========================================================================
   Icon & SVG Fixes (Replacing Missing Woodmart Icon Font)
   ========================================================================== */

/* Hide broken large clock SVGs from Elementor widgets */
.e-font-icon-svg.e-far-clock,
.e-font-icon-svg.e-fas-clock {
  display: none !important;
}

/* Hide entire icon-box widgets with clock icons (they have no content) */
.elementor-widget-icon-box:has(.e-far-clock),
.elementor-widget-icon-box:has(.e-fas-clock) {
  display: none !important;
}

/* Fallback for browsers without :has() - hide by size */
.elementor-icon-box-wrapper .elementor-icon svg {
  max-width: 40px !important;
  max-height: 40px !important;
}

/* Hide entire widget container if icon-box title is empty */
.elementor-icon-box-title:empty {
  display: none;
}

.elementor-icon-box-wrapper:has(.elementor-icon-box-title:empty) {
  display: none !important;
}

/* Fix empty wd-icon spans - add content via CSS */
.wd-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 16px;
}

/* Social Media Icons */
.social-facebook .wd-icon::before {
  content: "f";
  font-family: Arial, sans-serif;
  font-weight: bold;
  color: currentColor;
}

.social-instagram .wd-icon::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 4px;
  position: relative;
}

.social-instagram .wd-icon::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: absolute;
}

.social-tiktok .wd-icon::before {
  content: "♪";
  font-size: 18px;
  color: currentColor;
}

/* Social icons container */
.wd-social-icons {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.wd-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all var(--transition-fast);
}

.wd-social-icon:hover {
  background: var(--color-terracotta);
  transform: translateY(-2px);
}

/* Cart icon in header */
.wd-header-cart .wd-tools-icon::before {
  content: "🛒";
  font-size: 18px;
}

.wd-header-cart .wd-icon-alt::before {
  content: "";
}

/* Cart count badge */
.wd-cart-number {
  background: var(--color-terracotta);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  margin-left: var(--space-xs);
}

/* Mobile menu icon */
.wd-header-mobile-nav .wd-tools-icon::before {
  content: "☰";
  font-size: 24px;
}

/* Search icon */
.searchsubmit::before {
  content: "🔍";
  font-size: 16px;
}

/* ==========================================================================
   Elementor Widget Fixes
   ========================================================================== */

/* Hide broken/empty Elementor widgets */
.elementor-widget-container:empty {
  display: none;
}

/* Fix countdown/timer widgets showing broken icons */
.elementor-countdown-wrapper,
.elementor-widget-countdown {
  display: none;
}

/* Fix opening hours widget */
.jet-listing-dynamic-field__content svg,
.elementor-icon svg {
  max-width: 24px;
  max-height: 24px;
}

/* Hide any large SVG that shouldn't be there */
svg[width="100%"][height="50px"],
svg[viewbox="0 0 1219.547 1225.016"] {
  display: none !important;
}

/* ==========================================================================
   Footer Fixes
   ========================================================================== */

/* Footer SVG icons */
.wd-footer .e-font-icon-svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Footer social icons fix */
footer .wd-social-icon,
.wd-footer .wd-social-icon {
  background: rgba(255, 255, 255, 0.15);
}

footer .wd-social-icon:hover,
.wd-footer .wd-social-icon:hover {
  background: var(--color-terracotta);
}

/* Fix footer info blocks with clock icons */
.wd-info-box .wd-info-icon,
.wd-opening-hours {
  display: none;
}

/* ==========================================================================
   Navigation Menu Fixes
   ========================================================================== */

/* Main navigation */
.wd-nav-main {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.wd-nav-main .menu-item {
  position: relative;
}

.wd-nav-main .menu-item > a {
  display: block;
  padding: var(--space-sm) 0;
  font-family: var(--font-accent);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-charcoal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--transition-fast);
}

.wd-nav-main .menu-item > a:hover,
.wd-nav-main .current-menu-item > a {
  color: var(--color-terracotta);
}

/* Dropdown menus */
.wd-nav-main .sub-menu,
.wd-nav-main .wd-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  padding: var(--space-sm) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  z-index: 1000;
}

.wd-nav-main .menu-item:hover > .sub-menu,
.wd-nav-main .menu-item:hover > .wd-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.wd-nav-main .sub-menu li a,
.wd-nav-main .wd-dropdown-menu li a {
  display: block;
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-sm);
  text-transform: none;
  letter-spacing: normal;
}

.wd-nav-main .sub-menu li a:hover {
  background: var(--color-cream);
  color: var(--color-terracotta);
}

/* Category dropdown in search */
.wd-dropdown-search-cat {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  max-height: 300px;
  overflow-y: auto;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  padding: var(--space-sm) 0;
  z-index: 1001;
}

/* ==========================================================================
   Header Layout Fixes
   ========================================================================== */

/* Top bar */
.whb-top-bar {
  background: var(--color-sage);
  color: var(--color-white);
  padding: var(--space-xs) 0;
}

.whb-top-bar h3 {
  font-size: var(--text-sm);
  font-weight: 500;
  margin: 0;
  font-family: var(--font-body);
}

/* General header */
.whb-general-header {
  background: var(--color-white);
  padding: var(--space-md) 0;
  box-shadow: var(--shadow-soft);
}

/* Header rows */
.whb-flex-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.whb-col-left { flex: 1; }
.whb-col-center { flex: 2; text-align: center; }
.whb-col-right { flex: 1; text-align: right; display: flex; justify-content: flex-end; align-items: center; gap: var(--space-md); }

/* Hide empty columns */
.whb-empty-column {
  display: none;
}

/* ==========================================================================
   Search Form Fixes
   ========================================================================== */

.wd-header-search-form {
  max-width: 500px;
  margin: 0 auto;
}

.wd-header-search-form .searchform {
  display: flex;
  align-items: center;
  background: var(--color-cream);
  border-radius: var(--radius-full);
  padding: var(--space-xs);
  border: 2px solid var(--color-cloud);
  transition: border-color var(--transition-fast);
}

.wd-header-search-form .searchform:focus-within {
  border-color: var(--color-terracotta);
}

.wd-header-search-form input.s {
  flex: 1;
  background: transparent;
  border: none;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  outline: none;
}

.wd-header-search-form .searchsubmit {
  background: var(--color-terracotta);
  color: var(--color-white);
  border: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.wd-header-search-form .searchsubmit:hover {
  background: var(--color-terracotta-dark);
}

/* Category dropdown */
.wd-search-cat {
  position: relative;
  padding: var(--space-sm) var(--space-md);
  border-right: 1px solid var(--color-cloud);
}

/* ==========================================================================
   Account/Login Section Fixes
   ========================================================================== */

.wd-header-my-account {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
}

.wd-header-my-account a {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.wd-header-my-account .wd-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  padding: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.wd-header-my-account:hover .wd-dropdown {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   Divider/Separator Fixes
   ========================================================================== */

/* Hide Woodmart SVG dividers that aren't displaying correctly */
.wd-divider {
  display: none !important;
}

/* Replace with CSS gradient divider */
.elementor-shape,
.elementor-shape-fill {
  display: none;
}

/* ==========================================================================
   Product Grid Enhancements
   ========================================================================== */

/* Ensure products container is visible */
.products,
.wd-products,
ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  list-style: none;
}

/* Product items */
.product,
.product-grid-item,
li.product {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-base);
}

.product:hover,
.product-grid-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

/* ==========================================================================
   WhatsApp Button Fix
   ========================================================================== */

.ht-ctc-chat {
  position: fixed !important;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.ht-ctc-chat svg {
  width: 50px !important;
  height: 50px !important;
}
