/* =========================================================
   MyLingerie � Premium theme & animations
   ========================================================= */

:root {
    --ml-primary: #b71653;          /* deep rose */
    --ml-primary-dark: #7a0d36;
    --ml-accent: #f7b8cb;           /* blush */
    --ml-gold: #c9a96a;              /* champagne gold */
    --ml-ink: #1f1320;
    --ml-soft: #fbf6f8;
    --ml-muted: #6b5a63;
    --ml-shadow: 0 14px 40px rgba(31, 19, 32, 0.10);
    --ml-shadow-lg: 0 24px 60px rgba(31, 19, 32, 0.18);
    --ml-ease: cubic-bezier(.2, .8, .2, 1);
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html { font-size: 16px; }
}

body {
    margin-bottom: 0;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--ml-ink);
    background:
        radial-gradient(1200px 600px at 110% -10%, rgba(247, 184, 203, 0.35), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(201, 169, 106, 0.18), transparent 60%),
        var(--ml-soft);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Playfair Display', 'Georgia', serif;
    letter-spacing: -0.01em;
}

a { color: var(--ml-primary); }
a:hover { color: var(--ml-primary-dark); }

.text-danger { color: var(--ml-primary) !important; }

.btn:focus, .btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus, .form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(183, 22, 83, 0.18);
    border-color: var(--ml-primary);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
    border-radius: 999px;
    padding: 0.55rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform 0.25s var(--ml-ease), box-shadow 0.25s var(--ml-ease), background 0.25s var(--ml-ease), color 0.25s var(--ml-ease);
}

.btn-lg { padding: 0.85rem 2.2rem; }

.btn-dark,
.btn-primary {
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-primary-dark));
    border: none;
    color: #fff;
    box-shadow: 0 10px 24px rgba(183, 22, 83, 0.30);
}

.btn-dark:hover,
.btn-primary:hover,
.btn-dark:focus,
.btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(183, 22, 83, 0.40);
    background: linear-gradient(135deg, var(--ml-primary-dark), var(--ml-primary));
    color: #fff;
}

.btn-outline-secondary,
.btn-outline-dark {
    border-color: var(--ml-ink);
    color: var(--ml-ink);
    background: transparent;
}

.btn-outline-secondary:hover,
.btn-outline-dark:hover {
    background: var(--ml-ink);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-danger {
    border-color: var(--ml-primary);
    color: var(--ml-primary);
}

.btn-outline-danger:hover {
    background: var(--ml-primary);
    color: #fff;
}

/* =========================================================
   Navbar
   ========================================================= */
header {
    position: relative;
    z-index: 1050;       /* keep header above hero/carousel stacking context */
}

header .navbar {
    backdrop-filter: saturate(180%) blur(16px);
    background: rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 4px 20px rgba(31, 19, 32, 0.06);
    transition: padding 0.3s var(--ml-ease);
    position: relative;
    z-index: 1051;
}

.navbar .dropdown-menu {
    z-index: 1060;        /* above hero overlay (z-index: 2) and carousel */
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.navbar-brand span {
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    position: relative;
    color: var(--ml-ink) !important;
    font-weight: 500;
    transition: color 0.2s var(--ml-ease);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 4px;
    height: 2px;
    background: linear-gradient(90deg, var(--ml-primary), var(--ml-gold));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ml-ease);
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link:hover { color: var(--ml-primary) !important; }

/* Mega menu */
.mega-menu {
    min-width: 560px;
    border: none;
    border-radius: 1rem;
    box-shadow: var(--ml-shadow);
    animation: fadeSlide 0.25s var(--ml-ease) both;
}

.mega-menu .dropdown-item {
    padding: 0.4rem 0.6rem;
    border-radius: 0.4rem;
    transition: background 0.2s var(--ml-ease), color 0.2s var(--ml-ease), padding-left 0.2s var(--ml-ease);
}

.mega-menu .dropdown-item:hover {
    background: rgba(183, 22, 83, 0.06);
    color: var(--ml-primary);
    padding-left: 1rem;
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Cart badge pulse */
.nav-link .badge {
    animation: pulse 1.6s var(--ml-ease) infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50%      { transform: translate(-50%, -50%) scale(1.18); }
}

/* =========================================================
   Hero carousel
   ========================================================= */
#heroCarousel,
.carousel {
    position: relative;
    z-index: 0;           /* keep hero below the navbar dropdown */
}

.hero-slide {
    height: 540px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-image: inherit;
    transform: scale(1.08);
    animation: kenburns 14s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes kenburns {
    from { transform: scale(1.0)  translate(0, 0); }
    to   { transform: scale(1.12) translate(-1%, -1%); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(120deg, rgba(31, 19, 32, 0.68) 0%, rgba(31, 19, 32, 0.20) 60%, transparent 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 5rem;
}

.hero-overlay h1 {
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 1rem;
    text-shadow: 0 4px 28px rgba(0, 0, 0, 0.35);
    animation: heroIn 0.9s var(--ml-ease) both;
}

.hero-overlay .lead {
    max-width: 540px;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
    animation: heroIn 0.9s 0.15s var(--ml-ease) both;
}

.hero-overlay .btn {
    animation: heroIn 0.9s 0.3s var(--ml-ease) both;
}

.carousel-item.active .hero-overlay h1,
.carousel-item.active .hero-overlay .lead,
.carousel-item.active .hero-overlay .btn {
    animation-play-state: running;
}

@keyframes heroIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.carousel-control-prev, .carousel-control-next {
    width: 4%;
    opacity: 0.65;
}

/* =========================================================
   Promo tiles
   ========================================================= */
.promo-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    border-radius: 1rem;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s var(--ml-ease), box-shadow 0.35s var(--ml-ease);
    background-image: linear-gradient(135deg, var(--ml-primary), var(--ml-primary-dark));
}

.promo-tile:nth-child(odd) {
    background-image: linear-gradient(135deg, #2a1421, var(--ml-primary));
}

.promo-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.7s var(--ml-ease);
}

.promo-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--ml-shadow);
    color: #fff;
}

.promo-tile:hover::after {
    transform: translateX(100%);
}

/* =========================================================
   Cards & products
   ========================================================= */
.card {
    border: none;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 6px 18px rgba(31, 19, 32, 0.06);
    overflow: hidden;
    transition: transform 0.3s var(--ml-ease), box-shadow 0.3s var(--ml-ease);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(31, 19, 32, 0.08);
    font-weight: 600;
}

.product-card {
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ml-shadow-lg);
}

.product-card .product-img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #f7f2f4;
    transition: transform 0.6s var(--ml-ease);
}

.product-card:hover .product-img {
    transform: scale(1.06);
}

.product-card .card-title a {
    transition: color 0.2s var(--ml-ease);
}

.product-card:hover .card-title a {
    color: var(--ml-primary) !important;
}

.product-card .badge.bg-dark {
    background: linear-gradient(135deg, var(--ml-ink), var(--ml-primary-dark)) !important;
    border-radius: 999px;
    padding: 0.4rem 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    backdrop-filter: blur(4px);
}

/* =========================================================
   Forms
   ========================================================= */
.form-control, .form-select {
    border-radius: 0.75rem;
    padding: 0.65rem 0.95rem;
    border: 1px solid rgba(31, 19, 32, 0.14);
    transition: border-color 0.2s var(--ml-ease), box-shadow 0.2s var(--ml-ease);
}

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ml-ink);
}

