/* ═══════════════════════════════════════════════════════════════════════
   SECRET OF THE DESERT  —  Customer Layout  —  Arabic (RTL)
   site.ar.css
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 1. DESIGN TOKENS ─────────────────────────────────────────────────── */
:root {
    --desert-gold: #C8A96E;
    --desert-dark: #1A1208;
    --desert-sand: #F5E6C8;
    --desert-brown: #6B4C2A;
    --desert-accent: #E8B84B;
    --desert-cream: #FAFAF8;
    --desert-border: #e0d0b0;
    /* shadows */
    --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
    --shadow-md: 0 2px 12px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
    /* radii */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-full: 9999px;
    /* transitions */
    --transition: all 0.22s ease;
}

/* ── 2. RESET / BASE ───────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}

html {
    font-size: 16px;
    direction: rtl;
    scroll-behavior: smooth;
}

body {
    background-color: var(--desert-cream);
    color: var(--desert-dark);
    overflow-x: hidden;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

#products-section {
    scroll-margin-top: 80px;
}

.dropdown-section {
    float: right;
    margin-right: 1rem;
}
/* ── 3. TOPBAR ─────────────────────────────────────────────────────────── */
.topbar {
    background-color: var(--desert-dark);
    color: var(--desert-sand);
    font-size: 0.8rem;
    padding: 7px 0;
    letter-spacing: 0.2px;
}

    .topbar a {
        color: var(--desert-sand);
        text-decoration: none;
        opacity: 0.85;
        transition: var(--transition);
    }

        .topbar a:hover {
            opacity: 1;
            color: var(--desert-gold);
        }

    .topbar .topbar-sep {
        color: #3a3020;
        margin: 0 10px;
    }


/* ── Navbar brand logo ── */
.navbar-brand {
    padding: 0;
}

.brand-icon {
    height: 48px; /* fits neatly inside a standard navbar */
    width: auto; /* keeps aspect ratio */
    object-fit: contain;
    display: block;
}

/* Slightly smaller on mobile */
@media (max-width: 991px) {
    .brand-icon {
        height: 38px;
    }
}

/* Admin / Vendor shortcuts in topbar */
.topbar-admin-link {
    color: #FFD54F !important;
    font-weight: 700;
}

.topbar-vendor-link {
    color: #A5D6A7 !important;
    font-weight: 700;
}

/* ── 4. MAIN NAVBAR ────────────────────────────────────────────────────── */
.navbar-main {
    background: #ffffff;
    border-bottom: 3px solid var(--desert-gold);
    box-shadow: var(--shadow-md);
    padding: 11px 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

/* Brand */
.navbar-brand-text {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--desert-brown) !important;
    text-decoration: none;
    letter-spacing: -0.3px;
    transition: var(--transition);
}

    .navbar-brand-text:hover {
        color: var(--desert-gold) !important;
    }

    .navbar-brand-text span {
        color: var(--desert-gold);
    }

/* Toggler */
.navbar-toggler {
    border: none !important;
    box-shadow: none !important;
    padding: 4px 8px;
}

    .navbar-toggler:focus {
        box-shadow: none !important;
    }

/* ── 5. SEARCH BAR ─────────────────────────────────────────────────────── */
.search-wrap {
    display: flex;
    align-items: center;
    flex: 2 1 0;
    min-width: 0;
    margin: 0 20px;
}

.search-input {
    border: 2px solid var(--desert-border);
    border-radius: 0 var(--radius-full) var(--radius-full) 0 !important; /* RTL: left side round */
    border-left: none;
    padding: 11px 8px !important;
    font-family: inherit;
    font-size: 0.92rem;
    width: 100%;
    min-width: 0;
    outline: none;
    transition: var(--transition);
    background: #faf6ef;
    color: var(--desert-dark);
    flex: 1 1 0;
}

    .search-input::placeholder {
        color: #b0a090;
        font-size: 0.88rem;
    }

    .search-input:focus {
        border-color: var(--desert-gold);
        background: #fff;
        box-shadow: 0 0 0 3px rgba(200,169,110,.15);
    }

.search-btn {
    background: var(--desert-gold);
    border: 2px solid var(--desert-gold);
    border-radius: var(--radius-full) 0 0 var(--radius-full); /* RTL: right side round */
    border-right: none;
    padding: 8px 20px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

    .search-btn:hover {
        background: var(--desert-accent);
    }

    .search-btn:active {
        transform: scale(0.97);
    }

/* ── 6. NAVBAR ACTION ICONS ────────────────────────────────────────────── */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-right: 12px; /* RTL: push from logo side */
    flex: 1 1 0;
    justify-content: flex-start;
    order: 3; /* always last in the navbar flex row */
}

.nav-icon-link {
    color: var(--desert-dark);
    text-decoration: none;
    font-size: 1.4rem;
    line-height: 1;
    position: relative;
    transition: var(--transition);
}

    .nav-icon-link:hover {
        color: var(--desert-gold);
        transform: translateY(-1px);
    }

/* Cart badge */
.cart-icon {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -7px;
    right: -7px; /* RTL: badge on right side of icon */
    background: var(--desert-gold);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.62rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    line-height: 1;
}

/* ── 7. USER AVATAR & DROPDOWN ─────────────────────────────────────────── */
.nav-user-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--desert-dark);
    line-height: 1;
}

    .nav-user-btn:hover .user-avatar {
        filter: brightness(1.1);
    }

    .nav-user-btn .nav-user-name {
        font-size: 0.87rem;
        font-weight: 700;
        max-width: 90px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nav-user-btn .bi-chevron-down {
        font-size: 0.65rem;
        color: #aaa;
    }

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,.6);
    transition: var(--transition);
}

.avatar-user {
    background: var(--desert-gold);
}

.avatar-vendor {
    background: #2e7d32;
}

.avatar-admin {
    background: #b71c1c;
}

/* Dropdown menu */
.user-dropdown {
    min-width: 235px !important;
    border: none !important;
    box-shadow: var(--shadow-lg) !important;
    border-radius: var(--radius-md) !important;
    padding: 6px 0 !important;
    overflow: hidden;
}

/* Dropdown header block (name + email + badge) */
.dropdown-user-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 11px;
}

    .dropdown-user-header .user-avatar {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        border: none;
    }

.dropdown-user-info {
    min-width: 0;
}

.dropdown-user-name {
    font-weight: 700;
    font-size: 0.88rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--desert-dark);
}

.dropdown-user-email {
    font-size: 0.73rem;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-user-badges {
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* Role badges */
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.67rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    padding: 2px 9px;
}

.badge-user {
    background: #fff3e0;
    color: #e65100;
}

.badge-vendor {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-admin {
    background: #ffebee;
    color: #b71c1c;
}

/* Section label inside dropdown */
.dropdown-section-label {
    font-size: 0.67rem;
    font-weight: 700;
    color: #bbb;
    letter-spacing: 0.5px;
    padding: 8px 16px 3px;
    text-transform: uppercase;
}

/* Dropdown items */
.dropdown-item {
    font-size: 0.88rem;
    padding: 9px 16px !important;
    font-weight: 500;
    transition: var(--transition);
    color: var(--desert-dark);
    display: flex;
    align-items: center;
    gap: 0;
}

    .dropdown-item i {
        font-size: 0.95rem;
        margin-left: 10px; /* RTL: icon on right, margin on left */
        width: 18px;
    }

    .dropdown-item:hover {
        background-color: var(--desert-sand) !important;
        color: var(--desert-brown) !important;
    }

    .dropdown-item.text-danger:hover {
        background-color: #fff5f5 !important;
    }

.dropdown-divider {
    margin: 4px 0 !important;
    border-color: #f0e8d8 !important;
}

/* Dropdown logout form */
.logout-form {
    margin: 0;
}

    .logout-form .dropdown-item {
        width: 100%;
        text-align: right;
        background: none;
        border: none;
    }

/* ── 8. CATEGORY NAV BAR ───────────────────────────────────────────────── */
.category-nav {
    background: var(--desert-sand);
    border-bottom: 1px solid #ddd;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

    .category-nav::-webkit-scrollbar {
        display: none;
    }

    .category-nav .nav-link {
        color: var(--desert-brown);
        font-weight: 600;
        font-size: 0.87rem;
        padding: 9px 16px !important;
        white-space: nowrap;
        border-radius: 0;
        border-bottom: 2px solid transparent;
        transition: var(--transition);
    }

        .category-nav .nav-link:hover {
            color: var(--desert-gold);
            border-bottom-color: var(--desert-gold);
            background: transparent;
        }

        .category-nav .nav-link.active {
            color: var(--desert-gold);
            border-bottom-color: var(--desert-gold);
            font-weight: 700;
        }

/* ── 9. MAIN CONTENT ───────────────────────────────────────────────────── */
main {
    min-height: 55vh;
}

/* ── 10. FOOTER ────────────────────────────────────────────────────────── */
.footer-main {
    background: var(--desert-dark);
    color: #c0b098;
    padding: 48px 0 0;
    margin-top: 0;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--desert-gold);
    display: inline-block;
    margin-bottom: 10px;
}

.footer-tagline {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.6;
}

.footer-heading {
    color: var(--desert-gold);
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 0.98rem;
    position: relative;
    padding-bottom: 8px;
}

    .footer-heading::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0; /* RTL: underline from right */
        width: 36px;
        height: 2px;
        background: var(--desert-gold);
        border-radius: 2px;
    }

.footer-link {
    color: #aaa;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 0.87rem;
    transition: var(--transition);
}

    .footer-link:hover {
        color: var(--desert-gold);
        padding-right: 4px;
    }
/* RTL: slide right */

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2a2010;
    color: #aaa;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
    margin-left: 6px; /* RTL */
}

    .footer-social a:hover {
        background: var(--desert-gold);
        color: white;
        transform: translateY(-2px);
    }

.footer-bottom {
    border-top: 1px solid #2a2010;
    padding: 14px 0;
    margin-top: 36px;
    font-size: 0.8rem;
    color: #666;
}

/* ── 11. BUTTONS ────────────────────────────────────────────────────────── */
.btn-gold {
    background: var(--desert-gold);
    color: white;
    border: none;
    font-weight: 700;
    border-radius: var(--radius-sm);
    padding: 9px 22px;
    transition: var(--transition);
    font-family: inherit;
}

    .btn-gold:hover {
        background: var(--desert-accent);
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(200,169,110,.35);
    }

    .btn-gold:active {
        transform: scale(0.98);
        box-shadow: none;
    }

.btn-gold-outline {
    background: transparent;
    color: var(--desert-gold);
    border: 2px solid var(--desert-gold);
    font-weight: 700;
    border-radius: var(--radius-sm);
    padding: 8px 20px;
    transition: var(--transition);
    font-family: inherit;
}

    .btn-gold-outline:hover {
        background: var(--desert-gold);
        color: white;
    }

/* ── 12. CARDS / PRODUCT TILES ─────────────────────────────────────────── */
.product-card {
    border: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    background: #fff;
    height: 100%;
}

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

    .product-card .card-img-top {
        aspect-ratio: 4/3;
        object-fit: cover;
    }

    .product-card .card-body {
        padding: 14px;
    }

    .product-card .card-title {
        font-weight: 700;
        font-size: 0.92rem;
        margin-bottom: 4px;
        color: var(--desert-dark);
    }

    .product-card .card-price {
        color: var(--desert-gold);
        font-weight: 800;
        font-size: 1.05rem;
    }

    .product-card .card-price-old {
        text-decoration: line-through;
        color: #bbb;
        font-size: 0.82rem;
    }

/* Badges on product card */
.product-badge {
    position: absolute;
    top: 10px;
    right: 10px; /* RTL */
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    padding: 3px 10px;
}

/* ── 13. SECTION HEADERS ────────────────────────────────────────────────── */
.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--desert-dark);
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0; /* RTL */
        width: 50%;
        height: 3px;
        background: linear-gradient(to left, var(--desert-gold), transparent);
        border-radius: 2px;
    }

/* ── 14. BREADCRUMB ─────────────────────────────────────────────────────── */
.breadcrumb-item + .breadcrumb-item::before {
    color: #bbb;
}

.breadcrumb-item a {
    color: var(--desert-gold);
    text-decoration: none;
}

    .breadcrumb-item a:hover {
        color: var(--desert-brown);
    }

.breadcrumb-item.active {
    color: #888;
    font-size: 0.87rem;
}

/* ── 15. FORMS ──────────────────────────────────────────────────────────── */
.form-control:focus, .form-select:focus {
    border-color: var(--desert-gold);
    box-shadow: 0 0 0 3px rgba(200,169,110,.18);
}

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

/* ── 16. ALERTS ─────────────────────────────────────────────────────────── */
.alert-desert {
    background: var(--desert-sand);
    border: 1px solid var(--desert-border);
    color: var(--desert-brown);
    border-right: 4px solid var(--desert-gold); /* RTL: accent on right */
    border-radius: var(--radius-sm);
}

/* ── 17. SCROLLBAR ──────────────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f0ece4;
}

::-webkit-scrollbar-thumb {
    background: var(--desert-border);
    border-radius: 6px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--desert-gold);
    }

/* ── 18. UTILITIES ──────────────────────────────────────────────────────── */
.text-gold {
    color: var(--desert-gold) !important;
}

.text-brown {
    color: var(--desert-brown) !important;
}

.bg-sand {
    background-color: var(--desert-sand) !important;
}

.bg-dark-desert {
    background-color: var(--desert-dark) !important;
}

.fw-600 {
    font-weight: 600 !important;
}

.fw-700 {
    font-weight: 700 !important;
}

.fw-800 {
    font-weight: 800 !important;
}

.rounded-desert {
    border-radius: var(--radius-md) !important;
}

/* ── 19. RESPONSIVE ─────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .search-wrap {
        display: none;
    }

    .nav-icons {
        gap: 12px;
        flex: 0 0 auto; /* don't stretch on mobile — sit beside the toggler */
        margin-right: auto;
    }

    .navbar-brand-text {
        font-size: 1.3rem;
    }
}

@media (max-width: 575.98px) {
    .user-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.78rem;
    }

    .cart-badge {
        width: 15px;
        height: 15px;
        font-size: 0.55rem;
        top: -5px;
        right: -5px;
    }

    .footer-main {
        padding: 32px 0 0;
    }

    .section-title {
        font-size: 1.25rem;
    }
}

/* ════════════════════════════════════════════════════════════════════════
               CATEGORY NAV  (dynamic, from API)
               ════════════════════════════════════════════════════════════════════════ */
.cat-nav-wrap {
    background: #fff;
    border-bottom: 1px solid #f0e8d8;
    position: relative; /* panel positions relative to this */
    z-index: 300;
}

.cat-nav-row {
    display: flex;
    align-items: center;
    height: 48px;
    overflow: hidden;
}

/* "All Categories" pill */
.cat-all-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    font-family: inherit;
    font-size: .84rem;
    font-weight: 700;
    color: #fff;
    background: var(--desert-gold, #c8a96e);
    border: none;
    border-radius: 8px;
    margin-inline-end: 4px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .18s;
}

    .cat-all-btn:hover {
        background: #b8956a;
    }

/* scrollable tabs */
.cat-tab-list {
    display: flex;
    flex: 1;
    overflow-x: auto;
    list-style: none;
    margin: 0;
    padding: 0;
    scrollbar-width: none;
    gap: 0;
}

    .cat-tab-list::-webkit-scrollbar {
        display: none;
    }

.cat-tab-btn {
    display: inline-flex;
    align-items: center;
    padding: 13px 16px;
    font-family: inherit;
    font-size: .83rem;
    font-weight: 600;
    color: #444;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    cursor: pointer;
    transition: color .16s, border-color .16s;
}

    .cat-tab-btn:hover {
        color: var(--desert-gold, #c8a96e);
    }

    .cat-tab-btn.active {
        color: var(--desert-gold, #c8a96e);
        border-bottom-color: var(--desert-gold, #c8a96e);
    }

/* Vendors static link */
.cat-vendors-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 13px 16px;
    font-size: .83rem;
    font-weight: 600;
    color: #444;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color .16s;
}

    .cat-vendors-link:hover {
        color: var(--desert-gold, #c8a96e);
    }

/* ── skeleton shimmer ── */
.skel-pulse {
    background: linear-gradient(90deg, #f5f0e8 25%, #e8ddd0 50%, #f5f0e8 75%);
    background-size: 200% 100%;
    animation: skpulse 1.2s infinite;
    border-radius: 5px;
}

@keyframes skpulse {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ════════════════════════════════════════════════════════════════════════
               PRODUCT DROP PANEL
               ════════════════════════════════════════════════════════════════════════ */
.cat-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 2px solid #f0e8d8;
    box-shadow: 0 14px 40px rgba(0,0,0,.11);
    z-index: 299;
    max-height: 0;
    overflow: hidden;
    transition: max-height .32s cubic-bezier(.4,0,.2,1);
}

    .cat-panel.open {
        max-height: 520px;
    }

.cat-panel-inner {
    padding: 22px 0 20px;
}

.cat-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.cat-panel-title {
    font-size: .98rem;
    font-weight: 800;
    color: #1a1a1a;
}

.cat-panel-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #bbb;
    cursor: pointer;
    line-height: 1;
    padding: 0 2px;
    transition: color .14s;
}

    .cat-panel-close:hover {
        color: #e53935;
    }

/* product grid */
.prod-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 13px;
    max-height: 400px;
    overflow-y: auto;
    padding-bottom: 2px;
}

    .prod-mini-grid::-webkit-scrollbar {
        width: 4px;
    }

    .prod-mini-grid::-webkit-scrollbar-thumb {
        background: #e0d8cc;
        border-radius: 4px;
    }

/* mini product card */
.prod-card {
    background: #faf7f2;
    border-radius: 12px;
    border: 1px solid #eee6d8;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: box-shadow .18s, transform .18s;
}

    .prod-card:hover {
        box-shadow: 0 6px 22px rgba(200,169,110,.24);
        transform: translateY(-2px);
        color: inherit;
    }

.prod-card-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #f0e8d8;
}

.prod-card-no-img {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f5f0e8, #ede5d0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d0c8b8;
    font-size: 2.2rem;
}

.prod-card-body {
    padding: 9px 10px 4px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.prod-card-name {
    font-size: .77rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prod-card-price {
    font-size: .82rem;
    font-weight: 800;
    color: var(--desert-gold, #c8a96e);
    margin-top: auto;
    padding-top: 5px;
}

.prod-card-old {
    font-size: .7rem;
    color: #bbb;
    text-decoration: line-through;
    margin-inline-start: 5px;
}

.prod-card-add {
    margin: 5px 10px 10px;
    padding: 7px;
    border: none;
    border-radius: 8px;
    background: var(--desert-gold, #c8a96e);
    color: #fff;
    font-family: inherit;
    font-size: .75rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background .15s;
    flex-shrink: 0;
}

    .prod-card-add:hover {
        background: #b8956a;
    }

    .prod-card-add:disabled {
        opacity: .65;
        cursor: wait;
    }

/* panel empty/error */
.panel-msg {
    grid-column: 1 / -1;
    text-align: center;
    padding: 36px 20px;
    color: #bbb;
    font-size: .85rem;
}

    .panel-msg i {
        font-size: 2.4rem;
        display: block;
        margin-bottom: 10px;
        color: #ddd;
    }

/* ════════════════════════════════════════════════════════════════════════
               CART DRAWER
               ════════════════════════════════════════════════════════════════════════ */

/* overlay */
#cartOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.46);
    z-index: 1050;
    opacity: 0;
    transition: opacity .26s;
    backdrop-filter: blur(2px);
}

    #cartOverlay.show {
        opacity: 1;
    }

/* drawer */
#cartDrawer {
    position: fixed;
    top: 0;
    inset-inline-end: 0; /* works in both LTR & RTL */
    width: min(430px, 100vw);
    height: 100dvh;
    background: #fff;
    z-index: 1051;
    display: flex;
    flex-direction: column;
    box-shadow: -6px 0 40px rgba(0,0,0,.14);
    /* LTR default → slides from right */
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
}
/* RTL: slides from left */
[dir="rtl"] #cartDrawer {
    transform: translateX(-100%);
}

#cartDrawer.open {
    transform: translateX(0);
}

/* header */
.cd-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 14px;
    border-bottom: 1px solid #f0e8d8;
    flex-shrink: 0;
}

.cd-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 1.02rem;
    font-weight: 800;
    color: #1a1a1a;
}

    .cd-title i {
        color: var(--desert-gold, #c8a96e);
        font-size: 1.15rem;
    }

.cd-count-pill {
    background: var(--desert-gold, #c8a96e);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    border-radius: 20px;
    padding: 1px 9px;
    min-width: 22px;
    text-align: center;
}

.cd-close {
    background: none;
    border: none;
    font-size: 1.35rem;
    color: #bbb;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color .14s;
}

    .cd-close:hover {
        color: #e53935;
    }

/* scrollable items */
.cd-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 22px;
}

    .cd-body::-webkit-scrollbar {
        width: 4px;
    }

    .cd-body::-webkit-scrollbar-thumb {
        background: #e0d8cc;
        border-radius: 4px;
    }

/* empty state */
.cd-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    height: 100%;
    padding: 60px 20px;
    text-align: center;
}

    .cd-empty i {
        font-size: 3.8rem;
        color: #e8ddd0;
    }

.cd-empty-ttl {
    font-size: .9rem;
    font-weight: 700;
    color: #bbb;
    margin: 0;
}

.cd-empty-sub {
    font-size: .78rem;
    color: #ccc;
    margin: 0;
}

/* cart item row */
.ci {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    padding: 13px 0;
    border-bottom: 1px solid #faf7f2;
    animation: ciSlide .22s ease;
}

@keyframes ciSlide {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.ci-img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #f0e8d8;
    background: #faf7f2;
    flex-shrink: 0;
}

.ci-info {
    flex: 1;
    min-width: 0;
}

