/* ═══════════════════════════════════════════════════════════════
   Lutador Storefront Premium — unified theme across all pages
   Aligns home, shop, cart, checkout, account, payment with
   luxury footer + auth aesthetic (maroon, gold, glass)
   ═══════════════════════════════════════════════════════════════ */

:root {
    --sf-black: #0a0a0a;
    --sf-maroon-deep: #1c0c0c;
    --sf-maroon: #800000;
    --sf-crimson: #a00000;
    --sf-gold: #d4af37;
    --sf-gold-bright: #f0d78c;
    --sf-cream: #f7f3ec;
    --sf-cream-dark: #ebe4d8;
    --sf-glass: rgba(255, 255, 255, 0.72);
    --sf-glass-border: rgba(128, 0, 0, 0.1);
    --sf-shadow: 0 16px 48px rgba(77, 0, 0, 0.08);
    --sf-shadow-hover: 0 24px 56px rgba(77, 0, 0, 0.14);
    --sf-radius: 20px;
    --sf-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Storefront ambient background ─────────────────────────── */
.page-storefront.commerce-app {
    background:
        radial-gradient(ellipse 80% 50% at 10% 0%, rgba(160, 0, 0, 0.06), transparent 50%),
        radial-gradient(ellipse 60% 40% at 95% 20%, rgba(212, 175, 55, 0.05), transparent 45%),
        linear-gradient(180deg, var(--sf-cream) 0%, #fffdf9 40%, var(--sf-cream-dark) 100%);
}

.page-storefront .site-main {
    position: relative;
}

.page-storefront .site-main::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(128, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(180deg, black 0%, transparent 85%);
    opacity: 0.5;
    z-index: 0;
}

.page-storefront .site-main > *:not(.modal) {
    position: relative;
    z-index: 1;
}

/* Bridge into dark footer */
.page-storefront .lux-footer {
    margin-top: 0;
}

.page-storefront .lux-footer::before {
    content: "";
    position: absolute;
    top: -120px;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, transparent, rgba(10, 10, 10, 0.85));
    pointer-events: none;
    z-index: 0;
}

/* ── Header premium harmony ──────────────────────────────────── */
.page-storefront .site-header--premium {
    box-shadow: none;
}

.page-storefront .site-header--premium.is-scrolled {
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.14),
        0 0 0 1px rgba(212, 175, 55, 0.08);
}

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

.page-storefront .header-nav {
    border-bottom-color: rgba(212, 175, 55, 0.22);
}

/* ── Commerce page shell ───────────────────────────────────── */
.commerce-page {
    padding-bottom: 2rem;
}

.commerce-page__header {
    position: relative;
}

.commerce-page__eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--sf-crimson);
    margin-bottom: 0.35rem;
    display: block;
}

.commerce-page__title {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--sf-maroon-deep);
    margin: 0;
    line-height: 1.15;
}

.commerce-page__subtitle {
    font-size: 0.92rem;
    color: rgba(28, 12, 12, 0.55);
    margin: 0.5rem 0 0;
    max-width: 36rem;
}

.commerce-page__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.commerce-page__breadcrumb a {
    color: rgba(28, 12, 12, 0.5);
    text-decoration: none;
    transition: color 0.25s;
}

.commerce-page__breadcrumb a:hover {
    color: var(--sf-crimson);
}

.commerce-page__breadcrumb span {
    color: rgba(28, 12, 12, 0.35);
}

.commerce-page__breadcrumb .is-current {
    color: var(--sf-maroon);
    font-weight: 600;
}

/* ── Premium cards ─────────────────────────────────────────── */
.page-storefront .lux-card {
    background: var(--sf-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--sf-glass-border);
    border-radius: var(--sf-radius);
    box-shadow: var(--sf-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: transform 0.35s var(--sf-ease), box-shadow 0.35s var(--sf-ease), border-color 0.35s;
}

.page-storefront .lux-card:hover {
    box-shadow: var(--sf-shadow-hover), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.page-storefront .stat-card {
    background: var(--sf-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--sf-glass-border);
    border-radius: var(--sf-radius);
    box-shadow: var(--sf-shadow);
    transition: transform 0.35s var(--sf-ease), box-shadow 0.35s;
}

.page-storefront .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sf-shadow-hover);
    border-color: rgba(212, 175, 55, 0.25);
}

