/* ==========================================================================
   Market Zone — storefront theme
   Brand colours live in :root. When the logo arrives, adjust these values
   (and --mh-primary-rgb) to match; nothing else needs to change.
   ========================================================================== */

:root {
    --mh-primary: #3D3BF3;
    --mh-primary-rgb: 61, 59, 243;
    --mh-primary-dark: #2B29C9;
    --mh-primary-soft: #EEEEFE;
    --mh-accent: #FF7A1A;
    --mh-accent-dark: #E0630A;
    --mh-accent-soft: #FFF1E6;

    --mh-text: #0F172A;
    --mh-muted: #64748B;
    --mh-surface: #F8FAFC;
    --mh-border: #E2E8F0;
    --mh-white: #FFFFFF;

    --mh-success: #16A34A;
    --mh-warning: #F59E0B;
    --mh-danger: #DC2626;
    --mh-whatsapp: #25D366;

    --mh-radius: 12px;
    --mh-radius-sm: 8px;
    --mh-shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
    --mh-shadow: 0 4px 12px rgba(15, 23, 42, .08);
    --mh-shadow-lg: 0 12px 32px rgba(15, 23, 42, .12);

    --mh-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mh-font-heading: "Poppins", var(--mh-font-body);

    --mh-header-height: 72px;
    --mh-bottom-nav-height: 64px;

    /* Bootstrap 5.3 hooks */
    --bs-primary: var(--mh-primary);
    --bs-primary-rgb: var(--mh-primary-rgb);
    --bs-body-font-family: var(--mh-font-body);
    --bs-body-color: var(--mh-text);
    --bs-body-bg: var(--mh-white);
    --bs-secondary-color: var(--mh-muted);
    --bs-border-color: var(--mh-border);
    --bs-border-radius: var(--mh-radius-sm);
    --bs-link-color: var(--mh-primary);
    --bs-link-color-rgb: var(--mh-primary-rgb);
    --bs-link-hover-color: var(--mh-primary-dark);
    --bs-focus-ring-color: rgba(var(--mh-primary-rgb), .25);
}

/* ---------- Base ---------- */

html { scroll-padding-top: calc(var(--mh-header-height) + 16px); }

body {
    font-family: var(--mh-font-body);
    color: var(--mh-text);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .brand-text {
    font-family: var(--mh-font-heading);
    font-weight: 600;
    letter-spacing: -.01em;
}

a { text-decoration: none; }
a:hover { text-decoration: underline; }

.site-main { flex: 1 0 auto; }

.text-accent { color: var(--mh-accent) !important; }
.text-muted { color: var(--mh-muted) !important; }

.skip-link {
    position: absolute; top: 8px; left: 8px; z-index: 2000;
    background: var(--mh-text); color: #fff; padding: 8px 16px; border-radius: var(--mh-radius-sm);
}

:focus-visible {
    outline: 3px solid rgba(var(--mh-primary-rgb), .45);
    outline-offset: 2px;
}

/* ---------- Buttons & forms ---------- */

.btn {
    font-weight: 600;
    border-radius: var(--mh-radius-sm);
    padding: .55rem 1.1rem;
}
.btn-lg { padding: .75rem 1.4rem; font-size: 1rem; }

.btn-primary {
    --bs-btn-bg: var(--mh-primary);
    --bs-btn-border-color: var(--mh-primary);
    --bs-btn-hover-bg: var(--mh-primary-dark);
    --bs-btn-hover-border-color: var(--mh-primary-dark);
    --bs-btn-active-bg: var(--mh-primary-dark);
    --bs-btn-active-border-color: var(--mh-primary-dark);
    --bs-btn-disabled-bg: var(--mh-primary);
    --bs-btn-disabled-border-color: var(--mh-primary);
}

.btn-accent {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--mh-accent);
    --bs-btn-border-color: var(--mh-accent);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--mh-accent-dark);
    --bs-btn-hover-border-color: var(--mh-accent-dark);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--mh-accent-dark);
    --bs-btn-active-border-color: var(--mh-accent-dark);
}

.btn-outline-primary {
    --bs-btn-color: var(--mh-primary);
    --bs-btn-border-color: var(--mh-primary);
    --bs-btn-hover-bg: var(--mh-primary);
    --bs-btn-hover-border-color: var(--mh-primary);
    --bs-btn-active-bg: var(--mh-primary);
    --bs-btn-active-border-color: var(--mh-primary);
}

.btn-icon {
    width: 44px; height: 44px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--mh-text);
}

.form-control, .form-select {
    border-radius: var(--mh-radius-sm);
    padding: .65rem .9rem;
    border-color: var(--mh-border);
}
.form-control:focus, .form-select:focus {
    border-color: var(--mh-primary);
    box-shadow: 0 0 0 .2rem rgba(var(--mh-primary-rgb), .15);
}
.form-label { font-weight: 500; font-size: .925rem; margin-bottom: .35rem; }
.form-check-input:checked { background-color: var(--mh-primary); border-color: var(--mh-primary); }
.invalid-feedback:empty { display: none !important; }
.input-validation-error { border-color: var(--mh-danger) !important; }

/* ---------- Announcement bar ---------- */

.announcement-bar {
    background: var(--mh-text);
    color: #E2E8F0;
    font-size: .825rem;
    text-align: center;
    padding: .45rem 0;
}
.announcement-bar .bi { color: var(--mh-accent); margin-right: .35rem; }

/* ---------- Header ---------- */

.site-header {
    position: sticky; top: 0; z-index: 1030;
    background: var(--mh-white);
    border-bottom: 1px solid var(--mh-border);
}

.header-inner {
    display: flex; align-items: center; gap: 1rem;
    min-height: var(--mh-header-height);
}