.ci-name {
    font-size: .82rem;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.ci-vendor {
    font-size: .7rem;
    color: #aaa;
    margin-bottom: 5px;
}

.ci-price {
    font-size: .88rem;
    font-weight: 800;
    color: var(--desert-gold, #c8a96e);
}

/* qty controls */
.qty-ctrl {
    display: flex;
    align-items: center;
    border: 1px solid #f0e8d8;
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
    margin-top: 8px;
}

.qty-btn {
    background: #faf7f2;
    border: none;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: .95rem;
    color: #555;
    font-family: inherit;
    transition: background .12s;
}

    .qty-btn:hover {
        background: #f0e8d8;
    }

.qty-val {
    width: 30px;
    text-align: center;
    font-size: .82rem;
    font-weight: 700;
    color: #222;
    border: none;
    background: transparent;
    pointer-events: none;
}

/* remove btn */
.ci-remove {
    background: none;
    border: none;
    color: #ddd;
    font-size: .95rem;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    margin-top: 2px;
    transition: color .13s;
}

    .ci-remove:hover {
        color: #e53935;
    }

/* footer */
.cd-foot {
    padding: 15px 22px;
    border-top: 1px solid #f0e8d8;
    background: #faf7f2;
    flex-shrink: 0;
}

.cd-subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.cd-sub-lbl {
    font-size: .8rem;
    font-weight: 600;
    color: #888;
}

.cd-sub-val {
    font-size: 1.08rem;
    font-weight: 800;
    color: #1a1a1a;
}

.cd-sub-cur {
    font-size: .72rem;
    color: #aaa;
    margin-inline-end: 3px;
}

.cd-ship {
    font-size: .7rem;
    color: #bbb;
    margin-bottom: 14px;
}

.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 13px;
    background: var(--desert-gold, #c8a96e);
    color: #fff;
    font-family: inherit;
    font-size: .9rem;
    font-weight: 800;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: background .17s;
}

    .btn-checkout:hover {
        background: #b8956a;
        color: #fff;
    }

.btn-view-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 9px;
    margin-top: 8px;
    background: transparent;
    color: var(--desert-gold, #c8a96e);
    font-family: inherit;
    font-size: .81rem;
    font-weight: 700;
    border: 1.5px solid var(--desert-gold, #c8a96e);
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
}

    .btn-view-cart:hover {
        background: var(--desert-gold, #c8a96e);
        color: #fff;
    }

/* ── nav cart badge ── */
.cart-icon {
    position: relative;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.cart-badge {
    position: absolute;
    top: -6px;
    inset-inline-end: -8px;
    background: #e53935;
    color: #fff;
    font-size: .6rem;
    font-weight: 800;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

    .cart-badge.visible {
        display: flex;
    }

/* ── toast ── */
.cart-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(14px);
    background: #1a1a1a;
    color: #fff;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: .81rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    z-index: 1200;
    transition: all .24s;
}

    .cart-toast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

.ti-ok {
    color: #69f0ae;
    margin-inline-end: 6px;
}

.ti-err {
    color: #ff5252;
    margin-inline-end: 6px;
}

/* ═══════════════════════════════════════════════════════════════════════
                   CART PAGE — Desert Theme RTL
                   ═══════════════════════════════════════════════════════════════════════ */
.cart-page {
    padding: 36px 0 64px;
    min-height: 60vh;
}

.cart-breadcrumb {
    font-size: .82rem;
    color: #999;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .cart-breadcrumb a {
        color: var(--desert-gold);
        text-decoration: none;
    }

.cart-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--desert-dark);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .cart-title i {
        color: var(--desert-gold);
    }

.cart-count-badge {
    background: var(--desert-gold);
    color: #fff;
    border-radius: 99px;
    font-size: .75rem;
    padding: 2px 10px;
    font-weight: 700;
}

/* ── Item Card ── */
.cart-item-card {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--desert-border);
    padding: 18px;
    margin-bottom: 14px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: var(--transition);
    animation: fadeInUp .3s ease both;
}

    .cart-item-card:hover {
        box-shadow: var(--shadow-md);
        border-color: var(--desert-gold);
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-item-img {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--desert-border);
}

.cart-item-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    background: var(--desert-sand);
    border: 1px solid var(--desert-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .cart-item-placeholder i {
        font-size: 2rem;
        color: #ccc;
    }

.cart-item-body {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 700;
    font-size: .97rem;
    color: var(--desert-dark);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-vendor {
    font-size: .78rem;
    color: #888;
    margin-bottom: 10px;
}

.cart-item-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--desert-brown);
}

.cart-item-unit {
    font-size: .77rem;
    color: #aaa;
    margin-top: 2px;
}

/* Qty */
.qty-control {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--desert-border);
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
    margin-top: 12px;
}

.qty-btn {
    background: var(--desert-sand);
    border: none;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--desert-brown);
    cursor: pointer;
    transition: var(--transition);
}

    .qty-btn:hover {
        background: var(--desert-gold);
        color: #fff;
    }

    .qty-btn:disabled {
        opacity: .4;
        cursor: not-allowed;
    }

.qty-val {
    width: 42px;
    text-align: center;
    font-weight: 700;
    font-size: .9rem;
    border: none;
    border-inline: 1.5px solid var(--desert-border);
    background: #fff;
    height: 32px;
    line-height: 32px;
}

.cart-remove-btn {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 1.1rem;
}

    .cart-remove-btn:hover {
        color: #e53935;
        background: #ffeaea;
    }

/* Summary */
.cart-summary {
    background: #fff;
    border: 1.5px solid var(--desert-border);
    border-radius: var(--radius-md);
    padding: 24px;
    position: sticky;
    top: 90px;
}

.summary-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--desert-sand);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: .9rem;
}

    .summary-row.total {
        font-size: 1.1rem;
        font-weight: 800;
        color: var(--desert-dark);
        border-top: 2px solid var(--desert-sand);
        padding-top: 14px;
        margin-top: 4px;
    }

        .summary-row.total span:last-child {
            color: var(--desert-brown);
        }

.btn-checkout {
    display: block;
    width: 100%;
    background: var(--desert-gold);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    margin-top: 18px;
}

    .btn-checkout:hover:not(:disabled) {
        background: var(--desert-accent);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(200,169,110,.4);
    }

    .btn-checkout:disabled {
        background: #ccc;
        cursor: not-allowed;
    }

.btn-continue {
    display: block;
    width: 100%;
    background: transparent;
    color: var(--desert-brown);
    border: 1.5px solid var(--desert-border);
    border-radius: 10px;
    padding: 10px;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
    margin-top: 10px;
}

    .btn-continue:hover {
        border-color: var(--desert-gold);
        color: var(--desert-gold);
    }


.coupon-wrap {
    margin-top: 18px;
    border-top: 1px dashed #e5e7eb;
    padding-top: 16px;
}

.coupon-lbl {
    font-size: .8rem;
    font-weight: 700;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.coupon-row {
    display: flex;
    gap: 8px;
}

.coupon-input {
    flex: 1;
    border: 1.5px solid var(--desert-border);
    border-radius: 8px;
    padding: 9px 12px;
    font-family: inherit;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: border .2s;
}

    .coupon-input:focus {
        outline: none;
        border-color: var(--desert-gold);
    }




.coupon-btn {
    background: var(--desert-dark);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px 16px;
    font-family: inherit;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .15s;
    white-space: nowrap;
}

    .coupon-btn:hover {
        background: var(--desert-brown);
    }

.coupon-result {
    margin-top: 8px;
    font-size: .82rem;
    border-radius: 8px;
    padding: 7px 12px;
}

    .coupon-result.ok {
        background: #e8f5e9;
        color: #2e7d32;
    }

    .coupon-result.err {
        background: #fce4ec;
        color: #c62828;
    }

/* Trust */
.trust-badges {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--desert-border);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .75rem;
    color: #666;
}

    .trust-badge i {
        color: var(--desert-gold);
    }

/* Empty */
.cart-empty {
    text-align: center;
    padding: 60px 20px;
    animation: fadeInUp .4s ease;
}

    .cart-empty .empty-icon {
        font-size: 4.5rem;
        color: #e0d0b0;
        margin-bottom: 20px;
    }

    .cart-empty h3 {
        font-size: 1.4rem;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .cart-empty p {
        color: #888;
        margin-bottom: 24px;
    }

.btn-shop {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--desert-gold);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 28px;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

    .btn-shop:hover {
        background: var(--desert-accent);
        color: #fff;
        transform: translateY(-2px);
    }

/* Clear btn */
.btn-clear {
    background: none;
    border: 1px solid #f5c6c6;
    color: #e53935;
    border-radius: 8px;
    padding: 6px 14px;
    font-family: inherit;
    font-size: .8rem;
    cursor: pointer;
    transition: var(--transition);
}

    .btn-clear:hover {
        background: #ffeaea;
    }

/* Skeleton */
.skel-card {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--desert-border);
    padding: 18px;
    margin-bottom: 14px;
    display: flex;
    gap: 16px;
}

.skel-img {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    background: #f0ebe0;
    animation: pulse 1.4s ease infinite;
}

.skel-line {
    height: 12px;
    border-radius: 6px;
    background: #f0ebe0;
    margin-bottom: 10px;
    animation: pulse 1.4s ease infinite;
}

.skel-body {
    flex: 1;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1
    }

    50% {
        opacity: .5
    }
}


/* ══ PAGE SHELL ══════════════════════════════════════════════════════════════ */
.checkout-page {
    padding: 32px 0 60px
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--desert-brown);
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 28px;
    transition: gap .15s
}

    .btn-back:hover {
        gap: 10px;
        color: var(--desert-gold)
    }

/* ══ STEP WIZARD ═════════════════════════════════════════════════════════════ */
.checkout-steps {
    display: flex;
    align-items: center;
    margin-bottom: 36px
}

.step {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .82rem;
    font-weight: 700;
    color: #bbb;
    flex-shrink: 0
}

    .step.done {
        color: var(--desert-gold)
    }

    .step.active {
        color: var(--desert-dark)
    }

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 800;
    background: #fff;
    flex-shrink: 0;
    transition: all .2s
}

.step.done .step-circle {
    background: var(--desert-gold);
    border-color: var(--desert-gold);
    color: #fff
}

.step.active .step-circle {
    background: var(--desert-dark);
    border-color: var(--desert-dark);
    color: #fff
}

.step-line {
    flex: 1;
    height: 2px;
    background: #eee;
    margin: 0 8px
}

    .step-line.done {
        background: var(--desert-gold)
    }

/* ══ ALERT ═══════════════════════════════════════════════════════════════════ */
.co-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: .88rem;
    font-weight: 600
}

    .co-alert.error {
        background: #fef2f2;
        border: 1px solid #fecaca;
        color: #dc2626
    }

    .co-alert.success {
        background: #f0fdf4;
        border: 1px solid #bbf7d0;
        color: #16a34a
    }

/* ══ TAB NAV ══════════════════════════════════════════════════════════════════ */
.co-tabs {
    display: flex;
    border-bottom: 2px solid #eee6d8;
    margin-bottom: 24px
}

.co-tab-btn {
    flex: 1;
    padding: 13px 10px;
    border: none;
    background: none;
    font-family: inherit;
    font-size: .87rem;
    font-weight: 700;
    color: #aaa;
    cursor: pointer;
    position: relative;
    transition: color .18s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px
}

    .co-tab-btn::after {
        content: '';
        position: absolute;
        bottom: -2px;
        inset-inline-start: 0;
        width: 100%;
        height: 2px;
        background: transparent;
        transition: background .18s
    }

    .co-tab-btn.active {
        color: var(--desert-gold)
    }

        .co-tab-btn.active::after {
            background: var(--desert-gold)
        }

    .co-tab-btn.done {
        color: #16a34a
    }

    .co-tab-btn:disabled {
        opacity: .42;
        cursor: not-allowed;
        pointer-events: none
    }

.tab-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #eee;
    font-size: .7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .18s
}

.co-tab-btn.active .tab-num {
    background: var(--desert-gold);
    color: #fff
}

.co-tab-btn.done .tab-num {
    background: #16a34a;
    color: #fff
}

.co-tab-pane {
    display: none
}

    .co-tab-pane.active {
        display: block
    }

/* ══ CARD ═════════════════════════════════════════════════════════════════════ */
.co-card {
    background: #fff;
    border: 1px solid #eee6d8;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px
}

.co-card-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--desert-dark);
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px
}

    .co-card-title i {
        color: var(--desert-gold);
        font-size: 1.15rem
    }

.co-label {
    font-size: .8rem;
    font-weight: 700;
    color: #555;
    display: block;
    margin-bottom: 5px
}

.co-input {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid #ddd;
    border-radius: 9px;
    font-family: inherit;
    font-size: .88rem;
    color: #1a1a1a;
    transition: border-color .15s,box-shadow .15s;
    background: #fff
}

    .co-input:focus {
        outline: none;
        border-color: var(--desert-gold);
        box-shadow: 0 0 0 3px rgba(200,169,110,.12)
    }

    .co-input.error {
        border-color: #e53935
    }

textarea.co-input {
    resize: vertical
}

/* ══ ADDRESS CARDS ════════════════════════════════════════════════════════════ */
.addr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(250px,1fr));
    gap: 12px;
    margin-bottom: 16px
}

.addr-card {
    border: 2px solid #eee6d8;
    border-radius: 12px;
    padding: 15px 14px;
    cursor: pointer;
    transition: all .18s;
    position: relative;
    background: #fff
}

    .addr-card:hover {
        border-color: var(--desert-gold)
    }

    .addr-card.selected {
        border-color: var(--desert-gold);
        background: #fffbf3
    }

.addr-card-check {
    position: absolute;
    top: 11px;
    inset-inline-end: 11px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
    color: transparent;
    transition: all .18s;
    flex-shrink: 0
}

.addr-card.selected .addr-card-check {
    background: var(--desert-gold);
    border-color: var(--desert-gold);
    color: #fff
}

.addr-card-text {
    font-size: .82rem;
    color: #555;
    line-height: 1.55;
    padding-inline-end: 24px
}

.addr-card-phone {
    font-size: .76rem;
    color: #aaa;
    margin-top: 4px
}

.addr-card-default {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .69rem;
    font-weight: 700;
    color: #16a34a;
    background: #f0fdf4;
    border-radius: 20px;
    padding: 2px 8px;
    margin-top: 6px
}

.addr-empty {
    text-align: center;
    padding: 28px 16px;
    color: #aaa
}

    .addr-empty i {
        font-size: 2.4rem;
        display: block;
        margin-bottom: 10px;
        color: #e0d8cc
    }

    .addr-empty p {
        font-size: .84rem;
        margin: 0
    }

/* ══ NEW ADDRESS TOGGLE BTN ══════════════════════════════════════════════════ */
.btn-new-addr {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 10px;
    border: 2px dashed rgba(200,169,110,.55);
    border-radius: 10px;
    background: transparent;
    color: var(--desert-gold);
    font-family: inherit;
    font-size: .84rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .18s;
    margin-bottom: 4px
}

    .btn-new-addr:hover {
        background: #fffbf3;
        border-color: var(--desert-gold)
    }

/* ══ NEW ADDRESS FORM ════════════════════════════════════════════════════════ */
#newAddrForm {
    display: none;
    background: #fafaf7;
    border: 1px solid #eee6d8;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px
}

    #newAddrForm.open {
        display: block
    }

/* ══ PAYMENT METHOD CARDS ════════════════════════════════════════════════════ */
.pay-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px
}

.pay-method-card {
    border: 2px solid #eee6d8;
    border-radius: 12px;
    padding: 18px 14px;
    cursor: pointer;
    transition: all .18s;
    text-align: center;
    background: #fff;
    position: relative;
    user-select: none
}

    .pay-method-card:hover {
        border-color: var(--desert-gold)
    }

    .pay-method-card.selected {
        border-color: var(--desert-gold);
        background: #fffbf3
    }

    .pay-method-card > i.pm-icon {
        font-size: 2rem;
        color: #ccc;
        display: block;
        margin-bottom: 8px;
        transition: color .18s
    }

    .pay-method-card.selected > i.pm-icon {
        color: var(--desert-gold)
    }

.pm-name {
    font-size: .88rem;
    font-weight: 800;
    color: #333
}

.pm-desc {
    font-size: .73rem;
    color: #aaa;
    margin-top: 3px;
    line-height: 1.35
}

.pm-check {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .6rem;
    color: transparent;
    transition: all .18s
}

.pay-method-card.selected .pm-check {
    background: var(--desert-gold);
    border-color: var(--desert-gold);
    color: #fff
}

/* ══ FAWATERK SUB-METHODS ════════════════════════════════════════════════════ */
.fawaterk-methods {
    display: none;
    background: #fafaf7;
    border: 1px solid #eee6d8;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px
}

    .fawaterk-methods.open {
        display: block
    }

.fawaterk-subtitle {
    font-size: .8rem;
    font-weight: 700;
    color: #888;
    margin-bottom: 12px
}

.fw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(110px,1fr));
    gap: 10px
}

.fw-btn {
    border: 2px solid #eee6d8;
    border-radius: 10px;
    padding: 12px 8px;
    cursor: pointer;
    text-align: center;
    transition: all .18s;
    background: #fff;
    font-family: inherit;
    font-size: .78rem;
    font-weight: 700;
    color: #555;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px
}

    .fw-btn:hover {
        border-color: var(--desert-gold);
        color: var(--desert-brown)
    }

    .fw-btn.selected {
        border-color: var(--desert-gold);
        background: #fffbf3;
        color: var(--desert-gold)
    }

    .fw-btn i {
        font-size: 1.4rem
    }

/* ══ ADDRESS SUMMARY (payment tab) ══════════════════════════════════════════ */
.addr-summary-card {
    background: #f5f1ea;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-size: .84rem;
    color: #444;
    line-height: 1.55
}

    .addr-summary-card .change-link {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: .78rem;
        font-weight: 700;
        color: var(--desert-gold);
        cursor: pointer;
        border: none;
        background: none;
        font-family: inherit;
        padding: 0;
        margin-top: 6px
    }

/* ══ PAYMENT REDIRECT BOX ════════════════════════════════════════════════════ */
.pay-redirect-box {
    display: none;
    text-align: center;
    padding: 28px 20px;
    border: 2px solid #eee6d8;
    border-radius: 14px;
    background: #fffbf3;
    margin-bottom: 16px
}

    .pay-redirect-box.open {
        display: block
    }

    .pay-redirect-box > i {
        font-size: 2.8rem;
        color: var(--desert-gold);
        margin-bottom: 10px;
        display: block
    }

    .pay-redirect-box h5 {
        font-size: .97rem;
        font-weight: 800;
        color: var(--desert-dark);
        margin-bottom: 6px
    }

    .pay-redirect-box p {
        font-size: .83rem;
        color: #888;
        margin-bottom: 14px
    }

.pay-redirect-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--desert-gold);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 24px;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background .18s
}

    .pay-redirect-btn:hover {
        background: var(--desert-accent);
        color: #fff
    }

/* ══ SUMMARY PANEL ════════════════════════════════════════════════════════════ */
.co-summary {
    background: #fff;
    border: 1px solid #eee6d8;
    border-radius: 16px;
    padding: 24px;
    position: sticky;
    top: 90px
}

.co-sum-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--desert-dark);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 9px
}

.co-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f0e8
}

    .co-item:last-child {
        border-bottom: none
    }

.co-item-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #eee
}

.co-item-ph {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: #f5f0e8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    flex-shrink: 0
}

.co-item-info {
    flex: 1;
    min-width: 0
}

.co-item-name {
    font-size: .82rem;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.co-item-qty {
    font-size: .73rem;
    color: #aaa;
    margin-top: 2px
}

.co-item-price {
    font-size: .87rem;
    font-weight: 700;
    color: var(--desert-gold);
    white-space: nowrap
}

.sum-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    font-size: .85rem;
    color: #555;
    border-bottom: 1px solid #f5f0e8
}

    .sum-row:last-child {
        border-bottom: none
    }

    .sum-row.total {
        font-size: .96rem;
        font-weight: 800;
        color: var(--desert-dark);
        padding-top: 12px
    }

/* ══ BUTTONS ══════════════════════════════════════════════════════════════════ */
.btn-next {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 11px;
    background: var(--desert-gold);
    color: #fff;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: all .2s;
    margin-top: 6px
}

    .btn-next:hover {
        background: var(--desert-accent);
        transform: translateY(-1px)
    }

    .btn-next:disabled {
        opacity: .6;
        cursor: not-allowed;
        transform: none
    }

.btn-place {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 11px;
    background: linear-gradient(135deg,#16a34a,#15803d);
    color: #fff;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: all .2s;
    margin-top: 6px
}

    .btn-place:hover {
        filter: brightness(1.08);
        transform: translateY(-1px)
    }

    .btn-place:disabled {
        opacity: .6;
        cursor: not-allowed;
        transform: none
    }

/* ══ RESPONSIVE ══════════════════════════════════════════════════════════════ */
@media(max-width:767px) {
    .pay-methods {
        grid-template-columns: 1fr
    }

    .addr-grid {
        grid-template-columns: 1fr
    }

    .fw-grid {
        grid-template-columns: repeat(2,1fr)
    }
}

@media(max-width:575px) {
    .step {
        font-size: .7rem
    }

    .step-circle {
        width: 26px;
        height: 26px
    }

    .co-tab-btn {
        font-size: .78rem
    }
}




/* Success Icon */
.success-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg,#4CAF50,#81C784);
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 40px rgba(76,175,80,.3);
    animation: popIn .6s cubic-bezier(.34,1.56,.64,1) both;
}

@keyframes popIn {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.success-circle i {
    font-size: 3rem;
    color: #fff;
}

.confirm-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--desert-dark);
    margin-bottom: 8px;
}

.confirm-sub {
    font-size: 1rem;
    color: #777;
    margin-bottom: 32px;
    line-height: 1.7;
}

/* Order ID badge */
.order-id-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--desert-sand);
    border: 2px dashed var(--desert-gold);
    border-radius: 12px;
    padding: 14px 24px;
    font-size: .9rem;
    font-weight: 700;
    color: var(--desert-brown);
    margin-bottom: 36px;
}

    .order-id-badge span {
        font-size: 1.2rem;
        color: var(--desert-dark);
    }

/* Info cards */
.confirm-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 36px;
    text-align: right;
}

@media(max-width:480px) {
    .confirm-cards {
        grid-template-columns: 1fr;
    }
}

.cc {
    background: #fff;
    border: 1.5px solid var(--desert-border);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.cc-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(200,169,110,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .cc-icon i {
        font-size: 1.1rem;
        color: var(--desert-gold);
    }

.cc-label {
    font-size: .73rem;
    color: #999;
    margin-bottom: 2px;
}

.cc-val {
    font-size: .88rem;
    font-weight: 700;
    color: var(--desert-dark);
}

/* CTAs */
.confirm-ctas {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-orders {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--desert-gold);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 13px 28px;
    font-family: inherit;
    font-size: .93rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

    .btn-orders:hover {
        background: var(--desert-accent);
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(200,169,110,.4);
    }

.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--desert-brown);
    border: 1.5px solid var(--desert-border);
    border-radius: 10px;
    padding: 12px 24px;
    font-family: inherit;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

    .btn-home:hover {
        border-color: var(--desert-gold);
        color: var(--desert-gold);
    }

/* Confetti animation */
.confetti-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 8px;
    height: 12px;
    top: -20px;
    border-radius: 2px;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
    }
}

/* Lottie-like check animation (pure CSS) */
.checkmark {
    stroke-dasharray: 80;
    stroke-dashoffset: 80;
    animation: drawCheck .6s ease .3s forwards;
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

/* Steps timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 380px;
    margin: 32px auto;
    text-align: right;
}

.tl-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.tl-left {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tl-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--desert-gold);
    flex-shrink: 0;
    margin-top: 3px;
}

.tl-line {
    width: 2px;
    flex: 1;
    background: var(--desert-border);
    min-height: 28px;
}

.tl-item:last-child .tl-line {
    display: none;
}

.tl-body {
    padding-bottom: 20px;
}

.tl-title {
    font-weight: 700;
    font-size: .88rem;
    color: var(--desert-dark);
}

.tl-desc {
    font-size: .77rem;
    color: #999;
    margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════
                                           HOME PAGE STYLES  — desert palette, RTL-first, fully responsive
                                           ═══════════════════════════════════════════════════════════════════════ */

/* ── HERO ─────────────────────────────────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, var(--desert-dark) 0%, #2c1f0e 50%, #3d2910 100%);
    padding: 68px 0 60px;
    position: relative;
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse 60% 50% at 20% 50%, rgba(200,169,110,.13) 0%, transparent 70%), radial-gradient(ellipse 40% 60% at 80% 30%, rgba(232,184,75,.08) 0%, transparent 70%);
        pointer-events: none;
    }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(200,169,110,.18);
    border: 1px solid rgba(200,169,110,.3);
    border-radius: 30px;
    color: var(--desert-gold);
    font-size: .78rem;
    font-weight: 700;
    padding: 5px 14px;
    margin-bottom: 18px;
    letter-spacing: .4px;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
}

    .hero-title span {
        color: var(--desert-gold);
    }

.hero-sub {
    font-size: 1rem;
    color: #c0b098;
    margin-bottom: 32px;
    max-width: 520px;
    line-height: 1.7;
}

.hero-cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-btn-primary {
    background: var(--desert-gold);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 13px 30px;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all .2s;
}

    .hero-btn-primary:hover {
        background: var(--desert-accent);
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(200,169,110,.4);
    }

.hero-btn-secondary {
    background: transparent;
    color: var(--desert-sand);
    border: 2px solid rgba(200,169,110,.4);
    border-radius: 10px;
    padding: 12px 26px;
    font-family: inherit;
    font-size: .92rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all .2s;
}

    .hero-btn-secondary:hover {
        border-color: var(--desert-gold);
        color: var(--desert-gold);
    }

.hero-stats {
    display: flex;
    gap: 28px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--desert-gold);
    line-height: 1;
}

.hero-stat-lbl {
    font-size: .73rem;
    color: #888;
    margin-top: 3px;
}

.hero-img-side {
    position: relative;
}

    .hero-img-side img {
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(0,0,0,.45);
        max-height: 420px;
        width: 100%;
        object-fit: cover;
    }

.hero-badge-float {
    position: absolute;
    background: #fff;
    border-radius: 14px;
    padding: 10px 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    font-size: .78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
}

    .hero-badge-float.badge-top {
        top: -16px;
        inset-inline-end: 20px;
    }

    .hero-badge-float.badge-bot {
        bottom: -16px;
        inset-inline-start: 20px;
    }

    .hero-badge-float i {
        font-size: 1.3rem;
        color: var(--desert-gold);
    }

/* ── FEATURES STRIP ───────────────────────────────────────────────────── */
.features-strip {
    background: var(--desert-sand);
    border-top: 1px solid var(--desert-border);
    border-bottom: 1px solid var(--desert-border);
    padding: 18px 0;
}

    .features-strip .feature-item {
        display: flex;
        align-items: center;
        gap: 10px;
        justify-content: center;
    }

        .features-strip .feature-item i {
            font-size: 1.4rem;
            color: var(--desert-gold);
        }

    .features-strip .feature-title {
        font-weight: 700;
        font-size: .86rem;
        color: var(--desert-dark);
    }

    .features-strip .feature-sub {
        font-size: .74rem;
        color: #888;
    }

/* ── SECTION WRAPPER ──────────────────────────────────────────────────── */
.home-section {
    padding: 56px 0 40px;
}

    .home-section + .home-section {
        padding-top: 0;
    }

/* section heading row */
.sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 26px;
    flex-wrap: wrap;
    gap: 10px;
}