.page-storefront .stat-card p {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(28, 12, 12, 0.5);
    margin-bottom: 0.35rem;
}

.page-storefront .stat-card h2 {
    font-family: var(--font-display);
    color: var(--sf-maroon);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0;
}

/* ── Section titles ────────────────────────────────────────── */
.page-storefront .section-title {
    font-family: var(--font-display);
    color: var(--sf-maroon-deep);
    position: relative;
    padding-bottom: 0.65rem;
}

.page-storefront .section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--sf-crimson), var(--sf-gold));
}

.page-storefront .text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ── Tables ────────────────────────────────────────────────── */
.page-storefront .table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(128, 0, 0, 0.03);
    --bs-table-hover-bg: rgba(212, 175, 55, 0.06);
    margin-bottom: 0;
}

.page-storefront .table thead th {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sf-maroon);
    border-bottom-color: rgba(128, 0, 0, 0.12);
    font-weight: 700;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.page-storefront .table td {
    vertical-align: middle;
    border-color: rgba(128, 0, 0, 0.06);
    font-size: 0.9rem;
}

/* ── Forms ─────────────────────────────────────────────────── */
.page-storefront .form-control,
.page-storefront .form-select {
    border-radius: 14px;
    border: 1px solid rgba(128, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.85);
    padding: 0.7rem 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.page-storefront .form-control:focus,
.page-storefront .form-select:focus {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.page-storefront .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--sf-maroon);
    letter-spacing: 0.02em;
}

/* ── Alerts ────────────────────────────────────────────────── */
.page-storefront .alert {
    border-radius: var(--sf-radius);
    border: 1px solid transparent;
    backdrop-filter: blur(8px);
}

.page-storefront .alert-success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.25);
    color: #166534;
}

.page-storefront .alert-danger {
    background: rgba(160, 0, 0, 0.08);
    border-color: rgba(160, 0, 0, 0.2);
    color: #7f1d1d;
}

.page-storefront .alert-info {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.25);
    color: #78350f;
}

.page-storefront .alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.25);
}

/* ── Buttons polish ────────────────────────────────────────── */
.page-storefront .btn-maroon {
    box-shadow: 0 6px 20px rgba(128, 0, 0, 0.25);
    transition: transform 0.3s var(--sf-ease), box-shadow 0.3s;
}

.page-storefront .btn-maroon:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(128, 0, 0, 0.35);
}

.page-storefront .btn-gold {
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25);
}

.page-storefront .btn-outline-maroon {
    border-radius: 14px;
    transition: all 0.3s var(--sf-ease);
}

.page-storefront .btn-outline-maroon:hover,
.page-storefront .provider-pick.active {
    background: linear-gradient(135deg, var(--sf-crimson), #5a0000);
    border-color: var(--sf-crimson);
    color: #fff;
    box-shadow: 0 8px 24px rgba(160, 0, 0, 0.3);
}

/* ── Home product cards → luxury bridge ────────────────────── */
.page-storefront .product-card {
    background: var(--sf-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--sf-glass-border);
    border-radius: var(--sf-radius);
    box-shadow: var(--sf-shadow);
    overflow: hidden;
    transition: transform 0.4s var(--sf-ease), box-shadow 0.4s;
}

.page-storefront .product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sf-shadow-hover);
    border-color: rgba(212, 175, 55, 0.2);
}

.page-storefront .product-card__media {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(247, 243, 236, 0.8));
}

/* ── Cart & checkout ─────────────────────────────────────────── */
.page-storefront .cart-line {
    border-radius: 16px;
    transition: background 0.3s, box-shadow 0.3s;
}

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

.page-storefront .order-summary-card {
    position: sticky;
    top: calc(var(--nav-height) + 1.5rem);
}

.page-storefront .payment-methods .form-check {
    padding: 1rem 1.15rem;
    border-radius: 16px;
    border: 1px solid rgba(128, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.65rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.page-storefront .payment-methods .form-check:has(input:checked) {
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
    background: rgba(255, 255, 255, 0.85);
}

/* ── Payment status pages ──────────────────────────────────── */
.payment-status-card {
    max-width: 560px;
    margin-inline: auto;
    text-align: center;
}

.payment-status-card .display-1 {
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.15));
}

