/* Front header / navigation
   Moved out of the inline <style> in resources/views/front/layout/_nav.blade.php
   Shared partial: included by front/layout/header.blade.php (and so by every
   page using front.layout.app) and directly by front/index.blade.php. */

 #navCatContentMobile.cat-panel ul {

            width: 100%;
            align-content: flex-start;
            padding-top: 25px;
        }
.site-head {
    --ink: #152B39;
    --gold: #B58A46;
    --gold-soft: #E8D9BE;
    --ivory: #FBF7F1;
    --hairline: #ECE4D8;
}

/* ================= Desktop ================= */
.site-head {
    position: sticky;
    top: 0;
    z-index: 900;
    background: #fff;
}

.sh-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.sh-main {
    display: flex;
    align-items: center;
    gap: 26px;
    height: 78px;
    border-bottom: 1px solid var(--hairline);
}

.sh-brand {
    flex: 0 0 auto;
}

.sh-brand img {
    max-height: 65px;
    width: auto;
    display: block;
}

/* --- Search --- */
.sh-search {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 620px;
}

.sh-search form {
    display: flex;
    align-items: stretch;
    height: 46px;
    border: 1px solid var(--hairline);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.sh-search form:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(181, 138, 70, .13);
}

.sh-search select {
    border: 0;
    background: var(--ivory);
    border-right: 1px solid var(--hairline);
    padding: 0 12px;
    font-size: 13px;
    color: var(--ink);
    max-width: 130px;
    outline: none;
}

.sh-search input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    padding: 0 14px;
    font-size: 14px;
    color: var(--ink);
    outline: none;
}

.sh-search button {
    flex: 0 0 auto;
    width: 54px;
    border: 0;
    background: var(--ink);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background .18s ease;
}

.sh-search button:hover {
    background: var(--gold);
}

/* --- Right-hand actions --- */
.sh-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.sh-act {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 62px;
    padding: 7px 8px;
    border-radius: 10px;
    color: var(--ink);
    text-decoration: none;
    transition: background .18s ease, color .18s ease;
}

.sh-act i {
    font-size: 21px;
    line-height: 1;
}

.sh-act small {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .03em;
    line-height: 1;
    white-space: nowrap;
}

.sh-act:hover,
.sh-act:focus-visible {
    background: var(--ivory);
    color: var(--gold);
}

.sh-phone {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 12px 7px 8px;
    border-radius: 10px;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    transition: background .18s ease;
}

.sh-phone:hover {
    background: var(--ivory);
    color: var(--ink);
}

.sh-phone i {
    font-size: 21px;
    color: var(--gold);
}

.sh-phone b {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.15;
}

.sh-phone span {
    display: block;
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #7b8791;
    line-height: 1.15;
}

/* Count badge, anchored to its own icon.
   `left: auto` is required: the theme's .cart_count/.wishlist_count rule
   sets `left: 0`, and an absolutely positioned box with both left and
   right resolved stretches across its container instead of sitting in
   the corner. */
.sh-badge,
.mnav-badge {
    position: absolute;
    left: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--gold);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    pointer-events: none;
    box-shadow: 0 0 0 2px #fff;
}

.sh-badge {
    top: 2px;
    right: 10px;
}

.sh-badge.is-zero,
.mnav-badge.is-zero {
    display: none;
}

/* --- Row 2: category strip --- */
.sh-cats {
    background: var(--ink);
}

.sh-cats .sh-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 46px;
}

.sh-allcats {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 18px;
    background: var(--gold);
    color: #fff;
    border: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
}

.sh-allcats i {
    font-size: 15px;
}

.sh-catlinks {
    display: flex;
    align-items: center;
    gap: 2px;
    overflow: hidden;
    flex: 0 1 auto;
    min-width: 0;
}

.sh-catlink {
    padding: 7px 13px;
    border-radius: 7px;
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    transition: color .18s ease, background .18s ease;
}