/* =========================================================
   Tables
   ========================================================= */
.table {
    --bs-table-bg: transparent;
}

.table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: var(--ml-muted);
}

/* =========================================================
   Sections & scroll reveal
   ========================================================= */
.section-fade {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ml-ease), transform 0.7s var(--ml-ease);
}

.section-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   Auth (Identity) page polish
   ========================================================= */
.auth-page {
    min-height: calc(100vh - 220px);
    padding: 3rem 0 5rem;
    background:
        radial-gradient(700px 400px at 90% 10%, rgba(247, 184, 203, 0.45), transparent 70%),
        radial-gradient(600px 380px at 5% 95%, rgba(201, 169, 106, 0.18), transparent 70%);
}

.auth-shell {
    max-width: 460px;
    margin: 0 auto;
    padding: 2.75rem 2.25rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 1.25rem;
    box-shadow: var(--ml-shadow-lg);
    backdrop-filter: blur(14px);
    animation: fadeUp 0.6s var(--ml-ease) both;
}

.auth-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}

.auth-shell .form-floating > label {
    color: var(--ml-muted);
}

.auth-shell .form-floating > .form-control {
    border-radius: 0.85rem;
    background: #fff;
}

.auth-shell a {
    color: var(--ml-primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-shell a:hover {
    color: var(--ml-primary-dark);
    text-decoration: underline;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* The default Identity UI markup uses col-md-4 wrappers and h2 headings.
   Give them a premium look without scaffolding the pages. */
.identity-body main > .row,
.identity-body section {
    animation: fadeUp 0.6s var(--ml-ease) both;
}

/* =========================================================
   Legacy footer (no longer used; kept harmless)
   ========================================================= */
.footer {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(31, 19, 32, 0.06);
    color: var(--ml-muted);
}

/* =========================================================
   Misc utilities
   ========================================================= */
.shadow-soft { box-shadow: var(--ml-shadow) !important; }
.rounded-xl  { border-radius: 1rem !important; }

/* =========================================================
   Cart page
   ========================================================= */
.cart-page { padding: 2.5rem 0 5rem; }

.cart-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    margin: 0;
    background: linear-gradient(135deg, var(--ml-ink), var(--ml-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cart-card,
.cart-summary {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--ml-shadow);
    background: #fff;
}

.cart-row {
    display: grid;
    grid-template-columns: 80px 1fr 160px 110px 30px;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(31, 19, 32, 0.06);
    transition: background 0.2s var(--ml-ease);
}

.cart-row:last-child { border-bottom: none; }
.cart-row:hover { background: rgba(247, 184, 203, 0.08); }

.cart-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.75rem;
    background: #f7f2f4;
}

.cart-info .text-decoration-none { color: var(--ml-ink); }
.cart-info .text-decoration-none:hover { color: var(--ml-primary); }

.cart-total {
    font-weight: 700;
    text-align: right;
    font-size: 1.05rem;
}

.cart-qty .form-control { max-width: 70px; }

.cart-grand {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--ml-primary);
}

.cart-empty {
    border: 2px dashed rgba(31, 19, 32, 0.12);
    background: rgba(255, 255, 255, 0.6);
    border-radius: 1rem;
}

.cart-empty-icon { font-size: 3rem; }

@media (max-width: 767.98px) {
    .cart-row {
        grid-template-columns: 70px 1fr 30px;
        grid-template-areas:
            "thumb info remove"
            "thumb qty   qty"
            "thumb total total";
        row-gap: 0.5rem;
    }
    .cart-thumb { grid-area: thumb; }
    .cart-info { grid-area: info; }
    .cart-qty { grid-area: qty; }
    .cart-total { grid-area: total; text-align: left; }
    .cart-remove { grid-area: remove; }
}

/* =========================================================
   Admin shell
   ========================================================= */
.admin-body {
    background: #f4f1f3;
    min-height: 100vh;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--ml-ink);
    padding-bottom: 60px;
}

.admin-nav {
    background: linear-gradient(135deg, #1a0b14 0%, var(--ml-primary-dark) 60%, var(--ml-primary) 100%);
    color: #fff;
    box-shadow: 0 8px 30px rgba(31, 19, 32, 0.25);
    margin-bottom: 1.5rem;
}

.admin-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.admin-brand span {
    background: linear-gradient(135deg, var(--ml-accent), var(--ml-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-nav-links { gap: 0.25rem; margin-bottom: 0; padding-left: 1rem; }

.admin-nav-links .nav-link {
    color: rgba(255, 255, 255, 0.78) !important;
    font-weight: 500;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    transition: background 0.2s var(--ml-ease), color 0.2s var(--ml-ease);
}

.admin-nav-links .nav-link::after { display: none; }

.admin-nav-links .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.10);
}

.admin-nav-links .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.admin-user {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
}

.admin-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ml-accent), var(--ml-gold));
    color: var(--ml-primary-dark);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.admin-shell { padding-bottom: 2rem; }

.admin-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin: 0;
}

