/* ═══════════════════════════════════════════════════════════════
   Lutador UI Enhancements — premium polish & micro-interactions
   ═══════════════════════════════════════════════════════════════ */

:root {
    --ui-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ui-glow: 0 0 0 1px rgba(212, 175, 55, .25), 0 12px 40px rgba(45, 10, 10, .12);
}

/* ── Scroll progress ─────────────────────────────────────────── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 9999;
    background: linear-gradient(90deg, var(--maroon), var(--gold), var(--gold));
    box-shadow: 0 0 12px rgba(212, 175, 55, .6);
    pointer-events: none;
    transition: width .08s linear;
}

/* ── Announcement bar ──────────────────────────────────────── */
.announce-bar {
    background: linear-gradient(90deg, #1c0c0c 0%, #3d0e0e 50%, #1c0c0c 100%);
    color: rgba(255, 255, 255, .92);
    font-size: .8rem;
    padding: .45rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, .2);
    position: relative;
    overflow: hidden;
}

.announce-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(212, 175, 55, .12) 50%, transparent 60%);
    animation: announce-shine 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes announce-shine {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.announce-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem 1rem;
    flex-wrap: nowrap;
    text-align: center;
    position: relative;
    z-index: 1;
    min-height: 2.25rem;
}

.announce-bar__inner i,
.announce-bar__icon {
    color: var(--gold);
    flex-shrink: 0;
}

.announce-bar__close {
    position: absolute;
    right: .75rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, .6);
    padding: .25rem .5rem;
    line-height: 1;
    border-radius: 6px;
    transition: color .2s, background .2s;
}

.announce-bar__close:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

body.announce-hidden .announce-bar {
    display: none;
}

/* ── Page enter animation ──────────────────────────────────── */
.site-main {
    animation: page-enter .55s var(--ui-ease) both;
}

@keyframes page-enter {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .site-main { animation: none; }
    .announce-bar::before { animation: none; }
}

/* ── Premium toasts ────────────────────────────────────────── */
#toast-rack .toast {
    border-radius: 14px !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .15) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .22) !important;
    overflow: hidden;
}

#toast-rack .toast-body {
    font-weight: 500;
    font-size: .9rem;
}

/* ── Search field icon ───────────────────────────────────────── */
.site-search {
    position: relative;
}

.site-search__icon-wrap {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    z-index: 2;
    pointer-events: none;
}

.site-search__input {
    padding-left: 2.65rem !important;
}

.site-search__btn {
    background: linear-gradient(135deg, var(--gold), #c9a030) !important;
    color: #1c0c0c !important;
    font-weight: 700;
    border: none !important;
    box-shadow: 0 4px 14px rgba(212, 175, 55, .35);
    transition: transform .2s var(--ui-ease), box-shadow .2s;
}

.site-search__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, .45);
    color: #1c0c0c !important;
}

/* ── Active filter chips ───────────────────────────────────── */
.catalog-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.25rem;
    padding: .75rem 1rem;
    background: rgba(255, 255, 255, .7);
    border: 1px solid rgba(45, 10, 10, .08);
    border-radius: 14px;
    backdrop-filter: blur(12px);
}

.catalog-active-filters__label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    margin-right: .25rem;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .65rem .35rem .75rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(128, 0, 0, .08), rgba(212, 175, 55, .12));
    border: 1px solid rgba(128, 0, 0, .15);
    font-size: .78rem;
    font-weight: 600;
    color: var(--maroon);
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, background .2s;
}

.filter-chip:hover {
    transform: translateY(-1px);
    box-shadow: var(--ui-glow);
    color: var(--maroon-dark);
}

.filter-chip__x {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(128, 0, 0, .12);
    font-size: .65rem;
}

.filter-chip--clear {
    background: transparent;
    border-style: dashed;
    color: var(--muted);
}

/* ── Product card stock pill ───────────────────────────────── */
.lux-stock-pill {
    position: absolute;
    bottom: .65rem;
    left: .65rem;
    z-index: 3;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .25rem .55rem;
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.lux-stock-pill--in {
    background: rgba(25, 135, 84, .88);
    color: #fff;
}

.lux-stock-pill--low {
    background: rgba(255, 193, 7, .92);
    color: #1c0c0c;
}

.lux-stock-pill--out {
    background: rgba(33, 24, 24, .75);
    color: rgba(255, 255, 255, .9);
}

/* ── Card hover lift ─────────────────────────────────────────── */
.lux-product-card {
    transition: transform .35s var(--ui-ease), box-shadow .35s var(--ui-ease);
}

.lux-product-card:hover {
    transform: translateY(-6px);
}

.lux-product-card:hover .lux-product-card__img {
    transform: scale(1.04);
}

.lux-product-card__img {
    transition: transform .5s var(--ui-ease);
}

/* ── Auth split layout ─────────────────────────────────────── */
.auth-split {
    min-height: calc(100vh - 180px);
    display: grid;
    align-items: stretch;
}

@media (min-width: 992px) {
    .auth-split {
        grid-template-columns: 1fr 1fr;
        gap: 0;
        min-height: calc(100vh - 140px);
    }
}

.auth-split__brand {
    display: none;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 20% 20%, rgba(212, 175, 55, .25), transparent 50%),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(128, 0, 0, .35), transparent 55%),
        linear-gradient(145deg, #1c0c0c 0%, #3d0e0e 45%, #120808 100%);
    color: #fff;
    padding: 3rem;
}

