/* ============================================
   HEADER REDESIGN - Rota Moulding
   ============================================ */


/* ---- RESET ---- */
.header.header-redesign .top_header,
.header.header-redesign .header_bottom,
.header.header-redesign .desktop_top_header {
    display: none !important;
}

/* Remove focus outline on click for all links and images */
a:focus,
a:active,
button:focus,
button:active,
img:focus,
.header-redesign a:focus,
.header-redesign a:active,
.footer-redesign a:focus,
.footer-redesign a:active,
.header-logo a:focus,
.footer-logo a:focus,
.best-seller-link:focus,
.product-range-card:focus,
.mega-menu-item:focus {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
}

/* Keep focus visible for keyboard navigation (accessibility) */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #1a1a8c;
    outline-offset: 2px;
}

/* ============================================
   ROW 1: Top Info Bar
   ============================================ */
.header-top-bar {
    background-color: #1a1a8c;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-left ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-top-left ul li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 18px;
}

.header-top-left ul li svg { flex-shrink: 0; }

.header-top-left ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.header-top-left ul li a:hover { opacity: 0.8; }

.header-top-right {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 18px;
    letter-spacing: 0.5px;
}

.header-top-right svg { flex-shrink: 0; }


/* ============================================
   ROW 2: Main Navigation Bar
   ============================================ */
.header-main-bar {
    background-color: #1a1a8c;
    padding: 15px 0 0;
    position: relative;
    width: 100%;
    transition: 0.9s;
}

/* Sticky state — mirrors original theme .sticky_header1 */
.header.header-redesign.is-scrolled .header-top-bar {
    display: none;
}

.header.header-redesign.is-scrolled .header-main-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9990;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.62);
    animation: headerSlideIn 0.4s ease forwards;
}

@keyframes headerSlideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-main-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
}

.header-main-bar .header-logo {
    flex-shrink: 0;
    margin-right: 20px;
}

.header-main-bar .header-logo img {
    height: 75px;
    width: auto;
    max-width: none;
}

.header-main-bar .non-sticky-logo { display: block; }
.header-main-bar .sticky-logo { display: none; }

.header-nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-grow: 1;
    justify-content: flex-end;
    position: relative;
}
.mobile-menu-actions {
	display: none;	
}


/* ============================================
   MAIN MENU
   ============================================ */
.header-redesign .header-menu-wrapper {
    flex-shrink: 1;
    min-width: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.header-redesign .header-menu-wrapper.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.header-redesign .header-nav-actions .menu_bg {
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    float: none !important;
}

.header-redesign .header-nav-actions .navbar {
    background: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: auto !important;
    float: none !important;
}

.header-redesign .header-nav-actions .navbar-header {
    float: none !important;
    display: flex;
    align-items: center;
}

.header-redesign .header-nav-actions .navbar-collapse {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    float: none !important;
}

.header-redesign .header-nav-actions .navbar-nav {
    display: flex !important;
    align-items: center;
    gap: 0;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    flex-wrap: nowrap;
}

.header-redesign .header-nav-actions .navbar-nav > li {
    float: none !important;
    list-style: none;
    position: relative;
}

.header-redesign .header-nav-actions .navbar-nav > li > a {
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px !important;
    margin: 0 !important;
    transition: opacity 0.2s ease;
    background: none !important;
    white-space: nowrap;
    line-height: 1.4;
    display: flex !important;
    align-items: center;
    gap: 6px;
}

/* Remove ALL focus/active styles */
.header-redesign .header-nav-actions .navbar-nav > li > a,
.header-redesign .header-nav-actions .navbar-nav > li > a:focus,
.header-redesign .header-nav-actions .navbar-nav > li > a:active,
.header-redesign .header-nav-actions .navbar-nav > li > a:visited {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    -webkit-tap-highlight-color: transparent;
}

.header-redesign .header-nav-actions .navbar-nav > li > a:hover,
.header-redesign .header-nav-actions .navbar-nav > li > a:focus {
    opacity: 0.8;
    background: none !important;
}

/* Kill any theme ::after on ALL nav links */
.header-redesign .header-nav-actions .navbar-nav > li > a::after {
    content: none !important;
    display: none !important;
}

/* Hide unwanted menu items */
.header-redesign .navbar-nav > li.menu-item-74,
.header-redesign .navbar-nav > li.menu-item-home {
    display: none !important;
}

.header-redesign .navbar-nav > li:has(> a[href*="/contact"]),
.header-redesign .navbar-nav > li:has(> a[href*="cart"]),
.header-redesign .navbar-nav > li:has(> a[href*="quote"]) {
    display: none !important;
}

.header-redesign .header-nav-actions .mobilemenu_icon_open {
    display: none;
}

/* Hide default WP sub-menu (desktop only) */
.header-main-bar .navbar-nav > li.menu-item-has-children > ul.sub-menu {
    display: none !important;
}


/* ============================================
   DROPDOWN ARROW — injected <span> with SVG
   (avoids all ::after CSS conflicts)
   ============================================ */
.dropdown-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 12px;
    height: 7px;
    transition: transform 0.2s ease;
    line-height: 0;
}

