/*
Theme Name: Astra Child - Icci Gioielli
Description: Child theme per icciogioielli.com - Design elegante per gioielli di lusso
Template: astra
Version: 1.0.0
Author: Progetto Icci Gioielli
*/

/* =============================================================================
   ICCI GIOIELLI - CUSTOM HEADER STYLES
   Design elegante e minimalista per gioielli di lusso
   ============================================================================= */

/* --- GLOBAL VARIABLES --- */
:root {
    --icci-gold: #d4af37;
    --icci-dark: #2c2c2c;
    --icci-light-gray: #f8f8f8;
    --icci-border-light: #e5e5e5;
    --icci-font-primary: 'Playfair Display', serif;
    --icci-font-secondary: 'Lato', sans-serif;
}

/* --- HEADER STYLING --- */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--icci-border-light);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: all 0.3s ease;
}

/* Header Container */
.ast-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- LOGO STYLING --- */
.ast-site-identity {
    padding: 15px 0;
}

.custom-logo {
    max-height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.custom-logo:hover {
    transform: scale(1.05);
}

/* --- NAVIGATION MENU --- */
.main-header-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 40px;
}

.main-header-menu li {
    position: relative;
}

.main-header-menu a {
    font-family: var(--icci-font-secondary);
    font-size: 16px;
    font-weight: 400;
    color: var(--icci-dark);
    text-decoration: none;
    padding: 20px 0;
    transition: all 0.3s ease;
    position: relative;
}

/* Elegant hover effect */
.main-header-menu a:hover {
    color: var(--icci-gold);
}

.main-header-menu a::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--icci-gold);
    transition: width 0.3s ease;
}

.main-header-menu a:hover::after {
    width: 100%;
}

/* Current menu item */
.main-header-menu .current-menu-item a {
    color: var(--icci-gold);
}

.main-header-menu .current-menu-item a::after {
    width: 100%;
}

/* --- WOOCOMMERCE CART --- */
.ast-header-woo-cart {
    position: relative;
}

.ast-cart-menu-wrap {
    position: relative;
}

.ast-cart-menu-wrap .count {
    background-color: var(--icci-gold);
    color: #ffffff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -8px;
    right: -8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Cart Icon */
.ast-header-woo-cart .ast-cart-menu-wrap .count {
    border: 2px solid #ffffff;
}

/* Cart Dropdown */
.astra-cart-drawer {
    background-color: #ffffff;
    border: 1px solid var(--icci-border-light);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .ast-container {
        padding: 0 15px;
    }
    
    .custom-logo {
        max-height: 45px;
    }
    
    .main-header-menu {
        gap: 20px;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        border-top: 1px solid var(--icci-border-light);
        padding: 20px;
        display: none;
    }
    
    .main-header-menu.toggled {
        display: flex;
    }
    
    .main-header-menu a {
        padding: 15px 0;
        font-size: 18px;
    }
}

/* --- HEADER SEARCH (if needed) --- */
.ast-header-search {
    position: relative;
}

.ast-search-menu-icon {
    color: var(--icci-dark);
    font-size: 18px;
    transition: color 0.3s ease;
}

.ast-search-menu-icon:hover {
    color: var(--icci-gold);
}

/* --- TRANSPARENCY EFFECT --- */
.ast-theme-transparent-header .site-header {
    background-color: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
}

/* --- LUXURY TOUCHES --- */
.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--icci-gold) 50%, transparent 100%);
}

/* --- FINE TUNING --- */
.ast-builder-layout-element {
    padding: 0 10px;
}

.ast-builder-layout-element:first-child {
    padding-left: 0;
}

.ast-builder-layout-element:last-child {
    padding-right: 0;
}

/* Header height consistency */
.site-header .ast-builder-grid-row {
    min-height: 80px;
    align-items: center;
}