.sec-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--desert-dark);
    position: relative;
    padding-bottom: 9px;
    margin: 0;
}

    .sec-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        inset-inline-start: 0;
        width: 48px;
        height: 3px;
        background: var(--desert-gold);
        border-radius: 3px;
    }

.sec-link {
    font-size: .83rem;
    font-weight: 700;
    color: var(--desert-gold);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap .15s;
}

    .sec-link:hover {
        gap: 8px;
        color: var(--desert-brown);
    }

/* ── CATEGORY PILLS ───────────────────────────────────────────────────── */
.cat-pill-row {
    display: flex;
    gap: 9px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    margin-bottom: 28px;
}

    .cat-pill-row::-webkit-scrollbar {
        display: none;
    }

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 30px;
    border: 2px solid #eee6d8;
    background: #fff;
    font-family: inherit;
    font-size: .82rem;
    font-weight: 700;
    color: #555;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all .18s;
}

    .cat-pill:hover {
        border-color: var(--desert-gold);
        color: var(--desert-gold);
    }

    .cat-pill.active {
        background: var(--desert-gold);
        border-color: var(--desert-gold);
        color: #fff;
    }

/* ── CATEGORY PILL EXTRAS ────────────────────────────────────────────── */
.cat-pill-count {
    background: rgba(0,0,0,.08);
    border-radius: 99px;
    font-size: .68rem;
    padding: 1px 7px;
    font-weight: 800;
    line-height: 1.6;
}

.cat-pill.active .cat-pill-count {
    background: rgba(255,255,255,.25);
}

/* Sub-category pills slightly smaller / muted by default */
.cat-pill-sub {
    font-size: .77rem;
    padding: 6px 14px;
    border-style: dashed;
    opacity: .85;
}

    .cat-pill-sub:hover,
    .cat-pill-sub.active {
        opacity: 1;
    }

/* ── PRODUCTS GRID ────────────────────────────────────────────────────── */
.home-prod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 18px;
    min-height: 280px;
    position: relative;
}

/* full-size product card (bigger than nav mini-card) */
.hp-card {
    background: #fff;
    border: 1px solid #eee6d8;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s, transform .2s;
    position: relative;
}

    .hp-card:hover {
        box-shadow: 0 8px 28px rgba(200,169,110,.22);
        transform: translateY(-3px);
        color: inherit;
    }

.hp-card-img-wrap {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f5f0e8;
}

    .hp-card-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .3s;
    }

.hp-card:hover .hp-card-img-wrap img {
    transform: scale(1.04);
}

.hp-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d8cfc0;
    font-size: 3rem;
}

/* discount badge */
.hp-badge-discount {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    background: #e53935;
    color: #fff;
    font-size: .65rem;
    font-weight: 800;
    border-radius: 30px;
    padding: 3px 10px;
    z-index: 2;
}

/* wishlist button */
.hp-wish-btn {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    color: #bbb;
    cursor: pointer;
    z-index: 2;
    transition: color .15s, background .15s;
    backdrop-filter: blur(3px);
}

    .hp-wish-btn:hover {
        color: #e53935;
        background: #fff;
    }

    .hp-wish-btn.wished {
        color: #e53935;
    }

/* card body */
.hp-card-body {
    padding: 13px 14px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hp-vendor {
    font-size: .7rem;
    color: #aaa;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hp-name {
    font-size: .88rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.hp-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.hp-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--desert-gold);
}

.hp-price-old {
    font-size: .77rem;
    color: #bbb;
    text-decoration: line-through;
}

/* add to cart btn at bottom of card */
.hp-add-btn {
    margin: 0 14px 13px;
    padding: 9px;
    border: none;
    border-radius: 10px;
    background: var(--desert-gold);
    color: #fff;
    font-family: inherit;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background .15s;
    flex-shrink: 0;
    text-decoration: none;
}

    .hp-add-btn:hover {
        background: var(--desert-accent);
        color: #fff;
    }

    .hp-add-btn:disabled {
        opacity: .65;
        cursor: wait;
    }

/* ── GRID SKELETON ────────────────────────────────────────────────────── */
.hp-skeleton-card {
    background: #faf7f2;
    border: 1px solid #eee6d8;
    border-radius: 14px;
    overflow: hidden;
}

.hp-sk-img {
    aspect-ratio: 4/3;
}

.hp-sk-body {
    padding: 13px 14px;
}

.hp-sk-line {
    height: 11px;
    border-radius: 5px;
    margin-bottom: 8px;
}

/* ── EMPTY / ERROR STATE ──────────────────────────────────────────────── */
.hp-state-box {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 20px;
    text-align: center;
}

    .hp-state-box i {
        font-size: 3rem;
        color: #ddd;
    }

    .hp-state-box p {
        font-size: .9rem;
        color: #bbb;
        margin: 0;
        font-weight: 600;
    }

/* ── PAGINATION ───────────────────────────────────────────────────────── */
.hp-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.hp-page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 9px;
    border: 2px solid #eee6d8;
    background: #fff;
    font-family: inherit;
    font-size: .83rem;
    font-weight: 700;
    color: #555;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .17s;
}

    .hp-page-btn:hover {
        border-color: var(--desert-gold);
        color: var(--desert-gold);
    }

    .hp-page-btn.active {
        background: var(--desert-gold);
        border-color: var(--desert-gold);
        color: #fff;
    }

    .hp-page-btn:disabled {
        opacity: .4;
        cursor: not-allowed;
    }

/* ── PROMO BANNER ─────────────────────────────────────────────────────── */
.promo-banner {
    border-radius: 18px;
    background: linear-gradient(135deg, var(--desert-dark) 0%, #3d2b14 100%);
    padding: 38px 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin: 10px 0 52px;
    overflow: hidden;
    position: relative;
}

    .promo-banner::before {
        content: '';
        position: absolute;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        background: rgba(200,169,110,.08);
        inset-inline-end: -80px;
        top: -80px;
        pointer-events: none;
    }

    .promo-banner::after {
        content: '';
        position: absolute;
        width: 200px;
        height: 200px;
        border-radius: 50%;
        background: rgba(200,169,110,.06);
        inset-inline-start: -60px;
        bottom: -60px;
        pointer-events: none;
    }

.promo-eyebrow {
    font-size: .73rem;
    font-weight: 700;
    color: var(--desert-gold);
    letter-spacing: .5px;
    margin-bottom: 7px;
    text-transform: uppercase;
}

.promo-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 10px;
}

.promo-sub {
    font-size: .88rem;
    color: #c0b098;
    margin-bottom: 22px;
}

.promo-btn {
    background: var(--desert-gold);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 28px;
    font-family: inherit;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all .2s;
}

    .promo-btn:hover {
        background: var(--desert-accent);
        color: #fff;
        transform: translateY(-2px);
    }

/* ── BACK TO TOP ──────────────────────────────────────────────────────── */
#backTop {
    position: fixed;
    bottom: 28px;
    inset-inline-start: 28px;
    width: 44px;
    height: 44px;
    background: var(--desert-gold);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
    z-index: 500;
    box-shadow: 0 4px 16px rgba(200,169,110,.4);
}

    #backTop.show {
        opacity: 1;
        pointer-events: auto;
    }

    #backTop:hover {
        transform: translateY(-3px);
    }

/* ── RESPONSIVE ───────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .hero-section {
        padding: 44px 0 40px;
    }

    .hero-img-side {
        margin-top: 32px;
    }

    .hero-badge-float {
        display: none;
    }

    .home-prod-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    }
}

@media (max-width: 575px) {
    .hero-section {
        padding: 32px 0 28px;
    }

    .home-prod-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .promo-banner {
        padding: 28px 22px;
    }

    .promo-title {
        font-size: 1.25rem;
    }

    .features-strip .col {
        margin-bottom: 12px;
    }

    .hp-card-body {
        padding: 10px 11px 8px;
    }

    .hp-add-btn {
        margin: 0 11px 10px;
    }
}

/* ── Address Page ──────────────────────────────────────── */
.addr-page {
    padding: 2rem 0 4rem;
    min-height: 60vh;
}

.addr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0e8d8;
}

.addr-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: .6rem;
}

    .addr-title i {
        color: var(--desert-gold, #c8972b);
    }

.addr-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1.2rem;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all .2s;
}

.addr-btn-primary {
    background: var(--desert-gold, #c8972b);
    color: #fff;
}

    .addr-btn-primary:hover {
        background: #a87820;
        color: #fff;
    }

.addr-btn-outline {
    background: transparent;
    border: 1.5px solid #e2d8c8;
    color: #555;
}

    .addr-btn-outline:hover {
        border-color: #c8972b;
        color: #c8972b;
        background: #fdf8ee;
    }

.addr-btn-danger {
    background: transparent;
    border: 1.5px solid #ffd0d0;
    color: #d32f2f;
}

    .addr-btn-danger:hover {
        background: #d32f2f;
        color: #fff;
    }

.addr-btn-sm {
    padding: .35rem .85rem;
    font-size: .8rem;
}

/* ── Skeleton ──────────────────────────────────────────── */
.skel-pulse {
    background: linear-gradient(90deg,#f0e8d8 25%,#fdf8ee 50%,#f0e8d8 75%);
    background-size: 200% 100%;
    animation: skel-anim 1.4s infinite;
    border-radius: 6px;
}

@keyframes skel-anim {
    0% {
        background-position: 200% 0
    }

    100% {
        background-position: -200% 0
    }
}

/* ── Address Grid ──────────────────────────────────────── */
.addr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.addr-card {
    background: #fff;
    border: 2px solid #ede6d8;
    border-radius: 14px;
    padding: 1.25rem;
    position: relative;
    transition: box-shadow .2s, border-color .2s;
}

    .addr-card:hover {
        box-shadow: 0 6px 24px rgba(200,151,43,.12);
    }

    .addr-card.is-default {
        border-color: var(--desert-gold, #c8972b);
    }

.addr-default-badge {
    position: absolute;
    top: .75rem;
    left: .75rem;
    background: var(--desert-gold, #c8972b);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: .25rem;
}

.addr-card-type {
    font-size: .75rem;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .5rem;
    margin-top: .2rem;
}

.addr-card.is-default .addr-card-type {
    margin-top: 1.6rem;
}

.addr-card-name {
    font-size: 1rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: .2rem;
}

.addr-card-line {
    font-size: .88rem;
    color: #555;
    line-height: 1.6;
}

    .addr-card-line i {
        color: #c8972b;
        margin-left: .3rem;
        width: 1rem;
    }

.addr-card-actions {
    display: flex;
    gap: .5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* ── Add Card (dashed) ────────────────────────────────── */
.addr-add-card {
    background: #fdf8ee;
    border: 2px dashed #e2d8c8;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 180px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    color: #c8972b;
}

    .addr-add-card:hover {
        border-color: #c8972b;
        background: #fef5e0;
    }

    .addr-add-card i {
        font-size: 2rem;
    }

    .addr-add-card span {
        font-size: .9rem;
        font-weight: 700;
    }

/* ── Empty state ──────────────────────────────────────── */
.addr-empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 3.5rem 1rem;
    color: #aaa;
}

    .addr-empty i {
        font-size: 3.5rem;
        display: block;
        margin-bottom: 1rem;
        color: #e0d0b8;
    }

    .addr-empty h3 {
        font-size: 1.1rem;
        font-weight: 700;
        color: #555;
    }

    .addr-empty p {
        font-size: .9rem;
    }

/* ── Modal ────────────────────────────────────────────── */
.addr-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

    .addr-modal-backdrop.show {
        display: flex;
    }

.addr-modal {
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
    position: relative;
    animation: modal-in .25s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modal-in {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.addr-modal-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

    .addr-modal-title i {
        color: var(--desert-gold, #c8972b);
    }

.addr-modal-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    padding: .25rem;
}

    .addr-modal-close:hover {
        color: #333;
    }

.form-label {
    font-weight: 700;
    font-size: .85rem;
    color: #444;
    margin-bottom: .3rem;
}

.form-control {
    border: 1.5px solid #e2d8c8;
    border-radius: 8px;
    padding: .55rem .85rem;
    font-size: .9rem;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
}

    .form-control:focus {
        outline: none;
        border-color: #c8972b;
        box-shadow: 0 0 0 3px rgba(200,151,43,.12);
    }

.form-group {
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}

.form-check-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .5rem;
}

    .form-check-row input[type=checkbox] {
        width: 16px;
        height: 16px;
        cursor: pointer;
        accent-color: #c8972b;
    }

    .form-check-row label {
        font-size: .88rem;
        font-weight: 600;
        color: #555;
        cursor: pointer;
    }

.modal-footer {
    display: flex;
    gap: .6rem;
    justify-content: flex-end;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid #f0e8d8;
}

/* ── Toast ────────────────────────────────────────────── */
.addr-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1a1a1a;
    color: #fff;
    padding: .65rem 1.4rem;
    border-radius: 30px;
    font-size: .88rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity .3s, transform .3s;
    z-index: 9999;
    pointer-events: none;
    white-space: nowrap;
}

    .addr-toast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    .addr-toast .ti-ok {
        color: #4caf50;
        margin-left: .4rem;
    }

    .addr-toast .ti-err {
        color: #ef5350;
        margin-left: .4rem;
    }

/* Skel card */
.addr-skel-card {
    border-radius: 14px;
    border: 1px solid #ede6d8;
    background: #fff;
    padding: 1.25rem;
}

.addr-sk-line {
    height: 12px;
    margin-bottom: .6rem;
}

/* ── Wishlist Page ─────────────────────────────────────── */
.wl-page {
    padding: 2rem 0 4rem;
    min-height: 60vh;
}

.wl-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0e8d8;
}

.wl-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: .6rem;
}

    .wl-title i {
        color: var(--desert-gold, #c8972b);
    }

.wl-count-pill {
    background: var(--desert-gold, #c8972b);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    border-radius: 20px;
    padding: 2px 10px;
    margin-right: .4rem;
}

.wl-actions {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}

.wl-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem 1rem;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all .2s;
}

.wl-btn-outline {
    background: transparent;
    border: 1.5px solid #e2d8c8;
    color: #666;
}

    .wl-btn-outline:hover {
        border-color: #c8972b;
        color: #c8972b;
        background: #fdf8ee;
    }

.wl-btn-danger {
    background: #fff0f0;
    color: #d32f2f;
    border: 1.5px solid #ffd0d0;
}

    .wl-btn-danger:hover {
        background: #d32f2f;
        color: #fff;
    }

/* ── Skeleton ─────────────────────────────────────────── */
.skel-pulse {
    background: linear-gradient(90deg,#f0e8d8 25%,#fdf8ee 50%,#f0e8d8 75%);
    background-size: 200% 100%;
    animation: skel-anim 1.4s infinite;
    border-radius: 6px;
}

@keyframes skel-anim {
    0% {
        background-position: 200% 0
    }

    100% {
        background-position: -200% 0
    }
}

.wish-badge {
    position: absolute;
    top: -7px;
    right: -7px; /* LTR: badge on left side of icon */
    background: var(--desert-gold);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.62rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    line-height: 1;
}

    .wish-badge.visible {
        display: flex;
    }


/* ── Product Grid ─────────────────────────────────────── */
.wl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.wl-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #ede6d8;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    position: relative;
    display: flex;
    flex-direction: column;
}

    .wl-card:hover {
        box-shadow: 0 8px 28px rgba(200,151,43,.13);
        transform: translateY(-3px);
    }

.wl-card-img-wrap {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #faf7f2;
}

    .wl-card-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .35s;
    }

.wl-card:hover .wl-card-img-wrap img {
    transform: scale(1.04);
}

.wl-card-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 2.5rem;
}

/* Remove button on card */
.wl-remove-btn {
    position: absolute;
    top: .6rem;
    left: .6rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.92);
    color: #d32f2f;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s, transform .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    z-index: 2;
}

    .wl-remove-btn:hover {
        background: #d32f2f;
        color: #fff;
        transform: scale(1.1);
    }

.wl-card-body {
    padding: .9rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.wl-card-vendor {
    font-size: .72rem;
    color: #c8972b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .25rem;
}

.wl-card-name {
    font-size: .92rem;
    font-weight: 700;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}

.wl-card-price {
    font-size: 1rem;
    font-weight: 800;
    color: #c8972b;
    margin-top: auto;
}

.wl-card-variant-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .72rem;
    font-weight: 600;
    color: #7c5c2e;
    background: #fdf4e7;
    border: 1px solid #f0ddb8;
    border-radius: 20px;
    padding: 2px 9px;
    margin-bottom: 6px;
}

    .wl-card-variant-badge i {
        font-size: .65rem;
    }

.wl-card-old {
    font-size: .8rem;
    font-weight: 400;
    color: #aaa;
    text-decoration: line-through;
    margin-right: .4rem;
}

.wl-add-btn {
    width: 100%;
    padding: .6rem;
    border: none;
    border-radius: 0 0 14px 14px;
    background: var(--desert-gold, #c8972b);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    transition: background .2s, opacity .2s;
}

    .wl-add-btn:hover {
        background: #a87820;
    }

    .wl-add-btn:disabled {
        opacity: .65;
        cursor: not-allowed;
    }

/* ── Skeleton cards ───────────────────────────────────── */
.wl-skel-card {
    border-radius: 14px;
    border: 1px solid #ede6d8;
    overflow: hidden;
    background: #fff;
}

.wl-sk-img {
    aspect-ratio: 1;
}

.wl-sk-body {
    padding: .9rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.wl-sk-line {
    height: 12px;
}

/* ── Empty + Error state ──────────────────────────────── */
.wl-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1rem;
    color: #aaa;
}

    .wl-state i {
        font-size: 3.5rem;
        display: block;
        margin-bottom: 1rem;
        color: #e0d0b8;
    }

    .wl-state h3 {
        font-size: 1.15rem;
        font-weight: 700;
        color: #555;
        margin-bottom: .5rem;
    }

    .wl-state p {
        font-size: .9rem;
        color: #aaa;
    }

    .wl-state a {
        display: inline-flex;
        align-items: center;
        gap: .4rem;
        margin-top: 1.2rem;
        padding: .55rem 1.4rem;
        background: var(--desert-gold, #c8972b);
        color: #fff;
        border-radius: 8px;
        font-weight: 700;
        font-size: .9rem;
        text-decoration: none;
        transition: background .2s;
    }

        .wl-state a:hover {
            background: #a87820;
            color: #fff;
        }

/* ── Toast ────────────────────────────────────────────── */
.wl-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1a1a1a;
    color: #fff;
    padding: .65rem 1.4rem;
    border-radius: 30px;
    font-size: .88rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity .3s, transform .3s;
    z-index: 9999;
    pointer-events: none;
    white-space: nowrap;
}

    .wl-toast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    .wl-toast .ti-ok {
        color: #4caf50;
        margin-left: .4rem;
    }

    .wl-toast .ti-err {
        color: #ef5350;
        margin-left: .4rem;
    }

/* ── Products Page ────────────────────────────────────────────────────── */
.prods-page {
    padding: 2rem 0 4rem;
    background: #f8f7f5;
    min-height: 80vh;
}

/* ── Page header ── */
.prods-hero {
    background: linear-gradient(135deg, #1a1208 0%, #2d1f0a 50%, #1a1208 100%);
    padding: 2.5rem 0 2rem;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

    .prods-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c8860a' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    }

.prods-hero-inner {
    position: relative;
    z-index: 1;
}

.prods-hero-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 .4rem;
}

    .prods-hero-title span {
        color: #c8860a;
    }

.prods-hero-sub {
    color: rgba(255,255,255,.55);
    font-size: .9rem;
    margin: 0;
}

.prods-breadcrumb {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    color: rgba(255,255,255,.45);
    margin-bottom: .8rem;
}

    .prods-breadcrumb a {
        color: rgba(255,255,255,.55);
        text-decoration: none;
    }

        .prods-breadcrumb a:hover {
            color: #c8860a;
        }

    .prods-breadcrumb i {
        font-size: .6rem;
    }

/* ── Search bar ── */
.prods-search-wrap {
    display: flex;
    gap: 0;
    max-width: 520px;
    margin-top: 1.2rem;
}

.prods-search-input {
    flex: 1;
    border: none;
    border-radius: 0 10px 10px 0;
    padding: .65rem 1rem;
    font-size: .9rem;
    outline: none;
    font-family: inherit;
    background: rgba(255,255,255,.92);
}

.prods-search-btn {
    background: #c8860a;
    border: none;
    border-radius: 10px 0 0 10px;
    padding: .65rem 1.2rem;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    transition: background .2s;
}

    .prods-search-btn:hover {
        background: #a06b08;
    }

/* ── Layout ── */
.prods-layout {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem 0;
}

.prods-sidebar {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
}

.prods-main {
    flex: 1;
    min-width: 0;
}

/* ── Filter Card ── */
.filter-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    overflow: hidden;
}

.filter-card-title {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #999;
    margin-bottom: .8rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}

    .filter-card-title i {
        color: #c8860a;
    }

/* Category filter pills */
.cat-filter-list {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.cat-filter-btn {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .7rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: .87rem;
    color: #444;
    text-align: start;
    transition: all .18s;
    width: 100%;
}

    .cat-filter-btn:hover {
        background: #fdf3e1;
        color: #c8860a;
    }

    .cat-filter-btn.active {
        background: #fdf3e1;
        color: #c8860a;
        font-weight: 600;
    }

    .cat-filter-btn .cat-count {
        margin-inline-start: auto;
        font-size: .72rem;
        background: #f0e4c8;
        color: #8a5c06;
        padding: .1rem .45rem;
        border-radius: 20px;
    }

/* Price range */
.price-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}

.price-input {
    flex: 1 1 80px;
    min-width: 0;
    max-width: 100%;
    border: 1.5px solid #e8e0d0;
    border-radius: 8px;
    padding: .4rem .6rem;
    font-size: .82rem;
    font-family: inherit;
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
}

    .price-input:focus {
        border-color: #c8860a;
    }

.price-sep {
    color: #bbb;
    font-size: .8rem;
}

/* Sort select */
.sort-select {
    width: 100%;
    border: 1.5px solid #e8e0d0;
    border-radius: 8px;
    padding: .45rem .7rem;
    font-size: .87rem;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    background: #fff;
    transition: border-color .2s;
}

    .sort-select:focus {
        border-color: #c8860a;
    }

/* Brand checkboxes */
.brand-list {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    max-height: 200px;
    overflow-y: auto;
}

.brand-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
}

    .brand-item input[type=checkbox] {
        accent-color: #c8860a;
        width: 15px;
        height: 15px;
        cursor: pointer;
    }

    .brand-item label {
        font-size: .87rem;
        color: #444;
        cursor: pointer;
    }

.apply-filter-btn {
    width: 100%;
    background: #c8860a;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: .6rem;
    font-size: .9rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    margin-top: .8rem;
}

    .apply-filter-btn:hover {
        background: #a06b08;
    }