.dropdown-arrow svg {
    display: block;
    width: 12px;
    height: 7px;
}

/* Rotate arrow when mega menu is open */
li.mega-open .dropdown-arrow {
    transform: rotate(180deg);
}


/* ============================================
   SEARCH OVERLAY
   Covers the menu area, search icon inside bar
   ============================================ */
.header-search-overlay {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    z-index: 100;
    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
    /* Leave room for cart + CTA on the right */
    width: calc(100% - 215px);
}

.header-search-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* AWS form fills the overlay */
.header-search-overlay .aws-container {
    flex-grow: 1;
    width: 100% !important;
    max-width: none !important;
}

.header-search-overlay .aws-container .aws-search-form,
.header-search-overlay .aws-container .aws-wrapper {
    width: 100%;
}

.header-search-overlay .aws-container .aws-search-field {
    width: 100%;
    height: 46px;
    border: 1px solid #fff !important;
    border-radius: 25px !important;
    background-color: transparent !important;
    color: #ffffff !important;
    font-size: 14px;
    padding: 0 50px 0 20px !important;
    outline: none !important;
    box-shadow: none !important;
}

.header-search-overlay .aws-container .aws-search-field::placeholder {
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
}

.header-search-overlay .aws-container .aws-search-field:focus {
    border-color: #fff !important;
    background-color: transparent !important;
}
.aws-container .aws-search-form .aws-search-clear {
	color: #fff!important;
	right: 50px!important;
}

/* Search icon inside the bar (right side) */
.header-search-overlay .aws-container .aws-search-btn {
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    border: none !important;
    padding: 4px;
}

.header-search-overlay .aws-container .aws-search-btn svg,
.header-search-overlay .aws-container .aws-search-btn .aws-search-btn_icon {
    color: #ffffff !important;
    fill: #ffffff !important;
}

.header-search-overlay .aws-container .aws-search-label {
    display: none;
}

.header-search-overlay .aws-container .aws-search-result {
    border-radius: 8px;
    margin-top: 5px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
}

/* Hide the plugin's default search icon */
.header-search-overlay .aws-search-btn .aws-search-btn_icon {
    display: none !important;
}

