:root {
    /* Famposomart theme — light canvas, same navy + gold brand identity as
       before, just inverted: white/light surfaces for content, the navy kept
       for "chrome" (topbar, navbar, hero band, sidebar, footer). */
    --lux-black: #F5F6FA;          /* page background — soft off-white */
    --lux-charcoal: #0B1830;       /* dark chrome: topbar, navbar, hero, sidebar, footer */
    --lux-navy-2: #142544;         /* secondary dark surface / hover on chrome */
    --lux-panel: #FFFFFF;          /* card / form panel — light */
    --lux-panel-2: #F2F3F8;        /* secondary light panel, striped rows, placeholders */
    --lux-border: #E6E8F1;         /* hairline borders on light surfaces */
    --lux-border-dark: rgba(255, 255, 255, 0.14); /* hairline borders on dark chrome */
    --lux-gold: #C9A227;           /* solid gold fallback (icons, plain text on dark) */
    --lux-gold-light: #E6C667;
    --gold-1: #F0D9A8;             /* gradient stops, light -> deep bronze */
    --gold-2: #D9A968;
    --gold-3: #B8823C;             /* deep bronze — used for gold text/icons on LIGHT surfaces */
    --lux-cream: #F5F1E8;          /* text/icons on DARK chrome (navbar, footer, hero, sidebar) */
    --lux-ink: #1B2333;            /* primary text on LIGHT surfaces (cards, body, forms) */
    --lux-muted: #6B7280;          /* secondary text on LIGHT surfaces */
    --lux-muted-inverse: #AEB6CC;  /* secondary text on DARK chrome */

    /* New accent tones for the homepage promo split-cards */
    --accent-coral-bg: #FBE4E1;
    --accent-coral: #DE5C40;
    --accent-blue-bg: #E4ECFB;
    --accent-blue: #3457D5;
}

body {
    background-color: var(--lux-black);
    color: var(--lux-ink);
    font-family: 'Jost', 'Segoe UI', sans-serif;
    overflow-x: hidden; /* safety net for .full-bleed sections below */
}

/* Break a section out to the full viewport width regardless of the
   surrounding .container's gutter — robust alternative to guessing a
   negative margin. */