@media (min-width: 992px) {
    .auth-split__brand {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

.auth-split__brand-logo {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .4);
}

.auth-split__brand h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.auth-split__brand p {
    color: rgba(255, 255, 255, .75);
    max-width: 28rem;
    font-size: 1.05rem;
    line-height: 1.65;
}

.auth-split__perks {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
}

.auth-split__perks li {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .85rem;
    font-size: .92rem;
    color: rgba(255, 255, 255, .88);
}

.auth-split__perks i {
    color: var(--gold);
    font-size: 1.1rem;
}

.auth-split__form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-split__form .auth-card {
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-strong);
}

/* ── Form focus glow ───────────────────────────────────────── */
.form-control:focus,
.form-select:focus {
    border-color: rgba(212, 175, 55, .65) !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, .2) !important;
}

/* ── Commerce page headers ─────────────────────────────────── */
.commerce-page__header {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem !important;
}

.commerce-page__header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 64px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--maroon), var(--gold));
}

.commerce-page__title {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -.01em;
}

/* ── Cart sticky summary glow ──────────────────────────────── */
.order-summary-card {
    position: sticky;
    top: calc(var(--nav-height) + var(--trust-strip-height) + 1rem);
    border: 1px solid rgba(212, 175, 55, .2) !important;
    box-shadow: var(--ui-glow) !important;
}

.cart-line {
    transition: background .2s, transform .2s;
    border-radius: 12px;
}

.cart-line:hover {
    background: rgba(212, 175, 55, .06);
}

/* ── Trust strip upgrade ───────────────────────────────────── */
.brand-trust-strip {
    background: linear-gradient(90deg, rgba(28, 12, 12, .04), rgba(212, 175, 55, .08), rgba(28, 12, 12, .04));
}

.brand-trust-strip__grid span {
    transition: color .2s, transform .2s;
}

.brand-trust-strip__grid span:hover {
    color: var(--maroon);
    transform: translateY(-1px);
}

/* ── Payment trust row (footer) ────────────────────────────── */
.footer-payments {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem 1rem;
    margin-top: 1rem;
}

.footer-payments__badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .7rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    font-size: .72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
}

/* ── Skeleton hide when loaded ─────────────────────────────── */
.catalog-grid.is-loaded .lux-skeleton-grid {
    display: none;
}

.catalog-grid:not(.is-loaded) .catalog-grid__item {
    opacity: 0;
}

/* ── Catalog stats ribbon ──────────────────────────────────── */
.catalog-stats-ribbon {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.catalog-stat {
    flex: 1;
    min-width: 120px;
    padding: .85rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, .65);
    border: 1px solid rgba(45, 10, 10, .06);
    text-align: center;
}

.catalog-stat__val {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--maroon);
    line-height: 1.1;
}

.catalog-stat__lbl {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    font-weight: 600;
}

/* ── Mobile tab bar polish ───────────────────────────────────── */
.mobile-tab-bar {
    box-shadow: 0 -8px 32px rgba(45, 10, 10, .12);
    border-top: 1px solid rgba(212, 175, 55, .15);
}

.mobile-tab-bar__item.is-active {
    color: var(--maroon);
}

.mobile-tab-bar__item.is-active i {
    transform: scale(1.1);
    color: var(--gold);
}

/* ── Empty state upgrade ───────────────────────────────────── */
.catalog-empty {
    padding: 3rem 1.5rem;
    border-radius: var(--lux-radius, 20px);
    background: rgba(255, 255, 255, .5);
    border: 1px dashed rgba(128, 0, 0, .2);
}

.catalog-empty__icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
    display: block;
}

.search-suggest-item.is-focused,
.search-suggest-item:hover {
    background: rgba(212, 175, 55, .12);
    outline: none;
}

.mobile-menu-nav__link--stagger {
    animation: menu-link-in .4s var(--ui-ease) both;
}

@keyframes menu-link-in {
    from { opacity: 0; transform: translateX(8px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ── Button ripple polish ────────────────────────────────────── */
.btn-maroon,
.lux-btn-cart,
.lux-btn-apply {
    position: relative;
    overflow: hidden;
    transition: transform .2s var(--ui-ease), box-shadow .2s;
}

.btn-maroon:hover,
.lux-btn-cart:hover,
.lux-btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(128, 0, 0, .25);
}
