/* ═══════════════════════════════════════════════════════════════
   Lutador Shopping Hub — Header component (pixel-perfect)
   Companion to Tailwind CDN — all critical layout lives here.
   ═══════════════════════════════════════════════════════════════ */

.site-chrome {
    position: sticky;
    top: 0;
    z-index: 1030;
    overflow: visible;
    padding-top: env(safe-area-inset-top, 0);
}

.site-chrome.is-scrolled {
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.14),
        0 4px 16px rgba(92, 21, 21, 0.08);
}

.lutador-header {
    --lsh-maroon: #5c1515;
    --lsh-maroon-deep: #3d0e0e;
    --lsh-gold: #d4af37;
    --lsh-ink: #2d1f1a;
    --lsh-muted: #7a6b65;
    --lsh-white: #ffffff;
    --lsh-search-h: 48px;
    --lsh-submit-w: 52px;
    --lsh-font-serif: "Cormorant Garamond", Georgia, serif;
    --lsh-font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
    position: relative;
    z-index: 1050;
    font-family: var(--lsh-font-sans);
}

.lutador-header,
.lutador-header * {
    box-sizing: border-box;
}

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

/* ── Main row (pure white) ───────────────────────────────────── */
.lutador-header .lsh-main {
    background: var(--lsh-white) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.lutador-header .lsh-main__wrap {
    max-width: 1400px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 2rem);
}

.lutador-header .lsh-main__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "brand actions"
        "search search";
    align-items: center;
    gap: 0.75rem 1rem;
    min-height: 64px;
    padding-block: 0.65rem;
}

.lutador-header .lsh-brand { grid-area: brand; }
.lutador-header .lsh-search-cluster { grid-area: search; }
.lutador-header .lsh-actions { grid-area: actions; }

@media (min-width: 992px) {
    .lutador-header .lsh-main__grid {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "brand search actions";
        gap: 1rem 1.5rem;
        min-height: 68px;
        padding-block: 0.55rem;
    }

    .lutador-header .lsh-search-cluster {
        max-width: 720px;
        width: 100%;
        margin-inline: auto;
    }
}

/* ── Logo ────────────────────────────────────────────────────── */
.lutador-header .lsh-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    max-width: 100%;
}

.lutador-header .lsh-brand__logo {
    flex-shrink: 0;
    display: inline-flex;
    padding: 2px;
    border-radius: 50%;
    background: var(--lsh-white);
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 1px 6px rgba(92, 21, 21, 0.08);
}

.lutador-header .lsh-brand__img,
.lutador-header .brand-logo {
    display: block !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center !important;
    filter: none !important;
    transform: none !important;
}

@media (min-width: 992px) {
    .lutador-header .lsh-brand__img,
    .lutador-header .brand-logo {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
    }
}

.lutador-header .lsh-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    min-width: 0;
}

.lutador-header .lsh-brand__name,
.lutador-header .brand-text__name {
    display: block !important;
    font-family: var(--lsh-font-serif);
    font-size: clamp(1.1rem, 2.5vw, 1.45rem);
    font-weight: 700;
    color: var(--lsh-ink);
    white-space: nowrap;
}

.lutador-header .lsh-brand__tag,
.lutador-header .brand-text__tag {
    display: block !important;
    font-family: var(--lsh-font-sans);
    font-size: clamp(0.52rem, 1.4vw, 0.62rem);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--lsh-gold);
    white-space: nowrap;
}

/* ── Search cluster ──────────────────────────────────────────── */
.lutador-header .lsh-search-cluster {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
}

.lutador-header .header-categories {
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
}

.lutador-header .header-categories-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: var(--lsh-search-h);
    padding: 0 1rem;
    border: none;
    border-radius: 999px;
    background: var(--lsh-maroon-deep);
    color: var(--lsh-white);
    font-family: var(--lsh-font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    max-width: 180px;
    box-shadow: none;
    transition: filter 0.2s ease;
}

.lutador-header .header-categories-btn:hover,
.lutador-header .header-categories-btn.show {
    filter: brightness(1.08);
    background: var(--lsh-maroon-deep);
    color: var(--lsh-white);
}

.lutador-header .header-categories-btn i {
    font-size: 0.95rem;
    opacity: 0.92;
}

.lutador-header .header-categories-btn__label {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 7.5rem;
}

.lutador-header .header-categories-btn.dropdown-toggle::after {
    margin-left: 0.1rem;
    vertical-align: 0.12em;
    opacity: 0.85;
}

