/*
Theme Name: Storefront Child
Theme URI: https://example.com/storefront-child
Description: Child theme for Storefront WooCommerce theme.
Author: Your Name
Author URI: https://example.com
Template: storefront
Version: 1.0.0
Text Domain: storefront-child
*/

/* Custom Fonts */
/* Avenir Font Family */
@font-face {
    font-family: 'Avenir';
    src: url('fonts/Avenir/Avenir Light/Avenir Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Avenir';
    src: url('fonts/Avenir/Avenir Book/Avenir Book.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Avenir';
    src: url('fonts/Avenir/Avenir Regular/Avenir Regular.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Avenir';
    src: url('fonts/Avenir/Avenir Heavy/Avenir Heavy.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Avenir';
    src: url('fonts/Avenir/Avenir Black/Avenir Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

/* Freight Big Pro Font Family */
@font-face {
    font-family: 'Freight Big Pro';
    src: url('fonts/Freight_Big_Pro/Freight Big Pro Book.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Freight Big Pro';
    src: url('fonts/Freight_Big_Pro/Freight Big Pro Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Freight Big Pro';
    src: url('fonts/Freight_Big_Pro/Freight Big Pro Semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Freight Big Pro';
    src: url('fonts/Freight_Big_Pro/Freight Big Pro Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

/* Global Styles */
body {
    background-color: #fffcfa;
    font-family: 'Avenir', sans-serif;
}

/* Heading Styles */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Freight Big Pro', serif;
}

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

/* Top Notice Bar */
.storefront-notice-bar {
    background-color: #e6dad3;
    color: #2e2e2e;
    padding: 12px 0;
    text-align: center;
    font-family: 'Avenir', sans-serif;
    font-size: 14px;
    font-weight: 400;
}

.notice-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.notice-bar-content .heart {
    color: #d32f2f;
    font-size: 16px;
}

/* Site Header */
.site-header {
    background-color: #fffcfa;
    border-bottom: 1px solid #f0f0f0;
    padding: 0 !important;
    --mobile-header-height: 72px;
}

/* Header Container */
.header-container {
    padding: 0;
    width: 100%;
}
.site-branding .site-title, .site-branding .site-description {
    display: none;
}
.site-header .site-logo-anchor, .site-header .site-logo-link, .site-header .custom-logo-link{
    text-align: center;
}
.site-header .site-logo-anchor img, .site-header .site-logo-link img, .site-header .custom-logo-link img{
    margin: 0px auto;
}
.woocommerce-active .site-header .site-branding {
        width: 100%;
        margin: 0;
}

/* Header Inner (90% centered container) */
.header-inner {
    width: 90%;
    margin: 0 auto;
    padding: 15px 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 20;
    padding: 0;
}

.mobile-menu-bars,
.mobile-menu-bars::before,
.mobile-menu-bars::after {
    content: '';
    display: block;
    width: 22px;
    height: 2px;
    background-color: #2e2e2e;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-bars::before {
    transform: translateY(-7px);
}

.mobile-menu-bars::after {
    transform: translateY(5px);
}

.mobile-menu-toggle:checked + .mobile-menu-button .mobile-menu-bars {
    background-color: transparent;
}

.mobile-menu-toggle:checked + .mobile-menu-button .mobile-menu-bars::before {
    transform: rotate(45deg);
}

.mobile-menu-toggle:checked + .mobile-menu-button .mobile-menu-bars::after {
    transform: rotate(-45deg);
}

.mobile-menu-panel {
    position: fixed;
    top: 180px;
    right: 0;
    bottom: 0;
    width: 20rem;
    max-width: 100%;
    background-color: #fffbf9;
    box-shadow: -24px 0 80px rgba(0,0,0,0.12);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 19;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.mobile-menu-toggle:checked ~ .mobile-menu-panel {
    transform: translateX(0);
}

.mobile-menu-panel::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background-color: rgba(46,46,46,0.08);
}

.mobile-navigation {
    flex: 1;
    overflow-y: auto;
}

.mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-menu li {
    border-bottom: 1px solid rgba(46,46,46,0.08);
}

.mobile-menu li:last-child {
    border-bottom: none;
}

.mobile-menu a {
    display: block;
    padding: 1rem 0;
    font-family: 'Avenir', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #2e2e2e;
    text-decoration: none;
}

.mobile-header-actions {
    display: none;
}

.mobile-search-icon,
.mobile-cart-icon {
    display: none;
}

.mobile-menu-actions {
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
}

.mobile-menu-button-link {
    display: inline-flex;
    width: 100%;
    padding: 1rem 1.25rem;
    justify-content: center;
    align-items: center;
    font-family: 'Avenir', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
}

.mobile-menu-button-link:hover {
    opacity: 0.92;
}

.mobile-menu-button-link:not(.mobile-menu-whatsapp) {
    background-color: #2e2e2e;
    border-radius: 2px;
}

.mobile-menu-button-link.mobile-menu-whatsapp {
    background-color: #e6dad3;
    color: #2e2e2e;
    border-radius: 2px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0;
    }
    
    .header-inner {
        width: 100%;
        padding: 15px;
        position: relative;
    }

    .header-row {
        grid-template-columns: auto 1fr auto;
        gap: 0;
        padding: 0 !important;
    }

    .header-row.header-row-2 {
        display: none;
    }

    .header-col-left {
        display: none;
    }

    .header-col-center {
        justify-self: start;
    }

    .header-col-right {
        justify-self: end;
        display: flex;
        align-items: center;
        gap: 0;
    }

    .whatsapp-link {
        display: none;
    }

    .mobile-menu-button {
        display: inline-flex;
    }

    .mobile-header-actions {
        display: flex;
        gap: 0;
        align-items: center;
    }

    .mobile-header-actions .mobile-search-icon,
    .mobile-header-actions .mobile-cart-icon,
    .mobile-header-actions .mobile-menu-button {
        display: flex;
    }

    .mobile-menu-button-link {
        width: 100%;
    }
}

/* Header Rows */
.header-row {
    display: grid;
    grid-template-columns: 140px 1fr 140px;
    align-items: center;
    padding: 0 !important;
    gap: 20px;
}

/* Header Columns */
.header-col-left {
    text-align: left;
}

.header-col-center {
    text-align: center;
}

.header-col-right {
    text-align: right;
}

/* Contact & WhatsApp Links */
.contact-link,
.whatsapp-link {
    font-family: 'Avenir', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    color: #2e2e2e;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 200;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-link:hover,
.whatsapp-link:hover {
    color: #d32f2f;
}

/* Site Branding */
.site-branding {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.site-branding img {
    max-width: 150px;
    height: auto;
    margin-bottom: 5px;
}

.site-title {
    font-family: 'Freight Big Pro', serif;
    font-size: 32px;
    font-weight: 600;
    margin: 0;
}

.site-title a {
    color: #2e2e2e;
    text-decoration: none;
}

.site-description {
    font-family: 'Avenir', sans-serif;
    font-size: 12px;
    color: #999;
    margin: 2px 0 0 0;
}

/* Main Navigation Menu */
.main-navigation {
    display: flex;
    justify-content: center;
}

.main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.main-menu li {
    position: relative;
}

.main-menu li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    height: 14px;
    width: 1px;
    background-color: #2e2e2e;
    transition: 0.3s ease all;
    opacity: 0.3;
}

.main-menu a {
    display: block;
    padding: 5px 1rem !important;
    font-family: 'Avenir', sans-serif;
    font-size: 12px;
    font-weight: 200;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #2e2e2e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-menu a:hover {
    color: #d32f2f;
}

.woocommerce-active .site-header .main-navigation {
        width: 100% !important  ;
        float: left;
        margin-right: 0px;
        clear: both;
    }

/* Header Icons */
.header-icons {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-end;
}

.search-icon,
.cart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2e2e2e;
    text-decoration: none;
    position: relative;
    transition: opacity 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.search-icon svg,
.cart-icon svg {
       width: 22px;
    height: 22px;
}

.search-icon:hover svg path,
.cart-icon:hover svg path {
    fill: #d32f2f;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #d32f2f;
    color: #fff;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}