.reset-filter-btn {
    width: 100%;
    background: transparent;
    color: #999;
    border: 1.5px solid #e8e0d0;
    border-radius: 10px;
    padding: .5rem;
    font-size: .85rem;
    font-family: inherit;
    cursor: pointer;
    transition: all .2s;
    margin-top: .4rem;
}

    .reset-filter-btn:hover {
        border-color: #c8860a;
        color: #c8860a;
    }

/* ── Toolbar ── */
.prods-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
    gap: .7rem;
}

.prods-result-count {
    font-size: .85rem;
    color: #888;
}

    .prods-result-count strong {
        color: #222;
    }

.view-toggle {
    display: flex;
    gap: .3rem;
}

.view-btn {
    width: 34px;
    height: 34px;
    border: 1.5px solid #e0d9ce;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #aaa;
    transition: all .18s;
    font-size: .95rem;
}

    .view-btn.active, .view-btn:hover {
        border-color: #c8860a;
        color: #c8860a;
        background: #fdf3e1;
    }

/* Active filters chips */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: .8rem;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: #fdf3e1;
    border: 1px solid #e8d5aa;
    color: #8a5c06;
    border-radius: 20px;
    padding: .25rem .7rem;
    font-size: .78rem;
    font-weight: 500;
}

    .filter-chip button {
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        color: #c8860a;
        font-size: .75rem;
        line-height: 1;
        display: flex;
        align-items: center;
    }

/* ── Product Grid ── */
.prod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1.2rem;
}

    .prod-grid.list-view {
        grid-template-columns: 1fr;
    }

/* Product card */
.prod-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: transform .22s, box-shadow .22s;
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

    .prod-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0,0,0,.12);
    }

.prod-grid.list-view .prod-card {
    flex-direction: row;
    height: 140px;
}

/* Image */
.prod-card-img {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f0ea;
    flex-shrink: 0;
}

.prod-grid.list-view .prod-card-img {
    width: 140px;
    height: 140px;
    aspect-ratio: unset;
}

.prod-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

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

.prod-card-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 2.5rem;
}

/* Badges */
.prod-badge {
    position: absolute;
    top: .6rem;
    inset-inline-start: .6rem;
    background: #e53935;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: .18rem .5rem;
    border-radius: 6px;
}

    .prod-badge.new {
        background: #2e7d32;
    }

/* Wish btn */
.prod-wish-btn {
    position: absolute;
    top: .6rem;
    inset-inline-end: .6rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: #ccc;
    transition: all .2s;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
}

    .prod-wish-btn:hover, .prod-wish-btn.wished {
        color: #e53935;
    }

/* Body */
.prod-card-body {
    padding: .8rem .9rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: .3rem;
}

.prod-grid.list-view .prod-card-body {
    padding: .8rem 1rem;
    justify-content: center;
}

.prod-card-vendor {
    font-size: .72rem;
    color: #c8860a;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .25rem;
}

.prod-card-name {
    font-size: .9rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

    .prod-card-name:hover {
        color: #c8860a;
    }

.prod-grid.list-view .prod-card-name {
    -webkit-line-clamp: 1;
    font-size: 1rem;
}

.prod-card-rating {
    display: flex;
    align-items: center;
    gap: .3rem;
    font-size: .75rem;
    color: #888;
}

    .prod-card-rating i {
        color: #f59e0b;
        font-size: .8rem;
    }

.prod-card-price {
    display: flex;
    align-items: baseline;
    gap: .4rem;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: auto;
}

.prod-card-old {
    font-size: .8rem;
    color: #bbb;
    text-decoration: line-through;
    font-weight: 400;
}

.prod-add-btn {
    margin: 0 .9rem .9rem;
    background: var(--desert-gold);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: .5rem .8rem;
    font-size: .82rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}

    .prod-add-btn:hover {
        background: #c8860a;
    }

.prod-grid.list-view .prod-add-btn {
    margin: 0;
    align-self: center;
    white-space: nowrap;
    padding: .5rem 1.2rem;
}

.prod-grid.list-view .prod-card-body {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
}

.prod-grid.list-view .prod-card-info {
    flex: 1;
    min-width: 0;
}

/* ── Skeleton ── */
.prod-skel {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.prod-skel-img {
    height: 200px;
    background: #f0ece6;
}

.prod-skel-body {
    padding: .8rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.sk-line {
    height: 11px;
    border-radius: 6px;
    background: #f0ece6;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1
    }

    50% {
        opacity: .45
    }
}

.skel-pulse {
    animation: pulse 1.4s ease-in-out infinite;
}

/* ── Empty / Error states ── */
.prods-state {
    text-align: center;
    padding: 5rem 1rem;
    color: #aaa;
}

    .prods-state i {
        font-size: 3.5rem;
        display: block;
        margin-bottom: 1rem;
    }

    .prods-state h3 {
        font-size: 1.15rem;
        color: #555;
        margin-bottom: .4rem;
    }

    .prods-state p {
        font-size: .88rem;
        margin: 0 0 1.2rem;
    }

/* ── Pagination ── */
.pagination-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 38px;
    height: 38px;
    border: 1.5px solid #e0d9ce;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: inherit;
    font-size: .85rem;
    color: #555;
    padding: 0 .6rem;
    transition: all .18s;
}

    .page-btn:hover:not(:disabled) {
        border-color: #c8860a;
        color: #c8860a;
    }

    .page-btn.active {
        background: #c8860a;
        border-color: #c8860a;
        color: #fff;
        font-weight: 700;
    }

    .page-btn:disabled {
        opacity: .4;
        cursor: not-allowed;
    }

/* ── Mobile sidebar overlay ── */
.filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1040;
}

    .filter-overlay.show {
        display: block;
    }

.filter-drawer {
    position: fixed;
    /* RTL: inline-end=0 anchors drawer to the LEFT edge of the screen */
    inset-inline-end: 0;
    inset-inline-start: auto;
    top: 0;
    bottom: 0;
    width: 285px;
    background: #fff;
    z-index: 1041;
    overflow-y: auto;
    padding: 1.2rem;
    /* Hidden: slide LEFT off screen (same direction as the anchor side) */
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    box-shadow: 4px 0 20px rgba(0,0,0,.15);
}

    .filter-drawer.show {
        transform: translateX(0);
    }

.filter-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    padding-bottom: .8rem;
    border-bottom: 1px solid #f0e8d8;
}

.filter-drawer-title {
    font-weight: 700;
    font-size: 1rem;
}

.filter-drawer-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #888;
}

.mobile-filter-btn {
    display: none;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border: 1.5px solid #e0d9ce;
    border-radius: 10px;
    padding: .5rem .9rem;
    font-size: .87rem;
    font-family: inherit;
    cursor: pointer;
    color: #444;
}

    .mobile-filter-btn:hover {
        border-color: #c8860a;
        color: #c8860a;
    }

@media (max-width: 768px) {
    .prods-sidebar {
        display: none;
    }

    .mobile-filter-btn {
        display: flex;
    }

    .prod-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: .8rem;
    }
}

@media (max-width: 480px) {
    .prod-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Product Detail Page ───────────────────────────────────────────────── */
.pd-page {
    padding: 1.5rem 0 4rem;
    background: #f8f7f5;
    min-height: 80vh;
}

/* Breadcrumb */
.pd-breadcrumb {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    color: #999;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

    .pd-breadcrumb a {
        color: #c8860a;
        text-decoration: none;
    }

        .pd-breadcrumb a:hover {
            text-decoration: underline;
        }

    .pd-breadcrumb i {
        font-size: .6rem;
        color: #ccc;
    }

/* ── Skeleton ─── */
.pd-skeleton {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media(max-width:768px) {
    .pd-skeleton {
        grid-template-columns: 1fr;
    }
}

.sk-box {
    border-radius: 12px;
    background: #e8e0d0;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1
    }

    50% {
        opacity: .45
    }
}

.skel-pulse {
    animation: pulse 1.4s ease-in-out infinite;
}

.sk-line {
    height: 12px;
    border-radius: 6px;
    background: #e8e0d0;
}

/* ── Error / Not found ── */
.pd-error {
    text-align: center;
    padding: 5rem 1rem;
    color: #aaa;
}

    .pd-error i {
        font-size: 4rem;
        display: block;
        margin-bottom: 1rem;
    }

    .pd-error h2 {
        color: #555;
        font-size: 1.3rem;
    }

/* ── Main layout ── */
.pd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media(max-width:900px) {
    .pd-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Gallery ── */
.pd-gallery {
    position: sticky;
    top: 80px;
}

.pd-main-img-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    aspect-ratio: 1;
    cursor: zoom-in;
}

    .pd-main-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: transform .4s;
        padding: 1rem;
    }

    .pd-main-img-wrap:hover img {
        transform: scale(1.05);
    }

.pd-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ddd;
    font-size: 5rem;
}

.pd-zoom-hint {
    position: absolute;
    bottom: .8rem;
    inset-inline-end: .8rem;
    background: rgba(0,0,0,.35);
    color: #fff;
    border-radius: 6px;
    padding: .25rem .6rem;
    font-size: .7rem;
    backdrop-filter: blur(4px);
}

/* Thumbnails */
.pd-thumbs {
    display: flex;
    gap: .6rem;
    margin-top: .8rem;
    overflow-x: auto;
    padding-bottom: .3rem;
}

.pd-thumb {
    width: 68px;
    height: 68px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    border: 2.5px solid transparent;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    transition: border-color .18s, transform .18s;
}

    .pd-thumb:hover {
        border-color: #c8860a;
        transform: translateY(-2px);
    }

    .pd-thumb.active {
        border-color: #c8860a;
    }

    .pd-thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 4px;
    }

/* Image counter badge */
.pd-img-counter {
    position: absolute;
    top: .8rem;
    inset-inline-start: .8rem;
    background: rgba(0,0,0,.45);
    color: #fff;
    border-radius: 6px;
    padding: .25rem .6rem;
    font-size: .7rem;
    backdrop-filter: blur(4px);
}

/* ── Info panel ── */
.pd-info {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

/* Badges row */
.pd-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.pd-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .25rem .7rem;
    border-radius: 20px;
    font-size: .73rem;
    font-weight: 600;
}

.pd-badge-new {
    background: #e8f5e9;
    color: #2e7d32;
}

.pd-badge-sale {
    background: #fce4ec;
    color: #c62828;
}

.pd-badge-verified {
    background: #fff8e1;
    color: #f57f17;
}

/* Title */
.pd-title {
    font-size: clamp(1.2rem, 3vw, 1.7rem);
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0;
}

.pd-sku {
    font-size: .75rem;
    color: #bbb;
    margin-top: .2rem;
}

/* Vendor */
.pd-vendor-row {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem .9rem;
    background: #fdf8f0;
    border-radius: 10px;
    border: 1px solid #f0e4c8;
    text-decoration: none;
    color: inherit;
    transition: background .2s;
}

    .pd-vendor-row:hover {
        background: #fdf3e1;
    }

.pd-vendor-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #c8860a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
    flex-shrink: 0;
}

.pd-vendor-name {
    font-size: .85rem;
    font-weight: 600;
    color: #1a1a1a;
}

.pd-vendor-label {
    font-size: .72rem;
    color: #888;
}

/* Rating */
.pd-rating-row {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.pd-stars {
    display: flex;
    gap: .1rem;
}

    .pd-stars i {
        font-size: .95rem;
        color: #f59e0b;
    }

        .pd-stars i.empty {
            color: #e0dbd0;
        }

.pd-rating-val {
    font-size: .95rem;
    font-weight: 700;
    color: #1a1a1a;
}

.pd-rating-count {
    font-size: .8rem;
    color: #888;
}

/* Price */
.pd-price-box {
    display: flex;
    align-items: baseline;
    gap: .7rem;
    flex-wrap: wrap;
}

.pd-price-main {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a1a;
}

.pd-price-old {
    font-size: 1rem;
    color: #bbb;
    text-decoration: line-through;
}

.pd-price-save {
    background: #fce4ec;
    color: #c62828;
    font-size: .75rem;
    font-weight: 700;
    padding: .2rem .55rem;
    border-radius: 6px;
}

/* Stock indicator */
.pd-stock {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .83rem;
    font-weight: 600;
}

    .pd-stock.in {
        color: #2e7d32;
    }

    .pd-stock.out {
        color: #c62828;
    }

    .pd-stock.low {
        color: #e65100;
    }

.pd-stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.pd-stock.in .pd-stock-dot {
    background: #2e7d32;
}

.pd-stock.out .pd-stock-dot {
    background: #c62828;
}

.pd-stock.low .pd-stock-dot {
    background: #e65100;
}

/* Quantity selector */
.pd-qty-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pd-qty-label {
    font-size: .85rem;
    color: #666;
    font-weight: 500;
}

.pd-qty-ctrl {
    display: flex;
    align-items: center;
    border: 1.5px solid #e0d9ce;
    border-radius: 10px;
    overflow: hidden;
}

.pd-qty-btn {
    width: 36px;
    height: 36px;
    background: #f8f5f0;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #444;
    transition: background .18s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .pd-qty-btn:hover {
        background: #f0e8d8;
        color: #c8860a;
    }

.pd-qty-val {
    width: 44px;
    text-align: center;
    font-size: .95rem;
    font-weight: 600;
    border: none;
    background: #fff;
    font-family: inherit;
    padding: 0;
    height: 36px;
    line-height: 36px;
}

/* CTA buttons */
.pd-cta-row {
    display: flex;
    gap: .7rem;
    flex-wrap: wrap;
}

.pd-add-btn {
    flex: 1;
    min-width: 160px;
    background: #1a1208;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: .85rem 1.5rem;
    font-size: .95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: background .2s, transform .15s;
}

    .pd-add-btn:hover:not(:disabled) {
        background: #c8860a;
        transform: translateY(-1px);
    }

    .pd-add-btn:disabled {
        opacity: .7;
        cursor: not-allowed;
    }

.pd-wish-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1.5px solid #e0d9ce;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #bbb;
    transition: all .2s;
}

    .pd-wish-btn:hover, .pd-wish-btn.wished {
        border-color: #e53935;
        color: #e53935;
        background: #fce4ec;
    }

/* ── Tabs (Description / Attributes / Reviews) ── */
.pd-tabs-wrap {
    margin-top: 2.5rem;
}

.pd-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #ede8e0;
    overflow-x: auto;
}

.pd-tab {
    padding: .7rem 1.3rem;
    border: none;
    background: none;
    font-family: inherit;
    font-size: .9rem;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    border-bottom: 2.5px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color .18s;
}

    .pd-tab:hover {
        color: #c8860a;
    }

    .pd-tab.active {
        color: #c8860a;
        border-bottom-color: #c8860a;
    }

.pd-tab-panel {
    display: none;
    padding: 1.5rem 0;
}

    .pd-tab-panel.active {
        display: block;
    }

/* Description */
.pd-desc {
    font-size: .9rem;
    color: #555;
    line-height: 1.8;
}

/* Attributes table */
.pd-attrs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}

    .pd-attrs-table tr {
        border-bottom: 1px solid #f0ece6;
    }

        .pd-attrs-table tr:last-child {
            border-bottom: none;
        }

    .pd-attrs-table td {
        padding: .65rem .5rem;
        vertical-align: top;
    }

        .pd-attrs-table td:first-child {
            color: #888;
            width: 35%;
            font-weight: 500;
        }

        .pd-attrs-table td:last-child {
            color: #1a1a1a;
            font-weight: 600;
        }

/* Reviews */
.pd-review-summary {
    display: flex;
    gap: 2rem;
    align-items: center;
    padding: 1.2rem 1.4rem;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    margin-bottom: 1.2rem;
}

.pd-rev-big-score {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
    text-align: center;
}

.pd-rev-out-of {
    font-size: .75rem;
    color: #aaa;
    text-align: center;
}

.pd-rev-stars {
    display: flex;
    gap: .15rem;
}

    .pd-rev-stars i {
        font-size: 1.1rem;
        color: #f59e0b;
    }

.pd-review-item {
    padding: 1rem 1.2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,.05);
    margin-bottom: .8rem;
}

.pd-rev-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: .5rem;
}

.pd-rev-author {
    font-weight: 600;
    font-size: .88rem;
}

.pd-rev-date {
    font-size: .75rem;
    color: #aaa;
}

.pd-rev-stars-sm {
    display: flex;
    gap: .1rem;
}

    .pd-rev-stars-sm i {
        font-size: .75rem;
        color: #f59e0b;
    }

.pd-rev-body {
    font-size: .87rem;
    color: #555;
    line-height: 1.6;
}

.pd-no-reviews {
    text-align: center;
    color: #aaa;
    padding: 2rem;
}

    .pd-no-reviews i {
        font-size: 2.5rem;
        display: block;
        margin-bottom: .7rem;
    }

/* ── Related products ── */
.pd-related {
    margin-top: 3rem;
}

.pd-related-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
}

.pd-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

/* ── Lightbox ── */
.pd-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.88);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

    .pd-lightbox.show {
        display: flex;
    }

.pd-lb-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.pd-lb-close {
    position: absolute;
    top: 1rem;
    inset-inline-end: 1rem;
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background .2s;
}

    .pd-lb-close:hover {
        background: rgba(255,255,255,.3);
    }

.pd-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background .2s;
}

    .pd-lb-nav:hover {
        background: rgba(255,255,255,.3);
    }

.pd-lb-prev {
    inset-inline-end: 1rem;
}

.pd-lb-next {
    inset-inline-start: 1rem;
}

/* Share / misc */
.pd-share-row {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
}

.pd-share-label {
    font-size: .8rem;
    color: #888;
}

.pd-share-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1.5px solid #e0d9ce;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: .85rem;
    color: #666;
    transition: all .18s;
}

    .pd-share-btn:hover {
        border-color: #c8860a;
        color: #c8860a;
    }

/* Toast */
.pd-toast {
    position: fixed;
    bottom: 1.5rem;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    background: #1a1208;
    color: #fff;
    padding: .65rem 1.4rem;
    border-radius: 30px;
    font-size: .88rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: .5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, bottom .3s;
}

    .pd-toast.show {
        opacity: 1;
        pointer-events: auto;
        bottom: 2rem;
    }

.ti-ok {
    color: #4caf50;
}

.ti-err {
    color: #ef5350;
}

