/* ==========================================================================
   NOTIFICACIONES / MODAL AÑADIDO AL CARRITO v2.0
   ========================================================================== */

#kalekoko-notifications {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 999999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    max-width: 400px !important;
    width: calc(100% - 40px) !important;
    pointer-events: none !important;
}

#kalekoko-notifications * {
    pointer-events: auto !important;
}

.kalekoko-notification {
    background: white !important;
    padding: 20px !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2) !important;
    opacity: 0 !important;
    transform: translateY(100px) !important;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    border-left: 5px solid transparent !important;
}

.kalekoko-notification.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.kalekoko-notification.success {
    border-left-color: #10b981 !important;
}

.kalekoko-notification.error {
    border-left-color: #ef4444 !important;
}

.kalekoko-notification.info {
    border-left-color: #3b82f6 !important;
}

/* Header de la notificación */
.notification-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 15px !important;
}

.notification-icon {
    font-size: 28px;
    line-height: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 16px;
    color: #1f2937;
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #9ca3af;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.notification-close:hover {
    color: #374151;
}

/* Mensaje */
.notification-message {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Botones de acción */
.notification-actions {
    display: flex;
    gap: 10px;
}

.notification-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.notification-btn-primary {
    background: var(--kk-primary);
    color: white;
}

.notification-btn-primary:hover {
    background: #5fb3b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(127, 205, 205, 0.3);
}

.notification-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.notification-btn-secondary:hover {
    background: #e5e7eb;
}

/* Responsive */
@media (min-width: 600px) and (max-width: 899px) {
    #kalekoko-notifications {
        bottom: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
        width: auto;
    }
    
    .notification-actions {
        flex-direction: column;
    }
    
    .notification-btn {
        width: 100%;
    }
}

/* ==========================================================================
   HEADER
   ========================================================================== */

/* Prevenir scroll cuando el menú móvil está abierto */
body.menu-open {
    overflow: hidden;
}

.site-header {
    background: white;
    box-shadow: var(--kk-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--kk-primary);
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 14px;
}

.header-top p {
    margin: 0;
}

.header-main {
    padding: 20px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--kk-dark);
    font-size: 24px;
}

img.custom-logo {
    width: 100%;
    max-width: 100px;
}

.logo-text h1 {
    font-size: 28px;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--kk-dark);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--kk-primary);
    transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item a::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-toggle,
.header-cart {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 5px;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--kk-terracotta);
    color: white;
    font-size: 11px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 10000;
}

.mobile-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--kk-dark);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 20px rgba(0,0,0,0.2);
    transition: left 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
    padding: 80px 20px 20px;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-content {
    padding: 0;
}

.mobile-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav a {
    display: block;
    padding: 18px 15px;
    color: var(--kk-dark);
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
}

.mobile-nav a:hover,
.mobile-nav .current-menu-item a {
    background: var(--kk-primary);
    color: white;
    padding-left: 25px;
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */

.kalekoko-breadcrumbs {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 12px 0;
    font-size: 14px;
}

.kalekoko-breadcrumbs .rank-math-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kalekoko-breadcrumbs .rank-math-breadcrumb p {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.kalekoko-breadcrumbs .rank-math-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.kalekoko-breadcrumbs .rank-math-breadcrumb a:hover {
    color: var(--kk-primary);
}

.kalekoko-breadcrumbs .rank-math-breadcrumb a:hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--kk-primary);
}

/* Separador entre elementos */
.kalekoko-breadcrumbs .rank-math-breadcrumb .separator {
    color: #cbd5e1;
    margin: 0 4px;
    font-size: 12px;
    user-select: none;
}

/* Último elemento (actual) */
.kalekoko-breadcrumbs .rank-math-breadcrumb span:last-child,
.kalekoko-breadcrumbs .rank-math-breadcrumb .last {
    color: var(--kk-dark);
    font-weight: 500;
}

/* Responsive */
@media (min-width: 600px) and (max-width: 899px) {
    .kalekoko-breadcrumbs {
        padding: 10px 0;
        font-size: 13px;
    }
    
    .kalekoko-breadcrumbs .rank-math-breadcrumb {
        gap: 6px;
    }
}

/* Overlay del menú móvil */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: var(--kk-shadow-md);
    padding: 20px 0;
}

