/*
Theme Name: Kalekoko
Theme URI: https://kale-koko.com
Author: Aitana Lopez
Author URI: https://kale-koko.com
Description: Velas artesanales mediterráneas - Slow living & handmade with love
Version: 3.0.2
License: GPL v2 or later
Text Domain: kalekoko
WC requires at least: 5.0
WC tested up to: 8.0
*/

/* ==========================================================================
   VARIABLES & RESET
   ========================================================================== */
:root {
    /* Colors */
    --kk-primary: #7FCDCD;      /* Azul mediterráneo */
    --kk-secondary: #F4E4C1;    /* Arena */
    --kk-accent: #E8B4B8;       /* Rosa suave */
    --kk-terracotta: #E07B4F;   /* Terracotta */
    --kk-dark: #2C3E50;         /* Azul oscuro */
    --kk-light: #FAFAFA;        /* Blanco roto */
    --kk-success: #52c41a;
    --kk-error: #ff4d4f;
    --kk-warning: #faad14;
    --kk-info: #1890ff;
    
    /* Typography - Con fallbacks optimizados para evitar FOUT */
    --kk-font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --kk-font-heading: 'Caprasimo', Georgia, 'Times New Roman', serif;
    
    /* Font Sizes - Reducidos para mejor legibilidad */
    --kk-font-size-xs: 0.6875rem;   /* 11px */
    --kk-font-size-sm: 0.8125rem;   /* 13px */
    --kk-font-size-md: 0.9375rem;   /* 15px */
    --kk-font-size-lg: 1.125rem;    /* 18px */
    --kk-font-size-xl: 1.375rem;    /* 22px */
    --kk-font-size-2xl: 1.75rem;    /* 28px */
    --kk-font-size-3xl: 2.25rem;    /* 36px */
    
    /* Spacing */
    --kk-spacing-xs: 5px;
    --kk-spacing-sm: 10px;
    --kk-spacing-md: 20px;
    --kk-spacing-lg: 40px;
    --kk-spacing-xl: 60px;
    --kk-spacing-2xl: 80px;
    
    /* Shadows */
    --kk-shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --kk-shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --kk-shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    
    /* Borders */
    --kk-radius: 10px;
    --kk-radius-sm: 5px;
    --kk-radius-lg: 20px;
    --kk-radius-full: 9999px;
    --kk-border: #e8e8e8;
    
    /* Transitions */
    --kk-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --kk-transition-fast: all 0.15s ease;
    --kk-transition-slow: all 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--kk-font-body);
    color: var(--kk-dark);
    background: #ffffff;
    line-height: 1.6;
    font-size: 15px; /* Reducido de 16px a 15px */
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--kk-font-heading);
    font-weight: 500 !important;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--kk-dark);
}

/* Forzar peso 500 en todos los títulos y elementos que usen la fuente de títulos */
.hero-title,
.section-title,
.product-title,
.feature-title,
.collection-title,
.step-title,
.candle-number,
.summary-title,
.support-title,
.item-design,
.faq-question,
.product-faq-question {
    font-weight: 500 !important;
}

a {
    color: var(--kk-primary);
    text-decoration: none;
    transition: var(--kk-transition);
}

