/*
 * Site header, mobile menu, cart panel and footer: premium redesign.
 * Loaded after style.css and before the inline styles of footer-mob (the menu drawer has its own
 * width and overlay colour there), so rules for those two use higher specificity where they must win.
 * Everything is scoped to #stickyheader, the drawer, the cart panel or the footer.
 */

:root {
    --itg-ink: #0b0f17;
    --itg-ink-2: #141b28;
    --itg-line: rgba(255, 255, 255, 0.09);
    --itg-text: #eef2f8;
    --itg-muted: #9aa6b8;
    --itg-red: #e11d2a;
    --itg-red-hover: #c4121e;
    --itg-glow: rgba(225, 29, 42, 0.35);
}

/* ---------- Top utility strip (desktop only, see the phone block) ---------- */
.notification-bar {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    background: var(--itg-ink);
    border-bottom: 1px solid var(--itg-line);
    color: var(--itg-muted);
    font-size: 13px;
}

.notification-bar p,
.notification-bar .nav-text-link,
.notification-bar .nav-separator,
.notification-bar a,
.notification-bar .social-fa {
    color: var(--itg-muted);
    transition: color 0.2s ease, transform 0.2s ease;
}

.notification-bar a:hover,
.notification-bar .social-icon a:hover .social-fa {
    color: #ffffff;
}

.notification-bar .social-icon a:hover .social-fa {
    transform: translateY(-1px);
}

/* ---------- Main header bar ---------- */
#stickyheader .main-header {
    position: relative;
    background: linear-gradient(180deg, var(--itg-ink-2) 0%, var(--itg-ink) 100%);
    border: 0 !important;
    box-shadow: 0 14px 32px -18px rgba(0, 0, 0, 0.7);
}

/* Thin red glow line under the bar */
#stickyheader .main-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--itg-red) 35%, #ff7a59 65%, transparent 100%);
    opacity: 0.85;
    pointer-events: none;
}

#stickyheader .header-top-area {
    padding-top: 6px;
    padding-bottom: 6px;
}

#stickyheader .header-top-area .header-area {
    min-height: 64px;
    gap: 24px;
    transition: min-height 0.3s ease;
}

#stickyheader .header-logo img {
    height: 40px;
    width: auto;
    transition: height 0.3s ease;
}

/* Category row: the bar is only as tall as its content */
#stickyheader .header-bottom-area {
    background: rgba(255, 255, 255, 0.025);
    border-top: 1px solid var(--itg-line);
}

#stickyheader .header-bottom-area .main-block {
    padding-top: 0;
    padding-bottom: 0;
}

#stickyheader .main-menu .menu-link > a {
    padding-top: 10px;
    padding-bottom: 10px;
    color: var(--itg-text);
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

#stickyheader .main-menu .menu-link > a .sp-link-title,
#stickyheader .main-menu .menu-link > a .menu-arrow i {
    color: inherit;
}

#stickyheader .main-menu .menu-link > a:hover {
    color: #ffffff;
}

/* Search pill */
#stickyheader .header-search .search-input {
    height: 44px;
    padding-left: 20px;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid var(--itg-line) !important;
    border-radius: 999px;
    color: var(--itg-text) !important;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#stickyheader .header-search .search-input::placeholder {
    color: #7d8799;
}

#stickyheader .header-search .search-input:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(225, 29, 42, 0.7) !important;
    box-shadow: 0 0 0 4px rgba(225, 29, 42, 0.18);
    outline: none;
}

#stickyheader .header-search .search-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--itg-red);
    color: #ffffff;
    box-shadow: 0 8px 18px -8px var(--itg-glow);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

#stickyheader .header-search .search-btn:hover {
    background: var(--itg-red-hover);
    transform: scale(1.04);
}

/* Call box */
#stickyheader .call-box {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

#stickyheader .call-label {
    display: block;
    color: var(--itg-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#stickyheader .call-number {
    display: block;
    color: var(--itg-text);
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

#stickyheader .call-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--itg-red);
    color: #ffffff;
    box-shadow: 0 8px 18px -8px var(--itg-glow);
}