.admin-footer { background: transparent; }
.admin-credit {
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Stat tiles */
.stat-tile {
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem 1.4rem;
    box-shadow: 0 8px 24px rgba(31, 19, 32, 0.06);
    border: 1px solid rgba(31, 19, 32, 0.04);
    height: 100%;
    transition: transform 0.25s var(--ml-ease), box-shadow 0.25s var(--ml-ease);
}

.stat-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(31, 19, 32, 0.12);
}

.stat-tile .stat-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    color: var(--ml-muted);
    font-weight: 600;
}

.stat-tile .stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    line-height: 1.1;
    margin: 0.4rem 0 0.3rem;
}

.stat-tile .stat-sub {
    font-size: 0.82rem;
    color: var(--ml-muted);
}

.stat-tile--primary {
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-primary-dark));
    color: #fff;
    border: none;
}

.stat-tile--primary .stat-label,
.stat-tile--primary .stat-sub { color: rgba(255, 255, 255, 0.85); }

.stat-tile--soft {
    background: linear-gradient(135deg, #fff, #fbf6f8);
}

/* Admin cards */
.admin-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(31, 19, 32, 0.05);
    overflow: hidden;
}

.admin-card .card-header {
    background: #fff;
    border-bottom: 1px solid rgba(31, 19, 32, 0.06);
    font-weight: 600;
    padding: 0.85rem 1.1rem;
}

.admin-card .table thead th {
    background: #fbf6f8;
    border-bottom: 1px solid rgba(31, 19, 32, 0.06);
}

.admin-card .list-group-item {
    border-color: rgba(31, 19, 32, 0.06);
    padding: 0.85rem 1.1rem;
}

/* Order status badges */
.status-badge {
    border-radius: 999px;
    padding: 0.35em 0.7em;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.status-pending,
.status-awaitingpayment { background: #fff3cd; color: #6e4f00; }
.status-paymentsubmitted { background: #e0e9ff; color: #1d3a8a; }
.status-paid             { background: #d1f5e0; color: #0f5a32; }
.status-shipped          { background: #cfe4ff; color: #0a4690; }
.status-delivered        { background: #d2f4dd; color: #075a2a; }
.status-cancelled,
.status-paymentrejected  { background: #fadcdc; color: #842029; }
.status-returned         { background: #ede1f0; color: #4d2055; }

/* =========================================================
   Editorial storefront tokens
   ========================================================= */

/* Promo ticker */
.promo-ticker {
    background: linear-gradient(135deg, var(--ml-ink), var(--ml-primary-dark));
    color: #fff;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    overflow: hidden;
    position: relative;
}

.ticker-track {
    display: flex;
    gap: 3.5rem;
    padding: 0.55rem 0;
    white-space: nowrap;
    width: max-content;
    animation: ticker-slide 38s linear infinite;
}

.ticker-track span::before {
    content: '\2666';
    margin-right: 0.7rem;
    color: var(--ml-gold);
}

@keyframes ticker-slide {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Eyebrow + section heads */
.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--ml-primary);
    margin-bottom: 0.5rem;
}

.eyebrow-light {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 0.5rem 1rem;
}

.section-head .eyebrow { margin-bottom: 0.2rem; }
.section-head h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin: 0;
    flex: 1 1 100%;
    order: 2;
}
.section-head .eyebrow,
.section-head .section-link { flex: 0 0 auto; }
.section-head .section-link {
    order: 3;
    color: var(--ml-ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: auto;
}
.section-head .section-link:hover { color: var(--ml-primary); }

/* Hero editorial */
.hero-editorial {
    padding: 4rem 0 3rem;
    position: relative;
}

.hero-copy { padding-right: 2rem; }

.hero-headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 5.2vw, 4.6rem);
    line-height: 1.05;
    margin-bottom: 1.25rem;
    color: var(--ml-ink);
}

.hero-lead {
    color: var(--ml-muted);
    font-size: 1.15rem;
    max-width: 520px;
    margin-bottom: 1.6rem;
}

.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(31, 19, 32, 0.08);
}

.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats strong {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    line-height: 1;
}
.hero-stats span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ml-muted);
    margin-top: 0.4rem;
}

.hero-portrait {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--ml-shadow-lg);
    aspect-ratio: 4 / 5;
    background: #f7f2f4;
}

.hero-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 0.8s var(--ml-ease);
}

.hero-portrait:hover img { transform: scale(1.06); }

.hero-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--ml-primary);
    color: #fff;
    border-radius: 999px;
    padding: 0.9rem 1.2rem;
    text-align: center;
    box-shadow: 0 10px 24px rgba(183, 22, 83, 0.35);
}

.hero-badge-pct {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
}

.hero-badge-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-top: 0.2rem;
}

.hero-chip {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    padding: 0.75rem 1.1rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    color: var(--ml-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.3;
}

.hero-chip strong {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--ml-ink);
    text-transform: none;
    letter-spacing: normal;
}

@media (max-width: 991.98px) {
    .hero-editorial { padding: 2rem 0; }
    .hero-copy { padding-right: 0; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Perk strip */
.perk-strip {
    background: #fff;
    border-top: 1px solid rgba(31, 19, 32, 0.06);
    border-bottom: 1px solid rgba(31, 19, 32, 0.06);
    padding: 1.5rem 0;
    margin: 2rem 0;
}

.perk-strip .perk { padding: 0.25rem 0.5rem; }
.perk-title {
    font-weight: 700;
    color: var(--ml-ink);
    font-size: 0.95rem;
}

.perk-sub {
    color: var(--ml-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Category tiles */
.category-tile {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    border-radius: 1.25rem;
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--ml-shadow);
    transition: transform 0.4s var(--ml-ease), box-shadow 0.4s var(--ml-ease);
}

.category-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s var(--ml-ease);
}

.category-tile:hover { transform: translateY(-4px); box-shadow: var(--ml-shadow-lg); }
.category-tile:hover img { transform: scale(1.08); }

.category-tile-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    color: #fff;
    background: linear-gradient(180deg, transparent 40%, rgba(31, 19, 32, 0.78) 100%);
}

.category-tile-overlay h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 0.2rem 0 0;
}