a:hover {
    color: var(--kk-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   🔧 COMPONENTES COMUNES - Compartidos por todos los templates
   ========================================================================== */

/* === Contenedores Base === */
.product-container,
.kk-product-container,
.kk-scrunchie-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* === Layouts de 2 Columnas === */
.product-layout,
.kk-product-layout,
.kk-scrunchie-layout {
    display: grid;
    grid-template-columns: 1fr; /* Mobile-first: 1 columna por defecto */
    gap: 30px; /* Gap reducido para móvil */
    margin-bottom: 40px;
    align-items: start; /* Alinear arriba */
}

/* === Galerías === */
.product-gallery,
.kk-product-gallery,
.kk-scrunchie-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* === Información del Producto === */
.product-info,
.kk-product-info,
.kk-scrunchie-info {
    background: white;
    padding: 30px;
    border-radius: var(--kk-radius);
    /* box-shadow: 0 10px 40px rgba(0,0,0,0.08); */
}

.product-title,
.kk-product-title,
.kk-scrunchie-title {
    font-family: var(--kk-font-heading);
    font-size: 2rem; /* Restaurado a 2rem */
    color: var(--kk-dark);
    margin-bottom: 10px;
    line-height: 1.2;
}

.product-subtitle,
.kk-product-subtitle {
    font-size: 1rem; /* Ya está en 1rem */
    color: #666;
    margin-bottom: 20px; /* Reducido de 30px */
}

/* === Apoyo al Equipo (Unificado) === */
.support-block,
.kk-support-block {
    background: linear-gradient(135deg, #FFE5E5, #FFF5E5);
    padding: 25px;
    border-radius: var(--kk-radius);
    margin: 25px 0;
}

.support-header,
.kk-support-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.support-title,
.kk-support-title {
    font-weight: 600;
    font-size: 1rem; /* Reducido de 1.1rem */
    color: var(--kk-dark);
}

.support-subtitle,
.kk-support-subtitle {
    font-size: 0.85rem; /* Reducido de 0.9rem */
    color: #666;
    margin-bottom: 15px;
}

.support-options,
.kk-support-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.support-option,
.kk-support-option {
    padding: 15px 10px;
    background: white;
    border: 2px solid transparent;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.support-option:hover,
.kk-support-option:hover {
    border-color: var(--kk-primary);
}

.support-option.selected,
.kk-support-option.selected {
    background: var(--kk-primary);
    color: white;
    border-color: var(--kk-primary);
}

/* === Selectores de Cantidad (Unificado) === */
.quantity-selector-large,
.kk-quantity-selector,
.kk-scrunchie-quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f0f9ff, #fef3c7);
    border-radius: 15px;
    border: 0; /* Cambiado de 2px solid a 0 */
}

.quantity-btn,
.kk-quantity-btn,
.qty-minus,
.qty-plus {
    width: 50px;
    height: 50px;
    border: 2px solid var(--kk-primary);
    background: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px; /* Reducido de 24px */
    font-weight: bold;
    color: var(--kk-primary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover,
.kk-quantity-btn:hover,
.qty-minus:hover,
.qty-plus:hover {
    background: var(--kk-primary);
    color: white;
    transform: scale(1.1);
}

.quantity-btn:disabled,
.kk-quantity-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.quantity-display,
.kk-quantity-display {
    font-size: 1.75rem; /* Reducido de 2rem */
    font-weight: bold;
    color: var(--kk-dark);
    min-width: 60px;
    text-align: center;
}

/* === Botones Añadir al Carrito (Unificado) === */
.add-to-cart-btn,
.kk-add-to-cart-btn {
    width: 100%;
    padding: 20px;
    background: var(--kk-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem; /* Reducido de 1.2rem */
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(127, 205, 205, 0.3);
}

.add-to-cart-btn:hover,
.kk-add-to-cart-btn:hover {
    background: var(--kk-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(44, 62, 80, 0.3);
}

.add-to-cart-btn:disabled,
.kk-add-to-cart-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.button-total {
    font-weight: 700;
    color: white;
}

/* === Secciones Inferiores (Unificado) === */
.kk-section {
    padding: 60px 20px;
    background: white;
}

.kk-section:nth-child(even) {
    background: #fafafa;
}

.kk-section-title,
.section-title {
    font-family: var(--kk-font-heading);
    font-size: 2.2rem;
    color: var(--kk-dark);
    margin-bottom: 30px;
    text-align: center;
}

.kk-section-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    color: #555;
}

/* === Ocultar botones de pago directo PayPal (Común) === */
.woocommerce-paypal-payment-buttons,
.wc-payment-buttons,
form.cart .woocommerce-paypal-payment-buttons,
.woocommerce-variation-add-to-cart .woocommerce-paypal-payment-buttons {
    display: none !important;
}

/* === Responsive Común === */
/* ⚠️ DEPRECATED: Estos breakpoints usan max-width (desktop-first) */
/* ⚠️ Ver nueva versión Mobile-First al final del archivo */
@media (min-width: 600px) and (max-width: 899px) {
    /* FORZAR 1 COLUMNA EN TABLET */
    .product-layout,
    .kk-product-layout,
    .kk-scrunchie-layout {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .product-gallery,
    .kk-product-gallery,
    .kk-scrunchie-gallery {
        position: static; /* Quitar sticky en tablet */
        top: auto;
    }
    
    .product-title,
    .kk-product-title,
    .kk-scrunchie-title {
        font-size: 1.8rem;
    }
    
    .support-options,
    .kk-support-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .kk-section {
        padding: 40px 15px;
    }
    
    .kk-section-title,
    .section-title {
        font-size: 1.8rem;
    }
    
    .add-to-cart-btn,
    .kk-add-to-cart-btn {
        padding: 16px 40px;
        font-size: 15px;
        letter-spacing: 0.5px;
    }
}

@media (min-width: 320px) and (max-width: 599px) {
    .product-container,
    .kk-product-container,
    .kk-scrunchie-container {
        padding: 15px 10px;
    }
    
    /* FORZAR 1 COLUMNA EN MÓVIL */
    .product-layout,
    .kk-product-layout,
    .kk-scrunchie-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* Quitar sticky en móvil */
    .product-gallery,
    .kk-product-gallery,
    .kk-scrunchie-gallery {
        position: static !important;
        top: auto;
    }
    
    .product-info,
    .kk-product-info,
    .kk-scrunchie-info {
        padding: 15px 12px;
    }
    
    .product-title,
    .kk-product-title,
    .kk-scrunchie-title {
        font-size: 1.3rem;
    }
    
    .add-to-cart-btn,
    .kk-add-to-cart-btn {
        padding: 14px 30px;
        font-size: 14px;
        letter-spacing: 0.3px;
    }
    
    .support-options,
    .kk-support-options {
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
    }
    
    .support-option,
    .kk-support-option {
        padding: 10px 5px;
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   PRODUCTO - PÁGINA DE CONFIGURADOR
   ========================================================================== */
/* === Variables CSS === */
:root {
    --kk-primary: #7FCDCD;
    --kk-dark: #2C3E50;
    --kk-light: #F8F9FA;
    --kk-border: #E0E0E0;
    --kk-success: #00a32a;
    --kk-radius: 15px;
}

/* === Pasos de Configuración === */
.config-step {
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 2px solid var(--kk-light);
}

.config-step:last-child {
    border-bottom: none;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.step-number {
    width: 30px; /* Reducido de 40px */
    height: 30px; /* Reducido de 40px */
    background: var(--kk-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.step-title {
    font-size: 1rem; /* Reducido de 1.2rem */
    font-weight: 600;
    color: var(--kk-dark);
}

/* === QUICK CONFIG === */
.quick-config-wrapper {
    margin-bottom: 30px;
    display: none; /* Oculto por defecto, se muestra con JavaScript cuando quantity > 1 */
}

.quick-config-card {
    background: linear-gradient(135deg, #E8F8F8, #F0F8FF);
    border: 2px solid var(--kk-primary);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 15px;
}

.quick-config-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.quick-config-icon {
    font-size: 2.2rem; /* Reducido de 2.5rem */
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.quick-config-text h3 {
    font-size: 1.2rem; /* Reducido de 1.3rem */
    font-weight: 600;
    color: var(--kk-dark);
    margin-bottom: 5px;
}

.quick-config-text p {
    font-size: 0.9rem; /* Reducido de 0.95rem */
    color: #666;
    margin: 0;
}

.btn-quick-config {
    width: 100%;
    background: var(--kk-primary);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--kk-transition);
}

.btn-quick-config:hover {
    background: #6BB8B8;
    transform: translateY(-2px);
    box-shadow: var(--kk-shadow-md);
}

.btn-quick-config .btn-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.btn-quick-config:hover .btn-icon {
    transform: translateX(5px);
}

.quick-config-panel {
    background: white;
    border: 2px solid var(--kk-primary);
    border-radius: 15px;
    padding: 25px;
    margin-top: 15px;
}

.quick-config-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--kk-dark);
    margin-bottom: 20px;
}

.quick-config-selectors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.quick-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-selector label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--kk-dark);
}

.quick-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--kk-light);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--kk-font-body);
    background: white;
    cursor: pointer;
    transition: var(--kk-transition);
}

.quick-select:focus {
    outline: none;
    border-color: var(--kk-primary);
    box-shadow: 0 0 0 3px rgba(127, 205, 205, 0.1);
}

.btn-apply-quick-config {
    width: 100%;
    background: var(--kk-success);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--kk-transition);
}

.btn-apply-quick-config:hover {
    background: #45a616;
    transform: translateY(-2px);
    box-shadow: var(--kk-shadow-md);
}

/* Información adicional de cantidad (específico del configurator) */
.quantity-info {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

.quantity-info strong {
    color: var(--kk-primary);
}


/* === Grid de Diseños/Aromas === */
.designs-grid,
.aromas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.design-card,
.aroma-card {
    background: white;
    border: 2px solid var(--kk-border);
    border-radius: var(--kk-radius);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.design-card:hover,
.aroma-card:hover {
    border-color: var(--kk-primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(127, 205, 205, 0.2);
}

.design-card.selected,
.aroma-card.selected {
    border-color: var(--kk-primary);
    background: linear-gradient(135deg, rgba(127, 205, 205, 0.1), rgba(127, 205, 205, 0.05));
    box-shadow: 0 0 0 3px rgba(127, 205, 205, 0.2);
}

.design-card.selected::after,
.aroma-card.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--kk-primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.design-icon,
.aroma-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

.design-name,
.aroma-name {
    font-weight: 600;
    color: var(--kk-dark);
    font-size: 1rem;
    margin-bottom: 5px;
}

.design-desc,
.aroma-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.3;
}

/* === Configuración Individual de Velas (Acordeón) === */
.candles-config {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.candle-accordion {
    background: white;
    border: 2px solid var(--kk-border);
    border-radius: var(--kk-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.candle-accordion.completed {
    border-color: var(--kk-success);
    background: linear-gradient(to right, rgba(0, 163, 42, 0.05), transparent);
}

.candle-accordion.active {
    border-color: var(--kk-primary);
    box-shadow: 0 8px 20px rgba(127, 205, 205, 0.2);
}

.candle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    background: var(--kk-light);
}

.candle-accordion.active .candle-header {
    background: linear-gradient(135deg, rgba(127, 205, 205, 0.1), rgba(127, 205, 205, 0.05));
}

.candle-accordion.completed .candle-header {
    background: linear-gradient(135deg, rgba(0, 163, 42, 0.1), rgba(0, 163, 42, 0.05));
}

.candle-header:hover {
    background: rgba(127, 205, 205, 0.08);
}

.candle-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.candle-number {
    font-size: 1rem; /* Reducido de 1.2rem */
    font-weight: 700;
    color: var(--kk-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.candle-status-icon {
    font-size: 1rem; /* Reducido de 1.5rem */
}

.candle-summary {
    font-size: 0.9rem;
    color: #666;
    background: white;
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid var(--kk-border);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.candle-accordion.completed .candle-summary {
    border-color: var(--kk-success);
    color: var(--kk-success);
    font-weight: 600;
}

.accordion-toggle {
    font-size: 1.5rem;
    color: var(--kk-primary);
    transition: transform 0.3s ease;
}

.candle-accordion.active .accordion-toggle {
    transform: rotate(180deg);
}

.candle-content {
    display: none !important;
}

.candle-accordion.active .candle-content {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
}

.candle-selectors {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.selector-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.selector-label {
    font-size: 1rem; /* Ya está en 1rem */
    font-weight: 700;
    color: var(--kk-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.mini-card {
    padding: 7px 7px; /* Reducido de 15px 12px */
    border: 2px solid var(--kk-border);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    background: white;
    transition: all 0.3s ease;
    position: relative;
}

.mini-card:hover {
    border-color: var(--kk-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(127, 205, 205, 0.2);
}

.mini-card.selected {
    border-color: var(--kk-primary);
    background: var(--kk-primary);
    color: white;
    box-shadow: 0 8px 20px rgba(127, 205, 205, 0.3);
}

.mini-card.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    background: white;
    color: var(--kk-primary);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

.mini-card-icon {
    font-size: 1rem; /* Reducido de 2rem */
    display: block;
    margin-bottom: 8px;
}

.mini-card-name {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
}

/* === Resumen del Pedido === */
.order-summary {
    background: linear-gradient(135deg, #E8F8F8, #F0F8FF);
    border-radius: var(--kk-radius);
    padding: 25px;
    margin: 30px 0;
}

.summary-title {
    font-size: 1rem; /* Reducido de 1.2rem */
    font-weight: 700;
    color: var(--kk-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.summary-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-details {
    flex: 1;
}

.item-design {
    font-weight: 600;
    color: var(--kk-dark);
    margin-bottom: 5px;
}

.item-aroma {
    font-size: 0.9rem;
    color: #666;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid white;
    font-size: 1rem; /* Reducido de 1.5rem */
    font-weight: 700;
    color: var(--kk-dark);
}

/* === Scrollbar personalizado === */
.candles-config::-webkit-scrollbar {
    width: 8px;
}

.candles-config::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.candles-config::-webkit-scrollbar-thumb {
    background: var(--kk-primary);
    border-radius: 10px;
}

.candles-config::-webkit-scrollbar-thumb:hover {
    background: var(--kk-dark);
}

/* === Responsive Específico del Configurador === */
@media (min-width: 900px) and (max-width: 1199px) {
    /* Pasos más compactos */
    .config-step {
        margin-bottom: 25px;
        padding-bottom: 25px;
    }
    
    .step-header {
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .step-title {
        font-size: 1.1rem;
    }
    
    /* Grid de diseños/aromas optimizado */
    .designs-grid,
    .aromas-grid {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 10px;
    }
    
    .design-card,
    .aroma-card {
        padding: 12px 8px;
    }
    
    .design-icon,
    .aroma-icon {
        font-size: 2.2rem;
        margin-bottom: 6px;
    }
    
    .design-name,
    .aroma-name {
        font-size: 0.85rem;
        margin-bottom: 3px;
    }
    
    .design-desc,
    .aroma-desc {
        font-size: 0.75rem;
    }
    
    /* Acordeones más compactos */
    .candles-config {
        gap: 12px;
    }
    
    .candle-header {
        padding: 15px;
    }
    
    .candle-header-left {
        gap: 10px;
    }
    
    .candle-number {
        font-size: 1rem;
    }
    
    .candle-status-icon {
        font-size: 1.2rem;
    }
    
    .candle-summary {
        font-size: 0.75rem;
        padding: 5px 10px;
        max-width:175px;
    }
    
    .accordion-toggle {
        font-size: 1.2rem;
    }
    
    /* Contenido del acordeón menos padding */
    .candle-selectors {
        padding: 15px;
        gap: 20px;
    }
    
    .selector-group {
        gap: 12px;
    }
    
    .selector-label {
        font-size: 0.9rem;
    }
    
    /* Mini-grid más compacto */
    .mini-grid {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 8px;
    }
    
    .mini-card {
        padding: 10px 8px;
    }
    
    .mini-card-icon {
        font-size: 1.6rem;
        margin-bottom: 6px;
    }
    
    .mini-card-name {
        font-size: 0.75rem;
    }
    
    /* Resumen más compacto */
    .order-summary {
        padding: 20px 15px;
        margin: 20px 0;
    }
    
    .summary-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .summary-items {
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .summary-item {
        padding: 12px;
    }
    
    .item-design {
        font-size: 0.9rem;
        margin-bottom: 3px;
    }
    
    .item-aroma {
        font-size: 0.8rem;
    }
    
    .summary-total {
        font-size: 1.3rem;
        padding-top: 15px;
    }
}

/* Tablet: 600-899px - Grid de 2 columnas */
@media (min-width: 600px) and (max-width: 899px) {
    /* Mini-grid a 2 columnas para mejor usabilidad en tablet */
    .mini-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .mini-card {
        padding: 12px 10px;
    }
    
    .mini-card-icon {
        font-size: 1.8rem;
    }
    
    .mini-card-name {
        font-size: 0.8rem;
    }
}

@media (min-width: 320px) and (max-width: 599px) {
    /* Mini-grid a 2 columnas */
    .mini-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px;
    }
    
    .mini-card {
        padding: 10px 6px;
    }
    
    .mini-card-icon {
        font-size: 1.6rem;
    }
    
    .mini-card-name {
        font-size: 0.75rem;
    }
    
    /* Grid de diseños/aromas a 2 columnas fijas */
    .designs-grid,
    .aromas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .design-card,
    .aroma-card {
        padding: 10px 6px;
    }
    
    .design-icon,
    .aroma-icon {
        font-size: 2rem;
    }
    
    .design-name,
    .aroma-name {
        font-size: 0.8rem;
    }
    
    .design-desc,
    .aroma-desc {
        display: none;
    }
    
    /* Mini-grid también a 2 columnas */
    .mini-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .mini-card {
        padding: 8px 6px;
    }
    
    .mini-card-icon {
        font-size: 1.4rem;
    }
    
    .mini-card-name {
        font-size: 0.7rem;
    }
    
    /* Acordeón más ajustado */
    .candle-header {
        padding: 12px;
        flex-wrap: wrap;
    }
    
    .candle-header-left {
        flex: 2 1 100%;
        margin-bottom: 8px;
        gap: 0;
        display: flex;
        justify-content: space-between;
    }
    
    .accordion-toggle {
        display: none;
    }
    
    .candle-selectors {
        padding: 12px;
        gap: 15px;
    }
    
    /* Resumen en columna */
    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 10px;
    }
    
    .summary-total {
        font-size: 1.2rem;
    }
}

/* ==========================================================================
    PRODUCTO - PÁGINA DE AROMA SELECTOR
    ========================================================================== */

/* === Selector de Aromas (Específico) === */
.kk-aroma-selector {
    background: linear-gradient(135deg, #f0f9ff, #fef3c7);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid var(--kk-border);
}

.kk-aroma-title {
    font-size: 1rem; /* Reducido de 1.3rem */
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--kk-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.kk-aroma-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.kk-aroma-option {
    background: white;
    border: 3px solid transparent;
    border-radius: 15px;
    padding: 10px; /* Reducido de 20px */
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kk-aroma-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.kk-aroma-option.selected {
    border-color: var(--kk-primary);
    background: #f0f9ff;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(127, 205, 205, 0.3);
}

.kk-aroma-icon {
    font-size: 1.5rem; /* Reducido de 2.5rem */
    margin-bottom: 10px;
}

.kk-aroma-name {
    font-weight: 600;
    color: var(--kk-dark);
    margin-bottom: 5px;
}

.kk-aroma-desc {
    font-size: 12px;
    color: #666;
}

/* Formulario de compra (específico) */
.kk-product-info form.cart {
    background: none;
    padding: 0px;
    border-radius: 0px;
    border: 0px;
}

.kk-product-info .quantity {
    display: none; /* Ocultamos el selector nativo de WooCommerce */
}

/* === Responsive Específico Aroma Selector === */
@media (min-width: 600px) and (max-width: 899px) {
    .kk-aroma-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 320px) and (max-width: 599px) {
    .kk-aroma-options {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
    PRODUCTO - PÁGINA DE SCRUNCHIES
    ========================================================================== */

/* === Estilos Específicos para Scrunchie === */
.kk-scrunchie-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--kk-primary);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Selector de colores */
.kk-color-section {
    margin: 30px 0;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

.kk-color-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: var(--kk-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kk-colors-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kk-color-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.kk-color-option:hover {
    border-color: var(--kk-primary);
    background: #f9fafa;
}

.kk-color-option.selected {
    border-color: var(--kk-primary);
    background: rgba(127, 205, 205, 0.05);
    box-shadow: 0 0 0 1px var(--kk-primary);
}

.kk-color-preview {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.kk-color-name {
    font-weight: 500;
    color: var(--kk-dark);
    font-size: 15px;
    flex-grow: 1;
}

/* Patrón de cuadritos */
.kk-color-preview.cuadritos {
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 4px,
            rgba(255, 255, 255, 0.4) 4px,
            rgba(255, 255, 255, 0.4) 8px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 4px,
            rgba(255, 255, 255, 0.4) 4px,
            rgba(255, 255, 255, 0.4) 8px
        );
    background-blend-mode: overlay;
}

/* Precio */
.kk-scrunchie-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--kk-primary);
    margin: 25px 0;
}

/* Formulario */
.kk-scrunchie-form {
    margin-top: 30px;
}

/* === Selector de Cantidad (estilo Configurator UNIFICADO) === */
.kk-quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin: 10px 0;
    padding: 10px;
    background: linear-gradient(135deg, #f0f9ff, #fef3c7);
    border-radius: 15px;
    border: 0px;
}

.kk-quantity-btn {
    width: 50px;
    height: 50px;
    border: 2px solid var(--kk-primary);
    background: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    color: var(--kk-primary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kk-quantity-btn:hover {
    background: var(--kk-primary);
    color: white;
    transform: scale(1.1);
}

.kk-quantity-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.kk-quantity-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--kk-dark);
    min-width: 60px;
    text-align: center;
}

.kk-add-to-cart-btn {
    width: 100%;
    padding: 18px 50px;
    background: var(--kk-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kk-add-to-cart-btn:hover:not(:disabled) {
    background: var(--kk-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.kk-add-to-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Características */
.kk-features {
    margin-top: 30px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 15px;
}

.kk-features h3 {
    margin: 0 0 15px 0;
    color: var(--kk-dark);
}

.kk-features ul {
    margin: 0;
    padding-left: 20px;
    line-height: 1.8;
    color: #666;
}

/* === Secciones Inferiores === */
.kk-section {
    padding: 60px 20px;
    background: white;
}

.kk-section:nth-child(even) {
    background: #fafafa;
}

.kk-section-title {
    font-family: var(--kk-font-heading);
    font-size: 2.2rem;
    color: var(--kk-dark);
    margin-bottom: 30px;
    text-align: center;
}

.kk-section-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    color: #555;
}

/* === Responsive Específico Scrunchie === */
@media (min-width: 600px) and (max-width: 899px) {
    .kk-color-section {
        padding: 15px;
    }
    
    .kk-color-option {
        padding: 10px 12px;
    }
    
    .kk-color-preview {
        width: 28px;
        height: 28px;
    }
    
    .kk-color-name {
        font-size: 14px;
    }
}

@media (min-width: 320px) and (max-width: 599px) {
    .kk-color-option {
        padding: 8px 10px;
    }
    
    .kk-color-preview {
        width: 24px;
        height: 24px;
    }
    
    .kk-color-name {
        font-size: 13px;
    }
    
    /* Botón más compacto en móvil */
    .kk-add-to-cart-btn {
        padding: 14px 30px;
        font-size: 14px;
        letter-spacing: 0.3px;
    }
    
    .kk-support-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}




/* ==========================================================================
    PRODUCTO - PÁGINA DE PRODUCTO SIMPLE
    ========================================================================== */


/* === Ocultar botones de pago directo === */
.woocommerce-paypal-payment-buttons,
.wc-payment-buttons,
form.cart .woocommerce-paypal-payment-buttons,
.woocommerce-variation-add-to-cart .woocommerce-paypal-payment-buttons {
    display: none !important;
}

/* === Estilos Unificados para Producto Simple === */
.kk-product-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Layout principal: 2 columnas */
.kk-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* === Columna Izquierda: Galería === */
.kk-product-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* === Columna Derecha: Información y Compra === */
.kk-product-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.kk-product-title {
    font-family: var(--kk-font-heading);
    font-size: 2.5rem;
    color: var(--kk-dark);
    margin: 0;
    line-height: 1.2;
}

.kk-product-price {
    font-size: 1rem; /* Reducido de 2rem */
    font-weight: bold;
    color: var(--kk-primary);
}

.kk-product-excerpt {
    line-height: 1.8;
    color: #666;
    font-size: 1.05rem;
}

/* === Selector de Cantidad (estilo Configurator) === */
.kk-quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f0f9ff, #fef3c7);
    border-radius: 15px;
    border: 2px solid var(--kk-border);
}

.kk-quantity-btn {
    width: 50px;
    height: 50px;
    border: 2px solid var(--kk-primary);
    background: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    color: var(--kk-primary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kk-quantity-btn:hover {
    background: var(--kk-primary);
    color: white;
    transform: scale(1.1);
}

.kk-quantity-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.kk-quantity-display {
    font-size: 2rem;
    font-weight: bold;
    color: var(--kk-dark);
    min-width: 60px;
    text-align: center;
}

/* Formulario de compra */
.kk-product-info form.cart {
    background: var(--kk-light);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid var(--kk-border);
}

.kk-product-info .quantity {
    display: none; /* Ocultamos el selector nativo de WooCommerce */
}

.kk-product-info .single_add_to_cart_button {
    background: var(--kk-primary);
    color: white;
    padding: 18px 50px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.kk-product-info .single_add_to_cart_button:hover {
    background: var(--kk-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Meta información */
.kk-product-meta {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    font-size: 0.95rem;
}

.kk-product-meta p {
    margin: 8px 0;
    color: #666;
}

.kk-product-meta strong {
    color: var(--kk-dark);
}

/* === Responsive Específico Simple === */
@media (min-width: 600px) and (max-width: 899px) {
    .kk-product-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .kk-product-gallery {
        top: 0;
    }
    
    .kk-product-title {
        font-size: 1.8rem;
    }
    
    .kk-section {
        padding: 40px 15px;
    }
    
    .kk-section-title {
        font-size: 1.8rem;
    }
    
    .kk-support-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
    PRODUCTO - PÁGINA DE FIXED (Fantasy/Colors)
    ========================================================================== */

/* === Estilos Específicos Fixed === */
.kk-fixed-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--kk-primary);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
}

.kk-fixed-feature {
    padding: 20px;
    background: linear-gradient(135deg, rgba(127, 205, 205, 0.1), rgba(127, 205, 205, 0.05));
    border-radius: 15px;
    border: 2px solid var(--kk-border);
    margin: 20px 0;
}

.kk-fixed-feature-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

.kk-fixed-feature-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--kk-dark);
    margin-bottom: 5px;
}

.kk-fixed-feature-desc {
    color: #666;
    line-height: 1.6;
}

/* === Avisos de Stock === */
.kk-out-of-stock-notice {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%);
    border: 2px solid #ffcccc;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
}

.kk-out-of-stock-notice .kk-out-of-stock-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.kk-out-of-stock-notice h3 {
    font-family: var(--kk-font-heading);
    font-size: 1.5rem;
    color: #c53030;
    margin: 0 0 10px 0;
}

.kk-out-of-stock-notice p {
    color: #666;
    margin: 5px 0;
    line-height: 1.6;
}

.kk-low-stock-notice {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px solid #fcd34d;
    border-radius: 10px;
    padding: 12px 20px;
    text-align: center;
    margin-top: 15px;
    font-weight: 600;
    color: #92400e;
    font-size: 0.95rem;
}

/* === Secciones Inferiores === */
.kk-section {
    padding: 60px 20px;
    background: white;
}

.kk-section:nth-child(even) {
    background: #fafafa;
}

.kk-section-title {
    font-family: var(--kk-font-heading);
    font-size: 2.2rem;
    color: var(--kk-dark);
    margin-bottom: 30px;
    text-align: center;
}

.kk-section-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    color: #555;
}

/* Fixed no necesita Apoyo al Equipo ni Responsive específico, usa el común */

/* ==========================================================================
   🚀 MOBILE-FIRST RESPONSIVE DESIGN (v3.1)
   ========================================================================== */

/**
 * Filosofía Mobile-First:
 * - Base styles: Mobile (<600px) 
 * - @media (min-width): Progressive enhancement
 * - Breakpoints estándar: 600px (tablet), 900px (desktop), 1200px (large)
 * 
 * Ventajas:
 * - Mejor rendimiento mobile (menos CSS override)
 * - Código más limpio y mantenible
 * - Alineado con Google Mobile-First Indexing
 */

/* ==========================================================================
   BASE: Mobile (<600px)
   ========================================================================== */

/* Ya definido arriba - estos son los estilos base mobile */

/* ==========================================================================
   TABLET: ≥600px
   ========================================================================== */

@media (min-width: 600px) {
    /* Header - Navegación visible en tablet/desktop */
    .main-navigation {
        display: flex;
    }
    
    .mobile-toggle {
        display: none;
    }
    
    /* Productos - Grid 2 columnas */
    .support-options,
    .kk-support-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Quick Config */
    .quick-config-selectors {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   DESKTOP: ≥900px
   ========================================================================== */

@media (min-width: 900px) {
    /* Typography */
    .hero-title,
    .section-title {
        font-size: 2.5rem;
    }
    
    .product-title,
    .kk-product-title,
    .kk-scrunchie-title {
        font-size: 2rem; /* Reducido de 2.2rem para mayor condensación */
    }
    
    /* Layouts - 2 columnas */
    .product-layout,
    .kk-product-layout,
    .kk-scrunchie-layout {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
    
    .product-gallery,
    .kk-product-gallery,
    .kk-scrunchie-gallery {
        position: sticky;
        top: 100px;
    }
    
    /* Support options - 4 columnas */
    .support-options,
    .kk-support-options {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Sections */
    .kk-section {
        padding: 60px 40px;
    }
    
    .kk-section-title {
        font-size: 2.2rem;
    }
    
    /* Buttons */
    .add-to-cart-btn,
    .kk-add-to-cart-btn {
        padding: 18px 50px;
        font-size: 16px;
        letter-spacing: 1px;
    }
    
    /* Footer - 3 columnas */
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   LARGE DESKTOP: ≥1200px
   ========================================================================== */

@media (min-width: 1200px) {
    /* Container máximo */
    .container,
    .product-container,
    .kk-product-container {
        max-width: 1400px;
    }
    
    /* Typography grande */
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    /* Layouts amplios */
    .product-layout,
    .kk-product-layout {
        gap: 80px;
    }
    
    /* Sections */
    .kk-section {
        padding: 80px 60px;
    }
    
    /* Footer - 4 columnas */
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================================================
   XL DESKTOP: ≥1800px (Opcional)
   ========================================================================== */

@media (min-width: 1800px) {
    .container,
    .product-container {
        max-width: 1600px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
}

/* ==========================================================================
   🎯 TOUCH OPTIMIZATION (iOS & Android)
   ========================================================================== */

/* Área táctil mínima: 44x44px (Apple HIG) */
.btn,
.btn-primary,
.btn-secondary,
.quantity-btn,
.notification-close,
.mobile-toggle,
.search-toggle,
.header-cart,
.design-card,
.aroma-card,
.support-option,
.faq-question {
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(127, 205, 205, 0.2);
}

/* Estados táctiles */
.btn:active,
.btn-primary:active,
.btn-secondary:active,
.quantity-btn:active,
.design-card:active,
.aroma-card:active,
.support-option:active {
    transform: scale(0.95);
    transition: transform 0.1s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Swipe gestures para galerías */
.product-gallery,
.kk-product-gallery,
.woocommerce-product-gallery {
    touch-action: pan-x pinch-zoom;
    -webkit-overflow-scrolling: touch;
}

/* Mejorar tap en links */
a {
    -webkit-tap-highlight-color: rgba(127, 205, 205, 0.2);
}

/* Prevenir zoom en inputs (iOS) */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    font-size: 16px; /* Mínimo para evitar zoom en iOS */
}

/* Mejorar performance scroll */
.product-gallery img,
.collection-image,
.feature-card {
    will-change: transform;
}

/* Cursor pointer en elementos táctiles */
.btn,
.design-card,
.aroma-card,
.support-option,
.faq-question,
.notification-close {
    cursor: pointer;
}

/* Focus visible para accesibilidad + teclado */
*:focus-visible {
    outline: 3px solid var(--kk-primary);
    outline-offset: 2px;
}

/* ==========================================================================
   FIN MOBILE-FIRST & TOUCH OPTIMIZATION
   ========================================================================== */

/* ==========================================================================
   PRODUCTOS RELACIONADOS - Diseño Mejorado
   ========================================================================== */

.related.products,
.upsells.products {
    margin: 0 !important;
    padding: 0 !important;
}

.related.products h2,
.upsells.products h2 {
    display: none; /* Ocultamos título default de WooCommerce */
}

/* Grid de productos relacionados */
.related.products ul.products,
.upsells.products ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

/* Cards individuales */
.related.products ul.products li.product,
.upsells.products ul.products li.product {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.related.products ul.products li.product:hover,
.upsells.products ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Imagen del producto */
.related.products ul.products li.product .woocommerce-loop-product__link,
.upsells.products ul.products li.product .woocommerce-loop-product__link {
    display: block;
    overflow: hidden;
}

.related.products ul.products li.product img,
.upsells.products ul.products li.product img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related.products ul.products li.product:hover img,
.upsells.products ul.products li.product:hover img {
    transform: scale(1.05);
}

/* Título del producto */
.related.products ul.products li.product .woocommerce-loop-product__title,
.upsells.products ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--kk-font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--kk-dark);
    margin: 15px 15px 10px;
    line-height: 1.3;
    min-height: 2.6rem;
}

/* Precio */
.related.products ul.products li.product .price,
.upsells.products ul.products li.product .price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--kk-primary);
    margin: 0 15px 15px;
}

.related.products ul.products li.product .price del,
.upsells.products ul.products li.product .price del {
    color: #999;
    font-size: 1rem;
    margin-right: 8px;
}

/* Botón añadir al carrito */
.related.products ul.products li.product .button,
.upsells.products ul.products li.product .button {
    background: var(--kk-primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 15px 15px;
    text-align: center;
    display: block;
    width: calc(100% - 30px);
}

.related.products ul.products li.product .button:hover,
.upsells.products ul.products li.product .button:hover {
    background: var(--kk-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Rating */
.related.products ul.products li.product .star-rating,
.upsells.products ul.products li.product .star-rating {
    margin: 0 15px 10px;
    font-size: 0.9rem;
}

/* Badge de oferta */
.related.products ul.products li.product .onsale,
.upsells.products ul.products li.product .onsale {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--kk-error);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}

/* === Responsive === */

/* Tablet */
@media (min-width: 600px) and (max-width: 899px) {
    .related.products ul.products,
    .upsells.products ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .related.products ul.products li.product img,
    .upsells.products ul.products li.product img {
        height: 240px;
    }
    
    .related.products ul.products li.product .woocommerce-loop-product__title,
    .upsells.products ul.products li.product .woocommerce-loop-product__title {
        font-size: 1rem;
        min-height: 2.4rem;
    }
}

/* Mobile */
@media (min-width: 320px) and (max-width: 599px) {
    .related.products ul.products,
    .upsells.products ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .related.products ul.products li.product,
    .upsells.products ul.products li.product {
        border-radius: 10px;
    }
    
    .related.products ul.products li.product img,
    .upsells.products ul.products li.product img {
        height: 180px;
    }
    
    .related.products ul.products li.product .woocommerce-loop-product__title,
    .upsells.products ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.85rem;
        margin: 10px 10px 8px;
        min-height: 2rem;
    }
    
    .related.products ul.products li.product .price,
    .upsells.products ul.products li.product .price {
        font-size: 1.1rem;
        margin: 0 10px 10px;
    }
    
    .related.products ul.products li.product .button,
    .upsells.products ul.products li.product .button {
        padding: 10px 15px;
        font-size: 0.75rem;
        margin: 0 10px 10px;
        width: calc(100% - 20px);
    }
    
    .related.products ul.products li.product .star-rating,
    .upsells.products ul.products li.product .star-rating {
        font-size: 0.75rem;
        margin: 0 10px 8px;
    }
    
    .related.products ul.products li.product .onsale,
    .upsells.products ul.products li.product .onsale {
        top: 10px;
        right: 10px;
        padding: 4px 10px;
        font-size: 0.7rem;
    }
}

/* ==========================================================================
   FIN PRODUCTOS RELACIONADOS
   ========================================================================== */
