/*
Theme Name: Astra Child - Rusicaa Foods
Theme URI: https://foods.rusicaa.com/
Description: Custom Child Theme for Rusicaa Foods, implementing custom design tokens, glassmorphism headers, responsive grids, and advanced WooCommerce layouts.
Author: Hitku Foods Private Limited
Template: astra
Version: 1.2.3
*/

/* Fonts are now enqueued via functions.php (fix B13/P2) */

/* =============================================================================
   CSS CUSTOM PROPERTIES
============================================================================= */
:root {
  /* Colors */
  --color-primary: #A0522D;
  --color-primary-hover: #8B4513;
  --color-secondary: #D4A017;
  --color-tertiary: #2F4F4F;
  --color-text-dark: #2F4F4F;
  --color-text-body: #4A4A4A;
  --color-text-light: #7A7A7A;
  --color-text: #2F4F4F;
  --color-text-muted: #6B7280;
  --color-bg-base: #FDFBF7;
  --color-bg-surface: #FFFFFF;
  --color-border: #E8E3D9;

  /* Glassmorphism */
  --glass-bg: rgba(253, 251, 247, 0.85);
  --glass-border: rgba(160, 82, 45, 0.15);
  --glass-blur: blur(16px);

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;
  --font-label: 'Montserrat', sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 24px 48px rgba(160, 82, 45, 0.15);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container-max: 1280px;
  --container-padding: 2rem;
}

/* =============================================================================
   BASE & RESET
============================================================================= */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg-base);
}

/* Focus visible accessibility outline */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: 4px;
  box-shadow: 0 0 0 4px rgba(160, 82, 45, 0.15);
  transition: outline-offset 0.2s ease, box-shadow 0.2s ease;
}

/* Custom layout classes and resets for Astra integration */
.ast-container,
#main-content {
  background-color: var(--color-bg-base);
}

/* =============================================================================
   GLASS HEADER — Sticky / Transparent Header Overrides
============================================================================= */
.header-glass {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1400px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-xl);
  z-index: 1000;
  padding: 0.5rem 0;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.header-glass.scrolled {
  top: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 0 !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08) !important;
}

/* Logo base styling (smaller default size to reduce header height) */
.header-glass .site-logo img,
.header-glass .site-logo .custom-logo {
  max-height: 50px;
  width: auto !important;
  transition: max-height 0.3s ease;
  display: block;
}

/* Logo shrinks slightly when scrolled */
.header-glass.scrolled .site-logo img,
.header-glass.scrolled .site-logo .custom-logo {
  max-height: 35px;
}

/* =============================================================================
   MAIN CONTENT OFFSET (accounts for fixed floating header)
============================================================================= */
#main-content {
  padding-top: 130px; /* increased to fully clear the floating header */
}

@media (max-width: 1024px) {
  #main-content {
    padding-top: 100px;
  }
}

@media (max-width: 767px) {
  #main-content {
    padding-top: 90px;
  }
}

/* =============================================================================
   CONTAINER UTILITY
============================================================================= */
.container {
  width: 100%;
  max-width: var(--container-max, 1280px);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding, 2rem);
  padding-right: var(--container-padding, 2rem);
}

/* =============================================================================
   GRID & FLEXBOX UTILITIES
============================================================================= */
.grid { display: grid; gap: 2rem; }
.grid-cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-16 { gap: 4rem; }
.gap-20 { gap: 5rem; }
.gap-lg-24 { gap: 6rem; }
.gap-x-12 { column-gap: 3rem; }
.gap-y-12 { row-gap: 3rem; }

/* =============================================================================
   RESPONSIVE UTILITIES
============================================================================= */
.hidden { display: none !important; }

@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row !important; }
  .md\:block { display: block !important; }
  .md\:text-left { text-align: left !important; }
  .md\:items-start { align-items: flex-start !important; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
}

/* =============================================================================
   BUTTONS
============================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm); /* Using smaller radius based on the image's pill shape */
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  font-family: var(--font-body); /* Changed to body font as per typical button styling */
  outline: none;
  text-decoration: none !important;
  letter-spacing: 0;
}

.btn:hover {
  text-decoration: none !important;
  opacity: 0.9;
}.btn:active {
  transform: scale(0.96) !important;
}

/* Force override for Astra theme content links */
.entry-content .btn,
.entry-content .btn:hover,
.entry-content .btn:focus {
  text-decoration: none !important;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(160, 82, 45, 0.4);
}

.btn-primary:hover {
  background-color: color-mix(in srgb, var(--color-primary) 85%, black);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(160, 82, 45, 0.5);
  color: #fff;
}

.btn-secondary {
  background-color: #EFEFEF; /* Light gray based on the image */
  color: var(--color-primary);
}

.btn-secondary:hover {
  background-color: #E5E5E5;
  transform: translateY(-2px);
}