/* Story section */
.story-section {
    background: #fff;
    padding: 4rem 0;
    border-radius: 1.5rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    box-shadow: var(--ml-shadow);
}

.story-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.25rem;
    aspect-ratio: 5 / 6;
}

.story-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin: 0.4rem 0 1rem;
}

.story-text { color: var(--ml-muted); font-size: 1.02rem; line-height: 1.7; }

.story-stat {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
    border-left: 3px solid var(--ml-primary);
    padding-left: 0.8rem;
}

.story-stat strong {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    line-height: 1;
}

.story-stat span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ml-muted);
    margin-top: 0.3rem;
}

/* Testimonials */
.testimonial-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: var(--ml-shadow);
    height: 100%;
    transition: transform 0.3s var(--ml-ease);
}

.testimonial-card:hover { transform: translateY(-3px); }

.testimonial-stars {
    color: var(--ml-gold);
    letter-spacing: 0.1em;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.testimonial-card p {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--ml-ink);
    line-height: 1.55;
}

.testimonial-author {
    color: var(--ml-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.testimonial-author span { color: var(--ml-primary); font-weight: 600; }

/* =========================================================
   Promo flyer (popup)
   ========================================================= */
.promo-flyer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(31, 19, 32, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1080;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ml-ease);
    backdrop-filter: blur(4px);
}

.promo-flyer-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.promo-flyer-backdrop.is-closing {
    opacity: 0;
}

.promo-flyer {
    background: #fff;
    border-radius: 1.5rem;
    max-width: 720px;
    width: 100%;
    overflow: hidden;
    box-shadow: var(--ml-shadow-lg);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s var(--ml-ease);
}

.promo-flyer-backdrop.is-open .promo-flyer { transform: translateY(0); }

@media (min-width: 720px) {
    .promo-flyer { grid-template-columns: 1fr 1fr; }
}

.promo-flyer-media {
    background: linear-gradient(135deg, var(--ml-accent), var(--ml-soft));
    min-height: 220px;
    overflow: hidden;
}

.promo-flyer-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.promo-flyer-body {
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promo-flyer-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin: 0.3rem 0 0.6rem;
}

.promo-flyer-body p {
    color: var(--ml-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.promo-flyer-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
}

.promo-flyer-actions .btn-link {
    color: var(--ml-muted);
    text-decoration: none;
    padding: 0.3rem 0.5rem;
}

.promo-flyer-actions .btn-link:hover { color: var(--ml-ink); }

.promo-flyer-close {
    position: absolute;
    top: 0.6rem;
    right: 0.8rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.85);
    font-size: 1.3rem;
    line-height: 1;
    color: var(--ml-ink);
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s var(--ml-ease), transform 0.2s var(--ml-ease);
}

.promo-flyer-close:hover {
    background: #fff;
    transform: rotate(90deg);
}

/* =========================================================
   Product reviews block
   ========================================================= */
.product-reviews {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(31, 19, 32, 0.08);
}

.product-reviews-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-reviews-head h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 0;
}

.review-rating-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.review-rating-summary .score {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    line-height: 1;
    color: var(--ml-ink);
}

.review-stars {
    color: var(--ml-gold);
    letter-spacing: 0.1em;
    font-size: 0.95rem;
}

.review-stars.muted { color: rgba(31, 19, 32, 0.18); }

.review-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--ml-shadow);
    height: 100%;
}

.review-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.review-card-title {
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
    color: var(--ml-ink);
}

.review-card-meta {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ml-muted);
    margin-bottom: 0.6rem;
}

.review-card-body {
    color: var(--ml-ink);
    line-height: 1.6;
    font-size: 0.95rem;
    white-space: pre-line;
}

.review-form-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: var(--ml-shadow);
    margin-top: 2rem;
}

.review-form-card h4 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.3rem;
}

.review-form-card .form-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ml-muted);
}

.rating-picker {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 0.15rem;
}

.rating-picker input { display: none; }

.rating-picker label {
    font-size: 1.6rem;
    cursor: pointer;
    color: rgba(31, 19, 32, 0.18);
    transition: color 0.15s var(--ml-ease);
    line-height: 1;
}

.rating-picker input:checked ~ label,
.rating-picker label:hover,
.rating-picker label:hover ~ label {
    color: var(--ml-gold);
}

.review-empty {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    color: var(--ml-muted);
    box-shadow: var(--ml-shadow);
}

/* Newsletter club */
.newsletter-club {
    padding: 0 0.5rem;
}

.newsletter-inner {
    background: linear-gradient(135deg, var(--ml-ink) 0%, var(--ml-primary-dark) 70%, var(--ml-primary) 100%);
    color: #fff;
    padding: 4rem 2rem;
    border-radius: 1.5rem;
    text-align: center;
    box-shadow: var(--ml-shadow-lg);
}

.newsletter-inner h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0.5rem 0 1rem;
}

.newsletter-inner h2 em {
    background: linear-gradient(135deg, var(--ml-accent), var(--ml-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: normal;
}

.newsletter-inner p {
    max-width: 540px;
    margin: 0 auto 1.5rem;
    color: rgba(255, 255, 255, 0.85);
}

.newsletter-inner .btn-light {
    background: #fff;
    color: var(--ml-primary-dark);
    font-weight: 700;
    padding: 0.85rem 2.5rem;
}

/* Shop hero */
.shop-hero {
    padding: 3rem 0 1.5rem;
    text-align: center;
}

.shop-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0.3rem 0;
}

.shop-lead {
    max-width: 580px;
    margin: 0 auto;
    color: var(--ml-muted);
}

.shop-grid { padding-bottom: 4rem; }

.filter-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: var(--ml-shadow);
    position: sticky;
    top: 90px;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.chip {
    display: inline-block;
    background: rgba(31, 19, 32, 0.06);
    color: var(--ml-ink);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s var(--ml-ease), color 0.2s var(--ml-ease);
}

.chip:hover { background: rgba(183, 22, 83, 0.10); color: var(--ml-primary); }

.chip.active {
    background: var(--ml-ink);
    color: #fff;
}

.empty-state {
    background: #fff;
    border-radius: 1.25rem;
    padding: 3rem 1.5rem;
    text-align: center;
    box-shadow: var(--ml-shadow);
}

.empty-state .empty-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }

/* Product details */
.product-detail { padding: 2rem 0 5rem; }

.product-media .product-hero-img {
    width: 100%;
    border-radius: 1.25rem;
    box-shadow: var(--ml-shadow);
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.product-info { padding: 1rem 0; }

.product-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin: 0.3rem 0 0.5rem;
}

.product-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ml-primary);
    margin-bottom: 1.2rem;
}

.product-desc {
    color: var(--ml-muted);
    line-height: 1.7;
}

.product-attrs {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    border-top: 1px solid rgba(31, 19, 32, 0.08);
}

.product-attrs li {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(31, 19, 32, 0.06);
    font-size: 0.92rem;
}

.product-attrs li span {
    color: var(--ml-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.add-to-bag .qty-input { max-width: 80px; text-align: center; }

.product-perks {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(31, 19, 32, 0.08);
    display: grid;
    gap: 0.7rem;
}

.product-perks > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.product-perks strong { color: var(--ml-ink); }
.product-perks span { color: var(--ml-muted); text-align: right; }

/* =========================================================
   Footer (multi-column editorial)
   ========================================================= */
.site-footer {
    background: #1a0b14;
    color: rgba(255, 255, 255, 0.78);
    margin-top: 5rem;
    position: relative;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.footer-brand span {
    background: linear-gradient(135deg, var(--ml-accent), var(--ml-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    max-width: 320px;
    line-height: 1.6;
}

.footer-heading {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li { margin-bottom: 0.55rem; }

.footer-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s var(--ml-ease);
}

.footer-list a:hover { color: var(--ml-accent); }

.text-muted-soft { color: rgba(255, 255, 255, 0.55) !important; }

.footer-socials { display: flex; gap: 0.5rem; }
.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s var(--ml-ease), color 0.2s var(--ml-ease), border-color 0.2s var(--ml-ease);
}

.footer-socials a:hover {
    background: var(--ml-primary);
    color: #fff;
    border-color: var(--ml-primary);
}

.footer-subscribe {
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.3rem 0.4rem 0.3rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-subscribe input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.9rem;
}

.footer-subscribe input::placeholder { color: rgba(255, 255, 255, 0.45); }

.footer-subscribe button {
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-primary-dark));
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    cursor: pointer;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 0;
    color: rgba(255, 255, 255, 0.55);
}

.footer-credit {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(135deg, var(--ml-accent), var(--ml-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================================
   Admin: sectioned cards, product list, product form
   ========================================================= */
.admin-section-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(31, 19, 32, 0.05);
    overflow: hidden;
}

.admin-section-card .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.1rem 1.25rem 0.6rem;
    gap: 1rem;
}

.admin-section-card .section-header h6 {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ml-ink);
}

.admin-section-card .section-body { padding: 1rem 1.25rem 1.25rem; }
.admin-section-card .section-body.p-0 { padding: 0; }

.admin-section-card.section-warning {
    border: 1px solid rgba(255, 193, 7, 0.4);
    background: linear-gradient(135deg, #fff8e1, #fff);
}

.admin-section-card.section-warning .section-header h6 { color: #8a5a00; }

.media-preview {
    background: #f7f2f4;
    border-radius: 0.75rem;
    overflow: hidden;
    aspect-ratio: 16 / 11;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-preview img,
.media-preview video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.media-placeholder {
    background: #f7f2f4;
    border: 2px dashed rgba(31, 19, 32, 0.15);
    border-radius: 0.75rem;
    aspect-ratio: 16 / 11;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ml-muted);
    font-size: 0.85rem;
}

.product-thumb {
    width: 56px;
    height: 56px;
    border-radius: 0.65rem;
    overflow: hidden;
    background: #f7f2f4;
    flex: 0 0 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ml-muted);
    font-size: 0.65rem;
    text-align: center;
}

.product-thumb img { width: 100%; height: 100%; object-fit: cover; }

.stock-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 0.25em 0.65em;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stock-badge.stock-ok   { background: #d2f4dd; color: #075a2a; }
.stock-badge.stock-low  { background: #fff3cd; color: #6e4f00; }
.stock-badge.stock-out  { background: #fadcdc; color: #842029; }
.stock-badge.featured   { background: rgba(183, 22, 83, 0.10); color: var(--ml-primary); }

.receipt-img {
    max-height: 480px;
    border-radius: 0.75rem;
    box-shadow: var(--ml-shadow);
    object-fit: contain;
}

.page-main { min-height: 50vh; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================================
   Admin console (sidebar shell, GH₵ dashboard, charts)
   ========================================================= */
.admin-console {
    margin: 0;
    background: #f4f1f3;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--ml-ink);
    min-height: 100vh;
    display: flex;
}

.admin-sidebar {
    width: 248px;
    background: #ffffff;
    border-right: 1px solid rgba(31, 19, 32, 0.06);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    box-shadow: 0 10px 30px rgba(31, 19, 32, 0.05);
}

.admin-sidebar-brand {
    padding: 1.4rem 1.4rem 1.1rem;
    border-bottom: 1px solid rgba(31, 19, 32, 0.05);
}

.admin-sidebar-brand a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--ml-ink);
}

.admin-sidebar-brand .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 0.7rem;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-primary-dark));
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.02em;
}

.admin-sidebar-brand .brand-text {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.15rem;
}

.admin-sidebar-nav {
    flex: 1;
    padding: 1rem 0.6rem;
    overflow-y: auto;
}

.admin-nav-group + .admin-nav-group { margin-top: 1.1rem; }

.admin-nav-group-title {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ml-muted);
    padding: 0 0.9rem 0.4rem;
    font-weight: 600;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.9rem;
    margin: 0.1rem 0;
    border-radius: 0.6rem;
    color: var(--ml-ink);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.admin-nav-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--ml-muted);
}

