/*
Theme Name: El Closecito de Andrés
Theme URI: https://baby-closet-magic.lovable.app
Author: El Closecito de Andrés
Author URI: https://baby-closet-magic.lovable.app
Description: Tema profesional para tienda de artículos de bebés. Diseño moderno con paleta cyan-teal azul, totalmente editable desde el Customizer.
Version: 1.0.4
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elclosecito
Tags: e-commerce, custom-logo, custom-menu, featured-images, theme-options, translation-ready
*/

/* ==========================================================================
   CSS VARIABLES - Brand Color System (Cyan-Teal Blue Palette)
   ========================================================================== */

:root {
    /* Primary Cyan-Teal Blue */
    --eca-primary: hsl(195, 85%, 42%);
    --eca-primary-dark: hsl(195, 90%, 35%);
    --eca-primary-light: hsl(195, 60%, 95%);
    --eca-primary-medium: hsl(195, 70%, 85%);
    
    /* Background Colors */
    --eca-background: hsl(195, 50%, 98%);
    --eca-warm-white: hsl(195, 30%, 99%);
    
    /* Foreground / Text */
    --eca-foreground: hsl(200, 40%, 18%);
    --eca-foreground-muted: hsl(200, 25%, 45%);
    
    /* Secondary */
    --eca-secondary: hsl(195, 60%, 95%);
    --eca-secondary-foreground: hsl(200, 40%, 18%);
    
    /* Muted */
    --eca-muted: hsl(195, 30%, 94%);
    --eca-muted-foreground: hsl(200, 25%, 45%);
    
    /* Card */
    --eca-card: hsl(0, 0%, 100%);
    --eca-card-foreground: hsl(200, 40%, 18%);
    
    /* Border */
    --eca-border: hsl(195, 25%, 90%);
    
    /* Accent (Coral/Peach) */
    --eca-accent: hsl(15, 70%, 85%);
    --eca-coral: hsl(15, 70%, 75%);
    --eca-peach: hsl(25, 60%, 85%);
    
    /* WhatsApp */
    --eca-whatsapp: #25D366;
    --eca-whatsapp-hover: #20BD5A;
    
    /* Shadows */
    --eca-shadow-soft: 0 4px 20px -4px hsla(200, 40%, 18%, 0.06);
    --eca-shadow-card: 0 8px 30px -8px hsla(200, 40%, 18%, 0.08);
    --eca-shadow-hover: 0 12px 40px -10px hsla(200, 40%, 18%, 0.12);
    
    /* Gradients */
    --eca-gradient-hero: linear-gradient(180deg, hsl(195, 60%, 95%) 0%, hsl(195, 50%, 98%) 100%);
    --eca-gradient-cta: linear-gradient(135deg, hsl(195, 85%, 42%) 0%, hsl(195, 90%, 35%) 100%);
    
    /* Border Radius */
    --eca-radius: 1rem;
    --eca-radius-lg: 1.5rem;
    --eca-radius-xl: 2rem;
    --eca-radius-full: 9999px;

    /* Header Logo */
    --eca-logo-height-mobile: 3.5rem;
    --eca-logo-height-desktop: 4rem;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

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

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--eca-foreground);
    background-color: var(--eca-background);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Quicksand', 'Nunito', sans-serif;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: var(--eca-foreground);
}

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

a:hover {
    color: var(--eca-primary-dark);
}

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

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.eca-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .eca-container {
        padding: 0 2rem;
    }
}

.eca-section {
    padding: 4rem 1rem;
}