.btn-inverted {
  background-color: var(--color-tertiary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(47, 79, 79, 0.4);
}

.btn-inverted:hover {
  background-color: #1A3030;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(47, 79, 79, 0.5);
  color: #fff;
}

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

.btn-outline:hover {
  background-color: rgba(160, 82, 45, 0.05);
  color: var(--color-primary);
  transform: translateY(-2px);
}

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

.btn-lg {
  padding: 1.1rem 2.5rem;
  font-size: 1.05rem;
}

/* =============================================================================
   SECTIONS & TYPOGRAPHY
============================================================================= */
.section {
  padding: 6rem 0;
}

@media (max-width: 1024px) {
  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 767px) {
  .section {
    padding: 3rem 0;
  }
}

.section-title {
  font-size: clamp(2rem, 4vw + 1rem, 3rem);
  margin-bottom: 1rem;
  letter-spacing: -1px;
  font-family: var(--font-heading);
  color: var(--color-text-dark);
  line-height: 1.1;
}

.section-subtitle {
  color: var(--color-primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  display: block;
}

.text-muted {
  color: var(--color-text-muted);
  font-weight: 400;
}

.bg-surface { background-color: var(--color-bg-surface); }
.bg-base { background-color: var(--color-bg-base); }

/* =============================================================================
   HERO FEATURES
============================================================================= */
.hero-feature-card {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 1.5rem 1rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  transition: all var(--transition-base);
  height: 100%;
}

.hero-feature-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-md);
  border-color: rgba(85, 107, 47, 0.25);
}

/* =============================================================================
   PILLAR CARDS
============================================================================= */
.pillar-card {
  cursor: default;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 32px !important;
  padding: 2.5rem !important;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05) !important;
  border-color: rgba(85, 107, 47, 0.2) !important;
}

.pillar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.pillar-icon svg {
  transition: transform 0.3s ease;
}

.pillar-card:hover .pillar-icon svg {
  transform: scale(1.12) rotate(3deg);
}

/* =============================================================================
   STAT CARD — FIX: added visible border so it shows on bg-base backgrounds
============================================================================= */
.stat-card {
  background: var(--color-bg-surface);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* =============================================================================
   MAHUA FACT CARD
============================================================================= */
.mahua-fact-card {
  background: white;
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.mahua-fact-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg) !important;
}

/* =============================================================================
   PROCESS STEPS
============================================================================= */
.process-step {
  position: relative;
  text-align: center;
  flex: 1;
}

.step-number {
  width: 80px;
  height: 80px;
  background: var(--color-primary);
  color: white;
  font-size: 2rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.step-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

/* =============================================================================
   WOOCOMMERCE — FOOD CARDS
============================================================================= */
.food-card {
  background-color: var(--color-bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.food-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(85, 107, 47, 0.2);
}

.food-card .food-img-wrapper {
  height: auto;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}

.food-card .food-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.food-card:hover .food-img-wrapper img {
  transform: scale(1.08);
}

.food-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.food-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
  font-family: var(--font-heading);
}

/* =============================================================================
   PREMIUM CUSTOM FOOTER UPLIFT (Elementor Post=51)
   FIX B7: Re-encoded from corrupted UTF-16
============================================================================= */
.elementor-location-footer,
.elementor-51 {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2f3c1a 100%) !important;
    color: #e5ecd8 !important;
    border-top: 1px solid rgba(218, 165, 32, 0.2);
    position: relative;
    overflow: hidden;
}

.elementor-location-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(218, 165, 32, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.elementor-location-footer .elementor-section {
    position: relative;
    z-index: 1;
}

.elementor-location-footer h1,
.elementor-location-footer h2,
.elementor-location-footer h3,
.elementor-location-footer h4,
.elementor-location-footer h5,
.elementor-location-footer h6,
.elementor-location-footer .elementor-heading-title {
    color: #ffffff !important;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.elementor-location-footer a,
.elementor-location-footer .elementor-icon-list-text {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    text-decoration: none !important;
    display: inline-block;
}

.elementor-location-footer a:hover,
.elementor-location-footer .elementor-icon-list-item:hover .elementor-icon-list-text {
    color: var(--color-secondary) !important;
    transform: translateX(4px);
}

.elementor-location-footer .elementor-social-icon {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    color: #ffffff !important;
}

.elementor-location-footer .elementor-social-icon:hover {
    background-color: var(--color-secondary) !important;
    border-color: var(--color-secondary) !important;
    transform: translateY(-5px) scale(1.1) !important;
    box-shadow: 0 10px 20px rgba(218, 165, 32, 0.3) !important;
    color: #ffffff !important;
}

.elementor-location-footer input[type="email"],
.elementor-location-footer input[type="text"],
.elementor-location-footer .elementor-field-textual {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    padding: 12px 16px !important;
    transition: all 0.3s ease !important;
}

.elementor-location-footer input[type="email"]:focus,
.elementor-location-footer input[type="text"]:focus,
.elementor-location-footer .elementor-field-textual:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--color-secondary) !important;
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.15) !important;
    outline: none !important;
}