/* ═══════════════════════════════════════════════════════════════════════
   VENDORS PAGE  —  LTR  (appended to site_en.css)
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Hero ──────────────────────────────────────────────────────────────── */
.vendors-hero {
    background: linear-gradient(135deg, #1a1208 0%, #2d1f0a 50%, #1a1208 100%);
    padding: 2.5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

    .vendors-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c8860a' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    }

.vendors-hero-inner {
    position: relative;
    z-index: 1;
}

.vendors-hero-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 .4rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}

    .vendors-hero-title i {
        color: var(--desert-gold, #c8a96e);
    }

.vendors-hero-sub {
    color: rgba(255,255,255,.55);
    font-size: .9rem;
    margin: 0;
}

/* ── Filter tab bar ─────────────────────────────────────────────────────── */
.vendors-filter-bar {
    background: #fff;
    border-bottom: 1px solid #f0e8d8;
    position: sticky;
    top: 64px;
    z-index: 50;
}

.vendors-tabs {
    display: flex;
}

.vendors-tab {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .85rem 1.4rem;
    font-size: .88rem;
    font-weight: 600;
    border: none;
    background: none;
    color: #888;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all .2s;
    font-family: inherit;
}

    .vendors-tab:hover {
        color: #c8860a;
        background: #fdf8ee;
    }

    .vendors-tab.active {
        color: #c8860a;
        border-bottom-color: #c8860a;
    }

/* ── Page wrapper ───────────────────────────────────────────────────────── */
.vendors-page {
    padding: 2rem 0 4rem;
    min-height: 60vh;
    background: #f8f7f5;
}

/* ── Vendor card grid ───────────────────────────────────────────────────── */
.vendors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.4rem;
    margin-bottom: 2rem;
}

/* ── Individual vendor card ─────────────────────────────────────────────── */
.vendor-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eee6d8;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

    .vendor-card:hover {
        box-shadow: 0 8px 28px rgba(200,169,110,.22);
        transform: translateY(-3px);
        color: inherit;
    }

.vendor-card-banner {
    width: 100%;
    aspect-ratio: 16/7;
    background: linear-gradient(135deg, #f5f0e8, #ede5d0);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

    .vendor-card-banner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.vc-initials {
    font-size: 2.2rem;
    font-weight: 800;
    color: #c8a96e;
    background: rgba(200,169,110,.12);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vc-verified {
    position: absolute;
    top: .6rem;
    right: .6rem;
    background: rgba(200,169,110,.88);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 3px;
    backdrop-filter: blur(4px);
}

.vendor-card-body {
    padding: 1rem 1.1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.vendor-card-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vendor-card-desc {
    font-size: .8rem;
    color: #888;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    min-height: 2.4em;
}

.vendor-card-meta {
    display: flex;
    align-items: center;
    gap: .8rem;
    font-size: .78rem;
    color: #aaa;
    margin-top: .3rem;
    flex-wrap: wrap;
}

.vc-rating {
    color: #c8860a;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 3px;
}

.vc-prods {
    display: flex;
    align-items: center;
    gap: 3px;
}

.vendor-card-cta {
    margin: .5rem 1.1rem .9rem;
    padding: .6rem;
    background: var(--desert-gold, #c8a96e);
    color: #fff;
    border: none;
    border-radius: 9px;
    font-family: inherit;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background .15s;
    text-decoration: none;
    flex-shrink: 0;
}

    .vendor-card-cta:hover {
        background: #b8956a;
        color: #fff;
    }

/* ── Skeleton cards ─────────────────────────────────────────────────────── */
.vendor-skel-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eee6d8;
    overflow: hidden;
}

.vendor-sk-logo {
    width: 100%;
    aspect-ratio: 16/7;
}

.vendor-sk-body {
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.vendor-sk-line {
    height: 12px;
    border-radius: 6px;
}

/* ── Empty / error state ────────────────────────────────────────────────── */
.vendors-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1rem;
    color: #aaa;
}

    .vendors-state i {
        font-size: 3rem;
        margin-bottom: 1rem;
        display: block;
    }

    .vendors-state h3 {
        font-size: 1.1rem;
        color: #555;
        margin: 0;
    }

/* ── Pagination (reuses .page-btn) ─────────────────────────────────────── */
.vendors-pager {
    display: flex;
    justify-content: center;
    gap: .35rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ═══════════════════════════════════════════════════════════════════════
   VENDOR DETAIL PAGE  —  LTR
   ═══════════════════════════════════════════════════════════════════════ */

.vendor-detail-page {
    padding: 0 0 4rem;
    min-height: 70vh;
    background: #f8f7f5;
}

/* Skeleton header */
.vd-header-skel {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #eee6d8;
}

/* Vendor header card */
.vd-header-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.8rem;
    margin-bottom: 1.2rem;
    border: 1px solid #eee6d8;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

@media (max-width: 600px) {
    .vd-header-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
}

.vd-logo-wrap {
    flex-shrink: 0;
}

.vd-logo-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5f0e8, #ede5d0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: #c8a96e;
    border: 3px solid #f0e8d8;
}

#vdLogoImg {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0e8d8;
}

.vd-header-info {
    flex: 1;
    min-width: 0;
}

.vd-header-top {
    display: flex;
    align-items: center;
    gap: .7rem;
    flex-wrap: wrap;
    margin-bottom: .4rem;
}

.vd-store-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
}

.vd-verified-badge {
    background: linear-gradient(135deg, #c8860a, #e8a820);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.vd-meta-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: .82rem;
    color: #aaa;
    margin-bottom: .6rem;
    flex-wrap: wrap;
}

    .vd-meta-row .vd-rating {
        color: #c8860a;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 3px;
    }

.vd-description {
    font-size: .9rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* Stats strip */
.vd-stats-strip {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee6d8;
    display: flex;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.vd-stat {
    flex: 1;
    text-align: center;
    padding: 1.1rem;
    border-right: 1px solid #f0e8d8;
}

    .vd-stat:last-child {
        border-right: none;
    }

.vd-stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #c8860a;
    line-height: 1;
    margin-bottom: .3rem;
}

.vd-stat-label {
    font-size: .72rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Products section */
.vd-products-section {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eee6d8;
    padding: 1.5rem;
}

.vd-products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    padding-bottom: .8rem;
    border-bottom: 1px solid #f0e8d8;
}

.vd-products-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: .5rem;
}

    .vd-products-title i {
        color: #c8860a;
    }

.vd-products-count {
    font-size: .82rem;
    color: #aaa;
    font-weight: 600;
}

@media (max-width: 768px) {
    .vendors-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .vd-stats-strip {
        flex-wrap: wrap;
    }

    .vd-stat {
        min-width: 50%;
        border-bottom: 1px solid #f0e8d8;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   VENDORS PAGE — Enhanced Styles (LTR)  — appended update
   Replaces previous vendor block. New classes don't conflict.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Hero ────────────────────────────────────────────────────────────────── */
.vendors-hero {
    background: linear-gradient(135deg, #1a1208 0%, #2d1f0a 60%, #1a1208 100%);
    padding: 3rem 0 2.4rem;
    position: relative;
    overflow: hidden;
}

    .vendors-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c8a96e' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
    }

    .vendors-hero::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, transparent, var(--desert-gold, #c8a96e) 30%, #e8b84b 50%, var(--desert-gold, #c8a96e) 70%, transparent);
    }

.vendors-hero-inner {
    position: relative;
    z-index: 1;
}

.vendors-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(200,169,110,.14);
    border: 1px solid rgba(200,169,110,.28);
    color: var(--desert-gold, #c8a96e);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .28rem .85rem;
    border-radius: 20px;
    margin-bottom: .9rem;
}

.vendors-hero-title {
    font-size: clamp(1.9rem, 4.5vw, 2.7rem);
    font-weight: 900;
    color: #fff;
    margin: 0 0 .5rem;
    display: flex;
    align-items: center;
    gap: .7rem;
    line-height: 1.15;
}

    .vendors-hero-title i {
        color: var(--desert-gold, #c8a96e);
    }

    .vendors-hero-title span {
        color: var(--desert-gold, #c8a96e);
    }

.vendors-hero-sub {
    color: rgba(255,255,255,.55);
    font-size: .92rem;
    margin: 0;
    min-height: 1.3em;
}

/* Search */
.vendors-search-wrap {
    display: flex;
    max-width: 500px;
    margin-top: 1.4rem;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.28);
}

.vendors-search-input {
    flex: 1;
    border: none;
    padding: .82rem 1.2rem;
    font-size: .95rem;
    font-family: inherit;
    outline: none;
    background: rgba(255,255,255,.97);
    color: #1a1a1a;
}

.vendors-search-btn {
    background: var(--desert-gold, #c8a96e);
    border: none;
    padding: .82rem 1.4rem;
    color: #fff;
    cursor: pointer;
    font-size: 1.05rem;
    transition: background .2s;
}

    .vendors-search-btn:hover {
        background: #b8956a;
    }

/* ── Filter bar ─────────────────────────────────────────────────────────── */
.vendors-filter-bar {
    background: #fff;
    border-bottom: 2px solid #f0e8d8;
    position: sticky;
    top: 64px;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.vendors-filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.vendors-tabs {
    display: flex;
}

.vendors-tab {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .9rem 1.5rem;
    font-size: .88rem;
    font-weight: 600;
    border: none;
    background: none;
    color: #888;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all .2s;
    font-family: inherit;
    white-space: nowrap;
}

    .vendors-tab:hover {
        color: #c8860a;
        background: #fdf8ee;
    }

    .vendors-tab.active {
        color: #c8860a;
        border-bottom-color: #c8860a;
        background: #fdf8ee;
    }

.v-tab-count {
    background: #f5ead5;
    color: #8a5c06;
    font-size: .69rem;
    font-weight: 700;
    padding: .1rem .48rem;
    border-radius: 20px;
    min-width: 22px;
    text-align: center;
    transition: background .2s, color .2s;
}

.vendors-tab.active .v-tab-count {
    background: #c8860a;
    color: #fff;
}

.vendors-sort {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .82rem;
    color: #888;
    padding-inline-end: .5rem;
}

.vendors-sort-select {
    border: 1.5px solid #e8e0d0;
    border-radius: 8px;
    padding: .4rem .75rem;
    font-size: .84rem;
    font-family: inherit;
    background: #fff;
    color: #444;
    outline: none;
    cursor: pointer;
    transition: border-color .2s;
}

    .vendors-sort-select:focus {
        border-color: #c8860a;
    }

/* ── Page wrapper ───────────────────────────────────────────────────────── */
.vendors-page {
    padding: 2rem 0 5rem;
    min-height: 60vh;
    background: #f8f7f5;
}

/* ── Toolbar ────────────────────────────────────────────────────────────── */
.vendors-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.4rem;
    flex-wrap: wrap;
    gap: .5rem;
}

.vendors-result-count {
    font-size: .84rem;
    color: #888;
}

    .vendors-result-count strong {
        color: #1a1208;
        font-weight: 700;
    }

/* ── Grid ───────────────────────────────────────────────────────────────── */
.vendors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

/* ── Vendor card ────────────────────────────────────────────────────────── */
.vendor-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #eee6d8;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s, transform .25s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
}

    .vendor-card::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 18px;
        border: 2px solid transparent;
        transition: border-color .22s;
        pointer-events: none;
    }

    .vendor-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 14px 36px rgba(200,169,110,.24), 0 4px 12px rgba(0,0,0,.07);
        color: inherit;
    }

        .vendor-card:hover::after {
            border-color: var(--desert-gold, #c8a96e);
        }

/* Banner */
.vendor-card-banner {
    width: 100%;
    aspect-ratio: 16/6.5;
    background: linear-gradient(135deg, #f0e8d5 0%, #e8d9ba 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

    .vendor-card-banner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .38s;
    }

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

/* Initials fallback */
.vc-initials {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--desert-gold, #c8a96e);
    background: rgba(200,169,110,.12);
    width: 86px;
    height: 86px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Verified pill */
.vc-verified {
    position: absolute;
    top: .65rem;
    right: .65rem;
    background: linear-gradient(135deg, #c8860a, #e8a820);
    color: #fff;
    font-size: .67rem;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(200,133,10,.35);
    backdrop-filter: blur(4px);
}

/* Floating logo row */
.vc-logo-row {
    display: flex;
    align-items: flex-end;
    gap: .7rem;
    padding: 0 1.1rem;
    margin-top: -28px;
    margin-bottom: .5rem;
    position: relative;
    z-index: 2;
}

.vc-logo-avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.14);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--desert-gold, #c8a96e);
    background: linear-gradient(135deg, #fdf5e6, #f5e8cc);
}

    .vc-logo-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Body */
.vendor-card-body {
    padding: 0 1.1rem .2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.vendor-card-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1a1208;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -.01em;
    margin-top: .2rem;
}

.vendor-card-desc {
    font-size: .8rem;
    color: #888;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.3em;
}

.vendor-card-meta {
    display: flex;
    align-items: center;
    gap: .9rem;
    font-size: .78rem;
    color: #aaa;
    border-top: 1px solid #f5f0e8;
    padding-top: .55rem;
    margin-top: .4rem;
    flex-wrap: wrap;
}

.vc-rating {
    color: #c8860a;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: .8rem;
}

    .vc-rating i {
        font-size: .75rem;
    }

.vc-prods {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: .78rem;
    color: #aaa;
}

    .vc-prods i {
        color: var(--desert-gold, #c8a96e);
        font-size: .75rem;
    }

/* CTA button */
.vendor-card-cta {
    margin: .4rem 1.1rem .9rem;
    padding: .62rem;
    background: #1a1208;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: .83rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: background .18s;
    text-decoration: none;
    flex-shrink: 0;
}

    .vendor-card-cta:hover {
        background: var(--desert-gold, #c8a96e);
        color: #fff;
    }

/* ── Skeleton cards ─────────────────────────────────────────────────────── */
.vendor-skel-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #eee6d8;
    overflow: hidden;
}

.vendor-sk-logo {
    width: 100%;
    aspect-ratio: 16/6.5;
}

.vendor-sk-body {
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.vendor-sk-line {
    height: 12px;
    border-radius: 6px;
    background: #f0e8d8;
}

/* ── Empty / error state ────────────────────────────────────────────────── */
.vendors-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 1rem;
    color: #aaa;
}

    .vendors-state i {
        font-size: 4rem;
        margin-bottom: 1.2rem;
        display: block;
        color: #e0d5c0;
    }

    .vendors-state h3 {
        font-size: 1.2rem;
        color: #888;
        margin: 0 0 .5rem;
    }

    .vendors-state p {
        font-size: .88rem;
    }

/* ── Pagination ─────────────────────────────────────────────────────────── */
.vendors-pager {
    display: flex;
    justify-content: center;
    gap: .4rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.page-btn {
    min-width: 38px;
    height: 38px;
    border: 1.5px solid #e0d9ce;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: inherit;
    font-size: .85rem;
    color: #555;
    padding: 0 .6rem;
    transition: all .18s;
}

    .page-btn:hover:not(:disabled) {
        border-color: #c8860a;
        color: #c8860a;
    }

    .page-btn.active {
        background: #c8860a;
        border-color: #c8860a;
        color: #fff;
        font-weight: 700;
    }

    .page-btn:disabled {
        opacity: .35;
        cursor: not-allowed;
    }

/* ═══════════════════════════════════════════════════════════════════════════
   VENDOR DETAIL PAGE — Enhanced Styles (LTR)
   ═══════════════════════════════════════════════════════════════════════════ */

.vendor-detail-page {
    padding: 0 0 5rem;
    min-height: 70vh;
    background: #f8f7f5;
}

/* Cover banner */
.vd-cover {
    width: 100%;
    aspect-ratio: 16/5;
    background: linear-gradient(135deg, #1a1208 0%, #2d1f0a 60%, #1a1208 100%);
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

    .vd-cover::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c8a96e' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
    }

    .vd-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: none;
    }

.vd-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.5) 100%);
}

/* Skeleton header */
.vd-header-skel {
    background: #fff;
    border-radius: 0 0 20px 20px;
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #eee6d8;
    border-top: none;
}

/* Header card */
.vd-header-card {
    background: #fff;
    border-radius: 0 0 20px 20px;
    padding: 0 2rem 1.8rem;
    display: flex;
    align-items: flex-start;
    gap: 1.8rem;
    margin-bottom: 1.2rem;
    border: 1px solid #eee6d8;
    border-top: none;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
}

@media (max-width: 640px) {
    .vd-cover {
        border-radius: 14px;
    }

    .vd-header-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        border-radius: 0 0 14px 14px;
        padding: 0 1.2rem 1.5rem;
    }
}

/* Logo */
.vd-logo-wrap {
    flex-shrink: 0;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

.vd-logo-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5f0e8, #ede5d0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    color: var(--desert-gold, #c8a96e);
    border: 4px solid #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

#vdLogoImg {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

/* Info area */
.vd-header-info {
    flex: 1;
    min-width: 0;
    padding-top: 1.2rem;
}

.vd-header-top {
    display: flex;
    align-items: center;
    gap: .7rem;
    flex-wrap: wrap;
    margin-bottom: .4rem;
}

.vd-store-name {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 900;
    color: #1a1208;
    margin: 0;
    letter-spacing: -.02em;
}

.vd-verified-badge {
    background: linear-gradient(135deg, #c8860a, #e8a820);
    color: #fff;
    font-size: .74rem;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(200,133,10,.3);
}

.vd-meta-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: .82rem;
    color: #aaa;
    margin-bottom: .6rem;
    flex-wrap: wrap;
}

    .vd-meta-row .vd-rating {
        color: #c8860a;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 4px;
    }

.vd-description {
    font-size: .9rem;
    color: #666;
    line-height: 1.75;
    margin: 0;
}

/* Action buttons */
.vd-actions {
    display: flex;
    gap: .6rem;
    margin-top: .8rem;
    flex-wrap: wrap;
}

.vd-action-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1.1rem;
    border-radius: 10px;
    font-size: .82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: all .2s;
    text-decoration: none;
}

.vd-action-primary {
    background: #1a1208;
    color: #fff;
}

    .vd-action-primary:hover {
        background: var(--desert-gold, #c8a96e);
        color: #fff;
    }

.vd-action-secondary {
    background: transparent;
    color: #888;
    border: 1.5px solid #e0d9ce;
}

    .vd-action-secondary:hover {
        border-color: #c8860a;
        color: #c8860a;
    }

/* Stats strip */
.vd-stats-strip {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eee6d8;
    display: flex;
    margin-bottom: 1.4rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

.vd-stat {
    flex: 1;
    text-align: center;
    padding: 1.3rem 1rem;
    border-inline-end: 1px solid #f0e8d8;
    transition: background .2s;
}

    .vd-stat:last-child {
        border-inline-end: none;
    }

    .vd-stat:hover {
        background: #fdf8f0;
    }

.vd-stat-icon {
    font-size: 1.2rem;
    color: var(--desert-gold, #c8a96e);
    margin-bottom: .35rem;
    display: block;
}

.vd-stat-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1a1208;
    line-height: 1;
    margin-bottom: .25rem;
}

.vd-stat-label {
    font-size: .7rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* Products section */
.vd-products-section {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #eee6d8;
    padding: 1.6rem;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

.vd-products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.3rem;
    padding-bottom: .9rem;
    border-bottom: 2px solid #f5f0e8;
    flex-wrap: wrap;
    gap: .5rem;
}

.vd-products-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1a1208;
    margin: 0;
    display: flex;
    align-items: center;
    gap: .5rem;
}

    .vd-products-title i {
        color: var(--desert-gold, #c8a96e);
    }

.vd-products-count {
    font-size: .82rem;
    color: #aaa;
    font-weight: 600;
}

/* Product cards grid */
.prod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
    gap: 1.1rem;
}

.prod-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: transform .22s, box-shadow .22s;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0ece6;
}

    .prod-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0,0,0,.11);
    }

.prod-card-img {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f8f5f0;
    position: relative;
}

    .prod-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .4s;
    }

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

.prod-card-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 2.5rem;
}

.prod-card-badge {
    position: absolute;
    top: .55rem;
    left: .55rem;
    background: #e53935;
    color: #fff;
    font-size: .66rem;
    font-weight: 700;
    padding: .17rem .48rem;
    border-radius: 6px;
}

.prod-card-body {
    padding: .75rem .85rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    flex: 1;
}

.prod-card-name {
    font-size: .88rem;
    font-weight: 600;
    color: #1a1208;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

    .prod-card-name:hover {
        color: #c8860a;
    }

.prod-card-price {
    display: flex;
    align-items: baseline;
    gap: .4rem;
    font-size: .98rem;
    font-weight: 700;
    color: #1a1208;
    margin-top: auto;
}

.prod-card-old {
    font-size: .78rem;
    color: #bbb;
    text-decoration: line-through;
    font-weight: 400;
}

.prod-add-btn {
    margin: 0 .85rem .85rem;
    background: #1a1208;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: .5rem .8rem;
    font-size: .8rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    transition: background .2s;
}

    .prod-add-btn:hover {
        background: var(--desert-gold, #c8a96e);
    }

    .prod-add-btn:disabled {
        opacity: .6;
        cursor: not-allowed;
    }

/* Error state */
.pd-error {
    text-align: center;
    padding: 5rem 1rem;
    color: #aaa;
}

    .pd-error i {
        font-size: 4rem;
        display: block;
        margin-bottom: 1rem;
        color: #e0d5c0;
    }

    .pd-error h2 {
        font-size: 1.2rem;
        color: #888;
        margin-bottom: 1rem;
    }

/* Toast */
.vd-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1208;
    color: #fff;
    padding: .65rem 1.4rem;
    border-radius: 30px;
    font-size: .88rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: .5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, bottom .3s;
}

    .vd-toast.show {
        opacity: 1;
        pointer-events: auto;
        bottom: 2rem;
    }

/* Responsive */
@media (max-width: 768px) {
    .vendors-sort {
        display: none;
    }

    .vendors-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
        gap: 1rem;
    }

    .vd-stats-strip {
        flex-wrap: wrap;
    }

    .vd-stat {
        min-width: 50%;
        border-bottom: 1px solid #f0e8d8;
    }

    .prod-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px,1fr));
        gap: .8rem;
    }
}

@media (max-width: 480px) {
    .vendors-grid {
        grid-template-columns: 1fr;
    }

    .prod-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
           VENDORS PAGE  —  Scoped enhancement styles
           ═══════════════════════════════════════════════════════════════════════════ */

/* Hero */
.vendors-hero {
    padding: 3rem 0 2.4rem;
}

    .vendors-hero::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, transparent, var(--desert-gold,#c8a96e) 30%, #e8b84b 50%, var(--desert-gold,#c8a96e) 70%, transparent);
    }

.vendors-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(200,169,110,.14);
    border: 1px solid rgba(200,169,110,.28);
    color: var(--desert-gold,#c8a96e);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .28rem .85rem;
    border-radius: 20px;
    margin-bottom: .9rem;
}

.vendors-hero-title {
    font-size: clamp(1.9rem, 4.5vw, 2.7rem);
    font-weight: 900;
    line-height: 1.15;
}

    .vendors-hero-title span {
        color: var(--desert-gold,#c8a96e);
    }

/* Search */
.vendors-search-wrap {
    display: flex;
    max-width: 500px;
    margin-top: 1.4rem;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
}

.vendors-search-input {
    flex: 1;
    border: none;
    padding: .82rem 1.2rem;
    font-size: .95rem;
    font-family: inherit;
    outline: none;
    background: rgba(255,255,255,.97);
    color: #1a1a1a;
}

.vendors-search-btn {
    background: var(--desert-gold,#c8a96e);
    border: none;
    padding: .82rem 1.4rem;
    color: #fff;
    cursor: pointer;
    font-size: 1.05rem;
    transition: background .2s;
}

    .vendors-search-btn:hover {
        background: #b8956a;
    }

/* Filter bar */
.vendors-filter-bar {
    background: #fff;
    border-bottom: 2px solid #f0e8d8;
    position: sticky;
    top: 64px;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.vendors-filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.vendors-tab {
    padding: .9rem 1.5rem;
    gap: .45rem;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
}

    .vendors-tab.active {
        background: #fdf8ee;
    }

.v-tab-count {
    background: #f5ead5;
    color: #8a5c06;
    font-size: .69rem;
    font-weight: 700;
    padding: .1rem .48rem;
    border-radius: 20px;
    min-width: 22px;
    text-align: center;
    transition: background .2s, color .2s;
}

.vendors-tab.active .v-tab-count {
    background: #c8860a;
    color: #fff;
}

.vendors-sort {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .82rem;
    color: #888;
}

.vendors-sort-select {
    border: 1.5px solid #e8e0d0;
    border-radius: 8px;
    padding: .4rem .75rem;
    font-size: .84rem;
    font-family: inherit;
    background: #fff;
    color: #444;
    outline: none;
    cursor: pointer;
    transition: border-color .2s;
}

    .vendors-sort-select:focus {
        border-color: #c8860a;
    }

/* Toolbar */
.vendors-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.4rem;
    flex-wrap: wrap;
    gap: .5rem;
}

.vendors-result-count {
    font-size: .84rem;
    color: #888;
}

    .vendors-result-count strong {
        color: #1a1208;
        font-weight: 700;
    }

/* Card */
.vendor-card {
    border-radius: 18px;
    position: relative;
}

    .vendor-card::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 18px;
        border: 2px solid transparent;
        transition: border-color .22s;
        pointer-events: none;
    }

    .vendor-card:hover::after {
        border-color: var(--desert-gold,#c8a96e);
    }

    .vendor-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 14px 36px rgba(200,169,110,.24), 0 4px 12px rgba(0,0,0,.07);
    }

.vendor-card-banner {
    border-radius: 0;
    aspect-ratio: 16/6.5;
    background: linear-gradient(135deg,#f0e8d5 0%,#e8d9ba 100%);
}

    .vendor-card-banner img {
        transition: transform .38s;
    }

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

/* Floating logo avatar */
.vc-logo-row {
    display: flex;
    align-items: flex-end;
    gap: .7rem;
    padding: 0 1.1rem;
    margin-top: -28px;
    margin-bottom: .5rem;
    position: relative;
    z-index: 2;
}

.vc-logo-avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.14);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--desert-gold,#c8a96e);
    background: linear-gradient(135deg,#fdf5e6,#f5e8cc);
}

    .vc-logo-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.vc-initials {
    font-size: 2.8rem;
}

.vc-verified {
    background: linear-gradient(135deg,#c8860a,#e8a820);
    inset-inline-end: .65rem;
    right: auto;
    left: auto;
    box-shadow: 0 2px 8px rgba(200,133,10,.35);
    font-size: .67rem;
    font-weight: 800;
    padding: 4px 9px;
    gap: 4px;
}

.vendor-card-body {
    padding: 0 1.1rem .2rem;
    gap: .2rem;
}

.vendor-card-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1a1208;
    letter-spacing: -.01em;
}

.vendor-card-desc {
    -webkit-line-clamp: 2;
    min-height: 2.3em;
}

.vendor-card-meta {
    border-top: 1px solid #f5f0e8;
    padding-top: .55rem;
    margin-top: .4rem;
}

.vc-rating {
    gap: 4px;
    font-weight: 700;
    font-size: .8rem;
}

    .vc-rating i {
        font-size: .75rem;
    }

.vc-prods {
    font-size: .78rem;
    color: #aaa;
    gap: 4px;
}

    .vc-prods i {
        color: var(--desert-gold,#c8a96e);
        font-size: .75rem;
    }

.vendor-card-cta {
    margin: .4rem 1.1rem .9rem;
    padding: .62rem;
    background: #1a1208;
    border-radius: 10px;
    gap: 7px;
    transition: background .18s;
}

    .vendor-card-cta:hover {
        background: var(--desert-gold,#c8a96e);
    }

/* Skeleton */
.vendor-skel-card {
    border-radius: 18px;
}

.vendor-sk-logo {
    aspect-ratio: 16/6.5;
}

.vendor-sk-line {
    background: #f0e8d8;
}

/* Empty state */
.vendors-state {
    padding: 5rem 1rem;
}

    .vendors-state i {
        font-size: 4rem;
        color: #e0d5c0;
        margin-bottom: 1.2rem;
    }

    .vendors-state h3 {
        font-size: 1.2rem;
        color: #888;
        margin-bottom: .5rem;
    }

/* Pagination */
.page-btn {
    min-width: 38px;
    height: 38px;
    border: 1.5px solid #e0d9ce;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: inherit;
    font-size: .85rem;
    color: #555;
    padding: 0 .6rem;
    transition: all .18s;
}

    .page-btn:hover:not(:disabled) {
        border-color: #c8860a;
        color: #c8860a;
    }

    .page-btn.active {
        background: #c8860a;
        border-color: #c8860a;
        color: #fff;
        font-weight: 700;
    }

    .page-btn:disabled {
        opacity: .35;
        cursor: not-allowed;
    }

@media (max-width:768px) {
    .vendors-sort {
        display: none;
    }

    .vendors-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
        gap: 1rem;
    }
}

@media (max-width:480px) {
    .vendors-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
           VENDOR DETAIL PAGE  —  Scoped Enhancement Styles
           ═══════════════════════════════════════════════════════════════════════════ */

/* ── Page wrapper ── */
.vendor-detail-page {
    padding: 0 0 5rem;
    min-height: 70vh;
    background: #f8f7f5;
}

/* ── Breadcrumb ── */
.prods-breadcrumb {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    color: #999;
    padding: 1.2rem 0 .8rem;
    flex-wrap: wrap;
}

    .prods-breadcrumb a {
        color: #c8860a;
        text-decoration: none;
    }

        .prods-breadcrumb a:hover {
            text-decoration: underline;
        }

    .prods-breadcrumb i {
        font-size: .6rem;
        color: #ccc;
    }

/* ── Skeleton header ── */
.vd-header-skel {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #eee6d8;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1
    }

    50% {
        opacity: .45
    }
}

.skel-pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

/* ── Cover banner ── */
.vd-cover {
    width: 100%;
    aspect-ratio: 16/5;
    background: linear-gradient(135deg,#1a1208 0%,#2d1f0a 60%,#1a1208 100%);
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 0;
}

    .vd-cover::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c8a96e' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
    }

    .vd-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: none;
    }

.vd-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55) 100%);
}

