/*
Theme Name: Glozin Child
Theme URI: https://wpglozin.com/
Author: UIXThemes
Author URI: https://uix.store
Description: Multipurpose WooCommerce WordPress Theme
Version: 1.0.0
Requires at least: 5.0
Tested up to: 5.8
Requires PHP: 7.0
License: GNU General Public License v2+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: glozin
Tags: one-column, two-columns, left-sidebar, right-sidebar, full-width-template, post-formats, theme-options, threaded-comments, translation-ready
Template: glozin
*/

/* 1. Force the container to hover over the site content */
#site-header {
    position: absolute; /* Allows header to sit on top of content */
    top: 0;
    left: 0;
    width: 100%;
    padding-top: 20px; /* Space from very top */
}

/* 2. The Glass Pill */
.header-main {
    /* Glass Effect */
    background: rgba(255, 251, 245, 0.6) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    /* Pill Shape */
    border-radius: 60px !important;
    
    /* Liquid Glass Border - using border-image for a true gradient stroke */
    border: 2px solid transparent !important;
    background-clip: padding-box; /* Ensures background doesn't bleed under border */
    
    /* Depth/Pop */
    box-shadow: 0 8px 32px rgba(59, 30, 9, 0.15), 
                inset 0 0 0 1px rgba(255, 255, 255, 0.4) !important;
    
    /* Positioning */
    margin: 20px auto !important;
    width: 95% !important;
    max-width: 1200px !important;
    padding: 10px 30px !important;
    
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

/* 3. Pull content up so it flows under the header */
#site-content {
    margin-top: -80px; /* Adjust this value if the header is too tall/short */
    padding-top: 80px;  /* Compensate padding so your first section doesn't get hidden */
}

/* 4. Sticky State Enhancement */
.is-sticky .header-main {
    background: rgba(255, 251, 245, 0.8) !important; /* Slightly more opaque when sticky */
    box-shadow: 0 10px 40px rgba(59, 30, 9, 0.2) !important;
}

.site-header {
    background-color: #ffffff00 !important;
}

/* Mobile header wrapper: keep it floating above content */
.site-header__mobile {
    position: fixed;
    top: 10px;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: transparent !important;
    pointer-events: none; /* lets only inner pill receive clicks */
}

/* The actual pill */
.site-header__mobile .header-mobile-main {
    pointer-events: auto;
    
    width: calc(100% - 20px);
    margin: 0 auto;
    border-radius: 999px !important;
    
    /* Glass body */
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.72) 0%,
        rgba(255, 248, 238, 0.58) 45%,
        rgba(255, 235, 210, 0.42) 100%
    ) !important;
    
    /* Glass blur */
    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    
    /* Better glass border stroke */
    border: 1.5px solid transparent !important;
    background-clip: padding-box;
    position: relative;
    
    /* Stronger pop */
    box-shadow:
        0 10px 30px rgba(59, 30, 9, 0.14),
        0 2px 8px rgba(59, 30, 9, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
    
    min-height: 64px;
}

/* Gradient glass stroke */
.site-header__mobile .header-mobile-main::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1.5px;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95),
        rgba(255, 255, 255, 0.35),
        rgba(230, 106, 0, 0.18)
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    opacity: 0.9;
}

.site-header__section.header-sticky--both.minimized, .site-header__section.header-sticky--both.headroom--not-top {
    box-shadow: 5px 0px 30px 0px rgb(0 0 0 / 0%) !important;
}

/* Inner content spacing */
.site-header__mobile .header-mobile-contents {
    border-radius: inherit;
    position: relative;
    z-index: 1;
    padding: 8px 14px;
	margin-top:10px;
}

/* Logo size */
.site-header__mobile .header-logo img {
    max-height: 34px;
    width: auto;
}

/* Icon colors */
.site-header__mobile .header-hamburger,
.site-header__mobile .header-search__icon,
.site-header__mobile .header-cart {
    color: #3B1E09 !important;
    opacity: 0.95;
}

/* Hover / active feel */
.site-header__mobile .header-hamburger:hover,
.site-header__mobile .header-search__icon:hover,
.site-header__mobile .header-cart:hover {
    color: #E66A00 !important;
    opacity: 1;
}

/* If the theme adds a sticky/minimized state, keep it elegant */
.site-header__mobile.minimized .header-mobile-main,
.site-header__mobile.header-sticky--both .header-mobile-main {
    box-shadow:
        0 14px 38px rgba(59, 30, 9, 0.18),
        0 2px 8px rgba(59, 30, 9, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}