.elementor-location-footer .elementor-button {
    background-color: var(--color-secondary) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.elementor-location-footer .elementor-button:hover {
    background-color: #c5951c !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 15px rgba(218, 165, 32, 0.25) !important;
}

.elementor-location-footer .elementor-divider-separator {
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

/* Ensure logo brightness if dark logo is used */
.elementor-location-footer .custom-logo,
.elementor-location-footer .elementor-image img {
    filter: brightness(0) invert(1) opacity(0.9);
}

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

/* =============================================================================
   TIMELINE WIDGET
============================================================================= */
.timeline-box {
  background: var(--color-primary);
  padding: 3rem;
  border-radius: 4rem;
  box-shadow: 0 50px 100px -20px rgba(85, 107, 47, 0.25), 0 30px 60px -30px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.timeline-glow {
  position: absolute;
  top: -2.5rem;
  left: -2.5rem;
  width: 6rem;
  height: 6rem;
  background: var(--color-secondary);
  border-radius: 50%;
  opacity: 0.2;
  filter: blur(24px);
}

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  position: relative;
  align-items: flex-start;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-item:hover {
  transform: translateX(12px);
}

.timeline-line {
  width: 2px;
  background: rgba(255, 255, 255, 0.15);
  position: absolute;
  left: 2rem;
  top: 3.5rem;
  bottom: -3.5rem;
  border-radius: 2px;
}

.timeline-number {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
  z-index: 2;
  transition: all 0.4s ease;
}

.outline-number {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.solid-number {
  background: var(--color-secondary);
  color: var(--color-text-dark);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.timeline-item:hover .timeline-number {
  transform: scale(1.1) rotate(5deg);
}

.timeline-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 0.5rem;
}

.timeline-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  margin-top: 0.25rem;
  line-height: 1.5;
}

/* =============================================================================
   IMPACT LIST
============================================================================= */
.impact-list li {
  transition: transform 0.2s ease;
}

.impact-list li:hover {
  transform: translateX(5px);
}

/* =============================================================================
   QUICK VIEW MODAL
============================================================================= */
.rusicaa-qv-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.rusicaa-qv-modal.active {
  opacity: 1;
  visibility: visible;
}

.rusicaa-qv-content {
  background: var(--color-bg-base);
  width: 90%;
  max-width: 850px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xl);
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rusicaa-qv-modal.active .rusicaa-qv-content {
  transform: translateY(0);
}

.rusicaa-qv-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  cursor: pointer;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dark);
  font-weight: bold;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.rusicaa-qv-close:hover {
  background: #fff;
  transform: rotate(90deg);
}

.rusicaa-qv-body {
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

/* =============================================================================
   MINI CART DRAWER
   FIX: Added min(380px, 100vw) to support 320px devices
============================================================================= */
.rusicaa-mini-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(380px, 100vw);
  height: 100vh;
  background: white;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  z-index: 5000;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.rusicaa-mini-cart-drawer.active {
  transform: translateX(0);
}

/* =============================================================================
   REVEAL ANIMATIONS
============================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  will-change: transform, opacity;
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll-driven animations (if supported) */
@supports (animation-timeline: view()) {
  .scroll-fade-in {
    animation: scrollFadeIn both;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
  }
}

@keyframes scrollFadeIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =============================================================================
   KEYFRAME ANIMATIONS
============================================================================= */
@keyframes float {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-14px); }
  100% { transform: translateY(0px); }
}

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

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

.animate-float {
  will-change: transform;
  animation: float 6s ease-in-out infinite;
}

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

/* Delay helpers */
.delay-100 { animation-delay: 100ms; transition-delay: 100ms; }
.delay-200 { animation-delay: 200ms; transition-delay: 200ms; }
.delay-300 { animation-delay: 300ms; transition-delay: 300ms; }
.delay-400 { animation-delay: 400ms; transition-delay: 400ms; }

/* =============================================================================
   PRIMARY NAV MENU
   FIX: Added proper ul resets so bullets never appear
============================================================================= */
.desktop-nav-menu,
.desktop-nav-menu ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.desktop-nav-menu li {
  list-style: none;
}

.desktop-nav-menu a {
  text-decoration: none;
  color: var(--color-text-dark);
  font-weight: 500;
  font-family: var(--font-body);
  transition: color var(--transition-fast);
}

.desktop-nav-menu a:hover {
  color: var(--color-primary);
}

/* =============================================================================
   MOBILE NAV MENU
============================================================================= */
.mobile-nav-menu,
.mobile-nav-menu ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mobile-nav-menu li {
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1rem;
}

.mobile-nav-menu li:last-child {
  border-bottom: none;
}

.mobile-nav-menu a {
  text-decoration: none;
  color: var(--color-text-dark);
  font-size: 1.1rem;
  font-weight: 600;
  display: block;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.mobile-nav-menu a:hover {
  color: var(--color-primary);
  padding-left: 6px;
}

/* =============================================================================
   MOBILE OVERLAY
============================================================================= */
.rusicaa-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 4000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.rusicaa-mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* =============================================================================
   CONTACT CARD ICON CIRCLES
   FIX: Added display:flex, centering that was missing
============================================================================= */
.icon-circle {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0;
}

/* =============================================================================
   DESKTOP / MOBILE VISIBILITY
   FIX: Use CSS custom properties and careful specificity to avoid inline-style conflicts
============================================================================= */
.hidden-on-desktop {
  display: none !important;
}

@media (max-width: 1024px) {
  .hidden-on-mobile {
    display: none !important;
  }

  /* FIX: Be specific — only show flex containers as flex, not all elements */
  .hidden-on-desktop {
    display: flex !important;
  }

  /* Override for elements that should be block */
  .hidden-on-desktop.is-block {
    display: block !important;
  }
}

/* =============================================================================
   BACK-TO-TOP BUTTON
============================================================================= */
/* Custom Back-to-Top Button */
#rusicaa-back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px !important;
  height: 50px !important;
  background: var(--color-primary) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: var(--radius-sm) !important; /* Matches the new squared-off button style */
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 15px rgba(160, 82, 45, 0.4) !important;
  z-index: 999;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(12px) !important;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease !important;
  pointer-events: none;
}

#rusicaa-back-to-top.visible-20 {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto;
}

#ast-scroll-top {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#rusicaa-back-to-top:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 8px 25px rgba(160, 82, 45, 0.6) !important;
  background: var(--color-primary-hover) !important;
}