/* ── Header card ── */
.vd-header-card {
    background: #fff;
    border-radius: 0 0 20px 20px;
    padding: 0 2rem 1.8rem;
    display: flex;
    align-items: flex-start;
    gap: 1.8rem;
    border: 1px solid #eee6d8;
    border-top: none;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
    margin-bottom: 1.2rem;
    position: relative;
}

@media (max-width:640px) {
    .vd-cover {
        border-radius: 14px;
    }

    .vd-header-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        border-radius: 0 0 14px 14px;
        padding: 0 1.2rem 1.5rem;
    }
}

/* Logo circle */
.vd-logo-wrap {
    flex-shrink: 0;
    margin-top: -38px;
    position: relative;
    z-index: 2;
}

.vd-logo-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg,#f5f0e8,#ede5d0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    color: var(--desert-gold,#c8a96e);
    border: 4px solid #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

#vdLogoImg {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

/* Info */
.vd-header-info {
    flex: 1;
    min-width: 0;
    padding-top: 1.2rem;
}

.vd-header-top {
    display: flex;
    align-items: center;
    gap: .7rem;
    flex-wrap: wrap;
    margin-bottom: .4rem;
}

.vd-store-name {
    font-size: clamp(1.4rem,3vw,1.9rem);
    font-weight: 900;
    color: #1a1208;
    margin: 0;
    letter-spacing: -.02em;
}

.vd-verified-badge {
    background: linear-gradient(135deg,#c8860a,#e8a820);
    color: #fff;
    font-size: .74rem;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(200,133,10,.3);
}

.vd-meta-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: .82rem;
    color: #aaa;
    margin-bottom: .6rem;
    flex-wrap: wrap;
}

.vd-rating {
    color: #c8860a;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .vd-rating i {
        font-size: .8rem;
    }

.vd-description {
    font-size: .9rem;
    color: #666;
    line-height: 1.75;
    margin: 0;
}

/* Action buttons */
.vd-actions {
    display: flex;
    gap: .6rem;
    margin-top: .8rem;
    flex-wrap: wrap;
}

.vd-action-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1.1rem;
    border-radius: 10px;
    font-size: .82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: all .2s;
    text-decoration: none;
}

.vd-action-primary {
    background: #1a1208;
    color: #fff;
}

    .vd-action-primary:hover {
        background: var(--desert-gold,#c8a96e);
        color: #fff;
    }

.vd-action-secondary {
    background: transparent;
    color: #888;
    border: 1.5px solid #e0d9ce;
}

    .vd-action-secondary:hover {
        border-color: #c8860a;
        color: #c8860a;
    }

/* ── Stats strip ── */
.vd-stats-strip {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eee6d8;
    display: flex;
    margin-bottom: 1.4rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

.vd-stat {
    flex: 1;
    text-align: center;
    padding: 1.3rem 1rem;
    border-inline-end: 1px solid #f0e8d8;
    transition: background .2s;
}

    .vd-stat:last-child {
        border-inline-end: none;
    }

    .vd-stat:hover {
        background: #fdf8f0;
    }

.vd-stat-icon {
    font-size: 1.2rem;
    color: var(--desert-gold,#c8a96e);
    margin-bottom: .35rem;
    display: block;
}

.vd-stat-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1a1208;
    line-height: 1;
    margin-bottom: .25rem;
}

.vd-stat-label {
    font-size: .7rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: .05em;
}

@media (max-width:640px) {
    .vd-stats-strip {
        flex-wrap: wrap;
    }

    .vd-stat {
        min-width: 50%;
        border-inline-end: 1px solid #f0e8d8;
        border-bottom: 1px solid #f0e8d8;
    }
}

/* ── Products section ── */
.vd-products-section {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #eee6d8;
    padding: 1.6rem;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

.vd-products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.3rem;
    padding-bottom: .9rem;
    border-bottom: 2px solid #f5f0e8;
    flex-wrap: wrap;
    gap: .5rem;
}

.vd-products-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1a1208;
    margin: 0;
    display: flex;
    align-items: center;
    gap: .5rem;
}

    .vd-products-title i {
        color: var(--desert-gold,#c8a96e);
    }

.vd-products-count {
    font-size: .82rem;
    color: #aaa;
    font-weight: 600;
}

/* Product grid (reuses .prod-* classes from products page) */
.prod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
    gap: 1.1rem;
}

.prod-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: transform .22s, box-shadow .22s;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0ece6;
}

    .prod-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0,0,0,.12);
    }

.prod-card-img {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f8f5f0;
    position: relative;
}

    .prod-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .4s;
    }

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

.prod-card-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 2.5rem;
}

.prod-card-badge {
    position: absolute;
    top: .55rem;
    inset-inline-start: .55rem;
    background: #e53935;
    color: #fff;
    font-size: .66rem;
    font-weight: 700;
    padding: .17rem .48rem;
    border-radius: 6px;
}

.prod-card-body {
    padding: .75rem .85rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    flex: 1;
}

.prod-card-name {
    font-size: .88rem;
    font-weight: 600;
    color: #1a1208;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

    .prod-card-name:hover {
        color: #c8860a;
    }

.prod-card-price {
    display: flex;
    align-items: baseline;
    gap: .4rem;
    font-size: .98rem;
    font-weight: 700;
    color: #1a1208;
    margin-top: auto;
}

.prod-card-old {
    font-size: .78rem;
    color: #bbb;
    text-decoration: line-through;
    font-weight: 400;
}

.prod-add-btn {
    margin: 0 .85rem .85rem;
    background: #1a1208;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: .5rem .8rem;
    font-size: .8rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    transition: background .2s;
}

    .prod-add-btn:hover {
        background: #c8860a;
    }

    .prod-add-btn:disabled {
        opacity: .6;
        cursor: not-allowed;
    }

/* Skeleton reuse */
.prod-skel {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #f0ece6;
}

.prod-skel-img {
    height: 180px;
    background: #f0ece6;
}

.prod-skel-body {
    padding: .75rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.sk-line {
    height: 11px;
    border-radius: 6px;
    background: #f0ece6;
}

/* Pagination */
.vendors-pager {
    display: flex;
    justify-content: center;
    gap: .4rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.page-btn {
    min-width: 38px;
    height: 38px;
    border: 1.5px solid #e0d9ce;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: inherit;
    font-size: .85rem;
    color: #555;
    padding: 0 .6rem;
    transition: all .18s;
}

    .page-btn:hover:not(:disabled) {
        border-color: #c8860a;
        color: #c8860a;
    }

    .page-btn.active {
        background: #c8860a;
        border-color: #c8860a;
        color: #fff;
        font-weight: 700;
    }

    .page-btn:disabled {
        opacity: .35;
        cursor: not-allowed;
    }

/* Error */
.pd-error {
    text-align: center;
    padding: 5rem 1rem;
    color: #aaa;
}

    .pd-error i {
        font-size: 4rem;
        display: block;
        margin-bottom: 1rem;
        color: #e0d5c0;
    }

    .pd-error h2 {
        font-size: 1.2rem;
        color: #888;
        margin-bottom: 1rem;
    }

/* Toast */
.vd-toast {
    position: fixed;
    bottom: 1.5rem;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    background: #1a1208;
    color: #fff;
    padding: .65rem 1.4rem;
    border-radius: 30px;
    font-size: .88rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: .5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, bottom .3s;
}

    .vd-toast.show {
        opacity: 1;
        pointer-events: auto;
        bottom: 2rem;
    }

.ti-ok {
    color: #4caf50;
}

.ti-err {
    color: #ef5350;
}
/* ═══════════════════════════════════════════════════════════════════════════
   VENDORS / VENDOR-DETAIL — LTR Enhancement Patch
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Breadcrumb: correct chevron direction for LTR ───────────────────────── */
.prods-breadcrumb .bi-chevron-left::before {
    content: "\f285"; /* bi-chevron-right */
}

/* ── Hero: make search input placeholder visible ─────────────────────────── */
.vendors-search-input::placeholder {
    color: #999;
    opacity: 1;
}

/* ── vc-verified pill: always start-side in LTR (top-right) ─────────────── */
.vc-verified {
    inset-inline-end: .65rem;
    inset-inline-start: auto;
    top: .65rem;
}

/* ── Vendor card CTA: arrow icon flips naturally in RTL ─────────────────── */
.vendor-card-cta .bi::before {
    display: inline-block;
}

/* ── Filter bar: ensure row is always correct ────────────────────────────── */
.vendors-filter-row {
    flex-direction: row;
}

/* ── vendors-sort: use logical padding ───────────────────────────────────── */
.vendors-sort {
    padding-inline-end: .5rem;
    padding-inline-start: 0;
}

/* ── vd-header-card responsive: use logical text align ──────────────────── */
@media (max-width: 640px) {
    .vd-header-card {
        text-align: center;
    }

    .vd-header-top {
        justify-content: center;
    }

    .vd-meta-row {
        justify-content: center;
    }

    .vd-actions {
        justify-content: center;
    }
}

/* ── vd-stat divider: already using border-inline-end (logical) ──────────── */

/* ── Toast notification ──────────────────────────────────────────────────── */
.vd-toast {
    position: fixed;
    bottom: 1.5rem;
    inset-inline-end: 1.5rem;
    background: #1a1208;
    color: #fff;
    padding: .65rem 1.2rem;
    border-radius: 10px;
    font-size: .85rem;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0,0,0,.22);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .25s, transform .25s;
    z-index: 9999;
    pointer-events: none;
    max-width: 320px;
}

    .vd-toast.show {
        opacity: 1;
        transform: translateY(0);
    }

    .vd-toast .ti-ok {
        color: #4caf50;
    }

    .vd-toast .ti-err {
        color: #f44336;
    }

/* ── pd-error state ──────────────────────────────────────────────────────── */
.pd-error {
    text-align: center;
    padding: 5rem 1rem;
    color: #aaa;
}

    .pd-error i {
        font-size: 3.5rem;
        color: #e0d5c0;
        display: block;
        margin-bottom: 1rem;
    }

    .pd-error h2 {
        font-size: 1.2rem;
        color: #666;
        margin: 0 0 1rem;
    }


/* ═══════════════════════════════════════════════════════════════════════════
   IMAGE SEARCH — Products Page  (LTR)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Camera button next to search bar ───────────────────────────────────── */
.prods-search-wrap {
    position: relative;
}

.prods-img-search-btn {
    background: rgba(200, 169, 110, 0.20);
    border: none;
    border-radius: 0;
    padding: .65rem 1rem;
    color: var(--desert-gold, #c8a96e);
    cursor: pointer;
    font-size: 1rem;
    transition: background .2s, color .2s;
    border-inline-end: 1px solid rgba(200,169,110,.18);
    flex-shrink: 0;
}

    .prods-img-search-btn:hover {
        background: rgba(200, 169, 110, 0.35);
        color: #fff;
    }

/* ── Overlay ─────────────────────────────────────────────────────────────── */
.img-search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 8, 4, 0.72);
    z-index: 1050;
    backdrop-filter: blur(3px);
}

/* ── Modal panel ─────────────────────────────────────────────────────────── */
.img-search-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -44%) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: transform .28s cubic-bezier(.32,.72,0,1), opacity .22s;
    z-index: 1060;
    background: #fff;
    border-radius: 20px;
    width: min(580px, 94vw);
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.28), 0 4px 16px rgba(0,0,0,.12);
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

    .img-search-modal.open {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        pointer-events: auto;
    }

/* ── Modal header ────────────────────────────────────────────────────────── */
.img-search-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.img-search-title {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: #1a1208;
}

    .img-search-title i {
        color: var(--desert-gold, #c8a96e);
        font-size: 1.2rem;
    }

.img-search-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid #e8e0d0;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    color: #888;
    transition: all .18s;
    flex-shrink: 0;
}

    .img-search-close:hover {
        background: #f5ead5;
        color: #1a1208;
        border-color: #c8a96e;
    }

/* ── Drop zone ───────────────────────────────────────────────────────────── */
.img-search-dropzone {
    border: 2px dashed #e0d9ce;
    border-radius: 14px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    position: relative;
    overflow: hidden;
}

    .img-search-dropzone.dragover,
    .img-search-dropzone:hover {
        border-color: var(--desert-gold, #c8a96e);
        background: #fdf8f0;
    }

.img-search-drop-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .65rem;
    padding: 1.5rem;
    text-align: center;
}

.img-search-upload-icon {
    font-size: 2.8rem;
    color: #e0d5c0;
}

.img-search-hint {
    font-size: .84rem;
    color: #aaa;
    margin: 0;
    max-width: 280px;
    line-height: 1.5;
}

.img-search-choose-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: #1a1208;
    color: #fff;
    border-radius: 9px;
    padding: .5rem 1.1rem;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s;
    font-family: inherit;
}

    .img-search-choose-btn:hover {
        background: var(--desert-gold, #c8a96e);
    }

/* ── Preview ─────────────────────────────────────────────────────────────── */
.img-search-preview {
    width: 100%;
    height: 100%;
    min-height: 180px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5rem;
}

    .img-search-preview img {
        max-width: 100%;
        max-height: 220px;
        border-radius: 10px;
        object-fit: contain;
        box-shadow: 0 4px 16px rgba(0,0,0,.14);
    }

.img-search-clear-preview {
    position: absolute;
    top: .5rem;
    right: .5rem;
    background: rgba(26,18,8,.72);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    transition: background .15s;
}

    .img-search-clear-preview:hover {
        background: #c0392b;
    }

/* ── Submit button ───────────────────────────────────────────────────────── */
.img-search-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .7rem 1.4rem;
    background: linear-gradient(135deg, #c8860a, #e8a820);
    color: #fff;
    border: none;
    border-radius: 11px;
    font-size: .9rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
    letter-spacing: .02em;
}

    .img-search-submit-btn:hover:not(:disabled) {
        opacity: .88;
        transform: translateY(-1px);
    }

    .img-search-submit-btn:disabled {
        opacity: .42;
        cursor: not-allowed;
        transform: none;
    }

/* ── Loading / empty / error states ─────────────────────────────────────── */
.img-search-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .7rem;
    padding: 1.5rem;
    font-size: .88rem;
    color: #aaa;
    text-align: center;
}

    .img-search-state i {
        font-size: 2.4rem;
        color: #e0d5c0;
    }

.img-search-state-error i {
    color: #e57373;
}

.img-search-state-error {
    color: #c0392b;
}

/* Spinner */
.img-search-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #f0e8d8;
    border-top-color: var(--desert-gold, #c8a96e);
    border-radius: 50%;
    animation: imgSearchSpin .75s linear infinite;
}

@keyframes imgSearchSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Results inside modal ────────────────────────────────────────────────── */
.img-search-results-wrap {
    border-top: 1px solid #f0e8d8;
    padding-top: .9rem;
}

.img-search-results-header {
    font-size: .82rem;
    font-weight: 600;
    color: #888;
    margin-bottom: .7rem;
}

.img-search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: .75rem;
}

.img-result-card {
    background: #fdf8f3;
    border: 1px solid #eee6d8;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .18s, box-shadow .18s;
}

    .img-result-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 18px rgba(200,169,110,.22);
    }

.img-result-img {
    aspect-ratio: 1;
    background: #f5f0e8;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .img-result-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .3s;
    }

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

.img-result-img i {
    font-size: 2rem;
    color: #ddd;
}

/* Match score badge on modal cards */
.img-result-score {
    position: absolute;
    bottom: .35rem;
    inset-inline-end: .35rem;
    background: rgba(26,18,8,.75);
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 5px;
    backdrop-filter: blur(3px);
}

.img-result-body {
    padding: .45rem .55rem .5rem;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.img-result-name {
    font-size: .75rem;
    font-weight: 600;
    color: #1a1208;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.img-result-rating {
    font-size: .68rem;
    color: #c8860a;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 3px;
}

.img-result-price {
    font-size: .78rem;
    font-weight: 700;
    color: #1a1208;
}

/* ── Match badge shown in main product grid cards ────────────────────────── */
.img-match-badge {
    position: absolute;
    top: .45rem;
    left: .45rem;
    background: linear-gradient(135deg, #c8860a, #e8a820);
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(200,133,10,.4);
    z-index: 2;
}

/* ── Active image search banner (shown above grid) ───────────────────────── */
.img-active-banner {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: linear-gradient(135deg, #fdf5e0, #fdeecb);
    border: 1px solid #f0d888;
    border-radius: 10px;
    padding: .55rem 1rem;
    margin-bottom: .9rem;
    font-size: .84rem;
    font-weight: 600;
    color: #7a4f00;
}

    .img-active-banner i {
        color: #c8860a;
        font-size: 1rem;
        flex-shrink: 0;
    }

    .img-active-banner span {
        flex: 1;
    }

    .img-active-banner button {
        background: none;
        border: none;
        cursor: pointer;
        color: #c8860a;
        font-size: 1.05rem;
        padding: 0;
        line-height: 1;
        display: flex;
        align-items: center;
        transition: color .15s;
    }

        .img-active-banner button:hover {
            color: #1a1208;
        }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 520px) {
    .img-search-modal {
        padding: 1.1rem;
        border-radius: 14px;
    }

    .img-search-results-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

/* ── Global Image Search — Navbar camera button ── */
.nav-img-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--desert-border);
    border-left: none;
    border-right: none;
    border-radius: 0;
    padding: 10px 15px;
    background: #39403d;
    color: var(--desert-gold, #c8a96e);
    cursor: pointer;
    transition: background .2s, color .2s;
    flex-shrink: 0;
    border: none;
}

    .nav-img-search-btn:hover {
        background: var(--desert-accent);
        color: #fff;
    }

    .nav-img-search-btn i {
        font-size: 1rem;
    }

/* ── Modal overlay ── */
.g-img-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 1055;
    backdrop-filter: blur(3px);
}

/* ── Modal panel ── */
.g-img-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    width: min(520px, 96vw);
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(0,0,0,.22);
    z-index: 1056;
    padding: 0;
    transition: transform .25s ease, opacity .25s ease;
    opacity: 0;
}

    .g-img-modal.open {
        display: flex;
        flex-direction: column;
        transform: translate(-50%, -50%);
        opacity: 1;
    }

/* ── Modal head ── */
.g-img-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem .75rem;
    border-bottom: 1px solid #f0ede8;
}

.g-img-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    font-size: 1rem;
    color: #2c2c2c;
}

    .g-img-title i {
        color: var(--desert-gold, #c9a84c);
        font-size: 1.15rem;
    }

.g-img-close {
    border: none;
    background: #f5f0e8;
    color: #666;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
}

    .g-img-close:hover {
        background: #ede5d0;
        color: #333;
    }

/* ── Drop zone ── */
.g-img-dropzone {
    margin: 1rem 1.25rem;
    border: 2px dashed #d9cdb5;
    border-radius: 14px;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #faf8f4;
    transition: border-color .2s, background .2s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

    .g-img-dropzone.dragover {
        border-color: var(--desert-gold, #c9a84c);
        background: #fef9ee;
    }

.g-img-drop-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    padding: 1.5rem;
    text-align: center;
}

.g-img-upload-icon {
    font-size: 2.4rem;
    color: #c9a84c;
}

.g-img-hint {
    font-size: .82rem;
    color: #888;
    margin: 0;
}

.g-img-choose-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem 1rem;
    background: var(--desert-gold, #c9a84c);
    color: #fff;
    border-radius: 8px;
    font-size: .83rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background .2s;
}

    .g-img-choose-btn:hover {
        background: #b8953e;
    }

/* ── Preview ── */
.g-img-preview {
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 160px;
}

    .g-img-preview img {
        max-width: 100%;
        max-height: 220px;
        border-radius: 10px;
        object-fit: contain;
    }

.g-img-clear-preview {
    position: absolute;
    top: .4rem;
    right: .4rem;
    background: rgba(0,0,0,.55);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: .85rem;
}

/* ── Submit button ── */
.g-img-submit {
    margin: 0 1.25rem .75rem;
    width: calc(100% - 2.5rem);
    padding: .7rem;
    background: var(--desert-gold, #c9a84c);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: background .2s, opacity .2s;
}

    .g-img-submit:disabled {
        opacity: .5;
        cursor: default;
    }

    .g-img-submit:not(:disabled):hover {
        background: #b8953e;
    }

/* ── States ── */
.g-img-state {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    padding: 1.5rem;
    color: #888;
    font-size: .88rem;
}

    .g-img-state i {
        font-size: 2rem;
    }

    .g-img-state.error {
        color: #c0392b;
    }

.g-img-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e9dfc8;
    border-top-color: #c9a84c;
    border-radius: 50%;
    animation: gImgSpin .7s linear infinite;
}

@keyframes gImgSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Results ── */
.g-img-results-wrap {
    display: none;
    padding: 0 1.25rem 1rem;
}

.g-img-results-header {
    font-size: .82rem;
    color: #888;
    margin-bottom: .6rem;
    font-weight: 600;
}

.g-img-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: .6rem;
}

.g-img-result-card {
    border: 1px solid #ede5d0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow .2s, transform .2s;
    background: #fff;
}

    .g-img-result-card:hover {
        box-shadow: 0 4px 16px rgba(0,0,0,.12);
        transform: translateY(-2px);
    }

.g-img-result-img {
    position: relative;
    height: 100px;
    background: #f7f4ee;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .g-img-result-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .g-img-result-img i {
        font-size: 1.8rem;
        color: #ccc;
    }

.g-img-result-score {
    position: absolute;
    top: .3rem;
    left: .3rem;
    background: rgba(201,168,76,.9);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    border-radius: 5px;
    padding: 1px 5px;
}

.g-img-result-body {
    padding: .4rem .5rem .5rem;
}

.g-img-result-name {
    font-size: .78rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.g-img-result-price {
    font-size: .78rem;
    color: #c9a84c;
    font-weight: 700;
    margin-top: 2px;
}

.g-img-result-rating {
    font-size: .72rem;
    color: #f0a500;
}

    .g-img-result-rating i {
        font-size: .68rem;
    }

/* ── View all button ── */
.g-img-view-all {
    display: block;
    text-align: center;
    margin: .5rem 1.25rem 1rem;
    padding: .55rem;
    border: 1.5px solid var(--desert-gold, #c9a84c);
    border-radius: 8px;
    color: var(--desert-gold, #c9a84c);
    font-weight: 600;
    font-size: .85rem;
    text-decoration: none;
    transition: background .2s, color .2s;
}

    .g-img-view-all:hover {
        background: var(--desert-gold, #c9a84c);
        color: #fff;
    }

/* ── Global toast (for image search errors) ── */
#gImgToast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #333;
    color: #fff;
    padding: .6rem 1.4rem;
    border-radius: 8px;
    font-size: .88rem;
    z-index: 2000;
    opacity: 0;
    transition: all .3s;
    pointer-events: none;
    white-space: nowrap;
}

    #gImgToast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    #gImgToast.error {
        background: #c0392b;
    }

/* ── Hero Slider ─────────────────────────────────────────────────────────── */
.hero-slider {
    background: #f5f5f5;
    overflow: hidden;
}

.hero-slide-img {
    max-height: 480px;
    min-height: 200px;
    object-fit: cover;
    width: 100%;
}

.hero-slide-placeholder {
    height: 320px;
    background: linear-gradient(135deg, var(--primary-color, #1a6b3c) 0%, var(--desert-gold, #c8972a) 100%);
}

.slide-no-img .hero-slide-placeholder {
    display: block !important;
}

/* Caption overlay */
.hero-caption {
    background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 100%);
    border-radius: 0;
    padding: 2rem 1.5rem 1.5rem;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: start;
    max-width: 600px;
}

[dir="rtl"] .hero-caption {
    text-align: right;
}

.hero-caption-title {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,.4);
    margin-bottom: .4rem;
}

.hero-caption-sub {
    font-size: clamp(.85rem, 1.8vw, 1.1rem);
    color: rgba(255,255,255,.9);
    margin-bottom: .8rem;
}

.hero-caption-btn {
    background: var(--desert-gold, #c8972a);
    color: #fff;
    font-weight: 600;
    padding: .45rem 1.4rem;
    border-radius: 30px;
    font-size: .9rem;
    transition: background .2s, transform .15s;
    text-decoration: none;
}

    .hero-caption-btn:hover {
        background: var(--primary-color, #1a6b3c);
        color: #fff;
        transform: translateY(-2px);
    }

/* Indicators */
.hero-slider .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.6);
    border: none;
    margin: 0 4px;
    transition: background .2s, transform .2s;
}

.hero-slider .carousel-indicators .active {
    background: var(--desert-gold, #c8972a);
    transform: scale(1.25);
}

/* Arrows */
.hero-arrow {
    width: 42px;
    height: 42px;
    background: rgba(0,0,0,.35);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: .7;
    transition: opacity .2s, background .2s;
    position: absolute;
}

    .hero-arrow:hover {
        opacity: 1;
        background: rgba(0,0,0,.6);
    }


.hero-slider .carousel-control-prev {
    left: auto;
    right: 12px;
}

.hero-slider .carousel-control-next {
    right: auto;
    left: 12px;
}

@media (max-width: 576px) {
    .hero-slide-img {
        max-height: 220px;
        min-height: 140px;
    }

    .hero-caption {
        padding: 1rem 1rem .8rem;
        max-width: 100%;
    }

    .hero-caption-title {
        font-size: 1rem;
    }

    .hero-caption-sub {
        display: none;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   COUPON BADGE SYSTEM
   .cp-badge        — compact dashed badge on every product card
   #pdCouponStrip   — larger badge on product detail page
   .promo-ticker    — Noon-style scrolling promo banner under navbar
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Per-card badge ─────────────────────────────────────────────────────── */
.cp-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fffbf0;
    border: 1.5px dashed #c8960a;
    border-radius: 8px;
    padding: 3px 9px 3px 7px;
    margin-top: 6px;
    font-size: .7rem;
    font-weight: 700;
    color: #8a5e00;
    cursor: pointer;
    user-select: none;
    transition: background .15s, transform .1s;
    width: fit-content;
    max-width: 100%;
}

    .cp-badge i {
        color: #c8960a;
        font-size: .78rem;
        flex-shrink: 0;
    }

    .cp-badge:hover {
        background: #fff3cc;
        transform: scale(1.03);
    }

.cp-badge--copied {
    background: #e8f5e9 !important;
    border-color: #43a047 !important;
    color: #2e7d32 !important;
}

.cp-code {
    font-family: 'Courier New', monospace;
    letter-spacing: .8px;
    text-transform: uppercase;
    background: rgba(200, 150, 10, .1);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: .72rem;
}

.cp-val {
    color: #d32f2f;
    font-size: .72rem;
    font-weight: 800;
}

/* Product Detail page: bigger badge */
#pdCouponStrip .cp-badge {
    font-size: .82rem;
    padding: 6px 14px 6px 10px;
    margin-top: 10px;
    border-radius: 10px;
    border-width: 2px;
}

#pdCouponStrip .cp-code {
    font-size: .82rem;
}

#pdCouponStrip .cp-val {
    font-size: .82rem;
}

/* ── Promo ticker banner ─────────────────────────────────────────────────── */
#promoTicker {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #1a1a2e 0%, #0f3460 60%, #16213e 100%);
    color: #fff;
    height: 38px;
    overflow: hidden;
    position: relative;
    z-index: 900;
}

.promo-ticker-track {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    animation: tickerScroll 30s linear infinite;
    will-change: transform;
}

    .promo-ticker-track:hover {
        animation-play-state: paused;
    }

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.pt-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .78rem;
    font-weight: 500;
    padding: 0 20px;
    flex-shrink: 0;
}

    .pt-item i {
        color: #f5c842;
        font-size: .82rem;
    }

