/* ==========================================================================
   PVC SECURITY - PREMIUM GLOBAL HEADER STYLES
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Brand Colors */
    --pvc-gold: #D4AF37;
    --pvc-gold-light: #F2D482;
    --pvc-gold-dark: #B8860B;
    --pvc-black: #000000;
    --pvc-dark-gray: #111111;
    --pvc-white: #FFFFFF;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);

    /* Z-index */
    --z-header: 10000;
    --z-dropdown: 10001;
    --z-mobile-menu: 10002;
}

/* Global Reset for Header */
/* Global Reset for Header - Standard Bar with Internal Rings */
.pvc-global-header {
    background: var(--pvc-black);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    /* Taller for rings */
    z-index: var(--z-header);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    transition: var(--transition-smooth);
    border: none;
    /* Resetting previous ring border */
    border-radius: 0;
    transform: none;
    box-shadow: none;
}

.pvc-global-header.sticky {
    height: 70px;
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid var(--pvc-gold-dark);
    top: 0;
    /* Reset sticky top */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .pvc-global-header {
        width: 100%;
        top: 0;
        height: 56px !important;
    }
}

/* Container */
.pvc-header-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    /* Prevent items from wrapping and shifting content */
}

/* Logo */
.pvc-header-logo a {
    display: block;
}

.pvc-header-logo img {
    height: 50px;
    width: auto;
    transition: var(--transition-smooth);
}

/* Navigation Menu - THE GOLD RING */
.pvc-main-nav {
    display: flex;
    align-items: center;
    height: 100%;
}

.pvc-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0 40px;
    /* Space inside ring */
    gap: 30px;
    border: 1px solid var(--pvc-gold);
    /* The Pill Border */
    border-radius: 50px;
    height: 50px;
    align-items: center;
    transition: var(--transition-smooth);
}

.pvc-global-header.sticky .pvc-nav-list {
    height: 45px;
    /* Compact on scroll */
}