/* SVG icon inside back-to-top — force white stroke, no fill */
#rusicaa-back-to-top svg {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  overflow: visible !important;
  background: transparent !important;
  box-shadow: none !important;
}

#rusicaa-back-to-top svg *,
#rusicaa-back-to-top svg polyline,
#rusicaa-back-to-top svg path {
  fill: none !important;
  stroke: #ffffff !important;
  stroke-width: 2.5px !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

/* =============================================================================
   HEADER ACTIONS
============================================================================= */
.header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.header-icon:hover {
  color: var(--color-primary) !important;
  transform: scale(1.1);
}

/* =============================================================================
   RESPONSIVE GRID OVERRIDES
============================================================================= */
@media (max-width: 1024px) {
  /* Removed manual grid overrides in favor of auto-fit */
}

@media (max-width: 767px) {
  /* Removed manual grid overrides in favor of auto-fit */

  /* Hero adjustments */
  .hero-content,
  .hero-image {
    text-align: center;
  }

  .section-title {
    font-size: 2.25rem;
    letter-spacing: -0.5px;
  }

  .process-step::after {
    display: none;
  }

  .timeline-line {
    display: none;
  }

  /* Fix gaps on mobile */
  .gap-20 { gap: 2rem; }
  .gap-16 { gap: 2rem; }

  /* Quick view responsive */
  .rusicaa-qv-body {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    max-height: 85vh;
    overflow-y: auto;
  }
}

/* =============================================================================
   TAILWIND-STYLE UTILITY MAPPINGS
============================================================================= */
.text-\[10px\] { font-size: 10px !important; }
.text-\[11px\] { font-size: 11px !important; }
.text-primary\/60 { color: rgba(85, 107, 47, 0.6) !important; }
.border-border\/50 { border-color: rgba(234, 224, 200, 0.5) !important; }
.col-span-1 { grid-column: span 1 / span 1; }
.lead-relaxed { line-height: 1.625; }

/* =============================================================================
   ELEMENTOR EDITOR / PREVIEW COMPATIBILITY
============================================================================= */
.elementor-editor-active .reveal,
.elementor-editor-preview .reveal {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: none !important;
}

.elementor-editor-active .animate-float,
.elementor-editor-preview .animate-float {
  animation: none !important;
}

.elementor-editor-active #rusicaa-back-to-top {
  display: none !important;
}

