/* =========================================================
   FAISAL TALEB LLC — GLOBAL WOOCOMMERCE SHOP HEADER
   Version 2.0.0

   - Full viewport/site width
   - Sticky across the entire website
   - Astra default-header replacement
   - Fully scoped to the plugin
   ========================================================= */

/* Astra fallback: the PHP hooks normally prevent this markup from being
   generated. These rules protect against uncommon Astra/header-builder states. */
body.ftllc-global-header-active #masthead,
body.ftllc-global-header-active .ast-mobile-header-wrap,
body.ftllc-global-header-active .ast-primary-header-bar,
body.ftllc-global-header-active .ast-above-header-wrap,
body.ftllc-global-header-active .ast-below-header-wrap {
    display: none !important;
}

.ftllc-shop-header-shell,
.ftllc-shop-header-shell *,
.ftllc-shop-header,
.ftllc-shop-header * {
    box-sizing: border-box;
}

/* Sticky shell is rendered directly after <body>, outside Elementor and
   Astra page containers, so it cannot inherit their max-width. */
.ftllc-shop-header-shell {
    position: sticky;
    top: 0;
    z-index: 99990;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    isolation: isolate;
}

/* Keep the sticky header below WordPress' front-end admin toolbar. */
body.admin-bar .ftllc-shop-header-shell {
    top: 32px;
}

.ftllc-shop-header {
    --ftllc-header-primary: #134e4a;
    --ftllc-header-secondary: #0f766e;
    --ftllc-header-accent: #d97706;
    --ftllc-header-accent-hover: #b45309;
    --ftllc-header-text: #ffffff;
    --ftllc-header-muted: #d7ebe7;
    --ftllc-header-search-text: #1f2937;
    --ftllc-header-max-width: 100%;
    --ftllc-header-logo-width: 142px;

    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    color: var(--ftllc-header-text);
    font-family: inherit;
    background: var(--ftllc-header-primary);
    box-shadow: 0 10px 28px rgba(23, 42, 42, 0.14);
}

.ftllc-shop-header a {
    color: inherit;
    text-decoration: none;
}

.ftllc-shop-header svg {
    display: block;
    fill: currentColor;
}

.ftllc-shop-header .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================================
   TOP ROW
   ========================================================= */

.ftllc-shop-header__topbar {
    width: 100%;
    background: var(--ftllc-header-primary);
}

.ftllc-shop-header__topbar-inner,
.ftllc-shop-header__nav-inner,
.ftllc-shop-header__mobile-panel-inner {
    width: 100%;
    max-width: var(--ftllc-header-max-width);
    margin-inline: auto;
}

.ftllc-shop-header__topbar-inner {
    min-height: 72px;
    display: grid;
    grid-template-columns: auto minmax(300px, 1fr) auto;
    align-items: center;
    gap: clamp(12px, 1.6vw, 26px);
    padding: 10px clamp(16px, 2.6vw, 48px);
}

.ftllc-shop-header__brand-wrap,
.ftllc-shop-header__actions,
.ftllc-shop-header__cart,
.ftllc-shop-header__language,
.ftllc-shop-header__delivery {
    display: flex;
    align-items: center;
}

.ftllc-shop-header__brand-wrap {
    gap: 14px;
    min-width: 0;
}

.ftllc-shop-header__brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    padding: 5px;
    border: 1px solid transparent;
    border-radius: 8px;
}

.ftllc-shop-header__brand:hover,
.ftllc-shop-header__brand:focus-visible,
.ftllc-shop-header__delivery:hover,
.ftllc-shop-header__language:hover,
.ftllc-shop-header__account:hover,
.ftllc-shop-header__orders:hover,
.ftllc-shop-header__cart:hover,
.ftllc-shop-header__all-link:hover,
.ftllc-shop-header__nav-list a:hover,
.ftllc-shop-header__delivery:focus-visible,
.ftllc-shop-header__language:focus-visible,
.ftllc-shop-header__account:focus-visible,
.ftllc-shop-header__orders:focus-visible,
.ftllc-shop-header__cart:focus-visible,
.ftllc-shop-header__all-link:focus-visible,
.ftllc-shop-header__nav-list a:focus-visible {
    border-color: rgba(255, 255, 255, 0.9);
    outline: none;
}

.ftllc-shop-header__logo {
    display: block;
    width: min(var(--ftllc-header-logo-width), 100%);
    max-width: var(--ftllc-header-logo-width);
    max-height: 48px;
    object-fit: contain;
}