.admin-nav-item:hover {
    background: rgba(194, 24, 91, 0.06);
    color: var(--ml-primary);
}

.admin-nav-item:hover svg { color: var(--ml-primary); }

.admin-nav-item.active {
    background: linear-gradient(135deg, rgba(194, 24, 91, 0.12), rgba(194, 24, 91, 0.05));
    color: var(--ml-primary);
    font-weight: 600;
}

.admin-nav-item.active svg { color: var(--ml-primary); }

.admin-sidebar-footer {
    padding: 0.9rem 1.2rem;
    border-top: 1px solid rgba(31, 19, 32, 0.05);
    color: var(--ml-muted);
}

.admin-sidebar-footer a {
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.admin-main {
    flex: 1;
    margin-left: 248px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: #ffffff;
    border-bottom: 1px solid rgba(31, 19, 32, 0.06);
    padding: 0.75rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-search {
    position: relative;
    flex: 1;
    max-width: 460px;
}

.admin-search svg {
    position: absolute;
    top: 50%;
    left: 0.85rem;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--ml-muted);
}

.admin-search input {
    width: 100%;
    border: 1px solid rgba(31, 19, 32, 0.08);
    background: #f7f4f6;
    border-radius: 999px;
    padding: 0.5rem 1rem 0.5rem 2.3rem;
    font-size: 0.9rem;
    transition: box-shadow 0.2s ease;
}

.admin-search input:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(194, 24, 91, 0.15);
}

.admin-topbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.admin-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(31, 19, 32, 0.08);
    background: #fff;
    color: var(--ml-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-icon-btn svg { width: 18px; height: 18px; }
.admin-icon-btn:hover { background: #fbf6f8; color: var(--ml-primary); }

.admin-user-chip {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.25rem 0.7rem 0.25rem 0.3rem;
    border-radius: 999px;
    background: #fbf6f8;
}

.admin-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-primary-dark));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.admin-user-meta { display: flex; flex-direction: column; line-height: 1.1; }
.admin-user-name { font-weight: 600; font-size: 0.88rem; }
.admin-user-role { font-size: 0.72rem; color: var(--ml-muted); }

.admin-logout {
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
}

.admin-logout svg { width: 16px; height: 16px; }

.admin-content {
    flex: 1;
    padding: 1.6rem 1.8rem 2.4rem;
}

.admin-footer {
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.8rem;
    border-top: 1px solid rgba(31, 19, 32, 0.05);
    color: var(--ml-muted);
    font-size: 0.85rem;
    background: #fff;
}

.admin-footer .admin-credit {
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    text-decoration: none;
}

.admin-sidebar-toggle {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1060;
    width: 40px;
    height: 40px;
    border-radius: 0.6rem;
    border: 1px solid rgba(31, 19, 32, 0.1);
    background: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 6px 18px rgba(31, 19, 32, 0.1);
}

.admin-sidebar-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--ml-ink);
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }
    .admin-sidebar.is-open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .admin-sidebar-toggle { display: flex; }
    .admin-topbar { padding-left: 4rem; }
}

/* Dashboard tokens */
.admin-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.6rem;
    flex-wrap: wrap;
}

.admin-page-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin: 0;
}

.admin-page-sub {
    margin: 0.2rem 0 0;
    color: var(--ml-muted);
    font-size: 0.92rem;
}

.admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.4rem;
}

@media (max-width: 1199.98px) { .admin-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px)  { .admin-kpi-grid { grid-template-columns: 1fr; } }

.admin-kpi {
    background: #fff;
    border: 1px solid rgba(31, 19, 32, 0.05);
    border-radius: 1rem;
    padding: 1.1rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    box-shadow: 0 8px 24px rgba(31, 19, 32, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.admin-kpi:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(31, 19, 32, 0.1);
}

.admin-kpi-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.85rem;
    line-height: 1.1;
}

.admin-kpi-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    color: var(--ml-muted);
    font-weight: 600;
    margin-top: 0.3rem;
}

.admin-kpi-trend {
    margin-top: 0.4rem;
    font-size: 0.78rem;
    color: #0f5a32;
}

.admin-kpi-trend.up { color: #0f5a32; }

.admin-kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.7rem;
    background: rgba(194, 24, 91, 0.08);
    color: var(--ml-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-kpi-icon svg { width: 20px; height: 20px; }

.admin-kpi--primary {
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-primary-dark));
    color: #fff;
    border: none;
}

.admin-kpi--primary .admin-kpi-label { color: rgba(255, 255, 255, 0.85); }
.admin-kpi--primary .admin-kpi-trend { color: rgba(255, 255, 255, 0.9); }
.admin-kpi--primary .admin-kpi-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.admin-mini {
    background: #fff;
    border: 1px solid rgba(31, 19, 32, 0.05);
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    box-shadow: 0 6px 20px rgba(31, 19, 32, 0.04);
    height: 100%;
}

.admin-mini-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    color: var(--ml-muted);
    font-weight: 600;
}

.admin-mini-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.55rem;
    line-height: 1.1;
    margin: 0.35rem 0 0.2rem;
}

.admin-mini-sub { font-size: 0.8rem; color: var(--ml-muted); }

.admin-card {
    background: #fff;
    border: 1px solid rgba(31, 19, 32, 0.05);
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(31, 19, 32, 0.04);
    overflow: hidden;
}