/* =============================================================================
   PREFERS-REDUCED-MOTION — FIX: Disable all animations for accessibility
============================================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  #rusicaa-back-to-top {
    transition: none !important;
  }
}

 / *   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
       P R E M I U M   C U S T O M   F O O T E R   U P L I F T   ( E l e m e n t o r   P o s t = 5 1 ) 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 . e l e m e n t o r - l o c a t i o n - f o o t e r , 
 . e l e m e n t o r - 5 1   { 
         b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   v a r ( - - c o l o r - p r i m a r y )   0 % ,   # 2 f 3 c 1 a   1 0 0 % )   ! i m p o r t a n t ; 
         c o l o r :   # e 5 e c d 8   ! i m p o r t a n t ; 
         b o r d e r - t o p :   1 p x   s o l i d   r g b a ( 2 1 8 ,   1 6 5 ,   3 2 ,   0 . 2 ) ; 
         p o s i t i o n :   r e l a t i v e ; 
         o v e r f l o w :   h i d d e n ; 
 } 
 
 . e l e m e n t o r - l o c a t i o n - f o o t e r : : b e f o r e   { 
         c o n t e n t :   ' ' ; 
         p o s i t i o n :   a b s o l u t e ; 
         t o p :   0 ; 
         l e f t :   0 ; 
         r i g h t :   0 ; 
         b o t t o m :   0 ; 
         b a c k g r o u n d :   r a d i a l - g r a d i e n t ( c i r c l e   a t   5 0 %   0 % ,   r g b a ( 2 1 8 ,   1 6 5 ,   3 2 ,   0 . 0 5 )   0 % ,   t r a n s p a r e n t   7 0 % ) ; 
         p o i n t e r - e v e n t s :   n o n e ; 
         z - i n d e x :   0 ; 
 } 
 
 . e l e m e n t o r - l o c a t i o n - f o o t e r   . e l e m e n t o r - s e c t i o n   { 
         p o s i t i o n :   r e l a t i v e ; 
         z - i n d e x :   1 ; 
 } 
 
 . e l e m e n t o r - l o c a t i o n - f o o t e r   h 1 , 
 . e l e m e n t o r - l o c a t i o n - f o o t e r   h 2 , 
 . e l e m e n t o r - l o c a t i o n - f o o t e r   h 3 , 
 . e l e m e n t o r - l o c a t i o n - f o o t e r   h 4 , 
 . e l e m e n t o r - l o c a t i o n - f o o t e r   h 5 , 
 . e l e m e n t o r - l o c a t i o n - f o o t e r   h 6 , 
 . e l e m e n t o r - l o c a t i o n - f o o t e r   . e l e m e n t o r - h e a d i n g - t i t l e   { 
         c o l o r :   # f f f f f f   ! i m p o r t a n t ; 
         f o n t - f a m i l y :   v a r ( - - f o n t - h e a d i n g ) ; 
         l e t t e r - s p a c i n g :   0 . 5 p x ; 
 } 
 
 . e l e m e n t o r - l o c a t i o n - f o o t e r   a , 
 . e l e m e n t o r - l o c a t i o n - f o o t e r   . e l e m e n t o r - i c o n - l i s t - t e x t   { 
         c o l o r :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 8 )   ! i m p o r t a n t ; 
         t r a n s i t i o n :   a l l   0 . 3 s   c u b i c - b e z i e r ( 0 . 1 6 5 ,   0 . 8 4 ,   0 . 4 4 ,   1 )   ! i m p o r t a n t ; 
         t e x t - d e c o r a t i o n :   n o n e   ! i m p o r t a n t ; 
         d i s p l a y :   i n l i n e - b l o c k ; 
 } 
 
 . e l e m e n t o r - l o c a t i o n - f o o t e r   a : h o v e r , 
 . e l e m e n t o r - l o c a t i o n - f o o t e r   . e l e m e n t o r - i c o n - l i s t - i t e m : h o v e r   . e l e m e n t o r - i c o n - l i s t - t e x t   { 
         c o l o r :   v a r ( - - c o l o r - s e c o n d a r y )   ! i m p o r t a n t ; 
         t r a n s f o r m :   t r a n s l a t e X ( 4 p x ) ; 
 } 
 
 . e l e m e n t o r - l o c a t i o n - f o o t e r   . e l e m e n t o r - s o c i a l - i c o n   { 
         b a c k g r o u n d - c o l o r :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 0 5 )   ! i m p o r t a n t ; 
         b o r d e r :   1 p x   s o l i d   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 1 )   ! i m p o r t a n t ; 
         b o r d e r - r a d i u s :   5 0 %   ! i m p o r t a n t ; 
         t r a n s i t i o n :   a l l   0 . 4 s   c u b i c - b e z i e r ( 0 . 1 7 5 ,   0 . 8 8 5 ,   0 . 3 2 ,   1 . 2 7 5 )   ! i m p o r t a n t ; 
         c o l o r :   # f f f f f f   ! i m p o r t a n t ; 
 } 
 
 . e l e m e n t o r - l o c a t i o n - f o o t e r   . e l e m e n t o r - s o c i a l - i c o n : h o v e r   { 
         b a c k g r o u n d - c o l o r :   v a r ( - - c o l o r - s e c o n d a r y )   ! i m p o r t a n t ; 
         b o r d e r - c o l o r :   v a r ( - - c o l o r - s e c o n d a r y )   ! i m p o r t a n t ; 
         t r a n s f o r m :   t r a n s l a t e Y ( - 5 p x )   s c a l e ( 1 . 1 )   ! i m p o r t a n t ; 
         b o x - s h a d o w :   0   1 0 p x   2 0 p x   r g b a ( 2 1 8 ,   1 6 5 ,   3 2 ,   0 . 3 )   ! i m p o r t a n t ; 
         c o l o r :   # f f f f f f   ! i m p o r t a n t ; 
 } 
 
 . e l e m e n t o r - l o c a t i o n - f o o t e r   i n p u t [ t y p e = \  
 e m a i l \ ] , 
 . e l e m e n t o r - l o c a t i o n - f o o t e r   i n p u t [ t y p e = \ t e x t \ ] , 
 . e l e m e n t o r - l o c a t i o n - f o o t e r   . e l e m e n t o r - f i e l d - t e x t u a l   { 
         b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 0 5 )   ! i m p o r t a n t ; 
         b o r d e r :   1 p x   s o l i d   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 1 )   ! i m p o r t a n t ; 
         b o r d e r - r a d i u s :   8 p x   ! i m p o r t a n t ; 
         c o l o r :   # f f f f f f   ! i m p o r t a n t ; 
         p a d d i n g :   1 2 p x   1 6 p x   ! i m p o r t a n t ; 
         t r a n s i t i o n :   a l l   0 . 3 s   e a s e   ! i m p o r t a n t ; 
 } 
 
 . e l e m e n t o r - l o c a t i o n - f o o t e r   i n p u t [ t y p e = \ e m a i l \ ] : f o c u s , 
 . e l e m e n t o r - l o c a t i o n - f o o t e r   i n p u t [ t y p e = \ t e x t \ ] : f o c u s , 
 . e l e m e n t o r - l o c a t i o n - f o o t e r   . e l e m e n t o r - f i e l d - t e x t u a l : f o c u s   { 
         b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 1 )   ! i m p o r t a n t ; 
         b o r d e r - c o l o r :   v a r ( - - c o l o r - s e c o n d a r y )   ! i m p o r t a n t ; 
         b o x - s h a d o w :   0   0   0   3 p x   r g b a ( 2 1 8 ,   1 6 5 ,   3 2 ,   0 . 1 5 )   ! i m p o r t a n t ; 
         o u t l i n e :   n o n e   ! i m p o r t a n t ; 
 } 
 
 . e l e m e n t o r - l o c a t i o n - f o o t e r   . e l e m e n t o r - b u t t o n   { 
         b a c k g r o u n d - c o l o r :   v a r ( - - c o l o r - s e c o n d a r y )   ! i m p o r t a n t ; 
         c o l o r :   # f f f f f f   ! i m p o r t a n t ; 
         b o r d e r - r a d i u s :   8 p x   ! i m p o r t a n t ; 
         f o n t - w e i g h t :   6 0 0   ! i m p o r t a n t ; 
         t r a n s i t i o n :   a l l   0 . 3 s   e a s e   ! i m p o r t a n t ; 
         b o r d e r :   n o n e   ! i m p o r t a n t ; 
 } 
 
 . e l e m e n t o r - l o c a t i o n - f o o t e r   . e l e m e n t o r - b u t t o n : h o v e r   { 
         b a c k g r o u n d - c o l o r :   # c 5 9 5 1 c   ! i m p o r t a n t ; 
         t r a n s f o r m :   t r a n s l a t e Y ( - 2 p x )   ! i m p o r t a n t ; 
         b o x - s h a d o w :   0   8 p x   1 5 p x   r g b a ( 2 1 8 ,   1 6 5 ,   3 2 ,   0 . 2 5 )   ! i m p o r t a n t ; 
 } 
 
 . e l e m e n t o r - l o c a t i o n - f o o t e r   . e l e m e n t o r - d i v i d e r - s e p a r a t o r   { 
         b o r d e r - t o p - c o l o r :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 1 )   ! i m p o r t a n t ; 
 } 
 
 / *   E n s u r e   l o g o   b r i g h t n e s s   i f   d a r k   l o g o   i s   u s e d   * / 
 . e l e m e n t o r - l o c a t i o n - f o o t e r   . c u s t o m - l o g o , 
 . e l e m e n t o r - l o c a t i o n - f o o t e r   . e l e m e n t o r - i m a g e   i m g   { 
         f i l t e r :   b r i g h t n e s s ( 0 )   i n v e r t ( 1 )   o p a c i t y ( 0 . 9 ) ; 
 } 
  
 
/* =============================================================================
   ELEMENTOR WOOCOMMERCE PRODUCTS WIDGET REDESIGN (Elementor Pro Compatible)
============================================================================= */
/* Force Grid Layout: 2 Columns Desktop, 1 Column Mobile */
.elementor-widget-woocommerce-products .products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
}