/* Login, cart and icon links */
#stickyheader .info-text,
#stickyheader .info-text a,
#stickyheader .cart-title,
#stickyheader .view-cart,
#stickyheader .info-wrapper .icon,
#stickyheader .search-wrapper a,
#stickyheader .toggler-btn {
    color: var(--itg-text);
}

#stickyheader .toggler-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--itg-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

#stickyheader .toggler-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
}

/* Compact state once the page scrolls (desktop). The old slide-in keyframes are replaced by a plain transition. */
#stickyheader.sticky-header {
    animation: none !important;
}

#stickyheader.sticky-header .header-logo img {
    height: 34px;
}

#stickyheader.sticky-header .main-header {
    box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.85);
}

/* ---------- Phone and tablet (below 1200px): menu button, drawer and tools ---------- */
@media (max-width: 1199.98px) {
    .notification-bar {
        display: none;
    }

    /* Below the menu overlay (2000), so the drawer and its close button stay on top */
    #stickyheader .main-header {
        z-index: 1990;
        box-shadow: 0 10px 24px -16px rgba(0, 0, 0, 0.8);
    }

    #stickyheader .header-top-area .header-area {
        gap: 10px;
        padding-left: 14px;
        padding-right: 14px;
    }

    #stickyheader .header-logo img {
        height: 34px;
    }

    #stickyheader .toggler-btn {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    #stickyheader .search-wrapper a,
    #stickyheader .search-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border: 1px solid var(--itg-line);
        border-radius: 13px;
        background: rgba(255, 255, 255, 0.05);
    }

    #stickyheader .header-bottom-area {
        display: none;
    }

    /* main.js adds header-hidden when scrolling down on phones; this slides the bar out */
    #stickyheader {
        transition: transform 0.3s ease;
    }

    #stickyheader.header-hidden {
        transform: translateY(-100%);
    }

    #stickyheader.sticky-header .header-top-area .header-area {
        min-height: 58px;
    }

    /* Mobile menu drawer. Width and overlay colour come from footer-mob, so only the rest is set here. */
    #mobileOverlay.mobile-overlay {
        background: rgba(11, 15, 23, 0.6);
    }

    .mobile-overlay {
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
    }

    .mobile-menu {
        background: #ffffff;
        box-shadow: 24px 0 48px -12px rgba(0, 0, 0, 0.35);
    }

    .mobile-menu .menu-close {
        background: var(--itg-ink);
        border-bottom: 1px solid var(--itg-line);
    }

    .mobile-menu .menu-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        margin: 10px 14px;
        border: 1px solid var(--itg-line);
        border-radius: 13px;
        background: rgba(255, 255, 255, 0.06);
        color: #ffffff;
    }

    .mobile-menu .menu-close-btn svg {
        stroke: #ffffff;
        opacity: 1;
    }

    .mobile-menu .mobile-tabs {
        margin: 14px 16px;
        padding: 4px;
        border: 0;
        border-radius: 999px;
        background: #f1f4f9;
    }

    .mobile-menu .tab-btn {
        border-radius: 999px;
        color: #5b6577;
        transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    }

    .mobile-menu .tab-btn.active {
        background: #ffffff;
        color: var(--itg-ink);
        box-shadow: 0 4px 12px -6px rgba(11, 15, 23, 0.35);
    }

    .mobile-menu .main-menu .link-title,
    .mobile-menu .vega-menu .link-title a {
        font-weight: 600;
        color: var(--itg-ink);
    }
}

/* Tablet (992px to 1199px): the menu lives in the drawer. The top row keeps the menu button and search,
   and a slim row below keeps heart and cart. */