.full-bleed {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

h1, h2, h3, h4, h5, .brand-font {
    font-family: 'Playfair Display', 'Georgia', serif;
    letter-spacing: 0.5px;
}

a {
    color: var(--gold-3);
}
a:hover {
    color: #8a6220;
}

/* ---- Gradient text, used for hero headline emphasis (hero stays dark) ---- */
.gradient-text {
    background: linear-gradient(100deg, var(--gold-1), var(--gold-2) 45%, var(--lux-cream) 95%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---- Top bar ---- */
.topbar-lux {
    background-color: var(--lux-charcoal);
    border-bottom: 1px solid var(--lux-border-dark);
    font-size: 0.8rem;
    color: var(--lux-muted-inverse);
    padding: 6px 0;
}
.topbar-lux a {
    color: var(--lux-muted-inverse);
    text-decoration: none;
    margin-right: 1.25rem;
}
.topbar-lux a:hover {
    color: var(--lux-gold-light);
}

/* ---- Navbar ---- */
.navbar-lux {
    background-color: var(--lux-charcoal);
    border-bottom: 1px solid var(--lux-border-dark);
}
.navbar-lux .navbar-brand {
    display: flex;
    align-items: center;
}
.navbar-lux .nav-link {
    color: var(--lux-cream) !important;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    margin: 0 8px;
}
.navbar-lux .nav-link:hover,
.navbar-lux .nav-link.active {
    color: var(--lux-gold-light) !important;
}
.navbar-lux .nav-link.disabled-link {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}
.navbar-lux .icon-link {
    color: var(--lux-cream) !important;
    font-size: 1.15rem;
    text-transform: none;
    letter-spacing: normal;
    display: inline-flex;
    align-items: center;
}
.navbar-lux .icon-link:hover {
    color: var(--lux-gold-light) !important;
}
.icon-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    font-size: 0.62rem;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    padding: 0 4px;
    border-radius: 50%;
    text-align: center;
    background: linear-gradient(100deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
    color: #14140F;
    font-weight: 700;
}

/* ---- Buttons: fully pill-shaped, gradient primary ---- */
.btn-gold {
    background: linear-gradient(100deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
    border: none;
    color: #14140F;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.82rem;
    padding: 0.6rem 1.6rem;
    border-radius: 50px;
    transition: filter 0.2s ease, transform 0.15s ease;
}
.btn-gold:hover {
    filter: brightness(1.08);
    color: #14140F;
    transform: translateY(-1px);
}

.btn-outline-gold {
    background: transparent;
    border: 1px solid var(--gold-3);
    color: var(--gold-3);
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    border-radius: 50px;
    padding: 0.55rem 1.5rem;
    transition: all 0.2s ease;
}
.btn-outline-gold:hover {
    background: linear-gradient(100deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
    border-color: transparent;
    color: #14140F;
}

/* Outline button sitting directly on dark chrome (hero, navy CTA banners) reads
   better in cream than bronze — opt in with this modifier. */
.btn-outline-gold-inverse {
    background: transparent;
    border: 1px solid var(--lux-cream);
    color: var(--lux-cream);
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    border-radius: 50px;
    padding: 0.55rem 1.5rem;
    transition: all 0.2s ease;
}
.btn-outline-gold-inverse:hover {
    background: linear-gradient(100deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
    border-color: transparent;
    color: #14140F;
}

/* ---- Hero ---- */
.hero-lux {
    background: var(--lux-charcoal);
    border-bottom: 1px solid var(--lux-border-dark);
    padding: 5rem 0;
    color: var(--lux-cream);
}
.hero-lux .eyebrow {
    display: inline-block;
    color: var(--lux-gold-light);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.78rem;
    border: 1px solid var(--gold-2);
    border-radius: 50px;
    padding: 0.4rem 1.2rem;
}

/* ---- Cards ---- */
.card-lux {
    background-color: var(--lux-panel);
    border: 1px solid var(--lux-border);
    color: var(--lux-ink);
    border-radius: 10px;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}
.card-lux:hover {
    transform: translateY(-4px);
    border-color: var(--gold-2);
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
}
/* Modifier: only apply on cards sitting in an equal-height grid row
   (product/service/seller tiles) — NOT on standalone content panels
   (dashboards, forms, settings). */
.card-lux-grid {
    height: 100%;
}
/* Whole card navigates to its product/service (see the click handler in
   layouts/app.blade.php) — inner controls like the wishlist heart still work
   normally since the handler ignores clicks on interactive elements. */
.card-clickable {
    cursor: pointer;
}
.card-img-top-wrap {
    aspect-ratio: 4 / 3;
    background-color: var(--lux-panel-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lux-muted);
    font-size: 2rem;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}
.card-img-top-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#mainImageWrap {
    border-radius: 10px;
}
.card-lux .price-tag {
    color: var(--gold-3);
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}
.price-tag {
    color: var(--gold-3);
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

.badge-lux {
    background-color: transparent;
    border: 1px solid var(--gold-3);
    color: var(--gold-3);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.7rem;
    border-radius: 50px;
    padding: 0.35em 0.9em;
}

.badge-discount {
    background: linear-gradient(100deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
    color: #14140F;
    font-weight: 700;
    font-size: 0.7rem;
    border-radius: 50px;
    padding: 0.3em 0.7em;
}

.section-title {
    border-bottom: 1px solid var(--lux-border);
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
}

.form-control, .form-select {
    background-color: var(--lux-panel);
    border: 1px solid var(--lux-border);
    color: var(--lux-ink);
}
.form-control:focus, .form-select:focus {
    background-color: var(--lux-panel);
    border-color: var(--gold-2);
    color: var(--lux-ink);
    box-shadow: 0 0 0 0.2rem rgba(217, 169, 104, 0.25);
}
.form-control::placeholder {
    color: var(--lux-muted);
}
label {
    color: var(--lux-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Rounded like a card: border-collapse:separate lets border-radius work on a
   <table>; the box-shadow doubles as a 1px border (more reliable than a real
   border for staying crisp at the rounded corners). Corner cells get their
   own radius so the header/row backgrounds don't poke past the curve. */
.table-lux {
    border-collapse: separate;
    border-spacing: 0;
    color: var(--lux-ink);
    background-color: var(--lux-panel);
    border-radius: 12px;
    box-shadow: 0 0 0 1px var(--lux-border), 0 1px 3px rgba(16, 24, 40, 0.05);
    --bs-table-bg: var(--lux-panel);
    --bs-table-color: var(--lux-ink);
    --bs-table-striped-bg: var(--lux-panel-2);
    --bs-table-striped-color: var(--lux-ink);
    --bs-table-hover-bg: var(--lux-panel-2);
    --bs-table-hover-color: var(--lux-ink);
    --bs-table-border-color: var(--lux-border);
    vertical-align: middle;
}
.table-lux > :not(caption) > * > * {
    background-color: var(--lux-panel);
    color: var(--lux-ink);
    border-bottom: 1px solid var(--lux-border);
    box-shadow: none;
    padding: 0.85rem 1rem;
}
.table-lux thead {
    color: var(--gold-3);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
}
.table-lux thead > tr > * {
    background-color: var(--lux-panel-2);
    border-bottom: 2px solid var(--lux-border);
}
.table-lux tbody tr {
    transition: background-color 0.15s ease;
}
.table-lux tbody tr:hover > * {
    background-color: var(--lux-panel-2);
}
.table-lux tbody tr:last-child > * {
    border-bottom: none;
}
.table-lux thead tr:first-child th:first-child { border-top-left-radius: 12px; }
.table-lux thead tr:first-child th:last-child { border-top-right-radius: 12px; }
.table-lux tbody tr:last-child td:first-child { border-bottom-left-radius: 12px; }
.table-lux tbody tr:last-child td:last-child { border-bottom-right-radius: 12px; }

.sidebar-lux {
    background-color: var(--lux-charcoal);
    border-right: 1px solid var(--lux-border-dark);
    min-height: calc(100vh - 70px);
}
.sidebar-lux .nav-link {
    color: var(--lux-muted-inverse);
    padding: 0.65rem 1.25rem;
    border-left: 3px solid transparent;
}
.sidebar-lux .nav-link.active,
.sidebar-lux .nav-link:hover {
    color: var(--lux-gold-light);
    background-color: rgba(217, 169, 104, 0.08);
    border-left-color: var(--gold-2);
}

.stat-card {
    background-color: var(--lux-panel);
    border: 1px solid var(--lux-border);
    border-radius: 10px;
    padding: 1.5rem;
}
.stat-card .stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    background: linear-gradient(100deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.stat-card .stat-label {
    color: var(--lux-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.footer-lux {
    background-color: var(--lux-charcoal);
    border-top: 1px solid var(--lux-border-dark);
    color: var(--lux-muted-inverse);
    padding: 2.5rem 0;
    margin-top: 4rem;
}
.footer-lux a {
    color: var(--lux-cream);
    text-decoration: none;
}
.footer-lux a:hover {
    color: var(--lux-gold-light);
}

.divider-gold {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-1), var(--gold-3));
    margin: 1rem 0;
}

.search-lux {
    background-color: var(--lux-panel);
    border: 1px solid var(--lux-border);
    border-radius: 50px;
    overflow: hidden;
}
.search-lux input {
    background: transparent;
    border: none;
    color: var(--lux-ink);
    padding-left: 1rem;
}
.search-lux input:focus {
    box-shadow: none;
    outline: none;
    background: transparent;
    color: var(--lux-ink);
}
.search-lux button {
    background: linear-gradient(100deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
    border: none;
    color: #14140F;
}

.carousel-lux .carousel-item {
    height: 380px;
    background-color: var(--lux-panel-2);
    overflow: hidden;
}
.carousel-lux .carousel-item img {
    display: block; /* <img> is inline by default — without this a few px gap
                        appears below it, and the image undershoots the
                        380px item height ("not fitted with container"). */
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel-lux .carousel-indicators button {
    background-color: var(--lux-gold-light) !important;
}

/* ---- Category tiles: photo + name (falls back to icon if no photo) ---- */
.category-card-lux {
    background-color: var(--lux-panel);
    border: 1px solid var(--lux-border);
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: var(--lux-ink);
    display: block;
    overflow: hidden;
    transition: all 0.15s ease;
    height: 100%;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}
.category-card-lux:hover {
    border-color: var(--gold-2);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
}
.category-card-lux .category-photo {
    aspect-ratio: 1 / 1;
    background-color: var(--lux-panel-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-3);
    font-size: 1.8rem;
    overflow: hidden;
}
.category-card-lux .category-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.category-card-lux .category-label {
    padding: 0.85rem 0.5rem;
    font-weight: 500;
}
.category-card-lux i {
    font-size: 1.8rem;
    color: var(--gold-3);
}

.seller-card-lux {
    background-color: var(--lux-panel);
    border: 1px solid var(--lux-border);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--lux-ink);
    display: block;
    height: 100%;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}
.seller-card-lux:hover {
    border-color: var(--gold-2);
}
.seller-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--lux-panel-2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    color: var(--gold-3);
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.stars-lux {
    color: var(--gold-3);
    letter-spacing: 1px;
}
.stars-lux .bi-star {
    color: #D8DAE6;
}

.review-card-lux {
    border-bottom: 1px solid var(--lux-border);
    padding: 1rem 0;
}

.form-check-input:checked {
    background-color: var(--lux-gold);
    border-color: var(--lux-gold);
}

.thumb-swap {
    border-radius: 6px;
    transition: border-color 0.15s ease;
}
.thumb-swap:hover {
    border-color: var(--gold-2) !important;
}

/* ---- Homepage: stats strip ---- */
.stats-strip {
    background-color: var(--lux-panel);
    border-bottom: 1px solid var(--lux-border);
    padding: 1.75rem 0;
}
.stats-strip .stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.stats-strip .stat-item i {
    font-size: 1.6rem;
    color: var(--gold-3);
}
.stats-strip .stat-item .stat-number {
    font-weight: 700;
    color: var(--lux-ink);
    line-height: 1.1;
}
.stats-strip .stat-item .stat-caption {
    color: var(--lux-muted);
    font-size: 0.78rem;
}

/* ---- Homepage: split promo cards ---- */
.promo-card {
    border-radius: 14px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-decoration: none;
    height: 100%;
    transition: transform 0.15s ease;
}
.promo-card:hover {
    transform: translateY(-3px);
}
.promo-card.promo-coral {
    background-color: var(--accent-coral-bg);
    color: var(--accent-coral);
}
.promo-card.promo-blue {
    background-color: var(--accent-blue-bg);
    color: var(--accent-blue);
}
.promo-card h4 {
    color: inherit;
    margin-bottom: 0.35rem;
}
.promo-card p {
    color: var(--lux-ink);
    opacity: 0.75;
    margin-bottom: 0.5rem;
}
.promo-card .promo-icon {
    font-size: 2.75rem;
    flex-shrink: 0;
}

/* ---- Homepage: seller CTA banner ---- */
.cta-banner {
    background-color: var(--lux-charcoal);
    color: var(--lux-cream);
    border-radius: 16px;
    padding: 2.5rem;
    overflow: hidden;
}
.cta-banner .cta-perk i {
    color: var(--lux-gold-light);
    margin-right: 0.5rem;
}

/* ---- WhatsApp floating button ---- */
.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25D366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    z-index: 1050;
    transition: transform 0.15s ease;
}
.whatsapp-float:hover {
    transform: scale(1.08);
    color: #ffffff;
}

/* ---- Buyer account: left nav + right panel ---- */
.account-nav-card {
    border-radius: 14px;
    padding: 0.6rem;
}
.account-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.account-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--lux-ink);
    text-decoration: none;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.account-nav-link:hover {
    background-color: var(--lux-panel-2);
    color: var(--lux-ink);
}
.account-nav-link.active {
    background-color: rgba(201, 162, 39, 0.12);
    border-color: rgba(201, 162, 39, 0.35);
    color: var(--gold-3);
}
.account-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: var(--lux-panel-2);
    color: var(--lux-muted);
    flex-shrink: 0;
    font-size: 0.95rem;
}
.account-nav-link.active .account-nav-icon {
    background-color: rgba(201, 162, 39, 0.18);
    color: var(--gold-3);
}
.account-nav-label {
    flex: 1;
}
.account-nav-chevron {
    color: var(--lux-muted);
    font-size: 0.75rem;
}
.account-nav-link.active .account-nav-chevron {
    color: var(--gold-3);
}
.account-nav-logout {
    color: #c0392b;
    cursor: pointer;
}
.account-nav-logout .account-nav-icon {
    color: #c0392b;
}
.account-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