@media (max-width: 767px) {
    .elementor-widget-woocommerce-products .products {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

/* Card Base Styling */
.elementor-widget-woocommerce-products li.product {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-lg) !important;
    padding: 1.5rem !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all var(--transition-base) !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative;
    overflow: hidden;
    width: 100% !important;
    margin: 0 !important;
}

.elementor-widget-woocommerce-products li.product:hover {
    transform: translateY(-8px) !important;
    box-shadow: var(--shadow-xl) !important;
    border-color: rgba(160, 82, 45, 0.2) !important;
    background: rgba(255, 255, 255, 1) !important;
}

/* Product Info */
.elementor-widget-woocommerce-products li.product .woocommerce-loop-product__title {
    font-family: var(--font-heading) !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--color-primary) !important;
    margin-top: 1rem !important;
    margin-bottom: 0.5rem !important;
    flex-grow: 1;
}

.elementor-widget-woocommerce-products li.product .price {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--color-text-dark) !important;
    margin-bottom: 1.5rem !important;
}

/* Add to Cart Button */
.elementor-widget-woocommerce-products li.product .button.add_to_cart_button {
    background-color: var(--color-primary) !important;
    color: #fff !important;
    border-radius: var(--radius-sm) !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    margin-top: auto !important;
    width: 100%;
}

.elementor-widget-woocommerce-products li.product .button.add_to_cart_button:hover {
    background-color: var(--color-primary-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(160, 82, 45, 0.4) !important;
}

/* Slideshow Container */
.rusicaa-product-loop-slider-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #f8f9fa;
    margin-bottom: 1rem;
}

.rusicaa-product-loop-slider {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.rusicaa-product-loop-slider::-webkit-scrollbar {
    display: none;
}

.rusicaa-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    position: relative;
}

.rusicaa-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Slideshow Arrows */
.rusicaa-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text-dark);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.rusicaa-product-loop-slider-wrap:hover .rusicaa-slider-arrow {
    opacity: 1;
}

.rusicaa-slider-arrow:hover {
    background: #fff;
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.rusicaa-slider-arrow svg * {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2px !important;
}

.rusicaa-slider-arrow.prev { left: 8px; }
.rusicaa-slider-arrow.next { right: 8px; }

@media (max-width: 767px) {
    .rusicaa-slider-arrow {
        display: none;
    }
}

/* Slideshow Dots */
.rusicaa-slider-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.rusicaa-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.rusicaa-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* Loading animations for products */
.elementor-widget-woocommerce-products li.product {
    animation: slideUpFadeIn 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) backwards;
}

.elementor-widget-woocommerce-products li.product:nth-child(1) { animation-delay: 0.1s; }
.elementor-widget-woocommerce-products li.product:nth-child(2) { animation-delay: 0.2s; }
.elementor-widget-woocommerce-products li.product:nth-child(3) { animation-delay: 0.3s; }
.elementor-widget-woocommerce-products li.product:nth-child(4) { animation-delay: 0.4s; }
.elementor-widget-woocommerce-products li.product:nth-child(n+5) { animation-delay: 0.5s; }

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

/* Custom Elementor Widget Layout */
.rusicaa-custom-products-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
}

@media (max-width: 767px) {
    .rusicaa-custom-products-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

.rusicaa-custom-product-card {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-lg) !important;
    padding: 1.5rem !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all var(--transition-base) !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative;
    overflow: hidden;
    width: 100% !important;
    margin: 0 !important;
}

.rusicaa-custom-product-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: var(--shadow-xl) !important;
    border-color: rgba(160, 82, 45, 0.2) !important;
    background: rgba(255, 255, 255, 1) !important;
}