.brand {
    display: inline-flex; align-items: center; gap: .5rem;
    color: var(--mh-text); flex-shrink: 0;
}
.brand:hover { text-decoration: none; color: var(--mh-text); }
.brand-mark {
    width: 38px; height: 38px; border-radius: 10px;
    background: linear-gradient(135deg, var(--mh-primary), #7A5CFA);
    color: #fff; display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
}
.brand-text { font-size: 1.4rem; font-weight: 500; }
.brand-text strong { color: var(--mh-primary); font-weight: 700; }
.site-footer .brand-text strong { color: #A5A4FF; }

.header-search {
    position: relative; flex: 1; max-width: 640px; margin: 0 auto;
    display: flex; align-items: center;
}
.header-search > .bi {
    position: absolute; left: 14px; color: var(--mh-muted); pointer-events: none;
}
.header-search .form-control {
    padding-left: 2.5rem; background: var(--mh-surface); border-color: var(--mh-surface);
    border-radius: 999px;
}
.header-search .form-control:focus { background: #fff; }
.header-search .btn {
    position: absolute; right: 4px; border-radius: 999px; padding: .4rem 1.1rem;
}

.header-actions { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.btn-header-action {
    display: inline-flex; align-items: center; gap: .45rem;
    color: var(--mh-text); font-weight: 500; padding: .5rem .75rem;
    border: 0; background: transparent;
}
.btn-header-action .bi { font-size: 1.35rem; }
.btn-header-action:hover { background: var(--mh-surface); color: var(--mh-text); text-decoration: none; }

.cart-badge {
    position: absolute; top: 2px; left: 26px;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; background: var(--mh-accent); color: #fff;
    font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center;
}
.cart-badge[data-empty="true"] { display: none; }

/* ---------- Category bar (desktop) ---------- */

.category-bar { border-top: 1px solid var(--mh-border); }
.category-bar-list {
    display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0;
}
.category-bar-item { position: relative; }
.category-bar-link {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .8rem .9rem; color: var(--mh-text); font-weight: 500; font-size: .95rem;
}
.category-bar-link:hover { color: var(--mh-primary); text-decoration: none; }

.category-dropdown {
    position: absolute; top: 100%; left: 0; min-width: 240px;
    background: #fff; border: 1px solid var(--mh-border); border-radius: var(--mh-radius);
    box-shadow: var(--mh-shadow-lg); padding: .5rem;
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
    z-index: 1040;
}
.category-bar-item:hover .category-dropdown,
.category-bar-item:focus-within .category-dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.category-dropdown-link, .category-dropdown-all {
    display: block; padding: .55rem .75rem; border-radius: var(--mh-radius-sm);
    color: var(--mh-text); font-size: .925rem;
}
.category-dropdown-link:hover, .category-dropdown-all:hover {
    background: var(--mh-primary-soft); color: var(--mh-primary); text-decoration: none;
}
.category-dropdown-all { font-weight: 600; color: var(--mh-primary); }

/* ---------- Mobile menu ---------- */

.mobile-menu-heading {
    font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
    color: var(--mh-muted); padding: 1.25rem 1.25rem .5rem; margin: 0;
}
.mobile-category-list .accordion-button { font-weight: 600; padding: .9rem 1.25rem; }
.mobile-category-list .accordion-button:not(.collapsed) { background: var(--mh-primary-soft); color: var(--mh-primary); box-shadow: none; }
.mobile-category-link {
    display: block; padding: .75rem 1.25rem .75rem 2rem; color: var(--mh-text);
    border-top: 1px solid var(--mh-surface);
}
.accordion-item > .mobile-category-link { padding-left: 1.25rem; }
.mobile-account-links a, .mobile-account-links button {
    display: flex; align-items: center; gap: .75rem; width: 100%;
    padding: .8rem 1.25rem; color: var(--mh-text); background: none; border: 0; text-align: left;
}
.mobile-account-links .bi { font-size: 1.15rem; color: var(--mh-muted); }

/* ---------- Mobile bottom nav ---------- */

.mobile-bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030;
    height: var(--mh-bottom-nav-height);
    display: flex; background: #fff; border-top: 1px solid var(--mh-border);
    padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bottom-nav a, .mobile-bottom-nav button {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    color: var(--mh-muted); font-size: .7rem; font-weight: 500; background: none; border: 0;
}
.mobile-bottom-nav .bi { font-size: 1.3rem; }
.mobile-bottom-nav a:hover { text-decoration: none; color: var(--mh-primary); }
.mobile-bottom-nav .cart-badge { left: calc(50% + 4px); top: 6px; }

@media (max-width: 991.98px) {
    body { padding-bottom: var(--mh-bottom-nav-height); }
    .whatsapp-float { bottom: calc(var(--mh-bottom-nav-height) + 16px) !important; }
    .brand { margin-right: auto; }
}

/* ---------- WhatsApp float ---------- */

.whatsapp-float {
    position: fixed; right: 20px; bottom: 24px; z-index: 1020;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--mh-whatsapp); color: #fff; font-size: 1.75rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--mh-shadow-lg); transition: transform .15s ease;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.06); text-decoration: none; }

/* ---------- Sections & cards ---------- */

.section { padding: 3rem 0; }
.section-header {
    display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem;
}
.section-title { font-size: 1.6rem; margin: 0; }
.section-subtitle { color: var(--mh-muted); margin: .25rem 0 0; }

.mh-card {
    background: #fff; border: 1px solid var(--mh-border); border-radius: var(--mh-radius);
    box-shadow: var(--mh-shadow-sm);
}

/* ---------- Home: hero ---------- */

.hero {
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 122, 26, .18), transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(122, 92, 250, .18), transparent 45%),
        linear-gradient(135deg, #F5F5FF 0%, #FFF8F2 100%);
    padding: 4rem 0;
    overflow: hidden;
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .4rem;
    background: #fff; color: var(--mh-accent-dark); font-weight: 600; font-size: .825rem;
    padding: .35rem .8rem; border-radius: 999px; box-shadow: var(--mh-shadow-sm);
}
.hero-title { font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.15; margin: 1rem 0; font-weight: 700; }
.hero-title span { color: var(--mh-primary); }
.hero-lead { font-size: 1.1rem; color: var(--mh-muted); max-width: 520px; }
.hero-art {
    position: relative; aspect-ratio: 1; max-width: 420px; margin-left: auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.hero-tile {
    border-radius: 24px; display: flex; align-items: center; justify-content: center;
    font-size: 3.5rem; color: #fff; box-shadow: var(--mh-shadow-lg);
}
.hero-tile:nth-child(1) { background: linear-gradient(135deg, #3D3BF3, #7A5CFA); }
.hero-tile:nth-child(2) { background: linear-gradient(135deg, #FF7A1A, #FFB020); transform: translateY(24px); }
.hero-tile:nth-child(3) { background: linear-gradient(135deg, #10B981, #34D399); }
.hero-tile:nth-child(4) { background: linear-gradient(135deg, #EC4899, #F472B6); transform: translateY(24px); }

/* ---------- Home: category tiles ---------- */

.category-tile {
    display: block; height: 100%; padding: 1.5rem;
    border-radius: var(--mh-radius); color: var(--mh-text);
    background: var(--mh-surface); border: 1px solid var(--mh-border);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.category-tile:hover {
    transform: translateY(-3px); box-shadow: var(--mh-shadow); border-color: transparent;
    text-decoration: none; color: var(--mh-text);
}
.category-tile-icon {
    width: 56px; height: 56px; border-radius: 16px; margin-bottom: 1rem;
    display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
    background: var(--mh-primary-soft); color: var(--mh-primary);
}
.category-tile:nth-child(3n+2) .category-tile-icon { background: var(--mh-accent-soft); color: var(--mh-accent-dark); }
.category-tile-name { font-family: var(--mh-font-heading); font-size: 1.2rem; font-weight: 600; }
.category-tile-subs { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .75rem; }
.chip {
    display: inline-block; font-size: .78rem; padding: .25rem .65rem; border-radius: 999px;
    background: #fff; border: 1px solid var(--mh-border); color: var(--mh-muted);
}

/* ---------- Empty / status pages ---------- */

.empty-state {
    max-width: 520px; margin: 0 auto; padding: 5rem 1rem; text-align: center;
}
.empty-state-icon {
    width: 88px; height: 88px; margin: 0 auto 1.5rem; border-radius: 50%;
    background: var(--mh-primary-soft); color: var(--mh-primary);
    display: flex; align-items: center; justify-content: center; font-size: 2.4rem;
}

/* ---------- Auth ---------- */

.auth-page {
    padding: 3rem 1rem 4rem;
    background: linear-gradient(180deg, var(--mh-surface), #fff);
}
.auth-card {
    max-width: 460px; margin: 0 auto; padding: 2.25rem;
    background: #fff; border: 1px solid var(--mh-border); border-radius: var(--mh-radius);
    box-shadow: var(--mh-shadow);
}
.auth-title { font-size: 1.6rem; margin-bottom: .25rem; }
@media (max-width: 575.98px) { .auth-card { padding: 1.5rem; } }

/* ---------- Trust strip & footer ---------- */

.trust-strip { background: var(--mh-surface); border-top: 1px solid var(--mh-border); padding: 1.75rem 0; }
.trust-item { display: flex; align-items: center; gap: .85rem; }
.trust-item > .bi {
    flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
    background: #fff; color: var(--mh-primary); box-shadow: var(--mh-shadow-sm);
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.trust-item strong { display: block; font-size: .925rem; }
.trust-item span { font-size: .8rem; color: var(--mh-muted); }
@media (max-width: 767.98px) {
    .trust-item { flex-direction: column; text-align: center; gap: .5rem; }
}

.site-footer { background: var(--mh-text); color: #CBD5E1; padding: 3rem 0 1.5rem; }
.footer-muted { color: #94A3B8; font-size: .925rem; }
.footer-heading {
    font-family: var(--mh-font-body); font-size: .8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; font-size: .925rem; }
.footer-links a { color: #CBD5E1; }
.footer-links a:hover { color: #fff; }
.payment-badges { display: flex; flex-wrap: wrap; gap: .5rem; }
.payment-badge {
    font-size: .75rem; padding: .3rem .6rem; border-radius: 6px;
    background: rgba(255, 255, 255, .08); color: #E2E8F0;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2.5rem; padding-top: 1.25rem;
    font-size: .825rem; color: #94A3B8;
}

/* ---------- Toasts ---------- */

.toast-container { z-index: 1090; }

/* Close (✕) buttons: Bootstrap's are ~24px; make them a comfortable 40px tap target. */
.btn-close { box-sizing: content-box; padding: .5rem; width: 1.5rem; height: 1.5rem; background-size: 1rem; }
.offcanvas-header .btn-close { margin: -.5rem -.5rem -.5rem auto; }
.toast { border: 0; border-radius: var(--mh-radius-sm); box-shadow: var(--mh-shadow-lg); }

/* ---------- Content pages ---------- */

.page-header { background: var(--mh-surface); border-bottom: 1px solid var(--mh-border); padding: 2rem 0; }
.page-header h1 { font-size: 1.85rem; margin: 0; }
.prose { max-width: 760px; padding: 2.5rem 0 3.5rem; line-height: 1.7; }
.prose h2 { font-size: 1.25rem; margin: 2rem 0 .75rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }

/* Information pages */
.page-points { list-style: none; padding: 0 !important; }
.page-points li { display: flex; gap: .85rem; margin-bottom: .9rem; }
.page-points .bi { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--mh-primary-soft); color: var(--mh-primary); }
.page-cta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }

.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.facts-grid div { padding: 1rem; border-radius: var(--mh-radius); background: var(--mh-surface); border: 1px solid var(--mh-border); display: flex; flex-direction: column; gap: .15rem; }
.facts-grid .bi { font-size: 1.35rem; color: var(--mh-primary); margin-bottom: .25rem; }
.facts-grid span { font-size: .8rem; color: var(--mh-muted); }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; padding-top: 2.5rem; max-width: 900px; }
.contact-card {
    display: flex; flex-direction: column; gap: .2rem; padding: 1.35rem; border-radius: var(--mh-radius);
    border: 1px solid var(--mh-border); background: #fff; color: var(--mh-text); transition: box-shadow .15s ease, border-color .15s ease;
}
.contact-card:hover { text-decoration: none; color: var(--mh-text); border-color: transparent; box-shadow: var(--mh-shadow); }
.contact-card > .bi { font-size: 1.6rem; color: var(--mh-primary); margin-bottom: .35rem; }
.contact-card span { font-size: .85rem; color: var(--mh-muted); }
.contact-card .contact-card-value { margin-top: .35rem; font-size: .95rem; font-weight: 600; color: var(--mh-text); }
.contact-card.is-whatsapp > .bi { color: var(--mh-whatsapp); }

/* ==========================================================================
   Catalog: cards, listings, filters, product page
   ========================================================================== */

.min-w-0 { min-width: 0; }

.section-link { font-weight: 600; white-space: nowrap; }
.section-link:hover { text-decoration: none; }
.section-link .bi { transition: transform .15s ease; }
.section-link:hover .bi { transform: translateX(3px); }

/* Home category tiles contain links to sub-categories too */
.category-tile { display: flex; flex-direction: column; }
.category-tile-main { display: block; color: inherit; }
.category-tile-main:hover { color: inherit; text-decoration: none; }
.category-tile-name .bi { font-size: .9em; opacity: 0; transform: translateX(-4px); transition: all .15s ease; }
.category-tile:hover .category-tile-name .bi { opacity: 1; transform: none; }
.category-tile-image { width: 64px; height: 64px; object-fit: cover; border-radius: 16px; margin-bottom: 1rem; }
a.chip:hover { border-color: var(--mh-primary); color: var(--mh-primary); text-decoration: none; }

.empty-inline {
    display: flex; align-items: center; justify-content: center; gap: .6rem;
    padding: 2rem; border: 1px dashed var(--mh-border); border-radius: var(--mh-radius); color: var(--mh-muted);
}

/* ---------- Badges & prices ---------- */

.badge-pill {
    display: inline-block; padding: .2rem .55rem; border-radius: 999px;
    font-size: .72rem; font-weight: 700; letter-spacing: .02em; line-height: 1.4;
}
.badge-sale { background: var(--mh-accent); color: #fff; }
.badge-new { background: var(--mh-primary); color: #fff; }
.badge-dark { background: var(--mh-text); color: #fff; }

.price-now { font-weight: 700; color: var(--mh-text); }
.price-was { color: var(--mh-muted); font-size: .9em; }
.price-save {
    font-size: .8rem; font-weight: 600; color: var(--mh-success);
    background: #DCFCE7; padding: .15rem .5rem; border-radius: 999px;
}

/* ---------- Product card ---------- */

.product-grid { display: grid; gap: 1.25rem .9rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem 1.25rem; } }
@media (min-width: 1200px) { .product-grid-wide { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.product-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.product-card-media {
    position: relative; display: block; aspect-ratio: 1; overflow: hidden;
    border-radius: var(--mh-radius); background: var(--mh-surface);
}
.product-card-img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    transition: opacity .25s ease, transform .35s ease;
}
.product-card-img-hover { opacity: 0; }
@media (hover: hover) {
    .product-card:hover .product-card-img { transform: scale(1.04); }
    .product-card:hover .product-card-img-hover { opacity: 1; }
}
.product-card-placeholder {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 2.25rem; color: #CBD5E1;
}
.product-card-badges { position: absolute; top: .6rem; left: .6rem; display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; }
.product-card.is-sold-out .product-card-img { opacity: .55; filter: grayscale(.4); }

.product-card-body { padding: .75rem .1rem 0; display: flex; flex-direction: column; gap: .2rem; }
.product-card-brand { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--mh-muted); }
.product-card-title {
    font-family: var(--mh-font-body); font-size: .95rem; font-weight: 500; line-height: 1.35; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-title a { color: var(--mh-text); }
.product-card-title a::after { content: ""; position: absolute; inset: 0; } /* makes the whole card clickable */
.product-card-title a:hover { text-decoration: none; color: var(--mh-primary); }
.product-card-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; margin-top: .15rem; }
.product-card-stock { font-size: .78rem; font-weight: 500; color: #B45309; }

/* Home/related rails: swipeable row on phones, grid on desktop */
.product-rail {
    display: grid; grid-auto-flow: column; grid-auto-columns: 44%;
    gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 0 12px .5rem; margin: 0 -12px; scrollbar-width: none;
}
.product-rail::-webkit-scrollbar { display: none; }
.product-rail > * { scroll-snap-align: start; }
@media (min-width: 768px) { .product-rail { grid-auto-columns: 30%; } }
@media (min-width: 1200px) {
    .product-rail {
        grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr));
        overflow: visible; margin: 0; padding: 0; gap: 1.75rem 1.25rem;
    }
}

/* ---------- Listing pages ---------- */

.listing-header { background: var(--mh-surface); border-bottom: 1px solid var(--mh-border); padding: 1.25rem 0 1.5rem; }
.store-breadcrumb { font-size: .85rem; margin-bottom: .6rem; flex-wrap: nowrap; overflow: hidden; }
.store-breadcrumb .breadcrumb-item { white-space: nowrap; }
.store-breadcrumb .breadcrumb-item.active { min-width: 0; }
.store-breadcrumb a { color: var(--mh-muted); }
.listing-title { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0; }
.listing-description { color: var(--mh-muted); margin: .4rem 0 0; max-width: 720px; }

.subcategory-chips { display: flex; gap: .5rem; margin-top: 1.1rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.subcategory-chips::-webkit-scrollbar { display: none; }
.subcategory-chip {
    flex-shrink: 0; padding: .45rem 1rem; border-radius: 999px; font-size: .875rem; font-weight: 500;
    background: #fff; border: 1px solid var(--mh-border); color: var(--mh-text);
}
.subcategory-chip:hover { border-color: var(--mh-primary); color: var(--mh-primary); text-decoration: none; }
.subcategory-chip.active { background: var(--mh-primary); border-color: var(--mh-primary); color: #fff; }

.listing-body { padding-top: 1.5rem; padding-bottom: 3.5rem; }
.listing-toolbar { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.listing-count { font-size: .9rem; color: var(--mh-muted); white-space: nowrap; }
.listing-sort { width: auto; min-width: 170px; }
@media (max-width: 991.98px) {
    /* The filter column is an off-screen panel on phones, so it shouldn't take up row spacing. */
    .filters-col { margin-top: 0 !important; }
    .listing-sort { min-width: 0; max-width: 165px; }
}

.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: 1.25rem; }
.active-filter {
    display: inline-flex; align-items: center; gap: .2rem; padding: .3rem .4rem .3rem .75rem;
    border-radius: 999px; background: var(--mh-primary-soft); color: var(--mh-primary); font-size: .825rem; font-weight: 500;
}
.active-filter:hover { background: var(--mh-primary); color: #fff; text-decoration: none; }
.active-filters-clear { font-size: .825rem; margin-left: .35rem; }

/* Filters: sidebar on desktop, slide-in panel on phones */
.filters { --bs-offcanvas-width: 320px; }
@media (min-width: 992px) {
    .filters { position: sticky; top: calc(var(--mh-header-height) + 64px); max-height: calc(100vh - 160px); overflow-y: auto; }
    .filters .offcanvas-header { display: none; }
    .filters .offcanvas-body { padding: 0; }
}
.filters-form { display: flex; flex-direction: column; }
.filter-group { border: 0; padding: 0 0 1.1rem; margin: 0 0 1.1rem; border-bottom: 1px solid var(--mh-border); }
.filter-group:last-of-type { border-bottom: 0; }
.filter-title { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--mh-muted); margin-bottom: .65rem; float: none; }
.filter-switch, .filter-check { display: flex; align-items: center; gap: .6rem; cursor: pointer; font-size: .925rem; }
.filter-check { padding: .3rem 0; }
.filter-switch .form-check-input, .filter-check .form-check-input { margin: 0; flex-shrink: 0; }
.filter-count { margin-left: auto; font-size: .78rem; color: var(--mh-muted); }
.filters-mobile-actions { position: sticky; bottom: 0; background: #fff; padding: .75rem 0 .25rem; margin-top: auto; }

.option-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.option-chip { position: relative; cursor: pointer; }
.option-chip input { position: absolute; opacity: 0; pointer-events: none; }
.option-chip span {
    display: inline-flex; align-items: center; gap: .4rem; min-width: 42px; justify-content: center;
    padding: .35rem .7rem; border: 1px solid var(--mh-border); border-radius: var(--mh-radius-sm);
    font-size: .85rem; background: #fff; transition: all .12s ease;
}
.option-chip:hover span { border-color: var(--mh-text); }
.option-chip input:checked + span { border-color: var(--mh-primary); background: var(--mh-primary-soft); color: var(--mh-primary); font-weight: 600; }
.option-chip input:focus-visible + span { outline: 3px solid rgba(var(--mh-primary-rgb), .45); outline-offset: 2px; }

.swatch {
    display: inline-block; width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
    background: var(--swatch, transparent); border: 1px solid rgba(15, 23, 42, .2);
}

.store-pager { display: flex; justify-content: center; gap: .35rem; margin-top: 2.5rem; }
.store-pager-link {
    min-width: 40px; height: 40px; padding: 0 .6rem; display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--mh-radius-sm); border: 1px solid var(--mh-border); color: var(--mh-text); font-weight: 500;
}
.store-pager-link:hover { border-color: var(--mh-primary); color: var(--mh-primary); text-decoration: none; }
.store-pager-link.active { background: var(--mh-primary); border-color: var(--mh-primary); color: #fff; }

/* ---------- Product page ---------- */

.product-page { padding-top: 1.25rem; padding-bottom: 2rem; }

.gallery { display: flex; gap: .9rem; }
.gallery-thumbs { display: flex; flex-direction: column; gap: .6rem; width: 76px; flex-shrink: 0; }
.gallery-thumb {
    padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden;
    aspect-ratio: 1; background: var(--mh-surface); transition: border-color .12s ease;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--mh-primary); }

.gallery-stage { position: relative; flex: 1; min-width: 0; }
.gallery-track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--mh-radius);
    background: var(--mh-surface); scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; aspect-ratio: 1; scroll-snap-align: start; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-placeholder { display: flex; align-items: center; justify-content: center; font-size: 4rem; color: #CBD5E1; cursor: default; }
.gallery-badges { position: absolute; top: .9rem; left: .9rem; display: flex; gap: .35rem; pointer-events: none; }
.gallery-dots { position: absolute; bottom: .8rem; left: 0; right: 0; display: flex; justify-content: center; gap: .35rem; pointer-events: none; }
.gallery-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(15, 23, 42, .25); transition: all .15s ease; }
.gallery-dot.active { background: var(--mh-primary); width: 18px; border-radius: 4px; }

@media (max-width: 991.98px) {
    .gallery-thumbs { display: none; }
    .gallery-track { border-radius: 0; margin: 0 -12px; }
}

@media (min-width: 992px) {
    .buy-box { position: sticky; top: calc(var(--mh-header-height) + 64px); }
}
.buy-box-brand { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--mh-primary); }
.buy-box-title { font-size: clamp(1.45rem, 2.6vw, 1.95rem); line-height: 1.25; margin: .35rem 0 .5rem; }
.buy-box-lead { color: var(--mh-muted); margin-bottom: 1rem; }
.buy-box-price { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; margin-bottom: 1.25rem; }
.buy-box-price .price-now { font-size: 1.7rem; font-family: var(--mh-font-heading); font-weight: 600; }
.buy-box-price .price-was { font-size: 1.05rem; }

.option-group { border: 0; padding: 0; margin: 0 0 1.1rem; }
.option-label { font-size: .9rem; color: var(--mh-muted); margin-bottom: .5rem; float: none; }
.option-label strong { color: var(--mh-text); font-weight: 600; }
.option-buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
.option-button {
    display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem;
    border: 1.5px solid var(--mh-border); border-radius: var(--mh-radius-sm); background: #fff;
    font-size: .9rem; font-weight: 500; color: var(--mh-text); transition: all .12s ease;
}
.option-button-size { min-width: 52px; justify-content: center; }
.option-button:hover { border-color: var(--mh-text); }
.option-button[aria-pressed="true"] { border-color: var(--mh-primary); background: var(--mh-primary-soft); color: var(--mh-primary); box-shadow: 0 0 0 1px var(--mh-primary); }
.option-button.is-unavailable { color: var(--mh-muted); text-decoration: line-through; background: var(--mh-surface); }
.option-button .swatch { width: 16px; height: 16px; }

.stock-line { font-size: .9rem; font-weight: 500; margin-bottom: 1rem; min-height: 1.4em; }

.buy-box-actions { display: flex; gap: .6rem; }
.qty-stepper { display: flex; align-items: center; border: 1.5px solid var(--mh-border); border-radius: var(--mh-radius-sm); flex-shrink: 0; }
.qty-stepper .btn { padding: .5rem .7rem; border: 0; color: var(--mh-text); }
.qty-stepper input {
    width: 44px; border: 0; text-align: center; font-weight: 600; background: transparent;
    align-self: stretch; /* the whole stepper height is tappable, not just the text line */
    -moz-appearance: textfield; appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper input:focus { outline: none; }

.btn-whatsapp {
    --bs-btn-color: #fff; --bs-btn-bg: var(--mh-whatsapp); --bs-btn-border-color: var(--mh-whatsapp);
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #1DA851; --bs-btn-hover-border-color: #1DA851;
    --bs-btn-active-color: #fff; --bs-btn-active-bg: #1DA851;
}
.btn-accent:disabled, .btn-accent.disabled { --bs-btn-disabled-bg: #CBD5E1; --bs-btn-disabled-border-color: #CBD5E1; --bs-btn-disabled-color: #fff; opacity: 1; }

.buy-box-perks { list-style: none; padding: 1.1rem; margin: 1.5rem 0 0; background: var(--mh-surface); border-radius: var(--mh-radius); }
.buy-box-perks li { display: flex; gap: .75rem; font-size: .875rem; padding: .35rem 0; }
.buy-box-perks .bi { color: var(--mh-primary); font-size: 1.1rem; }

.product-details { max-width: 860px; margin-top: 3rem; }
.product-details .accordion-button { font-family: var(--mh-font-heading); font-weight: 600; font-size: 1.05rem; padding: 1.1rem 0; background: none; box-shadow: none; }
.product-details .accordion-button:not(.collapsed) { color: var(--mh-text); }
.product-details .accordion-body { padding: 0 0 1.25rem; }
.product-details .accordion-item { border-color: var(--mh-border); }
.product-description { white-space: pre-line; line-height: 1.7; }
.spec-table th { width: 40%; font-weight: 500; color: var(--mh-muted); padding-left: 0; }
.spec-table td { padding-right: 0; }
.product-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.5rem; }

.mobile-buy-bar {
    position: fixed; left: 0; right: 0; bottom: var(--mh-bottom-nav-height); z-index: 1025;
    display: flex; align-items: center; gap: .75rem; padding: .6rem 1rem;
    background: #fff; border-top: 1px solid var(--mh-border); box-shadow: 0 -4px 16px rgba(15, 23, 42, .08);
}
.mobile-buy-bar[hidden] { display: none; }
.mobile-buy-bar-name { font-size: .8rem; color: var(--mh-muted); }
.mobile-buy-bar .btn { margin-left: auto; flex-shrink: 0; }

.lightbox-content { background: #fff; border: 0; border-radius: var(--mh-radius); overflow: hidden; position: relative; }
.lightbox-image { width: 100%; max-height: 85vh; object-fit: contain; background: var(--mh-surface); }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; z-index: 2; background-color: #fff; border-radius: 50%; padding: .6rem; opacity: 1; box-shadow: var(--mh-shadow); }
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
    border: 0; background: #fff; box-shadow: var(--mh-shadow); display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ==========================================================================
   Cart, checkout and orders
   ========================================================================== */

.page-title { font-size: clamp(1.6rem, 3vw, 2rem); margin: 0 0 1.25rem; }
.cart-page, .checkout-page, .confirmation-page, .track-page, .my-orders-page { padding-top: 1.75rem; padding-bottom: 4rem; }

.toast-action { margin-left: .6rem; font-weight: 700; color: #fff; text-decoration: underline; white-space: nowrap; }
.toast-action:hover { color: #fff; }

/* Free delivery meter */
.free-shipping-meter {
    padding: .9rem 1.1rem; border-radius: var(--mh-radius); background: var(--mh-primary-soft);
    font-size: .9rem; margin-bottom: 1.25rem;
}
.free-shipping-meter .bi { color: var(--mh-primary); margin-right: .25rem; }
.free-shipping-meter .progress { height: 6px; margin-top: .6rem; background: rgba(var(--mh-primary-rgb), .15); }
.free-shipping-meter .progress-bar { background: var(--mh-primary); }
.free-shipping-meter.is-unlocked { background: #DCFCE7; color: #166534; }
.free-shipping-meter.is-unlocked .bi { color: var(--mh-success); }

/* Cart lines */
.cart-lines { list-style: none; padding: 0; margin: 0 0 1rem; border-top: 1px solid var(--mh-border); }
.cart-line {
    display: grid; grid-template-columns: 96px 1fr auto; gap: 1rem; align-items: start;
    padding: 1.1rem 0; border-bottom: 1px solid var(--mh-border);
}
.cart-line-image {
    width: 96px; aspect-ratio: 1; border-radius: var(--mh-radius-sm); overflow: hidden; background: var(--mh-surface);
    display: flex; align-items: center; justify-content: center; color: #CBD5E1; font-size: 1.5rem;
}
.cart-line-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-name { font-weight: 600; color: var(--mh-text); line-height: 1.35; }
.cart-line-variant { font-size: .85rem; color: var(--mh-muted); margin-top: .15rem; }
.cart-line-price { font-size: .9rem; margin-top: .3rem; display: flex; gap: .5rem; align-items: baseline; }
.cart-line-problem { font-size: .825rem; color: var(--mh-danger); font-weight: 500; margin-top: .4rem; }
.cart-line.has-problem .cart-line-image { opacity: .6; }
.cart-line-actions { display: flex; align-items: center; gap: .75rem; margin-top: .65rem; }
.cart-line-remove { color: var(--mh-muted); padding: .4rem .25rem; min-height: 34px; font-size: .85rem; }
.cart-line-total { font-weight: 700; white-space: nowrap; }
@media (max-width: 575.98px) {
    .cart-line { grid-template-columns: 76px 1fr; }
    .cart-line-image { width: 76px; }
    .cart-line-total { grid-column: 2; margin-top: -.25rem; }
}

.qty-stepper-sm .btn { padding: .3rem .6rem; min-height: 34px; min-width: 34px; }
.qty-stepper-sm .qty-value { min-width: 28px; text-align: center; font-weight: 600; font-size: .9rem; }
.qty-stepper .btn:disabled { opacity: .35; }

/* Summary box (cart + checkout) */
.order-summary {
    background: var(--mh-surface); border: 1px solid var(--mh-border); border-radius: var(--mh-radius);
    padding: 1.35rem;
}
@media (min-width: 992px) { .order-summary { position: sticky; top: calc(var(--mh-header-height) + 64px); } }
.order-summary-title { font-size: 1.15rem; margin-bottom: 1rem; }
.totals { margin: 0; }
.totals-row { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; font-size: .925rem; }
.totals-row dt { font-weight: 400; color: var(--mh-muted); }
.totals-row dd { margin: 0; font-weight: 600; }
.totals-grand { border-top: 1px solid var(--mh-border); margin-top: .4rem; padding-top: .75rem; font-size: 1.1rem; }
.totals-grand dt { color: var(--mh-text); font-weight: 600; }
.totals-grand dd { font-family: var(--mh-font-heading); }
.summary-perks { list-style: none; padding: 0; margin: 1rem 0 0; font-size: .825rem; color: var(--mh-muted); }
.summary-perks li { display: flex; gap: .5rem; padding: .15rem 0; }
.summary-perks .bi { color: var(--mh-primary); }

.summary-items { list-style: none; padding: 0; margin: 0 0 1rem; }
.summary-items li { display: flex; align-items: center; gap: .85rem; padding: .55rem 0; }
.summary-item-image {
    position: relative; width: 56px; height: 56px; flex-shrink: 0; border-radius: var(--mh-radius-sm);
    background: #fff; border: 1px solid var(--mh-border); display: flex; align-items: center; justify-content: center; color: #CBD5E1;
}
.summary-item-image img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.summary-item-qty {
    position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
    background: var(--mh-muted); color: #fff; font-size: .7rem; font-weight: 700; line-height: 20px; text-align: center;
}
.summary-item-name { flex: 1; min-width: 0; font-size: .9rem; font-weight: 500; line-height: 1.35; }
.summary-item-name small { display: block; color: var(--mh-muted); font-weight: 400; }
.summary-item-total { font-weight: 600; font-size: .9rem; white-space: nowrap; }

.mobile-checkout-bar {
    position: fixed; left: 0; right: 0; bottom: var(--mh-bottom-nav-height); z-index: 1025;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem 1rem;
    background: #fff; border-top: 1px solid var(--mh-border); box-shadow: 0 -4px 16px rgba(15, 23, 42, .08);
}
@media (max-width: 991.98px) {
    .cart-page { padding-bottom: 7rem; }
    /* Lift the WhatsApp button above the sticky checkout / buy bars. */
    body:has(.mobile-checkout-bar) .whatsapp-float,
    body:has(.mobile-buy-bar:not([hidden])) .whatsapp-float { bottom: calc(var(--mh-bottom-nav-height) + 84px) !important; }
}

/* Checkout */
.checkout-signin {
    display: flex; align-items: center; gap: .75rem; padding: .85rem 1.1rem; margin-bottom: 1.5rem;
    border: 1px solid var(--mh-border); border-radius: var(--mh-radius); font-size: .9rem;
}
.checkout-signin .bi { font-size: 1.4rem; color: var(--mh-primary); }
.checkout-section { padding-bottom: 1.75rem; margin-bottom: 1.75rem; border-bottom: 1px solid var(--mh-border); }
.checkout-section:last-child { border-bottom: 0; margin-bottom: 0; }
.checkout-step { display: flex; align-items: center; gap: .65rem; font-size: 1.15rem; margin-bottom: 1.1rem; }
.checkout-step span {
    width: 28px; height: 28px; border-radius: 50%; background: var(--mh-primary); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; font-family: var(--mh-font-body); font-weight: 700;
}
.payment-options { display: grid; gap: .65rem; }
.payment-option { position: relative; cursor: pointer; display: block; }
.payment-option input { position: absolute; opacity: 0; }
.payment-option-body {
    display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem;
    border: 1.5px solid var(--mh-border); border-radius: var(--mh-radius); background: #fff; transition: all .12s ease;
}
.payment-option-body > .bi { font-size: 1.5rem; color: var(--mh-muted); }
.payment-option-body strong { display: block; }
.payment-option-body small { display: block; color: var(--mh-muted); margin-top: .15rem; }
.payment-option:hover .payment-option-body { border-color: var(--mh-text); }
.payment-option input:checked + .payment-option-body { border-color: var(--mh-primary); background: var(--mh-primary-soft); box-shadow: 0 0 0 1px var(--mh-primary); }
.payment-option input:checked + .payment-option-body > .bi { color: var(--mh-primary); }
.payment-option input:focus-visible + .payment-option-body { outline: 3px solid rgba(var(--mh-primary-rgb), .45); outline-offset: 2px; }

/* Confirmation */
.confirmation-hero { text-align: center; max-width: 620px; margin: 1rem auto 2rem; }
.confirmation-hero h1 { font-size: clamp(1.7rem, 3.5vw, 2.25rem); margin: 1rem 0 .5rem; }
.confirmation-icon {
    width: 76px; height: 76px; margin: 0 auto; border-radius: 50%; background: var(--mh-success); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 2.4rem; box-shadow: 0 10px 30px rgba(22, 163, 74, .3);
}
.order-number { font-family: var(--mh-font-heading); color: var(--mh-primary); letter-spacing: .02em; }
.payment-instructions {
    padding: 1.25rem 1.35rem; margin-bottom: 1.5rem; border-radius: var(--mh-radius);
    background: #FFFBEB; border: 1px solid #FDE68A;
}
.payment-instructions.is-cod { display: flex; gap: 1rem; align-items: center; background: #F0FDF4; border-color: #BBF7D0; }
.payment-instructions.is-cod > .bi { font-size: 1.8rem; color: var(--mh-success); }
.bank-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem 1.5rem; margin: 1rem 0 1.25rem; }
.bank-details dt { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--mh-muted); }
.bank-details dd { margin: 0; font-weight: 600; }
.bank-details code { color: var(--mh-text); font-size: .95rem; user-select: all; }
.confirmation-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 2rem; }

/* Order cards & progress */
.order-card { background: #fff; border: 1px solid var(--mh-border); border-radius: var(--mh-radius); padding: 1.35rem; }
.order-card-title { font-size: 1.05rem; margin-bottom: 1rem; }
.order-page-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; }

.order-progress { list-style: none; padding: 0; margin: 0; display: flex; justify-content: space-between; position: relative; }
.order-progress::before {
    content: ""; position: absolute; top: 19px; left: 10%; right: 10%; height: 2px; background: var(--mh-border); z-index: 0;
}
.order-progress-step { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; }
.order-progress-icon {
    width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: #fff; border: 2px solid var(--mh-border); color: var(--mh-muted); font-size: 1.05rem;
}
.order-progress-label { font-size: .8rem; font-weight: 600; color: var(--mh-muted); }
.order-progress-date { font-size: .72rem; color: var(--mh-muted); }
.order-progress-step.is-done .order-progress-icon { background: var(--mh-success); border-color: var(--mh-success); color: #fff; }
.order-progress-step.is-current .order-progress-icon { background: var(--mh-primary); border-color: var(--mh-primary); color: #fff; box-shadow: 0 0 0 5px var(--mh-primary-soft); }
.order-progress-step.is-done .order-progress-label, .order-progress-step.is-current .order-progress-label { color: var(--mh-text); }
@media (max-width: 575.98px) { .order-progress-label { font-size: .7rem; } }

.order-closed { display: flex; gap: .9rem; align-items: center; color: var(--mh-danger); }
.order-closed > .bi { font-size: 1.75rem; }
.order-closed strong { color: var(--mh-text); }

.tracking-box { display: flex; gap: .75rem; align-items: center; margin-top: 1rem; padding: .75rem .9rem; border-radius: var(--mh-radius-sm); background: var(--mh-surface); }
.tracking-box > .bi { font-size: 1.3rem; color: var(--mh-primary); }

.status-chip {
    display: inline-block; padding: .25rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 600;
    background: #FEF3C7; color: #B45309; white-space: nowrap;
}
.status-chip.is-active { background: var(--mh-primary-soft); color: var(--mh-primary); }
.status-chip.is-paid { background: #DCFCE7; color: #15803D; }
.status-chip.is-closed { background: #FEE2E2; color: #B91C1C; }

/* My orders */
.my-orders { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.my-order {
    display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; color: var(--mh-text);
    border: 1px solid var(--mh-border); border-radius: var(--mh-radius); background: #fff; transition: box-shadow .15s ease, border-color .15s ease;
}
.my-order:hover { text-decoration: none; color: var(--mh-text); border-color: transparent; box-shadow: var(--mh-shadow); }
.my-order-info { flex: 1; min-width: 0; }
.my-order-info small { display: block; color: var(--mh-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.my-order-side { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }

/* ==========================================================================
   Reviews & social proof
   ========================================================================== */

.stars { display: inline-flex; gap: 1px; color: #F59E0B; font-size: .9rem; line-height: 1; vertical-align: -1px; }

/* Product cards */
.product-card-proof { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .6rem; font-size: .78rem; }
.product-card-rating { font-weight: 600; }
.product-card-rating .bi { color: #F59E0B; }

/* Product page: line under the title */
.bestseller-badge {
    display: inline-flex; align-items: center; gap: .35rem; margin-bottom: .5rem;
    padding: .25rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 700;
    background: #FEF3C7; color: #B45309;
}
.proof-line { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; margin: -.15rem 0 .85rem; font-size: .9rem; }
.proof-rating { display: inline-flex; align-items: center; gap: .4rem; color: var(--mh-text); }
.proof-rating:hover { text-decoration: none; color: var(--mh-primary); }
.proof-rating > span:not(.stars) { color: var(--mh-muted); }
.proof-sold { color: var(--mh-muted); }
.proof-sold .bi { color: var(--mh-success); }
.recent-sales { font-size: .875rem; font-weight: 500; color: #B45309; margin: -.25rem 0 .5rem; }

/* Reviews section */
.reviews-section { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--mh-border); scroll-margin-top: calc(var(--mh-header-height) + 70px); }
.rating-summary { position: sticky; top: calc(var(--mh-header-height) + 70px); }
.rating-big { font-family: var(--mh-font-heading); font-size: 3rem; font-weight: 700; line-height: 1; margin-bottom: .35rem; }
.rating-summary > .stars { font-size: 1.15rem; }
.rating-bars { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.rating-bar {
    display: grid; grid-template-columns: 34px 1fr 28px; align-items: center; gap: .6rem; width: 100%;
    padding: .5rem .35rem; border: 0; background: none; border-radius: 6px; font-size: .825rem; color: var(--mh-text);
}
.rating-bar:hover:not(:disabled), .rating-bar.active { background: var(--mh-primary-soft); }
.rating-bar:disabled { opacity: .5; cursor: default; }
.rating-bar .bi { color: #F59E0B; font-size: .7rem; }
.rating-bar-track { height: 8px; border-radius: 4px; background: var(--mh-surface); border: 1px solid var(--mh-border); overflow: hidden; }
.rating-bar-track span { display: block; height: 100%; background: #F59E0B; }
.rating-bar-count { text-align: right; color: var(--mh-muted); }
.review-cta { margin-top: 1.5rem; padding: 1rem; border-radius: var(--mh-radius); background: var(--mh-surface); }

.review-toolbar { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.review-sort { width: auto; min-width: 170px; }
.review { padding: 1.25rem 0; border-bottom: 1px solid var(--mh-border); }
.review:first-child { padding-top: .5rem; }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.review-title { font-size: .95rem; }
.review-body { margin: .55rem 0 .5rem; white-space: pre-line; line-height: 1.6; }
.review-meta { display: flex; flex-wrap: wrap; gap: .3rem; font-size: .8rem; color: var(--mh-muted); }
.review-verified { color: var(--mh-success); font-weight: 600; }
.review-reply {
    margin-top: .75rem; padding: .75rem .9rem; border-left: 3px solid var(--mh-primary);
    background: var(--mh-primary-soft); border-radius: 0 var(--mh-radius-sm) var(--mh-radius-sm) 0; font-size: .875rem;
}
.review-reply strong { display: block; font-size: .78rem; color: var(--mh-primary); margin-bottom: .2rem; }
@media (max-width: 991.98px) { .rating-summary { position: static; } }

/* "Write a review" link on delivered orders */
.review-link { display: inline-flex; align-items: center; gap: .3rem; margin-top: .3rem; font-size: .8rem; font-weight: 600; }

/* Review form */
.review-form-card { max-width: 560px; }
.review-product { display: flex; align-items: center; gap: .9rem; padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--mh-border); }
.review-product img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--mh-radius-sm); border: 1px solid var(--mh-border); }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: .25rem; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 2rem; color: #E2E8F0; cursor: pointer; transition: color .1s ease, transform .1s ease; line-height: 1; }
.star-input label:hover, .star-input label:hover ~ label,
.star-input input:checked ~ label { color: #F59E0B; }
.star-input label:hover { transform: scale(1.1); }
.star-input input:focus-visible + label { outline: 3px solid rgba(var(--mh-primary-rgb), .45); outline-offset: 2px; border-radius: 4px; }