.pt-code {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(255,255,255,.15);
    border: 1px dashed rgba(255,255,255,.4);
    border-radius: 5px;
    padding: 1px 7px;
    cursor: pointer;
    transition: background .15s;
    font-size: .8rem;
}

    .pt-code:hover {
        background: rgba(255,255,255,.3);
    }

.pt-dot {
    color: rgba(255,255,255,.3);
    font-size: 1.2rem;
    padding: 0 4px;
    flex-shrink: 0;
}

.promo-ticker-close {
    position: absolute;
    inset-inline-end: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.12);
    border: none;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: .78rem;
    transition: background .15s;
    flex-shrink: 0;
    z-index: 1;
}

    .promo-ticker-close:hover {
        background: rgba(255,255,255,.28);
    }


/* Order Confirmation */

:root {
    --gold: #c8972a;
    --gold-lt: #fdf6e9;
    --gold-br: #e0c87a;
}

.conf-page {
    padding: 40px 0 80px;
    min-height: 70vh;
}

.conf-card {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0,0,0,.08);
    overflow: hidden;
}

/* ── Status header ── */
.conf-header {
    padding: 36px 32px 28px;
    text-align: center;
    border-bottom: 1px solid #f3f4f6;
}

.conf-icon-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 2.2rem;
    transition: background .4s;
}

    .conf-icon-ring.pending {
        background: #fff8e1;
        color: #e6a817;
    }

    .conf-icon-ring.paid {
        background: #e8f5e9;
        color: #2e7d32;
    }

    .conf-icon-ring.failed {
        background: #fce4ec;
        color: #c62828;
    }

    .conf-icon-ring.cod {
        background: #e3f2fd;
        color: #1565c0;
    }

.conf-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: #1a1a1a;
}

.conf-subtitle {
    font-size: .88rem;
    color: #888;
    margin-bottom: 0;
}

/* ── Status badge ── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 20px;
    padding: 6px 18px;
    font-size: .82rem;
    font-weight: 700;
    margin-top: 14px;
    transition: all .3s;
}

    .status-badge.pending {
        background: #fff8e1;
        color: #b7791f;
        border: 1.5px solid #ffe082;
    }

    .status-badge.paid {
        background: #e8f5e9;
        color: #2e7d32;
        border: 1.5px solid #a5d6a7;
    }

    .status-badge.failed {
        background: #fce4ec;
        color: #c62828;
        border: 1.5px solid #f48fb1;
    }

    .status-badge.cod {
        background: #e3f2fd;
        color: #1565c0;
        border: 1.5px solid #90caf9;
    }

/* Spinner inside badge */
.badge-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Body ── */
.conf-body {
    padding: 24px 32px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: .88rem;
    border-bottom: 1px solid #f3f4f6;
}

    .detail-row:last-child {
        border-bottom: none;
    }

.detail-label {
    color: #888;
    font-weight: 600;
}

.detail-value {
    font-weight: 700;
    color: #1a1a1a;
}

    .detail-value.gold {
        color: var(--gold);
    }

/* ── Items ── */
.items-section {
    padding: 0 32px 24px;
}

.items-title {
    font-size: .85rem;
    font-weight: 800;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.order-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: .85rem;
}

    .order-item-row:last-child {
        border-bottom: none;
    }

.order-item-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f5f5f5;
}

/* ── Progress bar ── */
.poll-progress-wrap {
    height: 3px;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.poll-progress-bar {
    height: 100%;
    background: var(--gold);
    border-radius: 2px;
    transition: width .5s linear;
    width: 0%;
}

.poll-note {
    font-size: .76rem;
    color: #aaa;
    text-align: center;
    margin-bottom: 20px;
}

/* ── Actions ── */
.conf-actions {
    padding: 20px 32px 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-primary-gold {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--gold);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: opacity .15s;
}

    .btn-primary-gold:hover {
        opacity: .88;
        color: #fff;
    }

.btn-outline-gray {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    color: #666;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: border-color .15s;
}

    .btn-outline-gray:hover {
        border-color: var(--gold);
        color: var(--gold);
    }

/* ── Retry payment section ── */
.retry-section {
    display: none;
    background: #fce4ec;
    border-top: 1px solid #f48fb1;
    padding: 20px 32px;
}

    .retry-section h5 {
        font-size: .95rem;
        font-weight: 800;
        color: #c62828;
        margin-bottom: 8px;
    }

/* ── Animate check ── */
@keyframes pop {
    0% {
        transform: scale(.5);
        opacity: 0;
    }

    70% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.pop-anim {
    animation: pop .5s ease forwards;
}

@media (max-width: 640px) {
    .conf-body, .items-section, .conf-actions, .retry-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .conf-header {
        padding: 28px 18px 20px;
    }
}


/* ═══════════════════════════════════════════════════════════════════════
   MY ORDERS — Index & Details pages
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Page shell ── */
.orders-page {
    padding: 36px 0 72px;
    min-height: 60vh;
}

.orders-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.orders-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--desert-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

    .orders-title i {
        color: var(--desert-gold);
    }

/* ── Filter tabs ── */
.orders-filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.filter-chip {
    background: #fff;
    border: 1.5px solid var(--desert-border);
    border-radius: var(--radius-full);
    padding: 6px 16px;
    font-size: .82rem;
    font-weight: 700;
    color: #888;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

    .filter-chip:hover {
        border-color: var(--desert-gold);
        color: var(--desert-gold);
    }

    .filter-chip.active {
        background: var(--desert-gold);
        border-color: var(--desert-gold);
        color: #fff;
    }

/* ── Order card ── */
.order-card {
    background: #fff;
    border: 1.5px solid var(--desert-border);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    margin-bottom: 16px;
    transition: var(--transition);
    animation: fadeInUp .28s ease both;
}

    .order-card:hover {
        box-shadow: var(--shadow-md);
        border-color: var(--desert-gold);
    }

.order-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.order-num {
    font-size: .9rem;
    font-weight: 800;
    color: var(--desert-brown);
    display: flex;
    align-items: center;
    gap: 6px;
}

.order-date {
    font-size: .78rem;
    color: #aaa;
    margin-top: 2px;
}

/* ── Status badges ── */
.order-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: var(--radius-full);
    padding: 4px 13px;
    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-pending {
    background: #fff8e1;
    color: #b7791f;
    border: 1px solid #ffe082;
}

.status-confirmed {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

.status-processing {
    background: #ede7f6;
    color: #4527a0;
    border: 1px solid #b39ddb;
}

.status-shipped {
    background: #e0f7fa;
    color: #00695c;
    border: 1px solid #80cbc4;
}

.status-delivered {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.status-cancelled {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #f48fb1;
}

.status-refunded {
    background: #f3e5f5;
    color: #6a1b9a;
    border: 1px solid #ce93d8;
}

/* ── Order items preview ── */
.order-items-preview {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    align-items: center;
}

.order-item-thumb-sm {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--desert-border);
    flex-shrink: 0;
    background: var(--desert-sand);
}

.order-item-thumb-sm-ph {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: var(--desert-sand);
    border: 1px solid var(--desert-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #ccc;
    flex-shrink: 0;
}

.order-more-badge {
    background: var(--desert-sand);
    border: 1px solid var(--desert-border);
    border-radius: 8px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 800;
    color: var(--desert-brown);
}

/* ── Order card footer ── */
.order-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--desert-border);
}

.order-total-label {
    font-size: .78rem;
    color: #999;
    font-weight: 600;
}

.order-total-val {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--desert-brown);
}

.order-card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-order-detail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--desert-gold);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

    .btn-order-detail:hover {
        opacity: .88;
        color: #fff;
    }

.btn-order-cancel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    color: #e53935;
    border: 1.5px solid #e53935;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

    .btn-order-cancel:hover {
        background: #fce4ec;
    }

/* ── Empty state ── */
.orders-empty {
    text-align: center;
    padding: 64px 20px;
    background: #fff;
    border-radius: var(--radius-md);
    border: 1.5px dashed var(--desert-border);
}

    .orders-empty i {
        font-size: 3.5rem;
        color: var(--desert-sand);
        display: block;
        margin-bottom: 18px;
    }

    .orders-empty h4 {
        font-weight: 800;
        color: var(--desert-dark);
        margin-bottom: 8px;
    }

    .orders-empty p {
        color: #aaa;
        font-size: .88rem;
        margin-bottom: 24px;
    }

/* ── Pagination ── */
.orders-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.page-chip {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--desert-border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    color: var(--desert-dark);
}

    .page-chip:hover,
    .page-chip.active {
        background: var(--desert-gold);
        border-color: var(--desert-gold);
        color: #fff;
    }

    .page-chip:disabled {
        opacity: .4;
        cursor: not-allowed;
    }

/* ══════════════════════════════════════════════════════════
   ORDER DETAILS page
   ══════════════════════════════════════════════════════════ */

.order-detail-page {
    padding: 32px 0 72px;
    min-height: 60vh;
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #888;
    font-size: .84rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 22px;
    transition: var(--transition);
}

    .back-link:hover {
        color: var(--desert-gold);
    }

/* Section card */
.od-card {
    background: #fff;
    border: 1.5px solid var(--desert-border);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    overflow: hidden;
}

.od-card-head {
    background: var(--desert-sand);
    padding: 14px 22px;
    border-bottom: 1px solid var(--desert-border);
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .88rem;
    font-weight: 800;
    color: var(--desert-brown);
}

    .od-card-head i {
        color: var(--desert-gold);
        font-size: 1rem;
    }

.od-card-body {
    padding: 20px 22px;
}

/* Detail rows */
.od-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    font-size: .88rem;
    border-bottom: 1px solid #f5f5f5;
}

    .od-row:last-child {
        border-bottom: none;
    }

.od-label {
    color: #999;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.od-value {
    font-weight: 700;
    color: var(--desert-dark);
    text-align: end;
}

    .od-value.gold {
        color: var(--desert-brown);
        font-size: 1.05rem;
    }

/* Order header hero */
.od-hero {
    background: linear-gradient(135deg, var(--desert-dark) 0%, var(--desert-brown) 100%);
    border-radius: var(--radius-md);
    padding: 28px 28px 22px;
    margin-bottom: 22px;
    color: #fff;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.od-hero-num {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -.3px;
    margin-bottom: 4px;
}

.od-hero-date {
    font-size: .82rem;
    opacity: .7;
}

.od-hero-amount {
    text-align: end;
}

.od-hero-amount-label {
    font-size: .78rem;
    opacity: .65;
    margin-bottom: 2px;
}

.od-hero-amount-val {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--desert-gold);
}

/* Items table */
.od-item-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
}

    .od-item-row:last-child {
        border-bottom: none;
    }

.od-item-img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--desert-border);
    background: var(--desert-sand);
}

.od-item-name {
    font-weight: 700;
    font-size: .9rem;
    color: var(--desert-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.od-item-meta {
    font-size: .76rem;
    color: #aaa;
    margin-top: 3px;
}

.od-item-price {
    font-weight: 800;
    font-size: .95rem;
    color: var(--desert-brown);
    white-space: nowrap;
}

/* Totals table */
.od-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: .88rem;
    border-bottom: 1px solid #f5f5f5;
}

    .od-totals-row:last-child {
        border-bottom: none;
    }

    .od-totals-row.grand {
        font-size: 1.05rem;
        font-weight: 800;
        color: var(--desert-brown);
        border-top: 2px solid var(--desert-border);
        padding-top: 12px;
        margin-top: 4px;
    }

.od-totals-label {
    color: #888;
}

.od-totals-val {
    font-weight: 700;
}

/* Timeline */
.od-timeline {
    position: relative;
    padding-right: 22px;
}

    .od-timeline::before {
        content: '';
        position: absolute;
        right: 7px;
        top: 8px;
        bottom: 8px;
        width: 2px;
        background: var(--desert-border);
        border-radius: 2px;
    }

.od-timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0;
    position: relative;
}

.od-timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2.5px solid var(--desert-border);
    background: #fff;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

    .od-timeline-dot.done {
        background: var(--desert-gold);
        border-color: var(--desert-gold);
    }

    .od-timeline-dot.current {
        background: #fff;
        border-color: var(--desert-gold);
        box-shadow: 0 0 0 3px rgba(200,169,110,.25);
    }

.od-timeline-text {
    font-size: .85rem;
    font-weight: 700;
    color: var(--desert-dark);
}

.od-timeline-when {
    font-size: .75rem;
    color: #aaa;
    margin-top: 1px;
}

/* Cancel button */
.btn-cancel-order {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: 1.5px solid #e53935;
    border-radius: 8px;
    color: #e53935;
    font-family: inherit;
    font-size: .85rem;
    font-weight: 700;
    padding: 10px 20px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    justify-content: center;
}

    .btn-cancel-order:hover {
        background: #fce4ec;
    }

/* Loading skeleton */
.skel {
    background: linear-gradient(90deg, #f0ece4 25%, #faf6ef 50%, #f0ece4 75%);
    background-size: 200% 100%;
    animation: skelshimmer 1.4s infinite;
    border-radius: 6px;
}

@keyframes skelshimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Responsive tweaks */
@media (max-width: 640px) {
    .od-hero {
        padding: 20px 18px 16px;
        flex-direction: column;
    }

    .od-hero-amount {
        text-align: start;
    }

    .od-card-body {
        padding: 16px;
    }

    .orders-header {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ═══════════════════════════════════════════════════════════════════════
   TOURIST CITIES — Frontend pages (RTL)
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Page wrapper ── */
.tc-page {
    padding: 0 0 80px;
    min-height: 60vh;
}

/* ── Hero banner ── */
.tc-hero {
    background: linear-gradient(135deg, var(--desert-dark) 0%, var(--desert-brown) 60%, #3d2510 100%);
    padding: 64px 0 52px;
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
}

    .tc-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c8a96e' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
    }

.tc-hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.tc-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(200,169,110,.18);
    border: 1px solid rgba(200,169,110,.35);
    border-radius: 99px;
    color: var(--desert-gold);
    font-size: .78rem;
    font-weight: 700;
    padding: 5px 16px;
    margin-bottom: 16px;
    letter-spacing: .3px;
}

.tc-hero-title {
    font-size: clamp(1.9rem, 5vw, 3rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -.02em;
}

    .tc-hero-title span {
        color: var(--desert-gold);
    }

.tc-hero-sub {
    color: rgba(255,255,255,.65);
    font-size: .95rem;
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.75;
}

.tc-hero-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.tc-hero-stat {
    text-align: center;
}

.tc-hero-stat-val {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--desert-gold);
    line-height: 1;
    margin-bottom: 4px;
}

.tc-hero-stat-lbl {
    font-size: .75rem;
    color: rgba(255,255,255,.55);
    font-weight: 600;
}

/* ── Search bar ── */
.tc-search-wrap {
    max-width: 540px;
    margin: 0 auto;
    position: relative;
}

.tc-search-input {
    width: 100%;
    background: rgba(255,255,255,.12);
    border: 1.5px solid rgba(200,169,110,.4);
    border-radius: 14px;
    padding: 14px 50px 14px 18px;
    color: #fff;
    font-family: inherit;
    font-size: .92rem;
    outline: none;
    transition: all .22s;
}

    .tc-search-input::placeholder {
        color: rgba(255,255,255,.4);
    }

    .tc-search-input:focus {
        background: rgba(255,255,255,.18);
        border-color: var(--desert-gold);
        box-shadow: 0 0 0 3px rgba(200,169,110,.15);
    }

.tc-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--desert-gold);
    font-size: 1rem;
    pointer-events: none;
}

/* ── Region filter pills ── */
.tc-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    align-items: center;
}

.tc-filter-chip {
    background: #fff;
    border: 1.5px solid var(--desert-border);
    border-radius: var(--radius-full);
    padding: 7px 18px;
    font-size: .82rem;
    font-weight: 700;
    color: #888;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

    .tc-filter-chip:hover {
        border-color: var(--desert-gold);
        color: var(--desert-gold);
    }

    .tc-filter-chip.active {
        background: var(--desert-gold);
        border-color: var(--desert-gold);
        color: #fff;
    }

/* ── Grid ── */
.tc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
}

/* ── City card ── */
.tc-card {
    background: #fff;
    border-radius: 18px;
    border: 1.5px solid var(--desert-border);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    display: block;
    animation: fadeInUp .3s ease both;
}

    .tc-card:hover {
        box-shadow: var(--shadow-lg);
        transform: translateY(-5px);
        border-color: var(--desert-gold);
    }

.tc-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--desert-sand), var(--desert-border));
}

.tc-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

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

.tc-card-img-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--desert-gold);
    background: linear-gradient(135deg, #f5e6c8, #ede0c4);
}

.tc-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55) 100%);
}

.tc-card-region-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(6px);
    color: #fff;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: .72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tc-card-body {
    padding: 18px 18px 16px;
}

.tc-card-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--desert-dark);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tc-card-desc {
    font-size: .8rem;
    color: #888;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
}

.tc-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--desert-border);
}

.tc-card-explore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--desert-gold);
    font-size: .8rem;
    font-weight: 700;
}

/* ── Section heading ── */
.tc-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.tc-section-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--desert-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

    .tc-section-title i {
        color: var(--desert-gold);
    }

.tc-count-badge {
    background: var(--desert-sand);
    color: var(--desert-brown);
    border-radius: var(--radius-full);
    font-size: .75rem;
    padding: 3px 12px;
    font-weight: 700;
}

/* ── Empty state ── */
.tc-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 20px;
    background: #fff;
    border-radius: 18px;
    border: 1.5px dashed var(--desert-border);
}

    .tc-empty i {
        font-size: 3.5rem;
        color: var(--desert-sand);
        display: block;
        margin-bottom: 18px;
    }

    .tc-empty h5 {
        font-weight: 800;
        color: var(--desert-dark);
        margin-bottom: 8px;
    }

    .tc-empty p {
        color: #aaa;
        font-size: .88rem;
    }

/* ── Skeleton cards ── */
.tc-skel-card {
    background: #fff;
    border-radius: 18px;
    border: 1.5px solid var(--desert-border);
    overflow: hidden;
}

.tc-skel-img {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(90deg, #f0ece4 25%, #faf6ef 50%, #f0ece4 75%);
    background-size: 200% 100%;
    animation: skelshimmer 1.4s infinite;
}

.tc-skel-body {
    padding: 18px;
}

/* ═══════════════════════════════════════════════════════════════════════
   TOURIST CITY DETAIL PAGE
   ═══════════════════════════════════════════════════════════════════════ */

.tc-detail-page {
    padding-bottom: 80px;
}

/* Cover photo */
.tc-cover {
    width: 100%;
    aspect-ratio: 21/6;
    background: linear-gradient(135deg, var(--desert-dark), var(--desert-brown));
    position: relative;
    overflow: hidden;
    margin-bottom: -2px;
}

    .tc-cover::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c8a96e' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
    }

.tc-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*display: none;*/
}

.tc-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.6) 100%);
}

/* City info card that overlaps the cover */
.tc-info-card {
    background: #fff;
    border-radius: 0 0 24px 24px;
    border: 1px solid var(--desert-border);
    border-top: none;
    padding: 0 2.5rem 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.tc-info-inner {
    display: flex;
    align-items: flex-start;
    gap: 1.8rem;
}

/* City icon circle (offset up from cover) */
.tc-city-icon-wrap {
    flex-shrink: 0;
    margin-top: -44px;
    position: relative;
    z-index: 2;
}

.tc-city-icon {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--desert-gold), var(--desert-brown));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: #fff;
    border: 4px solid #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.14);
}

.tc-city-icon-img {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.14);
    display: none;
}

.tc-info-content {
    flex: 1;
    min-width: 0;
    padding-top: 1rem;
}

.tc-city-name {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 900;
    color: var(--desert-dark);
    margin-bottom: 6px;
    letter-spacing: -.02em;
}

.tc-city-region {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--desert-sand);
    color: var(--desert-brown);
    border-radius: var(--radius-full);
    padding: 4px 14px;
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.tc-city-desc {
    font-size: .92rem;
    color: #666;
    line-height: 1.8;
    margin: 0;
    max-width: 600px;
}

/* Content sections */
.tc-detail-section {
    background: #fff;
    border: 1.5px solid var(--desert-border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
}

.tc-detail-sec-head {
    background: var(--desert-sand);
    padding: 14px 22px;
    border-bottom: 1px solid var(--desert-border);
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .88rem;
    font-weight: 800;
    color: var(--desert-brown);
}

    .tc-detail-sec-head i {
        color: var(--desert-gold);
        font-size: 1rem;
    }

.tc-detail-sec-body {
    padding: 22px;
}

/* Products grid within city detail */
.tc-prod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
}