.rusicaa-custom-product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.rusicaa-custom-product-card .woocommerce-loop-product__title {
    font-family: var(--font-heading) !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--color-primary) !important;
    margin-top: 1rem !important;
    margin-bottom: 0.5rem !important;
}

.rusicaa-custom-product-card .price {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--color-text-dark) !important;
    margin-bottom: 1.5rem !important;
}

.rusicaa-custom-add-to-cart {
    margin-top: auto;
}

.rusicaa-custom-add-to-cart .button {
    background-color: var(--color-primary) !important;
    color: #fff !important;
    border-radius: var(--radius-sm) !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    width: 100%;
    display: block;
}

.rusicaa-custom-add-to-cart .button:hover {
    background-color: var(--color-primary-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(160, 82, 45, 0.4) !important;
}


/* =============================================================================
   ADVANCED RUSICAA PRODUCTS WIDGET STYLES
============================================================================= */

/* Skins */
.rusicaa-product-card.skin-classic {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}
.rusicaa-product-card.skin-classic:hover {
    transform: none !important;
    box-shadow: none !important;
}

.rusicaa-product-card.skin-minimal {
    background: #fff !important;
    border: 1px solid #eaeaea !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
.rusicaa-product-card.skin-minimal:hover {
    border-color: #333 !important;
}

/* Skin: Card (Glassmorphism Default) */
.rusicaa-product-card.skin-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    position: relative;
}
.rusicaa-product-card.skin-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(160, 82, 45, 0.2);
    background: #ffffff;
}

/* Card Media (Image Wrapper) */
.rusicaa-card-media {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1.25rem;
    background: #f9f9f9;
}
.rusicaa-product-card .rusicaa-single-image img,
.rusicaa-product-card .rusicaa-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: block;
}
.rusicaa-product-card:hover .rusicaa-single-image img,
.rusicaa-product-card:hover .rusicaa-slide img {
    transform: scale(1.08);
}

/* Typography & Content Layout */
.rusicaa-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.rusicaa-product-title {
    font-size: 1.15rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}
.rusicaa-product-title a {
    color: var(--color-text-dark) !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}
.rusicaa-product-title a:hover {
    color: var(--color-primary) !important;
}

.rusicaa-product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
}
.rusicaa-product-price del {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 400;
    margin-right: 0.5rem;
}
.rusicaa-product-price ins {
    text-decoration: none;
    color: var(--color-primary);
}

.rusicaa-product-excerpt {
    font-size: 0.95rem;
    color: var(--color-text-body, #666);
    margin-bottom: 1.25rem;
    line-height: 1.5;
    flex-grow: 1;
}

/* Main Add to Cart Button */
.rusicaa-product-card .rusicaa-add-to-cart {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-primary) !important;
    color: #fff !important;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.65rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: auto;
    width: 100%;
}
.rusicaa-product-card .rusicaa-add-to-cart:hover {
    background-color: var(--color-primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(160, 82, 45, 0.3);
}
.rusicaa-product-card .rusicaa-add-to-cart.added {
    background-color: #2e7d32 !important;
}

/* Equal Height */
.rusicaa-product-card.equal-height {
    height: 100%;
}
.rusicaa-product-card.equal-height .rusicaa-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.rusicaa-product-card.equal-height .rusicaa-card-actions {
    margin-top: auto;
}

/* Grid Layout */
.rusicaa-products-container.layout-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Fallback */
    gap: 2rem;
}
@media (max-width: 767px) {
    .rusicaa-products-container.layout-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* List Layout */
.rusicaa-products-container.layout-list {
    display: flex !important;
    flex-direction: column;
    gap: 1.5rem;
}
.layout-list .rusicaa-product-card {
    flex-direction: row !important;
    align-items: center;
}
.layout-list .rusicaa-card-media {
    width: 30%;
    margin-right: 2rem;
}
.layout-list .rusicaa-product-loop-slider-wrap {
    margin-bottom: 0;
}
@media (max-width: 767px) {
    .layout-list .rusicaa-product-card {
        flex-direction: column !important;
    }
    .layout-list .rusicaa-card-media {
        width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* Smart Badges */
.rusicaa-card-media {
    position: relative;
}
.rusicaa-badge {
    position: absolute;
    z-index: 10;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sale-badge {
    top: 10px;
    left: 10px;
    background: #e74c3c;
    color: #fff;
}
.stock-badge {
    top: 10px;
    right: 10px;
}
.stock-badge.out-of-stock {
    background: #333;
    color: #fff;
}
.stock-badge.low-stock {
    background: #f39c12;
    color: #fff;
}

/* Button Styles */
.rusicaa-product-card.btn-inline .rusicaa-add-to-cart {
    display: inline-block;
    width: auto;
    border-radius: 50px !important;
}
.rusicaa-product-card.btn-icon .rusicaa-add-to-cart {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    border-radius: 50% !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    z-index: 5;
}
.rusicaa-product-card.btn-icon .rusicaa-add-to-cart::after {
    content: "\e013"; /* WooCommerce Cart Icon */
    font-family: "WooCommerce";
    font-size: 1.2rem;
}


/* =============================================================================
   FIX: Suppress white blob on product image hover
   WooCommerce / Elementor loop product link pseudo-elements and overlay buttons
   that render as plain white circles/ovals when no icon is visible.
============================================================================= */

/* Suppress ::before / ::after overlays on WooCommerce product image links */
.woocommerce-loop-product__link::before,
.woocommerce-loop-product__link::after,
.woocommerce ul.products li.product a img + .button::before,
.woocommerce ul.products li.product a img + .button::after {
    display: none !important;
    content: none !important;
}

/* Hide any Elementor Pro quick-view / overlay buttons that render inside product thumbnails */
.elementor-widget-woocommerce-products .woocommerce-loop-product__link .button,
.elementor-widget-woocommerce-products li.product .woocommerce-loop-product__link::before,
.elementor-widget-woocommerce-products li.product .woocommerce-loop-product__link::after,
.elementor-widget-woocommerce-products li.product a.button.quick-view,
.elementor-widget-woocommerce-products li.product .e-woo-quick-view-button,
.elementor-widget-woocommerce-products li.product [class*="quick-view"],
.elementor-widget-woocommerce-products li.product [class*="quickview"] {
    display: none !important;
}

/* Ensure rusicaa-quick-view-btn is NEVER visible outside .rusicaa-card-media context */
li.product .rusicaa-quick-view-btn,
.elementor-widget-woocommerce-products .rusicaa-quick-view-btn {
    display: none !important;
}

/* Load More Pagination */
.rusicaa-pagination-wrap {
    text-align: center;
    margin-top: 3rem;
    width: 100%;
}
.rusicaa-load-more {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 5px;
    transition: all 0.3s;
}
.rusicaa-load-more:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
}
.rusicaa-load-more.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Custom Modal for Quick View */
.rusicaa-qv-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.rusicaa-qv-overlay.active {
    opacity: 1;
    visibility: visible;
}
/* =============================================================================
   PREMIUM QUICK VIEW MODAL UX/UI OVERRIDES
============================================================================= */
.rusicaa-qv-modal-content {
    background: #FFFDF9 !important; /* Cream background matching theme */
    border-radius: var(--radius-lg) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: var(--shadow-xl) !important;
    max-width: 850px !important;
    width: 90% !important;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px);
    transition: all 0.3s;
    padding: 2.5rem !important;
}

.rusicaa-qv-overlay.active .rusicaa-qv-modal-content {
    transform: translateY(0);
}

.rusicaa-qv-inner {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.rusicaa-qv-inner .rusicaa-qv-image {
    width: 45%;
    flex-shrink: 0;
}

.rusicaa-qv-inner .rusicaa-qv-image img {
    width: 100% !important;
    height: auto !important;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: block;
}

.rusicaa-qv-inner .rusicaa-qv-details {
    width: 55%;
    display: flex;
    flex-direction: column;
}

.rusicaa-qv-details h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin: 0 0 1rem 0;
    line-height: 1.25;
}

.rusicaa-qv-details .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
}

.rusicaa-qv-details .description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-body);
    margin-bottom: 1.75rem;
    border-top: 1px solid #f1ece4;
    border-bottom: 1px solid #f1ece4;
    padding: 1rem 0;
}