/* Replace with custom SVG */
.header-search-overlay .aws-search-btn::after {
    content: '';
    display: block;
    width: 28px;
    height: 28px;
    background-color: #ffffff;
    -webkit-mask-image: url("/wp-content/uploads/2026/05/tdesign_search-1.svg");
    mask-image: url("/wp-content/uploads/2026/05/tdesign_search-1.svg");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

/* Close button (✕) appended via JS */
.search-overlay-close {
    background: none;
    border: none;
    padding: 6px;
    margin-right: 10px;
    cursor: pointer;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    outline: none !important;
}
.aws-container .aws-search-form {
	height: auto!important
}

.search-overlay-close:hover { opacity: 1; }
.search-overlay-close:focus { outline: none !important; box-shadow: none !important; }


/* ============================================
   SEARCH TOGGLE BUTTON
   ============================================ */
.header-search-toggle {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
	width: 36px;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

.header-search-toggle:focus { outline: none !important; box-shadow: none !important; }
.header-search-toggle.is-hidden { display: none; }
.header-search-toggle svg { display: block; }


/* ============================================
   CART ICON
   ============================================ */
.header-cart-icon {
    position: relative;
    flex-shrink: 0;
}

.header-cart-icon .cart-link {
    display: flex;
    align-items: center;
    position: relative;
    color: #ffffff;
    text-decoration: none !important;
    outline: none !important;
	width: 30px;
}

.header-cart-icon .cart-link:focus { outline: none !important; box-shadow: none !important; }

.header-cart-icon .cart-count {
    position: absolute;
    top: -3px;
    right: -5px;
    background-color: #e53e3e;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}


/* ============================================
   CONTACT US CTA BUTTON
   ============================================ */
.header-cta {
    flex-shrink: 0;
    margin-left: 5px;
}

.header-cta-btn {
    display: inline-block;
    background-color: #059616;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px 30px;
    border-radius: 0;
    text-decoration: none !important;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    outline: none !important;
}

.header-cta-btn:hover { background-color: #248f24; color: #ffffff !important; }
.header-cta-btn:focus { outline: none !important; box-shadow: none !important; }


/* ============================================
   MEGA MENU - Products
   ============================================ */
.mega-menu-products {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.mega-menu-products.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: #333333;
    letter-spacing: 0.5px;
    margin: 0;
    padding: 25px 0 5px;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    padding: 25px 0 30px;
}

.mega-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    padding: 0px;
    border-radius: 0;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.mega-menu-item:hover {
    background-color: #f5f5fa;
    transform: translateY(-2px);
}

.mega-menu-item-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 0;
    background-color: #f8f8f8;
}

.mega-menu-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
    transition: transform 0.3s ease;
}

.mega-menu-item:hover .mega-menu-item-img img {
    transform: scale(1.05);
}

.mega-menu-item-label {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #333333;
    letter-spacing: 0.3px;
    text-align: left;
    line-height: 1.3;
    transition: color 0.2s ease;
    flex-grow: 1;
}
.mega-menu-item-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
}

.mega-menu-item-arrow {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
}

.mega-menu-item:hover .mega-menu-item-arrow {
    opacity: 1;
}

.mega-menu-item:hover .mega-menu-item-label {
    color: #1a1a8c;
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 1025px) {
    .header.header-redesign .mobile_top_header {
        display: none !important;
    }
	/* Keep header_bottom hidden on desktop */
    .header.header-redesign .header_bottom {
        display: none !important;
    }
}

@media (min-width: 1025px) and (max-width: 1199px) {
    .header-redesign .header-nav-actions .navbar-nav > li > a {
        font-size: 12px;
        padding: 8px 8px !important;
    }

    .header-nav-actions { gap: 10px; }

    .header-cta-btn {
        padding: 10px 18px;
        font-size: 12px;
    }

    .header-top-left ul { gap: 20px; }

    .header-search-overlay {
        width: calc(100% - 155px);
    }

    .mega-menu-grid { gap: 10px; }
    .mega-menu-item-label { font-size: 11px; }
}

/* ---- Tablet & Mobile: 1024px and below ---- */
@media (max-width: 1024px) {
	/* Fixed mobile header on scroll */
    /* Force mobile header always visible when fixed */
    .header.header-redesign .mobile_top_header {
        position: fixed !important;
        top: 0 !important;
        left: 0;
        right: 0;
        z-index: 9990;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Override any sticky_header class from theme JS */
    .header.header-redesign.sticky_header .mobile_top_header,
    .header.header-redesign.sticky_header1 .mobile_top_header {
        position: fixed !important;
        top: 0 !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
	.header_contact ul li a, .header_contact ul li:last-child a {
        padding-left: 40px;
    }

    /* Hide desktop header rows */
    .header-top-bar,
    .header-main-bar {
        display: none !important;
    }
 
    /* Show mobile header */
    .header.header-redesign .mobile_top_header {
        display: block !important;
        background-color: #1a1a8c;
        padding: 10px 0 35px;
    }
 
    /* Mobile slide-out menu - hidden by default, shown via body class */
    .header.header-redesign .header_bottom {
        display: block !important;
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100%;
        background-color: #1a1a8c;
        z-index: 99999;
        overflow-y: auto;
        transition: right 0.3s ease;
        padding: 20px 0;
    }

    /* Show menu when hamburger is clicked */
    body.sidebar_open .header.header-redesign .header_bottom {
        right: 0;
    }

    /* Overlay behind the menu */
    body.sidebar_open::after {
        content: '';
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 99998;
    }

    /* Close button inside mobile menu */
    .header_bottom .mobilemenu_icon_open {
        display: block !important;
        position: absolute;
        top: 15px;
        right: 15px;
        cursor: pointer;
    }

    .header_bottom .navbarclose_line1,
    .header_bottom .navbarclose_line2 {
        display: block;
        width: 20px;
        height: 2px;
        background-color: #ffffff;
    }

    .header_bottom .navbarclose_line1 {
        transform: rotate(45deg) translateY(1px);
    }

    .header_bottom .navbarclose_line2 {
        transform: rotate(-45deg) translateY(-1px);
    }

    /* Mobile menu items */
    .header_bottom .navbar-nav {
        display: flex !important;
        flex-direction: column;
        padding: 50px 20px 20px;
    }

    .header_bottom .navbar-nav > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .header_bottom .navbar-nav > li > a {
        color: #ffffff !important;
        padding: 12px 0 !important;
        font-size: 15px;
        text-transform: uppercase;
        display: block;
    }
	.navbar-default .navbar-nav>.open>a, .navbar-default .navbar-nav>.open>a:focus, .navbar-default .navbar-nav>.open>a:hover {
		background: transparent;
	}

    /* Mobile sub-menu */
    .header_bottom .navbar-nav > li > ul.sub-menu {
        display: none;
        list-style: none;
        padding: 0;
        margin: 0;
		background: transparent;
    }
	.has-sub-nav {
        background-image: url(/wp-content/uploads/2026/05/Vector-1.svg) !important;
        background-position: 96% 30px !important;
    }

    .header_bottom .navbar-nav > li.open > ul.sub-menu {
        display: block;
    }

    .header_bottom .navbar-nav > li > ul.sub-menu > li > a {
        color: rgba(255, 255, 255, 0.7) !important;
        padding: 8px 0;
        font-size: 14px;
        display: block;
		line-height: 1.2;
    }

    /* Hide mobile menu logo on small screens */
    .header_bottom .logo {
        display: none;
    }

    /* Hide desktop navbar collapse styles */
    .header_bottom .navbar-collapse {
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .header_bottom .navbar {
        border: none !important;
        margin: 0 !important;
        min-height: auto !important;
        background: none !important;
    }

    .header_bottom .menu_bg {
        background: none !important;
    }
 
    /* Hide mega menu on mobile */
    .mega-menu-products {
        display: none !important;
    }
 
    /* Mobile header layout */
    .mobile_top_header .logo {
        float: left;
    }
 
    .mobile_top_header .logo img {
        height: 80px;
        width: auto;
    }
 
    .mobile_top_header .top_header_right_section {
        float: right;
        display: flex;
        align-items: center;
        gap: 8px;
		justify-content: flex-end;
    }
 
    .mobile_top_header .header_contact ul {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0;
        padding: 0;
        list-style: none;
    }
	.header-height {
        height: 60px;
    }
 
    .mobile_top_header .header_contact ul li {
        display: inline-block;
    }
 
    /* Phone and email icon buttons */
    .mobile_top_header .header_phone,
    .mobile_top_header .header_mail {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: 1px solid rgba(255, 255, 255, 1);
        border-radius: 50%;
        color: #ffffff;
        text-decoration: none !important;
        font-size: 0;
    }
 
    .mobile_top_header .header_phone::before {
        content: '';
        display: block;
        width: 18px;
        height: 18px;
        background-image: url('/wp-content/uploads/2026/05/ic_outline-phone.svg');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
 
    .mobile_top_header .header_mail::before {
        content: '';
        display: block;
        width: 18px;
        height: 18px;
        background-image: url('/wp-content/uploads/2026/05/boxicons_envelope.svg');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
 
    /* Hamburger menu icon */
    .mobilemenu_icon {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 35px;
        height: 40px;
        padding: 8px;
        cursor: pointer;
    }
 
    .navbar_line {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #ffffff;
        transition: 0.3s;
    }
	/* Mobile menu: Cart & Contact Us */
    .mobile-menu-actions {
        padding: 20px 20px 30px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .mobile-menu-cart {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #ffffff !important;
        text-decoration: none !important;
        font-size: 15px;
        text-transform: uppercase;
        padding: 12px 0;
		justify-content: center;
    }

    .mobile-cart-count {
        background-color: #e53e3e;
        color: #ffffff;
        font-size: 10px;
        font-weight: 700;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-contact {
        display: block;
        background-color: #059616;
        color: #ffffff !important;
        text-decoration: none !important;
        text-align: center;
        font-size: 16px;
        font-weight: 600;
        text-transform: uppercase;
        padding: 15px 20px;
    }

    .mobile-menu-contact:hover {
        background-color: #248f24;
    }
	.header_phone {
        background-image: url(/wp-content/uploads/2026/05/ic_outline-phone.svg);
		background-position: center;
    }
	.header_mail {
		background-image: url(/wp-content/uploads/2026/05/boxicons_envelope.svg);
		background-position: center;
	}
	    .top_header_right_section {
        margin-right: 50px;
	}
}

/* ---- Tablet portrait: 768px ---- */
@media (max-width: 768px) {
    .mobile_top_header .logo img {
        height: 70px;
    }
}
 
/* ---- Mobile: 480px and below ---- */
@media (max-width: 480px) {
    .mobile_top_header .logo img {
        height: 60px;
    }
	.header.header-redesign .mobile_top_header {
		padding: 10px 0 20px;
	}
 
    .mobile_top_header .header_phone,
    .mobile_top_header .header_mail {
        width: 36px;
        height: 36px;
    }
	.top_header_right_section {
		right: 20px;
	}
 
    .mobilemenu_icon {
        width: 36px;
        height: 36px;
    }
	.header-height {
        height: 85px;
    }
	.header_contact ul li a, .header_contact ul li:last-child a {
		padding-left: 35px;
	}
}
 