.ftllc-shop-header__site-name {
    max-width: 190px;
    font-size: clamp(18px, 1.45vw, 25px);
    font-weight: 800;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ftllc-shop-header__delivery {
    gap: 6px;
    padding: 7px 6px;
    border: 1px solid transparent;
    border-radius: 8px;
    line-height: 1.08;
}

.ftllc-shop-header__delivery small,
.ftllc-shop-header__account small,
.ftllc-shop-header__orders small,
.ftllc-shop-header__cart-copy small {
    display: block;
    font-size: 11px;
    color: var(--ftllc-header-muted);
    font-weight: 400;
}

.ftllc-shop-header__delivery strong,
.ftllc-shop-header__account strong,
.ftllc-shop-header__orders strong,
.ftllc-shop-header__cart strong {
    display: block;
    font-size: 13px;
    line-height: 1.18;
    font-weight: 700;
    white-space: nowrap;
}

.ftllc-shop-header__icon--pin {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
}

/* =========================================================
   SEARCH
   ========================================================= */

.ftllc-shop-header__search {
    min-width: 0;
    height: 48px;
    display: grid;
    grid-template-columns: minmax(68px, auto) minmax(0, 1fr) 56px;
    align-items: stretch;
    border-radius: 10px;
    overflow: hidden;
    background: #fffdf7;
    box-shadow: 0 0 0 3px transparent;
    transition: box-shadow 0.15s ease;
}

.ftllc-shop-header__search:focus-within {
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.30);
}

.ftllc-shop-header__category-select,
.ftllc-shop-header__search-input,
.ftllc-shop-header__search-button {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    min-height: 0 !important;
    font: inherit;
}

.ftllc-shop-header__category-select {
    width: auto;
    max-width: 165px;
    padding: 0 30px 0 12px;
    background: #f1f7f5;
    color: #334155;
    font-size: 13px;
    cursor: pointer;
    border-right: 1px solid #cbd5e1 !important;
}

.ftllc-shop-header__search-input {
    width: 100%;
    min-width: 0;
    padding: 0 14px !important;
    background: #fffdf7 !important;
    color: var(--ftllc-header-search-text) !important;
    font-size: 15px !important;
    outline: none !important;
}

.ftllc-shop-header__search-input::placeholder {
    color: #64748b;
    opacity: 1;
}

.ftllc-shop-header__search-button {
    width: 56px;
    padding: 0 !important;
    display: grid;
    place-items: center;
    background: var(--ftllc-header-accent) !important;
    color: #ffffff !important;
    cursor: pointer;
    transition: background 0.15s ease;
}

.ftllc-shop-header__search-button:hover,
.ftllc-shop-header__search-button:focus-visible {
    background: var(--ftllc-header-accent-hover) !important;
    outline: none;
}

.ftllc-shop-header__search-button svg {
    width: 27px;
    height: 27px;
}

/* =========================================================
   ACTIONS
   ========================================================= */

.ftllc-shop-header__actions {
    gap: 4px;
    justify-content: flex-end;
}

.ftllc-shop-header__language,
.ftllc-shop-header__account,
.ftllc-shop-header__orders,
.ftllc-shop-header__cart {
    min-height: 48px;
    padding: 5px 7px;
    border: 1px solid transparent;
    border-radius: 8px;
}

.ftllc-shop-header__language {
    gap: 5px;
    font-size: 13px;
}

.ftllc-shop-header__language svg {
    width: 20px;
    height: 20px;
}

.ftllc-shop-header__cart {
    gap: 5px;
}

.ftllc-shop-header__cart-icon-wrap {
    position: relative;
    width: 42px;
    height: 38px;
    display: grid;
    place-items: center;
}

.ftllc-shop-header__cart-icon {
    width: 36px;
    height: 36px;
}

.ftllc-shop-header__cart-count {
    position: absolute;
    top: -1px;
    right: 5px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--ftllc-header-accent);
    color: #ffffff;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
}

.ftllc-shop-header__cart-total {
    margin-top: 2px;
}

.ftllc-shop-header__mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 6px;
    background: transparent;
    color: var(--ftllc-header-text);
    cursor: pointer;
}

.ftllc-shop-header__mobile-toggle:hover,
.ftllc-shop-header__mobile-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.85);
    outline: none;
}

.ftllc-shop-header__mobile-toggle svg {
    width: 27px;
    height: 27px;
    margin: auto;
}

/* =========================================================
   SECONDARY NAVIGATION
   ========================================================= */

.ftllc-shop-header__nav {
    width: 100%;
    background: var(--ftllc-header-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ftllc-shop-header__nav-inner {
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 clamp(16px, 2.6vw, 48px);
    overflow-x: auto;
    scrollbar-width: none;
}

.ftllc-shop-header__nav-inner::-webkit-scrollbar {
    display: none;
}

.ftllc-shop-header__all-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 38px;
    padding: 5px 7px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
}

.ftllc-shop-header__all-link svg {
    width: 24px;
    height: 24px;
}

.ftllc-shop-header__nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0;
    margin: 0;
}