.sh-catlink:hover,
.sh-catlink:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

.sh-catlink.is-sale {
    color: var(--gold-soft);
    font-weight: 600;
}

/* --- "More" dropdown ---------------------------------------------
   Sits outside .sh-catlinks on purpose: that box is overflow:hidden so
   the strip never wraps, which would also clip the open menu. */
.sh-more {
    position: relative;
    flex: 0 0 auto;
}

.sh-more-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

.sh-more-caret {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform .18s ease;
}

.sh-more.is-open .sh-more-btn {
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

.sh-more.is-open .sh-more-caret {
    transform: rotate(180deg);
}

/* Right-aligned: the button is always at the end of the strip, so opening
   leftward is what keeps the menu on screen on narrower desktops. */
.sh-more-menu {
    position: absolute;
    top: calc(100% - 4px);
    right: 0;
    z-index: 60;
    display: none;
    min-width: 214px;
    max-height: min(64vh, 420px);
    overflow-y: auto;
    padding: 7px;
    background: #fff;
    border: 1px solid var(--hairline);
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(21, 43, 57, .18);
}

.sh-more.is-open .sh-more-menu {
    display: block;
}

.sh-more-menu a {
    display: block;
    padding: 8px 12px;
    border-radius: 7px;
    color: var(--ink);
    font-size: 13.5px;
    text-decoration: none;
    white-space: nowrap;
    transition: color .16s ease, background .16s ease;
}

.sh-more-menu a:hover,
.sh-more-menu a:focus-visible {
    background: var(--ivory);
    color: var(--gold);
}

/* Small laptops: tighten the links so adding "More" does not push the last
   category out of the (overflow:hidden) strip. */
@media (max-width: 1279.98px) {

    .sh-catlink {
        padding: 7px 9px;
        font-size: 12.5px;
    }

    .sh-allcats {
        padding: 0 13px;
    }
}

.site-head a:focus-visible,
.site-head button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: -2px;
}

/* ================= Mobile bar ================= */
.mobile-footer-nav {
    display: none;
}