@media (max-width: 640px) {
    .tc-cover {
        aspect-ratio: 16/7;
    }

    .tc-info-card {
        padding: 0 1.2rem 1.5rem;
        border-radius: 0 0 16px 16px;
    }

    .tc-info-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .tc-city-icon-wrap {
        margin-top: -36px;
    }

    .tc-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .tc-hero {
        padding: 40px 0 34px;
    }

    .tc-hero-title {
        font-size: 1.6rem;
    }

    .tc-hero-stats {
        gap: 20px;
    }
}

.my-bk-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

.my-bk-hero {
    text-align: center;
    margin-bottom: 2.5rem;
}

    .my-bk-hero h1 {
        font-size: 1.5rem;
        font-weight: 900;
        color: var(--desert-dark);
    }

    .my-bk-hero p {
        font-size: .85rem;
        color: #888;
        margin-top: 4px;
    }

.bk-card {
    background: #fff;
    border: 1.5px solid var(--desert-border);
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    transition: box-shadow .2s;
}

    .bk-card:hover {
        box-shadow: 0 6px 24px rgba(0,0,0,.08);
    }

.bk-card-img {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f5e6c8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--desert-gold);
    font-size: 1.6rem;
}

.bk-card-body {
    flex: 1;
    min-width: 0;
}

.bk-card-city {
    font-size: .95rem;
    font-weight: 800;
    color: var(--desert-dark);
    margin-bottom: 4px;
}

.bk-card-ref {
    font-size: .72rem;
    color: #aaa;
    margin-bottom: 10px;
}

.bk-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: .78rem;
    color: #666;
}

    .bk-card-meta span {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .bk-card-meta i {
        color: var(--desert-gold);
    }

.bk-card-actions {
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
}

.bk-cancel-pill {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #f48fb1;
    border-radius: 99px;
    padding: 5px 14px;
    font-size: .74rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    transition: all .2s;
}

    .bk-cancel-pill:hover {
        background: #c62828;
        color: #fff;
    }

    .bk-cancel-pill:disabled {
        opacity: .5;
        cursor: not-allowed;
    }

/* Status badges */
.bk-badge {
    display: inline-block;
    border-radius: 99px;
    padding: 3px 12px;
    font-size: .72rem;
    font-weight: 700;
}

.bk-badge-pending {
    background: #fff8e1;
    color: #b7791f;
    border: 1px solid #ffe082;
}

.bk-badge-confirmed {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

.bk-badge-cancelled {
    background: #f5f5f5;
    color: #999;
    border: 1px solid #ddd;
}

.bk-badge-rejected {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #f48fb1;
}

.bk-badge-completed {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.bk-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1.5px dashed var(--desert-border);
    border-radius: 16px;
}

    .bk-empty i {
        font-size: 3rem;
        color: #e8d9bb;
        display: block;
        margin-bottom: 14px;
    }

    .bk-empty h4 {
        font-weight: 800;
        color: var(--desert-dark);
        margin-bottom: 6px;
    }

    .bk-empty p {
        font-size: .83rem;
        color: #aaa;
        margin-bottom: 20px;
    }

.bk-skel-card {
    background: #fff;
    border: 1.5px solid var(--desert-border);
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 16px;
    display: flex;
    gap: 18px;
}

.skel-pulse {
    background: linear-gradient(90deg,#f0ece4 25%,#faf6ef 50%,#f0ece4 75%);
    background-size: 200% 100%;
    animation: skelshimmer 1.4s infinite;
    border-radius: 6px;
}

@keyframes skelshimmer {
    0% {
        background-position: 200% 0
    }

    100% {
        background-position: -200% 0
    }
}

.bk-pager {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.bk-pager-btn {
    min-width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1.5px solid #e0d0b0;
    background: #fff;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    transition: all .2s;
    color: var(--desert-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .bk-pager-btn:hover, .bk-pager-btn.active {
        background: var(--desert-gold);
        border-color: var(--desert-gold);
        color: #fff;
    }

    .bk-pager-btn:disabled {
        opacity: .4;
        cursor: not-allowed;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Booking button ─────────────────────────────────────────────── */
.btn-book-city {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--desert-gold), #a8895a);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 22px;
    font-size: .85rem;
    font-weight: 800;
    cursor: pointer;
    transition: all .22s;
    font-family: 'Cairo', sans-serif;
    box-shadow: 0 4px 14px rgba(200,169,110,.35);
}

    .btn-book-city:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(200,169,110,.45);
    }

/* ── Booking section ────────────────────────────────────────────── */
.bk-section {
    background: #fff;
    border: 1.5px solid var(--desert-border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.bk-section-head {
    background: linear-gradient(135deg, var(--desert-dark), #2a1d0a);
    padding: 20px 26px;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .bk-section-head i {
        color: var(--desert-gold);
        font-size: 1.25rem;
    }

    .bk-section-head h2 {
        margin: 0;
        font-size: 1.05rem;
        font-weight: 800;
        color: #fff;
    }

    .bk-section-head p {
        margin: 4px 0 0;
        font-size: .78rem;
        color: rgba(245,230,200,.65);
    }

.bk-section-body {
    padding: 28px 26px;
}

/* ── Feature badges inside booking section ──────────────────────── */
.bk-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.bk-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(200,169,110,.1);
    border: 1px solid rgba(200,169,110,.25);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--desert-dark);
}

    .bk-feature i {
        color: var(--desert-gold);
    }

/* ── Success card ───────────────────────────────────────────────── */
.bk-success-card {
    text-align: center;
    padding: 32px 20px;
    background: linear-gradient(135deg, #f9f6f0, #fff);
    border-radius: 16px;
}

.bk-success-icon {
    font-size: 3.5rem;
    color: #2E7D32;
    margin-bottom: 14px;
    line-height: 1;
}

.bk-success-title {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--desert-dark);
    margin: 0 0 6px;
}

.bk-success-sub {
    font-size: .83rem;
    color: #666;
    margin: 0 0 24px;
}

.bk-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    text-align: right;
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    border: 1px solid #e8e0d0;
    margin-bottom: 22px;
}

@media (max-width: 480px) {
    .bk-info-grid {
        grid-template-columns: 1fr;
    }
}

.bk-info-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.bk-info-label {
    font-size: .7rem;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
}

.bk-info-val {
    font-size: .85rem;
    color: var(--desert-dark);
}

.bk-my-bookings-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--desert-dark);
    color: var(--desert-gold);
    border-radius: 9px;
    padding: 10px 22px;
    font-size: .83rem;
    font-weight: 800;
    text-decoration: none;
    transition: all .2s;
}

    .bk-my-bookings-link:hover {
        background: var(--desert-brown);
        color: #fff;
    }

/* ── Status badges ──────────────────────────────────────────────── */
.bk-badge {
    display: inline-block;
    border-radius: 99px;
    padding: 3px 12px;
    font-size: .72rem;
    font-weight: 700;
}

.bk-badge-pending {
    background: #fff8e1;
    color: #b7791f;
    border: 1px solid #ffe082;
}

.bk-badge-confirmed {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

.bk-badge-cancelled {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #f48fb1;
}

.bk-badge-rejected {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #f48fb1;
}

.bk-badge-completed {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

/* ── Modal overlay ──────────────────────────────────────────────── */
.bk-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.52);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s;
}

    .bk-modal-overlay.open {
        opacity: 1;
        pointer-events: all;
    }

.bk-modal {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0,0,0,.22);
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    overflow-y: auto;
    transform: scale(.94) translateY(16px);
    transition: transform .25s;
}

.bk-modal-overlay.open .bk-modal {
    transform: scale(1) translateY(0);
}

.bk-modal-header {
    background: linear-gradient(135deg, var(--desert-dark), #2a1d0a);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 20px 20px 0 0;
}

.bk-modal-title {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .bk-modal-title i {
        color: var(--desert-gold);
    }

.bk-modal-close {
    background: rgba(255,255,255,.1);
    border: none;
    color: rgba(255,255,255,.7);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all .2s;
}

    .bk-modal-close:hover {
        background: rgba(198,40,40,.5);
        color: #fff;
    }

.bk-modal-body {
    padding: 24px;
}

.bk-form-group {
    margin-bottom: 16px;
}

.bk-form-label {
    display: block;
    font-size: .79rem;
    font-weight: 700;
    color: var(--desert-dark);
    margin-bottom: 6px;
}

    .bk-form-label span {
        color: #c62828;
        margin-right: 2px;
    }

.bk-form-control {
    width: 100%;
    border: 1.5px solid #e0d0b0;
    border-radius: 9px;
    padding: 10px 13px;
    font-family: 'Cairo', sans-serif;
    font-size: .85rem;
    color: var(--desert-dark);
    background: #faf7f2;
    transition: all .2s;
    outline: none;
}

    .bk-form-control:focus {
        border-color: var(--desert-gold);
        background: #fff;
        box-shadow: 0 0 0 3px rgba(200,169,110,.15);
    }

.bk-form-hint {
    font-size: .71rem;
    color: #888;
    margin-top: 4px;
}

.bk-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 480px) {
    .bk-form-row {
        grid-template-columns: 1fr;
    }
}

.bk-alert {
    border-radius: 9px;
    padding: 10px 14px;
    font-size: .8rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.bk-alert-danger {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #f48fb1;
}

.bk-alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.bk-modal-footer {
    padding: 0 24px 22px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.bk-cancel-btn {
    background: #f5f5f5;
    border: 1.5px solid #ddd;
    color: #555;
    border-radius: 9px;
    padding: 10px 20px;
    font-size: .83rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    transition: all .2s;
}

    .bk-cancel-btn:hover {
        border-color: #bbb;
        background: #eee;
    }

.bk-submit-btn {
    background: linear-gradient(135deg, var(--desert-gold), #a8895a);
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 10px 26px;
    font-size: .85rem;
    font-weight: 800;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all .2s;
}

    .bk-submit-btn:hover:not(:disabled) {
        filter: brightness(1.1);
    }

    .bk-submit-btn:disabled {
        opacity: .6;
        cursor: not-allowed;
    }

.bk-btn-spin {
    display: none;
}

.bk-divider {
    border: none;
    border-top: 1px solid #f0e8d8;
    margin: 18px 0;
}

/* ── Book Now button on card ──────────────────────────────────────── */
.tc-book-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--desert-gold), #b8925e);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 7px 13px;
    font-size: .76rem;
    font-weight: 800;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    transition: all .22s;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(200,169,110,.3);
    position: relative;
    z-index: 1;
}

    .tc-book-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(200,169,110,.45);
        filter: brightness(1.08);
    }

/* ── Modal overlay ──────────────────────────────────────────────────── */
.qb-overlay {
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: rgba(15,10,4,.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s;
}

    .qb-overlay.open {
        opacity: 1;
        pointer-events: all;
    }

.qb-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 28px 72px rgba(0,0,0,.28);
    transform: scale(.93) translateY(20px);
    transition: transform .25s;
}

.qb-overlay.open .qb-modal {
    transform: scale(1) translateY(0);
}

/* Header */
.qb-header {
    background: linear-gradient(135deg, #1A1208, #2e1e0a);
    padding: 18px 22px;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qb-header-title {
    font-size: .95rem;
    font-weight: 900;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 9px;
}

    .qb-header-title i {
        color: var(--desert-gold);
    }

.qb-header-city {
    font-size: .78rem;
    color: rgba(245,230,200,.6);
    font-weight: 600;
    margin-top: 2px;
}

.qb-close-btn {
    background: rgba(255,255,255,.1);
    border: none;
    color: rgba(255,255,255,.65);
    width: 30px;
    height: 30px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: .9rem;
    transition: all .2s;
}

    .qb-close-btn:hover {
        background: rgba(198,40,40,.55);
        color: #fff;
    }

/* Body */
.qb-body {
    padding: 22px 22px 4px;
}

/* Form fields */
.qb-group {
    margin-bottom: 14px;
}

.qb-label {
    display: block;
    font-size: .77rem;
    font-weight: 700;
    color: #4a3010;
    margin-bottom: 5px;
}

    .qb-label span {
        color: #c62828;
    }

.qb-input {
    width: 100%;
    border: 1.5px solid #e0d0b0;
    border-radius: 9px;
    padding: 9px 12px;
    font-family: 'Cairo', sans-serif;
    font-size: .84rem;
    color: #1A1208;
    background: #faf7f2;
    transition: all .2s;
    outline: none;
    box-sizing: border-box;
}

    .qb-input:focus {
        border-color: var(--desert-gold);
        background: #fff;
        box-shadow: 0 0 0 3px rgba(200,169,110,.14);
    }

    .qb-input::placeholder {
        color: #bbb;
        font-size: .79rem;
    }

.qb-hint {
    font-size: .7rem;
    color: #aaa;
    margin-top: 3px;
}

.qb-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .qb-row {
        grid-template-columns: 1fr;
    }
}

.qb-section-lbl {
    font-size: .72rem;
    font-weight: 700;
    color: #aaa;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin: 14px 0 10px;
}

.qb-divider {
    border: none;
    border-top: 1px solid #f0e8d8;
    margin: 14px 0 16px;
}

/* Alert */
.qb-alert {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #f48fb1;
    border-radius: 8px;
    padding: 9px 13px;
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: 12px;
}

/* Footer */
.qb-footer {
    padding: 12px 22px 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.qb-cancel {
    background: #f5f5f5;
    border: 1.5px solid #ddd;
    color: #666;
    border-radius: 9px;
    padding: 9px 18px;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    transition: all .2s;
}

    .qb-cancel:hover {
        border-color: #bbb;
        background: #eee;
    }

.qb-submit {
    background: linear-gradient(135deg, var(--desert-gold), #a8895a);
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 9px 22px;
    font-size: .84rem;
    font-weight: 800;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: all .2s;
}

    .qb-submit:hover:not(:disabled) {
        filter: brightness(1.1);
    }

    .qb-submit:disabled {
        opacity: .55;
        cursor: not-allowed;
    }

/* Success panel */
.qb-success {
    text-align: center;
    padding: 30px 16px 10px;
}

.qb-success-icon {
    font-size: 3.2rem;
    color: #2E7D32;
    margin-bottom: 12px;
}

.qb-success-title {
    font-size: 1.1rem;
    font-weight: 900;
    color: #1A1208;
    margin: 0 0 5px;
}

.qb-success-sub {
    font-size: .8rem;
    color: #888;
    margin: 0 0 20px;
}

.qb-success-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: #faf7f2;
    border-radius: 11px;
    padding: 16px;
    border: 1px solid #e8d9bb;
    text-align: right;
    margin-bottom: 20px;
}

@media (max-width: 400px) {
    .qb-success-grid {
        grid-template-columns: 1fr;
    }
}

.qb-success-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.qb-success-key {
    font-size: .67rem;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
}

.qb-success-val {
    font-size: .82rem;
    font-weight: 700;
    color: #1A1208;
}

.qb-my-bookings {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #1A1208;
    color: var(--desert-gold);
    border-radius: 9px;
    padding: 9px 20px;
    font-size: .8rem;
    font-weight: 800;
    text-decoration: none;
    transition: all .2s;
    margin-bottom: 6px;
}

    .qb-my-bookings:hover {
        background: #6B4C2A;
        color: #fff;
    }

@keyframes qbSpin {
    to {
        transform: rotate(360deg);
    }
}


.bk-details-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--desert-dark);
    color: var(--desert-gold);
    border: 1px solid rgba(200,169,110,.3);
    border-radius: 99px;
    padding: 5px 14px;
    font-size: .74rem;
    font-weight: 700;
    text-decoration: none;
    font-family: 'Cairo', sans-serif;
    transition: all .2s;
    white-space: nowrap;
}

    .bk-details-pill:hover {
        background: var(--desert-gold);
        color: #fff;
        border-color: var(--desert-gold);
    }

/* ── Page ─────────────────────────────────────────────────────── */
.bkd-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 2rem 1rem 5rem;
}

/* ── Skeleton ─────────────────────────────────────────────────── */
.bkd-skel-pulse {
    background: linear-gradient(90deg,#f0ece4 25%,#faf6ef 50%,#f0ece4 75%);
    background-size: 200% 100%;
    animation: bkdShimmer 1.4s infinite;
}

@keyframes bkdShimmer {
    0% {
        background-position: 200% 0
    }

    100% {
        background-position: -200% 0
    }
}

.bkd-skel-hero {
    height: 190px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.bkd-skel-row {
    height: 13px;
    border-radius: 6px;
    margin-bottom: 10px;
}

/* ── Hero ─────────────────────────────────────────────────────── */
.bkd-hero {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 18px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,.13);
    min-height: 190px;
    background: linear-gradient(135deg,#f5e6c8,#c8a96e);
}

.bkd-hero-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.bkd-hero-ph {
    width: 100%;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255,255,255,.45);
}

.bkd-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,transparent 25%,rgba(10,6,2,.72) 100%);
}

.bkd-hero-bottom {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 18px 22px;
}

.bkd-hero-city {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    margin: 0 0 4px;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.bkd-hero-region {
    font-size: .76rem;
    color: rgba(245,230,200,.8);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ── Booking ref pill ─────────────────────────────────────────── */
.bkd-ref-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--desert-dark);
    color: var(--desert-gold);
    border-radius: 10px;
    padding: 8px 16px;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .03em;
    margin-bottom: 16px;
}

/* ── Status banner ────────────────────────────────────────────── */
.bkd-status-bar {
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1.5px solid;
    flex-wrap: wrap;
}

    .bkd-status-bar.pending {
        background: #fffde7;
        border-color: #ffe082;
    }

    .bkd-status-bar.confirmed {
        background: #e3f2fd;
        border-color: #90caf9;
    }

    .bkd-status-bar.cancelled {
        background: #fafafa;
        border-color: #e0e0e0;
    }

    .bkd-status-bar.rejected {
        background: #fce4ec;
        border-color: #f48fb1;
    }

    .bkd-status-bar.completed {
        background: #e8f5e9;
        border-color: #a5d6a7;
    }

.bkd-status-icon {
    font-size: 1.9rem;
    flex-shrink: 0;
    line-height: 1;
}

.bkd-status-bar.pending .bkd-status-icon {
    color: #b7791f;
}

.bkd-status-bar.confirmed .bkd-status-icon {
    color: #1565c0;
}

.bkd-status-bar.cancelled .bkd-status-icon {
    color: #9e9e9e;
}

.bkd-status-bar.rejected .bkd-status-icon {
    color: #c62828;
}

.bkd-status-bar.completed .bkd-status-icon {
    color: #2e7d32;
}

.bkd-status-label {
    font-size: 1rem;
    font-weight: 900;
}

.bkd-status-sub {
    font-size: .76rem;
    color: #777;
    margin-top: 2px;
}

.bkd-status-badge {
    margin-right: auto;
    display: inline-block;
    border-radius: 99px;
    padding: 4px 14px;
    font-size: .75rem;
    font-weight: 800;
}

    .bkd-status-badge.pending {
        background: #fff8e1;
        color: #b7791f;
        border: 1px solid #ffe082;
    }

    .bkd-status-badge.confirmed {
        background: #e3f2fd;
        color: #1565c0;
        border: 1px solid #90caf9;
    }

    .bkd-status-badge.cancelled {
        background: #f5f5f5;
        color: #999;
        border: 1px solid #ddd;
    }

    .bkd-status-badge.rejected {
        background: #fce4ec;
        color: #c62828;
        border: 1px solid #f48fb1;
    }

    .bkd-status-badge.completed {
        background: #e8f5e9;
        color: #2e7d32;
        border: 1px solid #a5d6a7;
    }

/* ── Admin note ───────────────────────────────────────────────── */
.bkd-admin-note {
    background: #fef9f0;
    border: 1px solid #f0deb0;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

    .bkd-admin-note i {
        color: var(--desert-gold);
        flex-shrink: 0;
        margin-top: 2px;
    }

    .bkd-admin-note p {
        margin: 0;
        font-size: .82rem;
        color: #5a3e10;
        line-height: 1.6;
    }

/* ── Section cards ────────────────────────────────────────────── */
.bkd-card {
    background: #fff;
    border: 1.5px solid var(--desert-border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
}

.bkd-card-head {
    padding: 13px 20px;
    border-bottom: 1px solid #f5ede0;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg,#faf6ef,#fff);
}

    .bkd-card-head i {
        color: var(--desert-gold);
    }

    .bkd-card-head h3 {
        margin: 0;
        font-size: .9rem;
        font-weight: 800;
        color: var(--desert-dark);
    }

/* ── Detail rows ──────────────────────────────────────────────── */
.bkd-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid #faf5ec;
}

    .bkd-row:last-child {
        border-bottom: none;
    }

.bkd-row-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    flex-shrink: 0;
    background: rgba(200,169,110,.1);
    border: 1px solid rgba(200,169,110,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--desert-gold);
    font-size: .88rem;
    margin-top: 1px;
}

.bkd-row-label {
    font-size: .69rem;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.bkd-row-val {
    font-size: .88rem;
    font-weight: 700;
    color: var(--desert-dark);
    margin-top: 2px;
    word-break: break-word;
}

    .bkd-row-val.muted {
        color: #bbb;
        font-weight: 500;
        font-style: italic;
    }

/* ── Timeline ─────────────────────────────────────────────────── */
.bkd-tl {
    padding: 16px 20px;
}

.bkd-tl-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding-bottom: 20px;
    position: relative;
}

    .bkd-tl-item:not(:last-child)::before {
        content: '';
        position: absolute;
        right: 15px;
        top: 32px;
        bottom: 0;
        width: 2px;
        background: linear-gradient(180deg,var(--desert-gold),#f5e6c8);
    }

.bkd-tl-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    position: relative;
    z-index: 1;
}

    .bkd-tl-dot.done {
        background: var(--desert-gold);
        color: #fff;
    }

    .bkd-tl-dot.wait {
        background: #f5f5f5;
        border: 2px solid #e0e0e0;
        color: #ccc;
    }

    .bkd-tl-dot.finish {
        background: #2e7d32;
        color: #fff;
    }

    .bkd-tl-dot.reject {
        background: #c62828;
        color: #fff;
    }

.bkd-tl-title {
    font-size: .83rem;
    font-weight: 800;
    color: var(--desert-dark);
}

.bkd-tl-sub {
    font-size: .71rem;
    color: #aaa;
    margin-top: 2px;
}

/* ── Actions ──────────────────────────────────────────────────── */
.bkd-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.bkd-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f5f5f5;
    border: 1.5px solid #ddd;
    color: #555;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: .83rem;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s;
    font-family: 'Cairo',sans-serif;
}

    .bkd-btn-back:hover {
        background: #ebebeb;
        border-color: #bbb;
        color: #333;
    }

.bkd-btn-cancel {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fce4ec;
    border: 1.5px solid #f48fb1;
    color: #c62828;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: .83rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Cairo',sans-serif;
    transition: all .2s;
}

    .bkd-btn-cancel:hover:not(:disabled) {
        background: #c62828;
        color: #fff;
        border-color: #c62828;
    }

    .bkd-btn-cancel:disabled {
        opacity: .5;
        cursor: not-allowed;
    }

/* ── Not found ────────────────────────────────────────────────── */
.bkd-not-found {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 20px;
    border: 1.5px dashed var(--desert-border);
}

    .bkd-not-found i {
        font-size: 3.5rem;
        color: #e8d9bb;
        display: block;
        margin-bottom: 14px;
    }

    .bkd-not-found h4 {
        font-weight: 900;
        color: var(--desert-dark);
        margin-bottom: 6px;
    }

    .bkd-not-found p {
        font-size: .83rem;
        color: #aaa;
        margin-bottom: 20px;
    }

@media (max-width:560px) {
    .bkd-hero-city {
        font-size: 1.1rem;
    }

    .bkd-row, .bkd-card-head {
        padding-right: 14px;
        padding-left: 14px;
    }

    .bkd-status-badge {
        margin-right: 0;
        margin-top: 4px;
    }
}