.pvc-nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.pvc-nav-link {
    color: var(--pvc-white);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pvc-nav-link i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.pvc-nav-item:hover .pvc-nav-link {
    background: linear-gradient(to right, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.pvc-nav-item:hover .pvc-nav-link i {
    transform: rotate(180deg);
    color: #BF953F;
}

/* Active Link Highlight */
.pvc-nav-link.active {
    background: linear-gradient(to right, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Remove underlined style */


/* Mega Menu Common */
/* Mega Menu Common */
.pvc-mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: max-content;
    /* Fit content */
    min-width: 300px;
    max-width: 90vw;
    background: var(--pvc-dark-gray);
    border-top: 3px solid var(--pvc-gold);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    padding: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    display: flex;
    /* Flex instead of Grid to remove empty space */
    gap: 40px;
    z-index: var(--z-dropdown);
    border-radius: 0 0 10px 10px;
}

.pvc-nav-item:hover .pvc-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Remove fixed width overrides */
.pvc-nav-item.has-mega-brand .pvc-mega-menu,
.pvc-nav-item.has-mega-category .pvc-mega-menu {
    max-width: 95vw;
    grid-template-columns: none;
}

.pvc-mega-title {
    color: var(--pvc-gold);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    letter-spacing: 1px;
}

.pvc-mega-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2-column internal grid */
    gap: 15px;
}

.pvc-mega-list li {
    margin-bottom: 0;
}

.pvc-mega-list li a {
    color: #AAA;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 14px;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pvc-mega-list li a:hover {
    color: var(--pvc-gold);
    padding-left: 5px;
}

/* Utility Icons - CIRCULAR RINGS */
.pvc-header-utils {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pvc-util-btn {
    background: transparent;
    border: 1.5px solid var(--pvc-gold);
    /* Gold Ring */
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    flex-shrink: 0 !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
    color: var(--pvc-gold);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    position: relative;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    /* Ensure no overflow breaks circle */
}

.pvc-util-btn:hover {
    background: var(--pvc-gold);
    color: var(--pvc-black);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Cart Badge */
.pvc-cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--pvc-gold);
    color: var(--pvc-black);
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Search Bar Toggle */
.pvc-search-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 44px;
    width: 44px;
    /* Locked: This ensures the breadcrumb NEVER moves */
    z-index: 50;
    margin-right: 0;
}

.pvc-search-container.active {
    width: 44px;
    /* Still 44px on container level */
}

.pvc-search-form-inline {
    display: flex !important;
    align-items: center;
    background: var(--pvc-white) !important;
    border-radius: 50px;
    padding: 0;
    width: 0;
    height: 44px;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #e5e5e5;
    position: absolute;
    right: 0;
    z-index: 20;
    pointer-events: none;
}

.pvc-search-container.active .pvc-search-form-inline {
    width: 160px !important;
    /* Reduced to align with breadcrumb/content boundary without touching it */
    opacity: 1 !important;
    visibility: visible !important;
    padding: 0 15px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
}

@media (max-width: 480px) {
    .pvc-search-container.active .pvc-search-form-inline {
        width: 200px;
        /* Better width for mobile usability */
        margin-right: 5px;
    }
}

.pvc-search-input-inline {
    border: none;
    background: transparent;
    width: 100%;
    height: 36px;
    color: var(--pvc-black);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
}

.pvc-search-input-inline::placeholder {
    color: #999;
}

.pvc-search-submit {
    display: none !important;
    /* Remove yellow round inside */
}

.pvc-search-submit:hover {
    background: var(--pvc-gold-dark);
    color: var(--pvc-white);
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.pvc-search-btn-toggle {
    z-index: 30 !important;
    /* Above the white bar (20) */
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: var(--pvc-black) !important;
    /* Solid black to stay a circle */
    border: 1.5px solid var(--pvc-gold) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Ensure consistent icon color */
.pvc-search-btn-toggle i,
.pvc-cart-btn i {
    color: var(--pvc-gold);
    transition: color 0.3s ease;
}

.pvc-util-btn:hover i {
    color: var(--pvc-black);
}

.pvc-search-container.active .pvc-search-btn-toggle {
    /* Maintain visibility to keep the circle shape on the right */
    display: flex;
}

.pvc-search-results {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    transform: none;
    width: min(420px, 85vw);
    max-height: 380px;
    overflow: auto;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
    z-index: 10020;
    display: none;
    padding: 6px;
}

.pvc-search-results.active {
    display: block;
}

.pvc-search-item {
    width: 100%;
    display: grid;
    grid-template-columns: 42px 64px 1fr;
    grid-template-rows: auto auto;
    gap: 2px 10px;
    text-align: left;
    border: none;
    background: transparent;
    border-radius: 8px;
    padding: 9px 10px;
    cursor: pointer;
    text-decoration: none;
}

.pvc-search-thumb-wrap {
    grid-row: 1 / 3;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    border: 1px solid #ececec;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pvc-search-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pvc-search-item:hover,
.pvc-search-item.active {
    background: #f7f7f7;
}

.pvc-search-type {
    grid-row: 1 / 3;
    grid-column: 2;
    align-self: center;
    justify-self: start;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .7px;
    color: #8a8a8a;
    background: #f0f0f0;
    border-radius: 999px;
    padding: 4px 8px;
}

.pvc-search-main {
    grid-column: 3;
    font-size: 13px;
    font-weight: 700;
    color: #1f1f1f;
    line-height: 1.25;
}

.pvc-search-sub {
    grid-column: 3;
    font-size: 12px;
    color: #777;
    line-height: 1.2;
}

.pvc-search-item mark {
    background: rgba(212, 175, 55, 0.24);
    color: #111;
    border-radius: 3px;
    padding: 0 1px;
}

.pvc-search-empty {
    padding: 14px 12px;
}

.pvc-search-empty-title {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
}

.pvc-search-empty-sub {
    font-size: 12px;
    color: #777;
    margin-bottom: 10px;
}

.pvc-search-empty-suggest {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pvc-search-empty-suggest a {
    font-size: 11px;
    color: #222;
    text-decoration: none;
    padding: 5px 9px;
    border: 1px solid #e5e5e5;
    border-radius: 999px;
    background: #fafafa;
}

@media (max-width: 1100px) {
    .pvc-search-results {
        position: fixed;
        top: calc(var(--header-height, 70px) + 5px);
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: calc(100vw - 40px);
        max-width: 380px;
        max-height: calc(100vh - 90px);
    }

    .pvc-search-item {
        grid-template-columns: 38px 58px 1fr;
        padding: 8px 8px;
    }

    .pvc-search-thumb-wrap {
        width: 38px;
        height: 38px;
    }

    .pvc-search-main {
        font-size: 12px;
    }

    .pvc-search-sub {
        font-size: 11px;
    }

    .pvc-search-type {
        font-size: 9px;
        padding: 3px 6px;
    }
}

@media (max-width: 768px) {
    .pvc-search-results {
        width: calc(100vw - 30px);
        max-width: 360px;
        max-height: calc(100vh - 85px);
    }

    .pvc-search-item {
        grid-template-columns: 36px 52px 1fr;
        padding: 7px 6px;
        gap: 2px 8px;
    }

    .pvc-search-thumb-wrap {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .pvc-search-results {
        width: calc(100vw - 20px);
        max-width: none;
        max-height: calc(100vh - 80px);
        border-radius: 8px;
        top: 75px;
    }

    .pvc-search-item {
        grid-template-columns: 32px 48px 1fr;
        padding: 6px 5px;
        gap: 2px 6px;
    }

    .pvc-search-thumb-wrap {
        width: 32px;
        height: 32px;
        border-radius: 6px;
    }

    .pvc-search-main {
        font-size: 11px;
    }

    .pvc-search-sub {
        font-size: 10px;
    }

    .pvc-search-type {
        font-size: 8px;
        padding: 2px 5px;
    }

    .pvc-search-empty {
        padding: 10px 8px;
    }

    .pvc-search-empty-title {
        font-size: 12px;
    }

    .pvc-search-empty-sub {
        font-size: 11px;
    }
}

/* Mobile Header */
.pvc-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.pvc-mobile-toggle span {
    width: 30px;
    height: 2px;
    background: var(--pvc-white);
    transition: var(--transition-smooth);
}

/* Responsive */
@media (max-width: 1100px) {
    .pvc-global-header {
        height: 56px !important;
    }

    .pvc-header-container {
        padding: 0 12px;
    }

    .pvc-header-logo img {
        height: 36px;
    }

    .pvc-main-nav {
        display: none;
    }

    .pvc-mobile-toggle {
        display: flex;
        gap: 5px;
    }

    .pvc-mobile-toggle span {
        width: 24px;
    }

    .pvc-header-utils {
        gap: 10px;
    }

    .pvc-util-btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .pvc-cart-badge {
        width: 16px;
        height: 16px;
        font-size: 9px;
        top: -6px;
        right: -8px;
    }

    .pvc-util-btn.pvc-phone-btn {
        display: none;
    }
}

/* Mobile Sidebar Menu - Natural Scroll Fix */
.pvc-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 50%;
    max-width: 250px;
    height: 100vh;
    background: #000000;
    z-index: var(--z-mobile-menu);
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 60px 20px 20px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    /* Enable vertical scrolling */
    -webkit-overflow-scrolling: touch;
    /* Smooth scroll on iOS */
    scrollbar-width: none;
    /* Firefox: Hide scrollbar */
}

/* Chrome/Safari/Edge: Hide scrollbar */
.pvc-mobile-menu::-webkit-scrollbar {
    display: none;
}

.pvc-mobile-menu.active {
    right: 0;
}

.pvc-mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    /* Removed redundant overflow/flex properties to allow natural parent scrolling */
}

/* Active State Styles */
.pvc-mobile-nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 3px solid transparent;
    /* Prepare for active state */
    padding: 15px 0 15px 10px;
    /* Adjusted padding */
    display: block;
    transition: var(--transition-smooth);
}

.pvc-mobile-link-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.pvc-mobile-nav-link {
    color: var(--pvc-white);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: block;
}

.pvc-mobile-close {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 24px;
    color: var(--pvc-white);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.pvc-mobile-close:hover {
    color: var(--pvc-gold);
    border-color: var(--pvc-gold);
    transform: rotate(90deg);
}

.pvc-mobile-link-wrapper:hover .pvc-mobile-nav-link,
.pvc-mobile-nav-item:hover .pvc-mobile-nav-link,
.pvc-mobile-nav-link.active {
    /* Added active class */
    background: linear-gradient(to right, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.pvc-mobile-toggle-btn {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    transition: transform 0.3s ease;
}

/* Submenu Flow Style - Refined */
.pvc-mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: #0a0a0a;
    /* Darker than main */
    margin-top: 5px;
    padding-left: 20px;
    border-left: 1px solid rgba(212, 175, 55, 0.3);
    /* Thin gold thread */
}

/* Ensure Desktop Hover Works (Redundant safety check) */
@media (min-width: 1101px) {
    .pvc-nav-item:hover .pvc-mega-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

.pvc-mobile-sub-link {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    /* Soft white */
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 15px;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.pvc-mobile-sub-link:hover {
    color: var(--pvc-gold);
    padding-left: 5px;
}

/* Active State Styles */
.pvc-mobile-nav-item.active {
    border-left: 3px solid var(--pvc-gold);
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.1), transparent);
    /* Subtle glow */
}

.pvc-mobile-nav-item.active .pvc-mobile-nav-link {
    background: linear-gradient(to right, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
    -webkit-background-clip: text;
    background-clip: text;
    /* Standard property */
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.pvc-mobile-nav-item.active .pvc-mobile-toggle-btn {
    color: var(--pvc-gold);
}

/* Quick Contact Section */
.pvc-mobile-contact {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pvc-mobile-contact-title {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.pvc-mobile-btns {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.pvc-mobile-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-call {
    background: var(--pvc-gold);
    color: #000;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
}

.pvc-mobile-numbers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pvc-mobile-num {
    color: var(--pvc-white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: block;
}

.pvc-mobile-num:hover {
    color: var(--pvc-gold);
}

.pvc-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    backdrop-filter: blur(5px);
}

.pvc-overlay.active {
    opacity: 1;
    visibility: visible;
}