@media (min-width: 768px) {
    .eca-section {
        padding: 6rem 2rem;
    }
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

.eca-section-tag {
    display: inline-block;
    color: var(--eca-primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.eca-section-title {
    font-size: 1.875rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .eca-section-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .eca-section-title {
        font-size: 3rem;
    }
}

.eca-section-description {
    font-size: 1.125rem;
    color: var(--eca-muted-foreground);
    max-width: 42rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.eca-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--eca-radius-full);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.eca-btn-primary {
    background-color: var(--eca-primary);
    color: white;
    box-shadow: var(--eca-shadow-soft);
}

.eca-btn-primary:hover {
    background-color: var(--eca-primary-dark);
    color: white;
    box-shadow: var(--eca-shadow-hover);
    transform: translateY(-2px);
}

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

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

.eca-btn-whatsapp {
    background-color: var(--eca-whatsapp);
    color: white;
    box-shadow: var(--eca-shadow-soft);
}

.eca-btn-whatsapp:hover {
    background-color: var(--eca-whatsapp-hover);
    color: white;
    box-shadow: var(--eca-shadow-hover);
    transform: translateY(-2px);
}

.eca-btn-ghost {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.eca-btn-ghost:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.eca-btn-sm {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.eca-card {
    background-color: var(--eca-card);
    border-radius: var(--eca-radius-lg);
    box-shadow: var(--eca-shadow-soft);
    border: 1px solid var(--eca-border);
    transition: all 0.3s ease;
}

.eca-card:hover {
    box-shadow: var(--eca-shadow-hover);
    transform: translateY(-4px);
}

.eca-card-category {
    padding: 1.5rem;
    cursor: pointer;
}

.eca-card-branch {
    padding: 1.5rem;
    box-shadow: var(--eca-shadow-card);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.eca-card-branch:hover {
    transform: none;
}

/* Branch cards: keep buttons aligned even when address length varies */
.eca-branch-info {
    flex: 1;
}

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

.eca-branch-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Ensure branch buttons remain clickable (no blocked cursor) */
.eca-branch-actions a,
.eca-branch-actions button,
.eca-branch-actions .eca-button {
    pointer-events: auto;
    cursor: pointer;
}

.eca-card-testimonial {
    padding: 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.eca-card-testimonial:hover {
    transform: none;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.eca-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(252, 253, 254, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--eca-border);
}

.eca-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: calc(var(--eca-logo-height-mobile) + 1rem);
    padding: 0.5rem 1rem;
    gap: 1rem;
}

@media (min-width: 768px) {
    .eca-header-inner {
        min-height: calc(var(--eca-logo-height-desktop) + 1.25rem);
        padding: 0.625rem 2rem;
    }
}

.eca-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
}

.eca-logo img {
    display: block;
    height: var(--eca-logo-height-mobile);
    width: auto;
    max-width: min(75vw, 18rem);
    object-fit: contain;
}

@media (min-width: 768px) {
    .eca-logo img {
        height: var(--eca-logo-height-desktop);
        max-width: min(32vw, 26rem);
    }
}

.eca-nav {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex: 1 1 auto;
    min-width: 0;
}

/* Desktop header menu layout (wp_nav_menu renders <li> items) */
.eca-nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.eca-nav-list li {
    list-style: none;
    margin: 0;
    padding: 0;
}


@media (min-width: 768px) {
    .eca-nav {
        display: flex;
    }
}

.eca-nav a {
    font-weight: 500;
    color: var(--eca-foreground);
    opacity: 0.8;
    position: relative;
    transition: all 0.3s ease;
}

.eca-nav a:hover {
    color: var(--eca-primary);
    opacity: 1;
}

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

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

.eca-header-cta {
    display: none;
}

@media (min-width: 768px) {
    .eca-header-cta {
        display: block;
    }
}

/* Mobile Menu */
.eca-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

@media (min-width: 768px) {
    .eca-mobile-toggle {
        display: none;
    }
}

.eca-mobile-toggle:hover {
    background-color: var(--eca-secondary);
}

.eca-mobile-toggle svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--eca-foreground);
}

.eca-mobile-nav {
    display: none;
    padding: 1rem;
    border-top: 1px solid var(--eca-border);
    background-color: var(--eca-warm-white);
}

.eca-mobile-nav.active {
    display: block;
}

.eca-mobile-nav a {
    display: block;
    padding: 0.75rem 0;
    font-weight: 500;
    color: var(--eca-foreground);
}

.eca-mobile-nav a:hover {
    color: var(--eca-primary);
}

.eca-mobile-nav .eca-btn {
    width: 100%;
    margin-top: 1rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.eca-hero {
    position: relative;
    min-height: 100vh;
    background: var(--eca-gradient-hero);
    overflow: hidden;
    padding-top: calc(var(--eca-logo-height-mobile) + 3rem);
    padding-bottom: 4rem;
}

.eca-hero-inner {
    display: grid;
    gap: 3rem;
    align-items: center;
    min-height: calc(100vh - (var(--eca-logo-height-mobile) + 4rem));
}

@media (min-width: 768px) {
    .eca-hero {
        padding-top: calc(var(--eca-logo-height-desktop) + 3rem);
    }

    .eca-hero-inner {
        min-height: calc(100vh - (var(--eca-logo-height-desktop) + 4rem));
    }
}

@media (min-width: 1024px) {
    .eca-hero-inner {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.eca-hero-content {
    animation: fadeUp 0.6s ease-out forwards;
}

.eca-hero-title {
    font-size: 2.25rem;
    line-height: 1.1;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .eca-hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .eca-hero-title {
        font-size: 3.75rem;
    }
}

.eca-hero-title-accent {
    color: var(--eca-primary);
}

.eca-hero-description {
    font-size: 1.125rem;
    color: var(--eca-muted-foreground);
    max-width: 28rem;
    line-height: 1.7;
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .eca-hero-description {
        font-size: 1.25rem;
    }
}

.eca-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.eca-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 1rem;
}

.eca-hero-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.eca-hero-badge-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background-color: var(--eca-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--eca-primary);
}

.eca-hero-badge-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.eca-hero-badge-text strong {
    display: block;
    font-size: 0.875rem;
    color: var(--eca-foreground);
}

.eca-hero-badge-text span {
    font-size: 0.75rem;
    color: var(--eca-muted-foreground);
}

/* Hero Image */
.eca-hero-image-wrapper {
    position: relative;
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.eca-hero-image-frame {
    position: relative;
    border-radius: var(--eca-radius-xl);
    overflow: hidden;
    box-shadow: var(--eca-shadow-card);
    background-color: var(--eca-card);
    padding: 0.5rem;
}

.eca-hero-image-frame img {
    width: 100%;
    height: auto;
    border-radius: calc(var(--eca-radius-xl) - 0.25rem);
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

/* Floating Cards */
.eca-hero-float-card {
    position: absolute;
    background-color: var(--eca-card);
    border-radius: var(--eca-radius-lg);
    padding: 0.75rem 1rem;
    box-shadow: var(--eca-shadow-card);
    animation: bounceSoft 2s ease-in-out infinite;
}

.eca-hero-float-reviews {
    top: -1rem;
    right: -1rem;
    display: none;
}

@media (min-width: 640px) {
    .eca-hero-float-reviews {
        display: block;
    }
}

@media (min-width: 1024px) {
    .eca-hero-float-reviews {
        top: 1rem;
        right: -2rem;
    }
}

.eca-hero-stars {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.eca-hero-stars svg {
    width: 1rem;
    height: 1rem;
    fill: var(--eca-primary);
    color: var(--eca-primary);
}

.eca-hero-stars span {
    font-weight: 700;
    color: var(--eca-primary);
    font-size: 1.125rem;
}

.eca-hero-float-reviews p {
    font-size: 0.75rem;
    color: var(--eca-muted-foreground);
    margin-top: 0.25rem;
}

.eca-hero-float-products {
    bottom: -1rem;
    left: -1rem;
    padding: 1rem;
    animation-delay: 0.5s;
}

@media (min-width: 1024px) {
    .eca-hero-float-products {
        bottom: 2rem;
        left: -2rem;
    }
}

.eca-hero-float-products-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.eca-hero-float-products-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--eca-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.eca-hero-float-products-text strong {
    display: block;
    font-size: 1.25rem;
    color: var(--eca-foreground);
}

.eca-hero-float-products-text span {
    font-size: 0.875rem;
    color: var(--eca-muted-foreground);
}

/* Decorative bubbles */
.eca-hero-bubble {
    position: absolute;
    border-radius: 50%;
    background-color: var(--eca-primary);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.eca-hero-bubble-1 {
    width: 1rem;
    height: 1rem;
    top: 25%;
    right: 25%;
}

.eca-hero-bubble-2 {
    width: 1.5rem;
    height: 1.5rem;
    top: 33%;
    right: 33%;
    opacity: 0.05;
    animation-delay: 1s;
}

.eca-hero-bubble-3 {
    width: 0.75rem;
    height: 0.75rem;
    bottom: 25%;
    right: 20%;
    animation-delay: 2s;
}

/* ==========================================================================
   CATEGORIES SECTION
   ========================================================================== */

.eca-categories {
    background-color: var(--eca-background);
}

.eca-categories-header {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 4rem;
}

.eca-categories-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .eca-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .eca-categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.eca-category-icon {
    width: 4rem;
    height: 4rem;
    border-radius: var(--eca-radius-lg);
    background-color: var(--eca-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--eca-foreground);
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.eca-card-category:hover .eca-category-icon {
    transform: scale(1.1);
}

.eca-category-icon svg {
    width: 2rem;
    height: 2rem;
}

.eca-category-icon img {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

.eca-category-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.eca-category-description {
    color: var(--eca-muted-foreground);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.eca-category-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--eca-primary);
    font-weight: 600;
    transition: gap 0.3s ease;
}

.eca-card-category:hover .eca-category-link {
    gap: 0.75rem;
}

.eca-category-link svg {
    width: 1rem;
    height: 1rem;
}

.eca-categories-bottom {
    text-align: center;
    margin-top: 3rem;
}

.eca-categories-bottom p {
    color: var(--eca-muted-foreground);
    margin-bottom: 1rem;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

.eca-about {
    background-color: rgba(229, 243, 247, 0.3);
}

.eca-about-inner {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .eca-about-inner {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
}

.eca-about-content {
    max-width: 40rem;
}

.eca-about-text {
    font-size: 1.125rem;
    color: var(--eca-muted-foreground);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.eca-about-text strong {
    color: var(--eca-foreground);
}

.eca-about-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

/* Highlights */
.eca-about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.eca-highlight-box {
    background-color: var(--eca-secondary);
    border-radius: var(--eca-radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

@media (min-width: 640px) {
    .eca-highlight-box {
        flex-direction: row;
        text-align: left;
    }
}

.eca-highlight-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    background-color: rgba(14, 165, 197, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--eca-primary);
    flex-shrink: 0;
}

.eca-highlight-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.eca-highlight-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.eca-highlight-description {
    color: var(--eca-muted-foreground);
}

/* Stats */
.eca-about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-top: 1.5rem;
}

.eca-stat-card {
    text-align: center;
    padding: 1rem;
    border-radius: var(--eca-radius-lg);
    background-color: var(--eca-card);
    box-shadow: var(--eca-shadow-soft);
}

.eca-stat-number {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--eca-primary);
    margin-bottom: 0.25rem;
}

.eca-stat-label {
    font-size: 0.875rem;
    color: var(--eca-muted-foreground);
}

/* ==========================================================================
   BRANCHES SECTION
   ========================================================================== */

.eca-branches {
    background-color: var(--eca-background);
}

.eca-branches-header {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 4rem;
}

.eca-branches-grid {
    display: grid;
    gap: 1.5rem;
}

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

@media (min-width: 1024px) {
    .eca-branches-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.eca-branch-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.eca-branch-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background-color: rgba(14, 165, 197, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--eca-primary);
}

.eca-branch-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.eca-branch-name {
    font-size: 1.25rem;
}

.eca-branch-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.eca-branch-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.eca-branch-detail svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--eca-muted-foreground);
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.eca-branch-detail span {
    font-size: 0.875rem;
    color: var(--eca-muted-foreground);
}

.eca-branch-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.eca-branch-actions .eca-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */

.eca-testimonials {
    background-color: rgba(229, 243, 247, 0.3);
}

.eca-testimonials-header {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 4rem;
}

.eca-testimonials-grid {
    display: grid;
    align-items: stretch;
    gap: 1.5rem;
}

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

@media (min-width: 1024px) {
    .eca-testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.eca-testimonial-quote-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: rgba(14, 165, 197, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--eca-primary);
}

.eca-testimonial-quote-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.eca-testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.eca-testimonial-stars svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: var(--eca-coral);
    color: var(--eca-coral);
}

.eca-testimonial-text {
    color: var(--eca-foreground);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eca-testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
}

.eca-testimonial-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: rgba(14, 165, 197, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--eca-primary);
}

.eca-testimonial-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.eca-testimonial-name {
    font-weight: 600;
    color: var(--eca-foreground);
}

.eca-testimonial-city {
    font-size: 0.875rem;
    color: var(--eca-muted-foreground);
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.eca-cta {
    background: var(--eca-gradient-cta);
    position: relative;
    overflow: hidden;
}

.eca-cta-bg-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 16rem;
    height: 16rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    filter: blur(48px);
}

.eca-cta-bg-2 {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    filter: blur(48px);
}

.eca-cta-inner {
    position: relative;
    z-index: 10;
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.eca-cta-emoji {
    font-size: 3.75rem;
    margin-bottom: 1.5rem;
    animation: bounceSoft 2s ease-in-out infinite;
}

.eca-cta-title {
    font-size: 1.875rem;
    color: white;
    margin-bottom: 1.5rem;
    text-wrap: balance;
}

@media (min-width: 768px) {
    .eca-cta-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .eca-cta-title {
        font-size: 3rem;
    }
}

.eca-cta-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 36rem;
    margin: 0 auto 2rem;
}

.eca-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .eca-cta-buttons {
        flex-direction: row;
    }
}

.eca-cta-social-proof {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    color: rgba(255, 255, 255, 0.7);
}

.eca-cta-proof-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.eca-cta-proof-item span:first-child {
    font-size: 1.5rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.eca-footer {
    background-color: var(--eca-foreground);
    color: rgba(255, 255, 255, 0.9);
}

.eca-footer-main {
    padding: 3rem 1rem;
}

@media (min-width: 768px) {
    .eca-footer-main {
        padding: 4rem 2rem;
    }
}

.eca-footer-grid {
    display: grid;
    gap: 2.5rem;
}

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

@media (min-width: 1024px) {
    .eca-footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.eca-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.eca-footer-brand-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: rgba(14, 165, 197, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.eca-footer-brand-name {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: white;
}

.eca-footer-brand-tagline {
    font-size: 0.875rem;
    opacity: 0.6;
}

.eca-footer-about {
    color: rgba(255, 255, 255, 0.7);
    max-width: 28rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

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

.eca-footer-social a {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.eca-footer-social a:hover {
    background-color: var(--eca-primary);
}

.eca-footer-social svg {
    width: 1.25rem;
    height: 1.25rem;
}

.eca-footer-heading {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.eca-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.eca-footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

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

.eca-footer-contact-item {
    margin-bottom: 0.75rem;
}

.eca-footer-contact-item a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.eca-footer-contact-item a:hover {
    color: var(--eca-primary);
}

.eca-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 1rem;
}

@media (min-width: 768px) {
    .eca-footer-bottom {
        padding: 1.5rem 2rem;
    }
}

.eca-footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 768px) {
    .eca-footer-bottom-inner {
        flex-direction: row;
    }
}

/* ==========================================================================
   PRODUCTS GRID (Shop Page)
   ========================================================================== */

.eca-products-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .eca-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .eca-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1280px) {
    .eca-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.eca-product-card {
    background-color: var(--eca-card);
    border-radius: var(--eca-radius-lg);
    overflow: hidden;
    box-shadow: var(--eca-shadow-soft);
    border: 1px solid var(--eca-border);
    transition: all 0.3s ease;
}

.eca-product-card:hover {
    box-shadow: var(--eca-shadow-hover);
    transform: translateY(-4px);
}

.eca-product-image {
    aspect-ratio: 1 / 1;
    min-height: 240px;
    overflow: hidden;
    background-color: var(--eca-secondary);
}

.eca-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.eca-product-placeholder-image {
    opacity: 0.95;
}

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

.eca-product-content {
    padding: 1.25rem;
}

.eca-product-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.eca-product-description {
    font-size: 0.875rem;
    color: var(--eca-muted-foreground);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.eca-product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--eca-primary);
    margin-bottom: 1rem;
}

.eca-product-btn {
    width: 100%;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

/* ==========================================================================
   WORDPRESS OVERRIDES - Force Blue Palette
   ========================================================================== */

/* Override WP default colors */
.wp-block-button__link,
.wp-element-button,
button,
input[type="submit"],
input[type="button"] {
    background-color: var(--eca-primary) !important;
    color: white !important;
    border-radius: var(--eca-radius-full) !important;
}

.wp-block-button__link:hover,
.wp-element-button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background-color: var(--eca-primary-dark) !important;
}

/* Links */
.entry-content a,
.widget a,
.comment-content a {
    color: var(--eca-primary);
}

.entry-content a:hover,
.widget a:hover,
.comment-content a:hover {
    color: var(--eca-primary-dark);
}

/* Remove focus outlines that might be green */
*:focus {
    outline-color: var(--eca-primary) !important;
}

/* Override any preset green colors */
.has-green-color,
.has-vivid-green-cyan-color,
.has-luminous-vivid-green-color {
    color: var(--eca-primary) !important;
}

.has-green-background-color,
.has-vivid-green-cyan-background-color,
.has-luminous-vivid-green-background-color {
    background-color: var(--eca-primary) !important;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

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

.eca-hidden { display: none; }
.eca-visible { display: block; }

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


/* Catalog / Category header */
.eca-page-header { text-align: left; }
.eca-back-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--eca-primary);
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 1.25rem;
}
.eca-back-link:hover { text-decoration: underline; }

.eca-page-title{
  font-size: clamp(2.75rem, 4.8vw, 4.25rem);
  line-height: 1.1;
  margin: 0 0 1rem 0;
  color: var(--eca-foreground);
}

.eca-page-subtitle{
  font-size: 1.25rem;
  line-height: 1.6;
  margin: 0 0 .75rem 0;
  color: var(--eca-muted-foreground);
  max-width: 56rem;
}
@media (max-width: 768px){
  .eca-page-subtitle{ font-size: 1.05rem; }
}


/* --- Catalog cards: keep CTA aligned even if title/price/description vary --- */
.eca-product-card{
  display:flex;
  flex-direction:column;
  height:100%;
}

.eca-product-media{
  flex:0 0 auto;
}

.eca-product-content{
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
}

/* Clamp title to keep consistent card heights */
.eca-product-title{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}

/* Reserve space for price even when empty so buttons align */
.eca-product-price{
  min-height: 1.6em;
}
.eca-product-price.is-empty{
  visibility:hidden; /* keep space, hide text */
}

/* Push actions to the bottom */
.eca-product-actions{
  margin-top:auto;
}