.search-dropdown.active {
    display: block;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
background: linear-gradient(135deg, rgb(255 255 255 / 85%) 0%, rgb(247 226 196 / 85%) 50%, rgb(232 216 180 / 85%) 100%), url(https://kalekoko.es/wp-content/uploads/2025/10/45h-250gr-2_Mesa-de-trabajo-1.jpg) center / cover no-repeat;
    padding: 120px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    font-weight: 900;
    color: #3f3829;
    max-width: 900px;
    font-weight: 100 !important;
    margin: auto;
    text-shadow: none;
}

.hero-content p {
    font-size: 1rem;
    opacity: 1;
    color: #372400;
    text-shadow: none;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--kk-transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.btn-primary {
    background: var(--kk-dark);
    color: white;
    padding: 1rem;
    border-radius: 50px;
}

.btn-primary:hover {
    background: var(--kk-terracotta);
    transform: translateY(-2px);
    box-shadow: var(--kk-shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--kk-dark);
    padding: 1rem;
    border-radius: 50px;
}

.btn-secondary:hover {
    background: var(--kk-light);
    transform: translateY(-2px);
}

/* ==========================================================================
   PRODUCTOS
   ========================================================================== */
.products-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--kk-dark);
}

.section-header p {
    color: var(--kk-dark);
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto;
}

/* WooCommerce Grid */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 0;
    padding: 0;
}

.woocommerce ul.products li.product {
    list-style: none;
    text-align: center;
    background: white;
    border-radius: var(--kk-radius);
    overflow: hidden;
    transition: var(--kk-transition);
    box-shadow: var(--kk-shadow-sm);
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: var(--kk-shadow-lg);
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--kk-font-heading);
    font-size: 1.25rem;
    padding: 15px;
    margin: 0;
}

.woocommerce ul.products li.product .price {
    font-size: 1.125rem;
    color: var(--kk-primary);
    font-weight: 600;
}

.woocommerce ul.products li.product .button {
    background: var(--kk-primary);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    display: inline-block;
    margin: 15px 0 20px;
    transition: var(--kk-transition);
}

.woocommerce ul.products li.product .button:hover {
    background: var(--kk-dark);
    transform: scale(1.05);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--kk-dark);
    color: white;
    margin-top: 80px;
}

.footer-main {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.footer-column p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-menu {
    list-style: none;
    padding: 0;
}

.footer-menu a {
    color: white;
    opacity: 0.8;
    padding: 5px 0;
    display: block;
}

.footer-menu a:hover {
    opacity: 1;
    color: var(--kk-primary);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--kk-transition);
}

.footer-social a:hover {
    background: var(--kk-primary);
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 25px 0 0 25px;
}

.newsletter-form button {
    padding: 12px 25px;
    background: var(--kk-primary);
    color: white;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: var(--kk-transition);
}