@media (min-width: 992px) and (max-width: 1199.98px) {
    #stickyheader .header-top-area .header-toggle,
    #stickyheader .header-top-area .header-icon {
        display: flex;
    }

    #stickyheader .header-bottom-area {
        display: block;
    }

    #stickyheader .header-bottom-area .header-support,
    #stickyheader .header-bottom-area .header-menu,
    #stickyheader .header-bottom-area .toggler-wrap {
        display: none;
    }

    #stickyheader .header-bottom-area .main-block {
        justify-content: flex-end;
    }
}

/* ---------- Cart panel and stacking ---------- */
/* An open panel (menu drawer or cart) sits above the sticky header and its overlay, so its close button is never covered. */
body.itg-panel-open #stickyheader,
body.itg-panel-open #stickyheader .main-header {
    z-index: 1990 !important;
}

body.itg-panel-open .bg-screen {
    z-index: 2000 !important;
}

body.itg-panel-open #cart-drawer {
    z-index: 2001 !important;
}

/* The product page's fixed Cart / Buy Now bar (z-index 9999) would cover the cart's checkout buttons */
body.itg-panel-open .tig-mobile-sticky {
    display: none !important;
}

/* ---------- Footer ---------- */
.footer-area {
    position: relative;
    overflow: hidden;
    padding-top: 64px;
    padding-bottom: 0;
    color: var(--itg-muted);
    background:
        radial-gradient(circle at 92% 0%, rgba(225, 29, 42, 0.16), transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(99, 102, 241, 0.10), transparent 42%),
        linear-gradient(180deg, var(--itg-ink-2) 0%, var(--itg-ink) 100%);
}

.footer-area::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--itg-red) 35%, #ff7a59 65%, transparent 100%);
}

.footer-area .ftlist-ul,
.footer-area .ftlink-ul {
    list-style: none;
}

.footer-area .ftlist-title,
.footer-area h6.ftlist-title {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* "Help with" and "Information" are toggles, so the title and its plus icon sit on one line */
.footer-area .ftlist-title[href] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-area .ftlink-li a,
.footer-area .ft-contact-address {
    color: var(--itg-muted);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-area .ftlink-li a:hover,
.footer-area .ft-contact-address:hover {
    color: #ffffff;
}

.footer-area .ftlink-li a:hover {
    padding-left: 4px;
}

.footer-area .footer-logo img {
    height: 46px;
    width: auto;
}

.footer-area .newsletter-text {
    color: var(--itg-muted);
}

.footer-area .footer-newsletter {
    margin-top: 8px;
    background: transparent !important;
}

.footer-area .footer-newsletter form {
    display: flex;
    gap: 8px;
    max-width: 380px;
    padding: 5px;
    border: 1px solid var(--itg-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.footer-area .footer-newsletter input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 0;
    background: transparent;
    color: var(--itg-text);
    font-size: 15px;
}

.footer-area .footer-newsletter input::placeholder {
    color: #7d8799;
}

.footer-area .footer-newsletter input:focus {
    outline: none;
}

.footer-area .footer-newsletter button {
    padding: 10px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--itg-red);
    color: #ffffff;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.footer-area .footer-newsletter button:hover {
    background: var(--itg-red-hover);
}

/* Copyright strip is its own block below the footer columns */
.ft-copyright-area {
    background: var(--itg-ink);
    border-top: 1px solid var(--itg-line) !important;
    font-size: 13px;
}

.ft-copyright-area .ft-copyright {
    min-height: 60px;
    padding: 16px 0;
    gap: 8px;
}

.ft-copyright-area p {
    color: #7d8799 !important;
}

@media (max-width: 1199.98px) {
    .footer-area {
        padding-top: 40px;
    }

    .footer-area .footer-newsletter form {
        max-width: none;
    }
}

/* The fixed bottom tab bar on phones sits over the last line, so the strip clears it */
@media (max-width: 991.98px) {
    .ft-copyright-area {
        padding-bottom: 72px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #stickyheader,
    #stickyheader .header-top-area .header-area,
    #stickyheader .header-logo img,
    .mobile-menu,
    .mobile-overlay {
        transition: none !important;
    }
}