.ftllc-shop-header__nav-item,
.ftllc-shop-header__nav-list > li {
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    position: relative;
}

.ftllc-shop-header__nav-list a {
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 6px 11px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.15;
    white-space: nowrap;
}

.ftllc-shop-header__nav-list .sub-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 20;
    min-width: 210px;
    padding: 8px;
    margin: 0;
    list-style: none;
    background: var(--ftllc-header-primary);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

.ftllc-shop-header__nav-list li:hover > .sub-menu,
.ftllc-shop-header__nav-list li:focus-within > .sub-menu {
    display: block;
}

/* =========================================================
   MOBILE PANEL
   ========================================================= */

.ftllc-shop-header__mobile-panel {
    display: none;
    width: 100%;
    background: var(--ftllc-header-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 28px rgba(15, 38, 36, 0.16);
}

.ftllc-shop-header__mobile-panel-inner {
    padding: 10px 16px 16px;
    max-height: min(70vh, 620px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.ftllc-shop-header__mobile-panel-inner > a,
.ftllc-shop-header__mobile-list a,
.ftllc-shop-header__mobile-menu-slot .ftllc-shop-header__nav-list a {
    display: block;
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ftllc-shop-header__mobile-list,
.ftllc-shop-header__mobile-menu-slot .ftllc-shop-header__nav-list {
    display: block;
    list-style: none;
    padding: 0;
    margin: 0;
}

.ftllc-shop-header__mobile-list .sub-menu,
.ftllc-shop-header__mobile-menu-slot .sub-menu {
    display: block;
    position: static;
    padding-left: 14px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

/* =========================================================
   RESPONSIVE — LAPTOP
   ========================================================= */

@media (max-width: 1240px) {
    .ftllc-shop-header__topbar-inner {
        gap: 12px;
        padding-inline: 14px;
    }

    .ftllc-shop-header__nav-inner {
        padding-inline: 14px;
    }

    .ftllc-shop-header__delivery {
        display: none;
    }

    .ftllc-shop-header__account,
    .ftllc-shop-header__orders {
        padding-inline: 5px;
    }

    .ftllc-shop-header__account strong,
    .ftllc-shop-header__orders strong {
        font-size: 12px;
    }
}

/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1023px) {
    .ftllc-shop-header__topbar-inner {
        grid-template-columns: auto minmax(240px, 1fr) auto;
    }

    .ftllc-shop-header__language,
    .ftllc-shop-header__orders {
        display: none;
    }

    .ftllc-shop-header__nav-list a {
        font-size: 13px;
    }
}

/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 782px) {
    body.admin-bar .ftllc-shop-header-shell {
        top: 46px;
    }
}

@media (max-width: 767px) {
    .ftllc-shop-header__topbar-inner {
        min-height: auto;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "brand actions"
            "search search";
        gap: 8px 10px;
        padding: 8px 10px 10px;
    }

    .ftllc-shop-header__brand-wrap {
        grid-area: brand;
    }

    .ftllc-shop-header__brand {
        padding: 3px;
    }

    .ftllc-shop-header__logo {
        max-width: 118px;
        max-height: 38px;
    }

    .ftllc-shop-header__site-name {
        max-width: 155px;
        font-size: 20px;
    }

    .ftllc-shop-header__search {
        grid-area: search;
        height: 45px;
        grid-template-columns: minmax(0, 1fr) 52px;
    }

    .ftllc-shop-header__category-select {
        display: none;
    }

    .ftllc-shop-header__search-button {
        width: 52px;
    }

    .ftllc-shop-header__actions {
        grid-area: actions;
        gap: 2px;
    }

    .ftllc-shop-header__account,
    .ftllc-shop-header__orders,
    .ftllc-shop-header__language,
    .ftllc-shop-header__cart-copy {
        display: none;
    }

    .ftllc-shop-header__cart {
        min-width: 45px;
        padding: 2px;
    }

    .ftllc-shop-header__cart-icon-wrap {
        width: 40px;
    }

    .ftllc-shop-header__mobile-toggle {
        display: inline-grid;
        place-items: center;
    }

    .ftllc-shop-header__nav {
        display: none;
    }

    .ftllc-shop-header__mobile-panel.is-open {
        display: block;
    }
}

@media (max-width: 380px) {
    .ftllc-shop-header__site-name {
        max-width: 120px;
        font-size: 17px;
    }

    .ftllc-shop-header__logo {
        max-width: 103px;
    }

    .ftllc-shop-header__topbar-inner {
        padding-inline: 8px;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .ftllc-shop-header *,
    .ftllc-shop-header *::before,
    .ftllc-shop-header *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