.lutador-header .lsh-search-form,
.lutador-header .header-search-form {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: stretch;
    margin: 0;
    background: var(--lsh-white);
    border: 1px solid rgba(92, 21, 21, 0.12);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(61, 44, 40, 0.05);
}

.lutador-header .lsh-search-form__track,
.lutador-header .header-search-form__track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    min-height: var(--lsh-search-h);
}

.lutador-header .lsh-search-form__field,
.lutador-header .header-search-form__field {
    position: relative;
    flex: 1 1 0%;
    min-width: 0;
}

.lutador-header .lsh-search-form__control,
.lutador-header .header-search-form__control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: var(--lsh-search-h);
    padding: 0 1rem;
    margin: 0;
}

.lutador-header .lsh-search-form__icon,
.lutador-header .header-search-form__icon {
    flex-shrink: 0;
    font-size: 1rem;
    color: #b5a59e;
}

.lutador-header .lsh-search-form__input,
.lutador-header .header-search-form__input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    border: none;
    background: transparent;
    font-family: var(--lsh-font-sans);
    font-size: 0.875rem;
    color: var(--lsh-ink);
    outline: none;
    box-shadow: none;
}

.lutador-header .lsh-search-form__input::placeholder,
.lutador-header .header-search-form__input::placeholder {
    color: #b5a59e;
}

.lutador-header .lsh-search-form__submit,
.lutador-header .header-search-form__submit {
    flex: 0 0 var(--lsh-submit-w);
    width: var(--lsh-submit-w);
    min-width: var(--lsh-submit-w);
    max-width: var(--lsh-submit-w);
    height: auto;
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: var(--lsh-gold);
    color: var(--lsh-maroon-deep);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.lutador-header .lsh-search-form__submit:hover,
.lutador-header .header-search-form__submit:hover {
    filter: brightness(0.95);
}

/* ── User actions (right corner) ─────────────────────────────── */
.lutador-header .lsh-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    flex-shrink: 0;
    justify-self: end;
}

@media (min-width: 576px) {
    .lutador-header .lsh-actions {
        gap: 0.65rem;
    }
}

.lutador-header .lsh-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.3rem 0.45rem;
    border: none;
    background: transparent;
    cursor: pointer;
}

.lutador-header .lsh-action--account {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.35rem;
}

.lutador-header .lsh-action__icon {
    position: relative;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--lsh-maroon-deep);
}

.lutador-header .lsh-action__label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--lsh-maroon-deep);
    white-space: nowrap;
}

.lutador-header .lsh-action__badge {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--lsh-gold);
    color: var(--lsh-maroon-deep);
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lutador-header .lsh-action__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--lsh-maroon-deep);
    color: var(--lsh-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.lutador-header .lsh-action__user {
    display: none;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
    min-width: 0;
}

.lutador-header .lsh-action__user strong {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--lsh-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.lutador-header .lsh-action__user span {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--lsh-muted);
}

@media (min-width: 576px) {
    .lutador-header .lsh-action__user {
        display: flex;
    }
}

.lutador-header .lsh-action--whatsapp {
    --wa-green: #25d366;
    --wa-green-dark: #128c7e;
}

.lutador-header .lsh-action--whatsapp .lsh-action__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--wa-green);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.45);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.lutador-header .lsh-action--whatsapp .lsh-action__label {
    color: var(--wa-green-dark);
    font-weight: 700;
}

.lutador-header .lsh-action--whatsapp:hover .lsh-action__icon {
    background: var(--wa-green-dark);
    color: #fff;
    transform: scale(1.06);
    box-shadow: 0 6px 16px rgba(18, 140, 126, 0.5);
}

.lutador-header .lsh-action--whatsapp:hover .lsh-action__label {
    color: #075e54;
}

@media (max-width: 575.98px) {
    .lutador-header .lsh-action--whatsapp .lsh-action__label {
        display: none;
    }
}

.lutador-header .lsh-action--account.dropdown-toggle::after {
    margin-left: 0.2rem;
    vertical-align: 0.12em;
}

.lutador-header .lsh-menu-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(92, 21, 21, 0.1);
    background: rgba(92, 21, 21, 0.04);
    color: var(--lsh-maroon-deep);
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

/* ── Bottom nav bar ──────────────────────────────────────────── */
.lutador-header .lsh-nav {
    background: linear-gradient(90deg, #0a0303 0%, #1a0505 45%, #3d0e0e 100%);
}

.lutador-header .lsh-nav__wrap {
    max-width: 1400px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 2rem);
}