.admin-card-head {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(31, 19, 32, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-card-head h5 {
    font-family: 'Playfair Display', serif;
    margin: 0;
    font-size: 1.1rem;
}

.admin-chart-card { padding-bottom: 1rem; }
.admin-chart-wrap { padding: 1rem 1.2rem; min-height: 240px; }

.admin-empty {
    padding: 1.5rem;
    text-align: center;
    color: var(--ml-muted);
}

.admin-empty-ring {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin: 0.5rem auto 1rem;
    background:
        radial-gradient(circle 36px at center, #fff 0 36px, transparent 37px),
        conic-gradient(rgba(31, 19, 32, 0.06) 0 360deg);
}

/* === Product gallery (storefront details) === */
.product-hero-wrap {
    background: #f7f2f4;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-hero-wrap .product-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.product-thumb-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-thumb-btn {
    width: 64px;
    height: 64px;
    border-radius: 0.6rem;
    overflow: hidden;
    border: 2px solid transparent;
    background: #f7f2f4;
    padding: 0;
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.product-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-thumb-btn:hover { transform: translateY(-1px); }
.product-thumb-btn.active { border-color: var(--ml-accent, #b6396a); }

/* === Color swatches (storefront details) === */
.product-swatches { margin-top: 0.75rem; }

.swatch-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.swatch {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(31, 19, 32, 0.15);
    padding: 3px;
    background: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.swatch:hover { transform: translateY(-1px); }

.swatch.active {
    border-color: var(--ml-accent, #b6396a);
    box-shadow: 0 0 0 2px rgba(182, 57, 106, 0.18);
}

.swatch .swatch-dot {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--swatch-color, #ddd);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* === Admin product gallery editor === */
.product-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.6rem;
}

.product-gallery-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #f7f2f4;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
}

.product-gallery-tile.is-primary {
    border-color: var(--ml-accent, #b6396a);
}

.product-gallery-tile img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.product-gallery-tile .tile-controls {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.4rem 0.5rem 0.5rem;
    background: #fff;
}

.product-gallery-tile .tile-controls .form-check {
    margin: 0;
    padding-left: 1.25rem;
    line-height: 1.1;
}

/* =====================================================
   Admin notification bell (new-order alerts in topbar)
   ===================================================== */
.admin-notify { position: relative; }

.admin-notify-btn { position: relative; }

.admin-notify-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--ml-primary, #c2185b);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
}

.admin-notify-btn.is-ringing {
    animation: adminBellShake 0.8s ease-in-out 2;
    color: var(--ml-primary, #c2185b);
    border-color: rgba(194, 24, 91, 0.35);
}

.admin-notify-btn.is-ringing .admin-notify-badge {
    animation: adminBadgePulse 0.8s ease-in-out 2;
}

@keyframes adminBellShake {
    0%, 100% { transform: rotate(0); }
    20%      { transform: rotate(-14deg); }
    40%      { transform: rotate(12deg); }
    60%      { transform: rotate(-8deg); }
    80%      { transform: rotate(6deg); }
}

@keyframes adminBadgePulse {
    0%, 100% { box-shadow: 0 0 0 2px #fff, 0 0 0 0 rgba(194, 24, 91, 0.55); }
    50%      { box-shadow: 0 0 0 2px #fff, 0 0 0 6px rgba(194, 24, 91, 0.0); }
}

.admin-notify-menu {
    width: 320px;
    max-width: 88vw;
    padding: 0;
    border: 1px solid rgba(31, 19, 32, 0.08);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(31, 19, 32, 0.12);
    overflow: hidden;
}

.admin-notify-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.9rem;
    background: #fbf6f8;
    border-bottom: 1px solid rgba(31, 19, 32, 0.06);
    font-weight: 600;
    color: var(--ml-ink, #1f1320);
    font-size: 0.85rem;
}

.admin-notify-viewall {
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--ml-primary, #c2185b);
}

.admin-notify-viewall:hover { text-decoration: underline; }

.admin-notify-list {
    max-height: 340px;
    overflow-y: auto;
}

.admin-notify-item {
    display: block;
    padding: 0.65rem 0.9rem;
    border-bottom: 1px solid rgba(31, 19, 32, 0.05);
    text-decoration: none;
    color: var(--ml-ink, #1f1320);
}

.admin-notify-item:last-child { border-bottom: 0; }

.admin-notify-item:hover { background: #fbf6f8; }

.admin-notify-item-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.admin-notify-item-meta {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    font-size: 0.72rem;
    color: #6b5868;
}

.admin-notify-status {
    color: var(--ml-primary, #c2185b);
    font-weight: 600;
}

.admin-notify-empty {
    padding: 1.25rem 0.9rem;
    text-align: center;
    font-size: 0.82rem;
    color: #8a7986;
}

/* =====================================================
   Admin idle lockscreen (re-auth overlay after 5 min idle)
   ===================================================== */
.admin-lock-btn { position: relative; }

body.admin-is-locked { overflow: hidden; }

.admin-lockscreen {
    position: fixed;
    inset: 0;
    z-index: 1090;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(31, 19, 32, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: adminLockFadeIn 180ms ease-out;
}

@keyframes adminLockFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.admin-lockscreen-card {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 18px;
    padding: 2rem 1.75rem 1.5rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    text-align: center;
}

.admin-lockscreen-avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ml-primary, #c2185b), var(--ml-primary-dark, #8e1140));
    color: #fff;
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 72px;
    text-align: center;
    box-shadow: 0 8px 18px rgba(194, 24, 91, 0.35);
}

.admin-lockscreen-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: var(--ml-ink, #1f1320);
}

.admin-lockscreen-sub {
    font-size: 0.82rem;
    color: #8a7986;
    margin-bottom: 1.25rem;
}

.admin-lockscreen-field {
    margin-bottom: 0.75rem;
    text-align: left;
}

.admin-lockscreen-field .form-control-lg {
    border-radius: 10px;
}

.admin-lockscreen-error {
    background: #ffe0e8;
    color: #b3134a;
    border: 1px solid rgba(194, 24, 91, 0.25);
    border-radius: 8px;
    padding: 0.45rem 0.7rem;
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
    text-align: left;
}

.admin-lockscreen-submit {
    background: var(--ml-primary, #c2185b);
    border-color: var(--ml-primary, #c2185b);
    border-radius: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-lockscreen-submit:hover,
.admin-lockscreen-submit:focus {
    background: var(--ml-primary-dark, #8e1140);
    border-color: var(--ml-primary-dark, #8e1140);
}

.admin-lockscreen-foot {
    margin-top: 1rem;
    font-size: 0.78rem;
    color: #8a7986;
}

.admin-lockscreen-foot .btn-link {
    font-size: 0.78rem;
    color: var(--ml-primary, #c2185b);
    text-decoration: none;
}

.admin-lockscreen-foot .btn-link:hover { text-decoration: underline; }

/* =====================================================
   Admin toast notifications
   ===================================================== */
.admin-toast-region {
    z-index: 1080;
    pointer-events: none;
}

.admin-toast-region .toast {
    pointer-events: auto;
}

.admin-toast {
    border-radius: 12px;
    overflow: hidden;
    min-width: 280px;
}

.admin-toast .toast-header {
    background: #fff;
    border-bottom: 1px solid rgba(31, 19, 32, 0.06);
    color: var(--ml-ink, #1f1320);
    font-weight: 600;
}

.admin-toast .toast-body {
    background: #fff;
    color: #3d2a3a;
    font-size: 0.88rem;
}

.admin-toast-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 0.5rem;
    background: var(--ml-primary, #c2185b);
}

.admin-toast-success .admin-toast-dot { background: #2e9e6b; }
.admin-toast-info .admin-toast-dot    { background: #2778d4; }
.admin-toast-warning .admin-toast-dot { background: #d39000; }
.admin-toast-danger .admin-toast-dot  { background: #c2185b; }

.admin-toast-success { border-left: 4px solid #2e9e6b; }
.admin-toast-info    { border-left: 4px solid #2778d4; }
.admin-toast-warning { border-left: 4px solid #d39000; }
.admin-toast-danger  { border-left: 4px solid #c2185b; }

/* =====================================================
   Thermal receipt (80mm) — Views/Checkout/Receipt.cshtml
   ===================================================== */
.receipt-page {
    margin: 0;
    padding: 0;
    background: #ece7ea;
    color: #111;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
}

.receipt-toolbar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding: 0.75rem;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.thermal-receipt {
    width: 80mm;
    min-height: 100mm;
    margin: 1.5rem auto 3rem;
    padding: 6mm 5mm 8mm;
    background: #fff;
    color: #000;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.35;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-radius: 2px;
}

.rcpt-center  { text-align: center; }
.rcpt-strong  { font-weight: 700; }
.rcpt-lg      { font-size: 15px; letter-spacing: 0.5px; }
.rcpt-sm      { font-size: 11px; }
.rcpt-muted   { color: #555; }

.rcpt-logo-wrap {
    margin-bottom: 4px;
}

.rcpt-logo {
    display: block;
    margin: 0 auto 4px;
    max-width: 60mm;
    max-height: 24mm;
    object-fit: contain;
}
.rcpt-wrap    { word-wrap: break-word; overflow-wrap: anywhere; }

.rcpt-row {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.rcpt-row > span:last-child {
    text-align: right;
    white-space: nowrap;
}

.rcpt-sep {
    border-top: 1px dashed #000;
    margin: 6px 0;
}

.rcpt-item {
    margin-bottom: 4px;
}

.rcpt-item-name {
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.rcpt-total {
    font-size: 16px;
    font-weight: 700;
    margin: 4px 0;
}

.rcpt-cut {
    margin-top: 14px;
    text-align: center;
    font-size: 11px;
    color: #444;
    letter-spacing: 1px;
}

/* Printing — 80mm roll, no margins, no toolbar */
@page {
    size: 80mm auto;
    margin: 0;
}

@media print {
    .receipt-page {
        background: #fff;
    }

    .receipt-toolbar { display: none !important; }

    .thermal-receipt {
        width: 80mm;
        margin: 0;
        padding: 4mm 4mm 6mm;
        box-shadow: none;
        border-radius: 0;
    }

    /* Avoid splitting a line item across two paper segments */
    .rcpt-item, .rcpt-row { page-break-inside: avoid; }

    .rcpt-logo {
        max-height: 22mm;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ------------------------------------------------------------------
   MoMo telco cards (checkout + confirmation)
   ------------------------------------------------------------------ */
.momo-payment-block {
    border: 1px solid #ead7c8;
    background: #fff8f0;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 20px;
}

.momo-payment-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 12px;
}

.momo-payment-foot {
    margin-top: 10px;
}

.momo-accounts .momo-card {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 14px 14px 14px 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #ecdfd4;
    box-shadow: 0 2px 12px rgba(60, 30, 0, 0.04);
    height: 100%;
}

.momo-card-badge {
    flex: 0 0 auto;
    min-width: 64px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    letter-spacing: .04em;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.momo-mtn .momo-card-badge { background: #ffcb05; color: #1a1a1a; }
.momo-telecel .momo-card-badge { background: #e60000; }
.momo-airteltigo .momo-card-badge { background: #006fb9; }

.momo-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.momo-card-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #7a5a3f;
}

.momo-card-number {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    line-height: 1.1;
}

.momo-card-number:hover { color: #b3265a; }

.momo-card-number svg {
    color: #b3265a;
    flex: 0 0 auto;
}

.momo-card-merchant {
    font-size: 12px;
    color: #555;
}

/* ------------------------------------------------------------------
   Global WhatsApp help floating action button
   ------------------------------------------------------------------ */
.wa-help-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1080;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 12px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
    font-weight: 600;
    line-height: 1;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.wa-help-fab:hover,
.wa-help-fab:focus {
    color: #fff;
    background: #1ebe57;
    box-shadow: 0 14px 28px rgba(37, 211, 102, 0.45);
    transform: translateY(-1px);
}

.wa-help-fab svg {
    flex: 0 0 auto;
}

.wa-help-fab .wa-help-text {
    font-size: 14px;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .wa-help-fab {
        padding: 12px;
    }
    .wa-help-fab .wa-help-text {
        display: none;
    }
}

@media print {
    .wa-help-fab { display: none !important; }
}