.newsletter-form button:hover {
    background: var(--kk-terracotta);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

.footer-dev {
    margin-top: 8px;
    font-size: 12px;
    opacity: 0.7;
}

.footer-dev a {
    color: inherit;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.footer-dev a:hover {
    opacity: 1;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (min-width: 600px) and (max-width: 899px) {
    .header-main {
        padding: 15px 0;
    }
    
    .header-content {
        gap: 15px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .logo-text h1 {
        font-size: 24px;
    }
    
    img.custom-logo {
        max-width: 80px;
    }
    
    .main-navigation {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .search-toggle,
    .header-cart {
        padding: 8px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (min-width: 320px) and (max-width: 599px) {
    .header-top {
        font-size: 12px;
        padding: 6px;
    }
    
    .header-main {
        padding: 12px 0;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .logo-text h1 {
        font-size: 20px;
    }
    
    img.custom-logo {
        max-width: 70px;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .search-toggle,
    .header-cart {
        padding: 6px;
    }
    
    .search-toggle svg,
    .header-cart svg {
        width: 18px;
        height: 18px;
    }
    
    .cart-count {
        font-size: 10px;
        width: 16px;
        height: 16px;
    }
}


/* Notificación de carrito */
.cart-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    border-radius: 15px;
    padding: 20px 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: none;
    z-index: 9999;
    max-width: 350px;
    animation: slideInUp 0.4s ease;
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cart-notification.show {
    display: block;
}

.notification-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.notification-icon {
    width: 40px;
    height: 40px;
    background: var(--kk-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.notification-content h4 {
    margin: 0 0 5px 0;
    color: var(--kk-dark);
    font-size: 16px;
}

.notification-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.notification-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.notification-btn {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.notification-btn.primary {
    background: var(--kk-primary);
    color: white;
}

.notification-btn.secondary {
    background: #f0f0f0;
    color: var(--kk-dark);
}

.notification-btn:hover {
    transform: translateY(-2px);
}

/* Selector de aromas múltiple */
.aroma-option {
    position: relative;
}

.aroma-quantity {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--kk-primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transition: all 0.3s ease;
}

.aroma-option.has-quantity .aroma-quantity {
    opacity: 1;
}

/* Mix de aromas seleccionados */
.selected-aromas-mix {
    margin-top: 20px;
    padding: 15px;
    background: #f0f9ff;
    border-radius: 10px;
    display: none;
}

.selected-aromas-mix.show {
    display: block;
}

.mix-title {
    font-weight: 600;
    color: var(--kk-dark);
    margin-bottom: 10px;
    font-size: 14px;
}

.mix-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mix-item {
    background: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #e0e0e0;
}

.mix-item-remove {
    cursor: pointer;
    color: #999;
    margin-left: 5px;
}

.mix-item-remove:hover {
    color: #ff4444;
}

/* Modo múltiple activo */
.variations-section.multiple-mode .aroma-option {
    cursor: pointer;
}

.variations-section.multiple-mode .aroma-option.selected {
    background: #e8f5e9;
    border-color: #4caf50;
    color: var(--kk-dark);
}

.multi-aroma-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: #fff3cd;
    border-radius: 8px;
    font-size: 14px;
}

.multi-aroma-info {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

/* ==========================================================================
   NOTIFICACIÓN DE CARRITO (TOAST)
   ========================================================================== */

.kk-cart-notification {
    position: fixed;
    bottom: -200px; /* Oculto inicialmente */
    right: 20px;
    background: white;
    border-radius: 15px;
    padding: 20px 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 99999;
    max-width: 380px;
    width: calc(100% - 40px);
    transition: bottom 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid var(--kk-primary);
}

.kk-cart-notification.show {
    bottom: 30px;
}

.kk-notification-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.kk-notification-icon {
    width: 50px;
    height: 50px;
    background: var(--kk-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.kk-notification-icon.success {
    background: #4caf50;
}

.kk-notification-icon.warning {
    background: #ff9800;
}

.kk-notification-icon.error {
    background: #f44336;
}

.kk-notification-content h4 {
    margin: 0 0 5px 0;
    color: var(--kk-dark);
    font-size: 18px;
    font-weight: 700;
}

.kk-notification-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.kk-notification-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.kk-notification-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: block;
}

.kk-notification-btn.primary {
    background: var(--kk-primary);
    color: white;
}

.kk-notification-btn.primary:hover {
    background: var(--kk-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.kk-notification-btn.secondary {
    background: #f0f0f0;
    color: var(--kk-dark);
}

.kk-notification-btn.secondary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* Responsive para notificación */
@media (min-width: 600px) and (max-width: 899px) {
    .kk-cart-notification {
        right: 10px;
        left: 10px;
        width: calc(100% - 20px);
        max-width: none;
        padding: 15px 20px;
    }
    
    .kk-cart-notification.show {
        bottom: 20px;
    }
    
    .kk-notification-header {
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .kk-notification-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .kk-notification-content h4 {
        font-size: 16px;
    }
    
    .kk-notification-content p {
        font-size: 13px;
    }
    
    .kk-notification-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .kk-notification-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (min-width: 320px) and (max-width: 599px) {
    .kk-notification-actions {
        flex-direction: column;
    }
    
    .kk-notification-btn {
        width: 100%;
    }
}

/* === PRODUCTOS GRID RESPONSIVE === */

/* Tablet: 600-899px - 2 columnas */
@media (min-width: 600px) and (max-width: 899px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .woocommerce ul.products li.product {
        margin-bottom: 0;
    }
}

/* Móvil: 320-599px - 2 columnas */
@media (min-width: 320px) and (max-width: 599px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .woocommerce ul.products li.product {
        margin-bottom: 0;
    }
    
    /* Hacer que los productos sean más compactos en móvil */
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .woocommerce ul.products li.product .price {
        font-size: 1rem;
    }
    
    .woocommerce ul.products li.product .button {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
}