.lutador-header .lsh-nav__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.lutador-header .lsh-nav__scroll::-webkit-scrollbar {
    display: none;
}

.lutador-header .lsh-nav__links {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    min-width: max-content;
}

@media (min-width: 992px) {
    .lutador-header .lsh-nav__links {
        justify-content: space-between;
        width: 100%;
        min-width: 0;
    }
}

.lutador-header .lsh-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.72rem 1rem;
    font-family: var(--lsh-font-sans);
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--lsh-white);
    white-space: nowrap;
    transition: color 0.15s ease;
}

.lutador-header .lsh-nav__link:hover {
    color: var(--lsh-gold);
}

.lutador-header .lsh-nav__link--gold,
.lutador-header .lsh-nav__link.is-active {
    color: var(--lsh-gold);
}

.lutador-header .lsh-nav__badge {
    display: inline-block;
    padding: 0.12rem 0.38rem;
    border-radius: 3px;
    background: var(--lsh-gold);
    color: var(--lsh-maroon-deep);
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.2;
}

.lutador-header .lsh-nav__link--whatsapp {
    margin-block: 0.32rem;
    padding: 0.38rem 0.9rem;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.32);
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.lutador-header .lsh-nav__link--whatsapp i {
    color: #fff;
    font-size: 1.08rem;
}

.lutador-header .lsh-nav__link--whatsapp:hover {
    background: #128c7e;
    color: #fff;
    box-shadow: 0 6px 18px rgba(18, 140, 126, 0.4);
}

@media (max-width: 991.98px) {
    .lutador-header .lsh-nav {
        display: none;
    }
}

/* ── Dropdowns & search suggest ──────────────────────────────── */
.lutador-header .header-categories-menu,
.lutador-header .lsh-account-menu {
    --bs-dropdown-link-color: var(--lsh-ink);
    --bs-dropdown-link-hover-color: var(--lsh-maroon);
    --bs-dropdown-link-hover-bg: rgba(92, 21, 21, 0.08);
    --bs-dropdown-link-active-color: var(--lsh-maroon);
    --bs-dropdown-link-active-bg: rgba(92, 21, 21, 0.12);
    min-width: 240px;
    max-height: min(360px, 60vh);
    overflow-y: auto;
    border: 1px solid rgba(92, 21, 21, 0.1);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(45, 31, 26, 0.14);
    z-index: 1070;
}

.lutador-header .search-suggest-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 1080;
    max-height: min(360px, 50vh);
    overflow-y: auto;
    background: var(--lsh-white);
    border: 1px solid rgba(92, 21, 21, 0.12);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(45, 31, 26, 0.14);
    padding: 0.35rem;
}

.lutador-header .search-suggest-dropdown:not([hidden]) {
    display: block;
}

.lutador-header .search-suggest-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--lsh-ink);
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
}

.lutador-header .search-suggest-item:hover,
.lutador-header .search-suggest-item.is-focused {
    background: rgba(92, 21, 21, 0.06);
}

.lutador-header .search-suggest-item img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.lutador-header .header-search-form__chip {
    position: absolute;
    left: 2.5rem;
    bottom: 0.35rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--lsh-maroon-deep);
    background: rgba(212, 175, 55, 0.2);
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
}

.lutador-header .header-search-cluster.is-dropdown-open,
.lutador-header .header-main.is-dropdown-open {
    position: relative;
    z-index: 1060;
}

@media (max-width: 639.98px) {
    .lutador-header .header-categories-btn__label {
        display: none;
    }

    .lutador-header .header-categories-btn {
        width: 48px;
        padding-inline: 0;
        justify-content: center;
    }

    .lutador-header .header-categories-btn.dropdown-toggle::after {
        display: none;
    }
}

@media (max-width: 379.98px) {
    .lutador-header .lsh-action__label {
        display: none;
    }

    .lutador-header .lsh-action__user {
        display: none !important;
    }
}

.page-storefront .lutador-header .header-search-form {
    display: flex !important;
}

.page-storefront .lutador-header .header-search-form__track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
}

.page-storefront .lutador-header .header-search-form__field {
    flex: 1 1 0% !important;
    min-width: 0 !important;
}

.page-storefront .lutador-header .header-search-form__submit {
    position: static !important;
    flex: 0 0 var(--lsh-submit-w) !important;
    width: var(--lsh-submit-w) !important;
    min-width: var(--lsh-submit-w) !important;
    max-width: var(--lsh-submit-w) !important;
    margin: 0 !important;
    transform: none !important;
}

.page-storefront .lutador-header .lsh-main {
    background: #fff !important;
}