.payment-status-card--success i {
    color: #22c55e !important;
}

.payment-status-card--failed i {
    color: var(--sf-crimson) !important;
}

/* ── Auth recovery (forgot / reset) ────────────────────────── */
.page-auth-recovery .utility-bar,
.page-auth-recovery .announce-bar,
.page-auth-recovery .site-header,
.page-auth-recovery .brand-trust-strip,
.page-auth-recovery .header-features,
.page-auth-recovery .mobile-tab-bar,
.page-auth-recovery .site-footer {
    display: none !important;
}

.page-auth-recovery .site-main {
    padding: 0 !important;
    min-height: 100vh;
}

.auth-recovery {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background:
        radial-gradient(ellipse 70% 50% at 20% 40%, rgba(160, 0, 0, 0.2), transparent 55%),
        linear-gradient(145deg, var(--sf-black) 0%, var(--sf-maroon-deep) 50%, #0a0a0a 100%);
}

.auth-recovery__card {
    width: min(440px, 100%);
    padding: 2rem 1.75rem;
    border-radius: var(--sf-radius);
    background: rgba(16, 12, 18, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(160, 0, 0, 0.1);
}

.auth-recovery__logo {
    display: block;
    width: min(200px, 80%);
    margin: 0 auto 1.5rem;
}

.auth-recovery__title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: #fff;
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-recovery__text {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
}

.auth-recovery .auth-field-group {
    margin-bottom: 1.15rem;
}

.auth-recovery .auth-field-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 120, 120, 0.9);
    margin-bottom: 0.4rem;
}

.auth-recovery .auth-field {
    position: relative;
}

.auth-recovery .auth-field__input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.75rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.92rem;
}

.auth-recovery .auth-field__input:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 0 3px rgba(160, 0, 0, 0.15);
}

.auth-recovery .auth-field__icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(196, 30, 30, 0.8);
}

.auth-recovery__submit {
    width: 100%;
    padding: 0.95rem;
    border: none;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--sf-crimson), #5a0000);
    box-shadow: 0 8px 28px rgba(160, 0, 0, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.auth-recovery__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(160, 0, 0, 0.5);
}

.auth-recovery__back {
    display: block;
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.88rem;
    color: rgba(255, 120, 120, 0.9);
    text-decoration: none;
}

.auth-recovery .auth-field__action {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0.25rem;
}

.auth-recovery .auth-field--password .auth-field__input {
    padding-right: 2.75rem;
}

.auth-recovery__back:hover {
    color: var(--sf-gold);
}

/* ── Modals ────────────────────────────────────────────────── */
.page-storefront .modal-content {
    border-radius: var(--sf-radius);
    border: 1px solid var(--sf-glass-border);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
}

.page-storefront .modal-header {
    border-bottom-color: rgba(128, 0, 0, 0.08);
}

/* ── Shop page ambient (harmonize catalog CSS) ─────────────── */
.page-shop.page-storefront {
    background:
        radial-gradient(ellipse 70% 40% at 0% 0%, rgba(160, 0, 0, 0.05), transparent 50%),
        radial-gradient(ellipse 50% 30% at 100% 10%, rgba(212, 175, 55, 0.04), transparent 45%),
        #f5f0e8 !important;
}

/* ── Account quick links ───────────────────────────────────── */
.account-quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.account-quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 16px;
    background: var(--sf-glass);
    border: 1px solid var(--sf-glass-border);
    text-decoration: none;
    color: var(--sf-maroon-deep);
    font-size: 0.82rem;
    font-weight: 600;
    transition: transform 0.3s var(--sf-ease), box-shadow 0.3s, border-color 0.3s;
}

.account-quick-link i {
    font-size: 1.35rem;
    color: var(--sf-crimson);
}

.account-quick-link:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: var(--sf-shadow);
    color: var(--sf-maroon);
}

.account-quick-link.is-active {
    border-color: rgba(107, 31, 42, 0.45);
    background: linear-gradient(145deg, rgba(107, 31, 42, 0.08), rgba(212, 175, 55, 0.06));
    box-shadow: 0 8px 24px rgba(61, 44, 40, 0.1);
    color: var(--sf-maroon);
}