@media (max-width: 767.98px) {

    .sh-main,
    .sh-cats {
        display: none !important;
    }

    /* The nav is pinned below the announcement bar, so that bar has to be
       fixed too - otherwise it scrolls away and leaves a 30px gap.
       Position only; each page keeps its own bar colours. */
    .announcement-bar {
        position: fixed !important;
        top: 0 !important;
        left: 0;
        width: 100%;
        z-index: 10000 !important;
    }

    .mobile-footer-nav {
        position: fixed;
        top: 30px;
        left: 0;
        width: 100%;
        height: 56px;
        background: var(--ink);
        border-bottom: 1px solid var(--hairline);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 4px;
        box-shadow: 0 2px 14px rgba(21, 43, 57, .10);
        z-index: 9999;
    }

    .mnav-btn {
        position: relative;
        flex: 0 0 auto;
        width: 40px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--ivory);
        border-radius: 9px;
        text-decoration: none;
    }

    .mnav-btn i {
        font-size: 20px;
        line-height: 1;
    }

    .mnav-btn:active {
        background: var(--ivory);
    }

    .mnav-brand {
        flex: 1 1 auto;
        display: flex;
        justify-content: start;
        align-items: start;
        min-width: 0;
        padding: 0 2px;
    }

    .mnav-brand img {
        max-height: 34px;
        max-width: 100%;
        width: auto;
        object-fit: contain;
    }

    .mnav-actions {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
    }

    .mnav-badge {
        top: 3px;
        right: 1px;
        min-width: 17px;
        height: 17px;
        line-height: 17px;
    }

    /* Clear the fixed chrome: 30px announcement bar + 56px nav */
    body {
        padding-top: 86px;
    }
}

    /* ==========================================================
       Category panel
       Every category has its own product photograph, so the menu
       leads with the merchandise instead of a repeated icon.
       ========================================================== */
    .cat-panel {
        --ink: #152B39;
        --gold: #B58A46;
        --gold-soft: #E8D9BE;
        --ivory: #FBF7F1;
        --hairline: #ECE4D8;
    }

    /* The theme only paints #navCatContent, so the mobile panel would be
       transparent without this. */
    .cat-panel {
        background: #fff;
    }

    .categories_wrap #navCatContent.cat-panel {
        width: 320px;
        padding: 0;
        border-radius: 0 0 12px 12px;
        border: 1px solid var(--hairline);
        border-top: 0;
        box-shadow: 0 18px 40px -12px rgba(21, 43, 57, .28);
        overflow: hidden;
    }

    /* .mobile-footer-nav styles every li as a peach pill with a margin.
       The category rows are not footer-nav items - reset them. */
    .mobile-footer-nav .cat-panel ul li,
    .cat-panel ul li {
        background-color: transparent;
        border-radius: 0;
        margin: 0;
        text-align: left;
        flex: none;
    }

    .cat-panel ul {
        margin: 0;
        padding: 0;
        max-height: min(70vh, 560px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    /* Slim, on-brand scrollbar - 19 categories will not all fit */
    .cat-panel ul::-webkit-scrollbar {
        width: 6px;
    }

    .cat-panel ul::-webkit-scrollbar-thumb {
        background: var(--gold-soft);
        border-radius: 3px;
    }

    .cat-panel ul::-webkit-scrollbar-thumb:hover {
        background: var(--gold);
    }

    .cat-panel ul {
        scrollbar-width: thin;
        scrollbar-color: var(--gold-soft) transparent;
    }

    /* --- Quick links: not categories, so they read differently --- */
    .cat-panel .cat-quick-row {
        display: flex;
        gap: 8px;
        padding: 10px;
        background: var(--ivory);
        border-bottom: 1px solid var(--hairline);
    }

    .cat-panel .cat-quick {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 9px 6px;
        background: #fff;
        border: 1px solid var(--hairline);
        border-radius: 8px;
        color: var(--ink);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: .07em;
        text-transform: uppercase;
        white-space: nowrap;
        transition: background .18s ease, border-color .18s ease, color .18s ease;
    }

    .cat-panel .cat-quick i {
        font-size: 15px;
        line-height: 1;
        color: var(--gold);
        transition: color .18s ease;
    }

    .cat-panel .cat-quick:hover,
    .cat-panel .cat-quick:focus-visible {
        background: var(--ink);
        border-color: var(--ink);
        color: #fff;
    }

    .cat-panel .cat-quick:hover i,
    .cat-panel .cat-quick:focus-visible i {
        color: var(--gold-soft);
    }

    /* --- Eyebrow: gold hairline rule, small caps --- */
    .cat-panel .cat-eyebrow {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 10px 6px;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: .16em;
        text-transform: uppercase;
        color: var(--gold);
    }

    .cat-panel .cat-eyebrow::after {
        content: "";
        flex: 1;
        height: 1px;
        background: linear-gradient(to right, var(--gold-soft), transparent);
    }

    /* --- Category rows: the signature element --- */
    .cat-panel .cat-row {
        position: relative;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 7px 10px;
        color: var(--ink);
        font-size: 14px;
        font-weight: 500;
        letter-spacing: -.01em;
        text-transform: capitalize;
        transition: background .18s ease;
    }

    /* Gold marker slides in from the left edge on hover */
    .cat-panel .cat-row::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        width: 3px;
        height: 0;
        background: var(--gold);
        transform: translateY(-50%);
        transition: height .22s ease;
    }

    .cat-panel .cat-row:hover,
    .cat-panel .cat-row:focus-visible {
        background: var(--ivory);
        color: var(--ink);
    }

    .cat-panel .cat-row:hover::before,
    .cat-panel .cat-row:focus-visible::before {
        height: 62%;
    }

    .cat-panel .cat-thumb {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        overflow: hidden;
        background: var(--ivory);
        box-shadow: 0 0 0 1px var(--hairline);
        transition: box-shadow .18s ease;
    }

    .cat-panel .cat-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .3s ease;
    }

    .cat-panel .cat-row:hover .cat-thumb {
        box-shadow: 0 0 0 1px var(--gold);
    }

    .cat-panel .cat-row:hover .cat-thumb img {
        transform: scale(1.08);
    }

    .cat-panel .cat-name {
        flex: 1;
        min-width: 0;
    }

    /* No category has children, so no chevron should promise one */
    .cat-panel .cat-row::after {
        content: none;
    }

    .cat-panel li {
        list-style: none;
    }

    /* Secondary links (account, orders, call) - no thumbnail, lighter weight */
    .cat-panel .cat-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 11px 10px;
        color: var(--ink);
        font-size: 13.5px;
        font-weight: 400;
        text-decoration: none;
        transition: background .18s ease;
    }

    .cat-panel .cat-link i {
        width: 20px;
        font-size: 16px;
        color: var(--gold);
        text-align: center;
        flex: none;
    }

    .cat-panel .cat-link:hover,
    .cat-panel .cat-link:focus-visible {
        background: var(--ivory);
    }

    .cat-panel a:focus-visible {
        outline: 2px solid var(--gold);
        outline-offset: -2px;
    }

    /* --- Mobile: full-height sheet --- */
    .cat-panel .cat-panel-head {
        display: none;
    }

    @media (max-width: 767.98px) {
        /* Bootstrap hides .collapse with `.collapse:not(.show){display:none}`.
           Anything more specific here must therefore only apply once the
           panel is actually open, or it can never close again. */
        #navCatContentMobile.cat-panel:not(.show) {
            display: none;
        }

        #navCatContentMobile.cat-panel.show {
            display: flex;
            flex-direction: column;
        }

        #navCatContentMobile.cat-panel {
            position: fixed;
            top: 0;
            left: 0;
            width: min(88vw, 340px);
            height: 100%;
            border-radius: 0;
            border: 0;
            /* Shorthand, not padding-top alone: this element also carries
               Bootstrap's .navbar class, which sets padding .5rem 1rem.
               Setting only the top edge lets that 16px back in on the
               sides. The sheet starts at y=0, so env() clears the notch
               on iOS and falls back to 0 elsewhere. */
            padding: calc(10px + env(safe-area-inset-top, 0px)) 0 env(safe-area-inset-bottom, 0px);
            z-index: 10001;
            box-shadow: 0 0 60px rgba(21, 43, 57, .35);
        }

        .cat-panel .cat-panel-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 10px;
            border-bottom: 1px solid var(--hairline);
        }

        .cat-panel .cat-panel-head img {
            max-height: 65px;
            width: auto;
            display: block;
        }

        /* Without these the browser's default button chrome shows through
           as a grey box. */
        .cat-panel .cat-panel-head .close-menu-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            padding: 0;
            background: none;
            border: 0;
            border-radius: 50%;
            font-size: 26px;
            line-height: 1;
            color: var(--ink);
            cursor: pointer;
        }

        .cat-panel .cat-panel-head .close-menu-btn:active {
            background: var(--ivory);
        }

        #navCatContentMobile.cat-panel ul {
            max-height: none;
            flex: 1;
            width: 100%;
        }

        .cat-panel .cat-row {
            padding: 9px 10px;
        }
    }

    @media (prefers-reduced-motion: reduce) {

        .cat-panel .cat-row,
        .cat-panel .cat-row::before,
        .cat-panel .cat-thumb,
        .cat-panel .cat-thumb img,
        .cat-panel .cat-quick {
            transition: none;
        }

        .cat-panel .cat-row:hover .cat-thumb img {
            transform: none;
        }
    }

@media (max-width: 359px) {
    .mnav-btn {
        width: 36px;
    }

    .mnav-btn i {
        font-size: 18px;
    }
}
