/* * Modern Header Styles
 * Theme: Woocom QuillGPL Digital Seller
 */

/* 1. Top Bar */
.quill-top-bar {
    background-color: #0b1220; /* Dark bg */
    color: #fff;
    font-size: 12px;
    padding: 8px 0;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-right a {
    color: #fff;
    margin-left: 20px;
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.2s;
}
.top-bar-right a:hover { opacity: 1; }

/* 2. Main Header */
.quill-site-header {
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 999;
    transition: box-shadow 0.3s;
}

/* Shadow effect when scrolling (optional JS needed or just leave constant) */
.quill-site-header.is-scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.quill-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* 3. Navigation */
.quill-primary-nav { flex: 1; display: flex; justify-content: center; }
.quill-menu { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.quill-menu li { position: relative; }
.quill-menu a {
    color: #0f172a;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    padding: 10px 0;
    display: block;
}

/* Hover Underline Effect */
.quill-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--quill-accent, #0ea5a4);
    transition: width 0.3s;
}
.quill-menu > li:hover > a::after { width: 100%; }

/* Dropdowns */
.quill-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
    list-style: none;
    padding: 10px 0;
}
.quill-menu li:hover .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.quill-menu .sub-menu a { padding: 8px 20px; font-size: 14px; color: #555; }
.quill-menu .sub-menu a:hover { background: #f8fafc; color: var(--quill-accent, #0ea5a4); }

/* 4. Tools (Icons) */
.quill-header-tools { display: flex; gap: 10px; align-items: center; }
.tool-btn {
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    color: #334155;
    border-radius: 50%;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tool-btn:hover { background: #f1f5f9; color: #000; }

.cart-icon-wrap { position: relative; }
.quill-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--quill-accent, #0ea5a4);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 5. Search Overlay */
.header-search-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.98);
    z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: 0.3s;
}
body.search-active .header-search-overlay { opacity: 1; visibility: visible; }
.search-field {
    font-size: 32px;
    border: none;
    border-bottom: 2px solid #eee;
    padding: 20px 0;
    width: 80%;
    max-width: 700px;
    outline: none;
    text-align: center;
}
.close-search {
    position: absolute; top: 30px; right: 30px; font-size: 40px;
    background: none; border: none; cursor: pointer; color: #333;
}

/* 6. Mobile Drawer (Slide In) */
.quill-mobile-drawer {
    position: fixed; top: 0; left: 0; height: 100%; width: 280px;
    background: #fff; z-index: 3000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 20px rgba(0,0,0,0.1);
}
body.mobile-menu-active .quill-mobile-drawer { transform: translateX(0); }

.drawer-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px; border-bottom: 1px solid #eee;
}
.drawer-title { font-weight: bold; font-size: 18px; }
.close-drawer { background: none; border: none; font-size: 24px; cursor: pointer; }

.quill-mobile-menu-list { list-style: none; padding: 0; margin: 0; }
.quill-mobile-menu-list li { border-bottom: 1px solid #f9f9f9; }
.quill-mobile-menu-list a { display: block; padding: 15px 20px; color: #333; text-decoration: none; }

.mobile-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 2999;
    opacity: 0; visibility: hidden; transition: 0.3s;
}
body.mobile-menu-active .mobile-overlay { opacity: 1; visibility: visible; }

/* =========================================
   HERO SEARCH BAR STYLES
   ========================================= */

.hero-search-wrap {
    margin: 0 auto 35px auto; /* Centered with bottom spacing */
    max-width: 500px;         /* Limit width for better aesthetic */
    width: 100%;
    position: relative;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 50px; /* Fully rounded pill shape */
    padding: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05); /* Soft shadow */
    transition: all 0.3s ease;
}

/* Focus Effect: Highlight border when typing */
.search-input-group:focus-within {
    border-color: #0ea5a4;
    box-shadow: 0 10px 25px rgba(14, 165, 164, 0.15);
}

.search-field {
    flex-grow: 1;
    border: none !important;
    background: transparent !important;
    padding: 15px 25px !important;
    font-size: 16px;
    color: #1e293b;
    outline: none !important;
    box-shadow: none !important; /* Remove default WP shadows */
    border-radius: 50px 0 0 50px;
}

.search-field::placeholder {
    color: #94a3b8;
}

/* SEARCH BUTTON (The Fix) */
.search-submit {
    background: #0ea5a4; /* Teal Brand Color */
    color: #ffffff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%; /* Perfect circle inside the bar */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    margin-right: 2px; /* Slight spacing from edge */
}

.search-submit:hover {
    background-color: #0b8c8b; /* Darker Teal */
    transform: scale(1.05); /* Slight zoom effect */
}

.search-submit svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff; /* Ensure icon is white */
    stroke-width: 2.5px;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .hero-search-wrap {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .search-field {
        font-size: 14px; /* Prevent zoom on iOS */
        padding: 12px 20px !important;
    }
    
    .search-submit {
        width: 42px;
        height: 42px;
    }
}

/* =========================================
   MODERN BREADCRUMBS
   ========================================= */

/* 1. Container Styling */
.woocommerce-breadcrumb {
    background: #f8fafc; /* Very light gray/blue background */
    padding: 12px 20px;
    border-radius: 50px; /* Pill shape */
    font-size: 13px;
    font-weight: 600;
    color: #64748b; /* Muted text color */
    display: inline-flex; /* Hugs content */
    align-items: center;
    flex-wrap: wrap; /* Wraps nicely on mobile */
    gap: 8px; /* Space between items */
    margin-bottom: 25px;
    border: 1px solid #e2e8f0; /* Subtle border */
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

/* 2. Link Styling */
.woocommerce-breadcrumb a {
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.woocommerce-breadcrumb a:hover {
    color: #0ea5a4; /* Teal Brand Color */
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

/* 3. Home Icon (Optional: Adds an icon before 'Home') */
.woocommerce-breadcrumb a:first-child::before {
    content: '\f102'; /* Dashicon Home ID */
    font-family: 'dashicons';
    margin-right: 5px;
    font-size: 14px;
    vertical-align: middle;
    color: #94a3b8;
}

/* 4. Separator Styling (Replaces default '/') */
/* Note: Since '/' is hardcoded in HTML, we color it lightly */
.woocommerce-breadcrumb {
    color: #cbd5e1; /* Makes the '/' very light */
}

/* 5. Active Item (The current page title) */
.woocommerce-breadcrumb span,
.woocommerce-breadcrumb:last-child {
    color: #0ea5a4; /* Teal for active item */
    font-weight: 700;
    background: rgba(14, 165, 164, 0.1); /* Light Teal Bg */
    padding: 2px 10px;
    border-radius: 4px;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .woocommerce-breadcrumb {
        width: 100%;
        border-radius: 8px; /* Square corners on mobile */
        padding: 10px 15px;
        line-height: 1.6;
    }
}

/* Responsive */
.quill-mobile-toggle { display: none; background: none; border: none; }
@media (max-width: 900px) {
    .quill-primary-nav { display: none; }
    .quill-mobile-toggle { display: block; }
    .quill-header-tools { gap: 5px; }
    .top-bar-right { display: none; }
    .top-bar-inner { justify-content: center; }
}