/* ── Profile page ──────────────────────────────────────────── */
.profile-page .profile-sidebar {
    padding: 1.75rem 1.5rem;
    position: sticky;
    top: 1.25rem;
}

.profile-hero {
    text-align: center;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(107, 31, 42, 0.1);
    margin-bottom: 1.25rem;
}

.profile-avatar {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--sf-font-display, 'Cormorant Garamond', serif);
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    background: linear-gradient(145deg, var(--sf-maroon, #6b1f2a), #8b2d3a 55%, #a67c00);
    box-shadow: 0 12px 28px rgba(107, 31, 42, 0.28);
}

.profile-hero__name {
    font-family: var(--sf-font-display, 'Cormorant Garamond', serif);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--sf-maroon-deep, #2d1f1a);
    margin-bottom: 0.25rem;
}

.profile-hero__email {
    font-size: 0.88rem;
    color: #7a6b65;
    margin-bottom: 0.35rem;
    word-break: break-word;
}

.profile-hero__since {
    font-size: 0.78rem;
    color: #9a8b84;
    margin-bottom: 0;
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.profile-stat {
    padding: 0.85rem 0.65rem;
    border-radius: 12px;
    background: rgba(107, 31, 42, 0.05);
    border: 1px solid rgba(107, 31, 42, 0.08);
    text-align: center;
}

.profile-stat__value {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sf-maroon, #6b1f2a);
    line-height: 1.2;
}

.profile-stat__label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9a8b84;
    margin-top: 0.2rem;
}

.profile-meta li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.85rem;
    color: #5c4f4a;
    padding: 0.5rem 0;
}

.profile-meta li i {
    color: var(--sf-crimson, #800000);
    font-size: 1rem;
    width: 1.25rem;
    text-align: center;
}

.profile-panel {
    padding: 1.75rem 1.5rem;
}

.profile-panel--muted {
    background: linear-gradient(180deg, #fffdfb 0%, #faf7f4 100%);
}

.profile-panel__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(107, 31, 42, 0.1);
}

.profile-panel__title {
    font-family: var(--sf-font-display, 'Cormorant Garamond', serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--sf-maroon-deep, #2d1f1a);
    margin-bottom: 0.2rem;
}

.profile-panel__desc {
    font-size: 0.88rem;
    color: #7a6b65;
    margin-bottom: 0;
}

.profile-panel__badge {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.15);
    color: #7a5c00;
    border: 1px solid rgba(212, 175, 55, 0.35);
}

.profile-field {
    margin-bottom: 1.25rem;
}

.profile-field__label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #4a3f3a;
    margin-bottom: 0.4rem;
}

.profile-field__control {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0 1rem;
    border-radius: 12px;
    border: 1.5px solid #e4d9d2;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.profile-field__control:focus-within {
    border-color: rgba(107, 31, 42, 0.45);
    box-shadow: 0 0 0 3px rgba(107, 31, 42, 0.1);
}

.profile-field__control--readonly {
    background: #f8f4f1;
    border-style: dashed;
}

.profile-field__control i {
    color: #9a8b84;
    font-size: 1rem;
    flex-shrink: 0;
}

.profile-field__control .form-control {
    border: 0;
    background: transparent;
    padding: 0.75rem 0;
    box-shadow: none !important;
}

.profile-field__control .form-control:focus {
    box-shadow: none;
}

.profile-field__hint {
    font-size: 0.78rem;
    color: #9a8b84;
    margin: 0.4rem 0 0;
}

.profile-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(107, 31, 42, 0.08);
}

.profile-security-list li {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(107, 31, 42, 0.08);
}

.profile-security-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.profile-security-list__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(107, 31, 42, 0.08);
    color: var(--sf-maroon, #6b1f2a);
    flex-shrink: 0;
}

@media (max-width: 991.98px) {
    .profile-page .profile-sidebar {
        position: static;
    }

    .profile-form__actions .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-storefront .lux-card,
    .page-storefront .stat-card,
    .page-storefront .product-card {
        transition: none;
    }
}