/* Add to Cart form container */
.rusicaa-qv-details form.cart {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
}

/* Quantity input styling */
.rusicaa-qv-details .quantity {
    display: inline-flex;
    align-items: center;
}

.rusicaa-qv-details .quantity input.qty {
    width: 65px;
    height: 46px;
    text-align: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--color-text-dark);
    font-weight: 600;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.rusicaa-qv-details .quantity input.qty:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(160, 82, 45, 0.1);
}

/* Submit Add to cart button */
.rusicaa-qv-details form.cart .single_add_to_cart_button,
.rusicaa-qv-details .button {
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
    font-family: var(--font-body);
    font-size: 1rem !important;
    font-weight: 600 !important;
    padding: 0.75rem 2rem !important;
    height: 46px;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(160, 82, 45, 0.2);
    text-decoration: none !important;
}

.rusicaa-qv-details form.cart .single_add_to_cart_button:hover,
.rusicaa-qv-details .button:hover {
    background-color: var(--color-primary-hover) !important;
    box-shadow: 0 6px 18px rgba(160, 82, 45, 0.35) !important;
    transform: translateY(-2px);
}

/* Close button styling */
.rusicaa-qv-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem !important;
    color: #a89f91 !important;
    transition: color 0.2s, background-color 0.2s;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
}

.rusicaa-qv-close:hover {
    color: var(--color-primary) !important;
    background: #fdfaf5;
}

@media (max-width: 767px) {
    .rusicaa-qv-modal-content {
        padding: 1.5rem !important;
    }
    .rusicaa-qv-inner {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }
    .rusicaa-qv-inner .rusicaa-qv-image,
    .rusicaa-qv-inner .rusicaa-qv-details {
        width: 100%;
    }
    .rusicaa-qv-inner .rusicaa-qv-image img {
        max-height: 250px;
    }
    .rusicaa-qv-details h2 {
        font-size: 1.5rem;
    }
}

/* =============================================================================
   CONTACT US HERO TYPOGRAPHY FIX
============================================================================= */
.hero-title, 
body .elementor-widget-heading .elementor-heading-title {
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    word-wrap: normal !important;
    hyphens: none !important;
}

/* Ensure large headings scale gracefully on smaller desktop sizes to avoid overflow */
@media (max-width: 1440px) {
    .hero-title,
    body .elementor-widget-heading .elementor-heading-title {
        font-size: clamp(2.5rem, 4.5vw, 4rem) !important;
        line-height: 1.1 !important;
    }
}
