/*
Theme Name: Gizava Theme
Template: hello-elementor
Version: 1.0.0
Description: Tema hijo personalizado para Gizava Perú
Author: Gizava Perú
Text Domain: gizava-theme
*/

/* Color primario: #C0392B */
/* Color secundario: #1a1a1a */

/* ===========================
   HEADER
=========================== */
.gizava-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
}

.header-main {
    background-color: #C0392B;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    gap: 24px;
}

/* Logo */
.header-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo .site-logo {
    height: 45px;
    width: auto;
}

/* Navegación */
.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-nav .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
    align-items: center;
}

.header-nav .nav-menu > li > a {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    position: relative;
    white-space: nowrap;
}

.header-nav .nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: #ffffff;
    transform: scaleX(0);
    transition: transform 0.2s ease;
    transform-origin: center;
}

.header-nav .nav-menu > li > a:hover::after,
.header-nav .nav-menu > li.current-menu-item > a::after,
.header-nav .nav-menu > li.current-menu-ancestor > a::after {
    transform: scaleX(1);
}

/* Iconos derecha */
.header-icons {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.header-icon {
    color: #ffffff;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
    transition: opacity 0.2s ease;
    border-radius: 4px;
}

.header-icon:hover {
    opacity: 0.8;
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

.cart-count:empty {
    display: none;
}

/* Barra informativa */
.header-info-bar {
    background-color: #1a1a1a;
    color: #ffffff;
    text-align: center;
    padding: 7px 20px;
    font-size: 12px;
    letter-spacing: 0.3px;
}

/* Hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Menú móvil overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(0, 0, 0, 0.55);
}

.mobile-menu-overlay.is-open {
    display: block;
}

.mobile-menu-panel {
    background: #C0392B;
    width: 280px;
    height: 100%;
    padding: 16px 20px 40px;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0,0,0,0.3);
}

.mobile-menu-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 30px;
    cursor: pointer;
    display: block;
    margin-left: auto;
    line-height: 1;
    padding: 4px 8px;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.mobile-menu-close:hover {
    opacity: 1;
}

.mobile-nav-menu {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}

.mobile-nav-menu li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-nav-menu li a:hover {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .header-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .search-toggle,
    .account-link {
        display: none;
    }

    .header-container {
        height: 60px;
    }

    .header-logo .site-logo {
        height: 36px;
    }
}
