/* =====================================================================
   BOUCHERIE FRANCOPHONE GHANA — Modern Web App Stylesheet
   Responsive, Clean, Modern, Mobile-First, Emoji-Free UI System
===================================================================== */

:root {
    /* Brand Palette */
    --brand-red: #C8102E;
    --brand-red-dark: #960A21;
    --brand-red-soft: rgba(200, 16, 46, 0.08);
    --brand-gold: #D6A33A;
    --brand-gold-hover: #BF8E29;
    --brand-gold-soft: rgba(214, 163, 58, 0.12);
    --brand-dark: #121212;

    /* Neutrals & Surfaces */
    --white: #FFFFFF;
    --text-primary: #1E293B;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --surface-soft: #F8FAFC;
    --surface-card: #FFFFFF;
    --surface-subtle: #F1F5F9;
    --border-subtle: #E2E8F0;
    --border-strong: #CBD5E1;

    /* Statuses */
    --success: #15803D;
    --success-soft: #DCFCE7;
    --warning: #B45309;
    --warning-soft: #FEF3C7;
    --danger: #B91C1C;
    --danger-soft: #FEE2E2;
    --info: #0369A1;
    --info-soft: #E0F2FE;

    /* Geometry & Shadows */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;

    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.07), 0 1px 2px -1px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);

    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", sans-serif;
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    color: var(--text-primary);
    background-color: var(--surface-soft);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* On mobile, reserve space for the modern bottom app navigation bar */
@media (max-width: 768px) {
    body {
        padding-bottom: 74px;
    }
}

a {
    color: var(--brand-red);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--brand-red-dark);
}

/* =====================================================================
   MODERN SVG ICONS
===================================================================== */
.icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    stroke-width: 2;
    transition: transform var(--transition-fast), stroke var(--transition-fast);
}

.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 32px; height: 32px; }

/* =====================================================================
   HEADER & TOP ANNOUNCEMENT BAR
===================================================================== */
.header-top {
    background: var(--brand-dark);
    color: #E2E8F0;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 500;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.header-top-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-top-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #CBD5E1;
}

.header-top-item:hover {
    color: var(--white);
}

.header-top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Glassmorphic Modern Sticky Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow var(--transition-fast);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
}

.brand-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(139, 30, 30, 0.08);
    overflow: hidden;
    flex-shrink: 0;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.brand-badge:hover .brand-logo-card {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(139, 30, 30, 0.15), 0 0 0 1px rgba(139, 30, 30, 0.15);
}

.brand-logo {
    height: 100%;
    width: 100%;
    object-fit: contain;
    padding: 3px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand-red);
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.brand-subtitle {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--brand-red);
    background: var(--brand-red-soft);
}

/* PWA Header Install Button */
.nav-install-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--surface-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 5px 11px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.nav-install-btn:hover {
    background: var(--brand-red-soft);
    color: var(--brand-red);
    border-color: rgba(139, 30, 30, 0.25);
}

/* Modern Language Selector Pill */
.lang-switch {
    display: inline-flex;
    align-items: center;
    background: var(--surface-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 2px;
}

.lang-btn {
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    border-radius: var(--radius-full);
    text-decoration: none !important;
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--white);
    color: var(--brand-red);
    box-shadow: var(--shadow-xs);
}

/* Modern Cart Button with dynamic badge */
.nav-cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-red);
    color: var(--white) !important;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.88rem;
    box-shadow: 0 2px 8px rgba(200, 16, 46, 0.25);
    transition: all var(--transition-fast);
}

.nav-cart-btn:hover {
    background: var(--brand-red-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.35);
}

.cart-counter-pill {
    background: var(--brand-gold);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: var(--radius-full);
    min-width: 18px;
    text-align: center;
    display: inline-block;
}

/* =====================================================================
   BUTTONS & CONTROLS
===================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    line-height: 1.3;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--brand-red);
    color: var(--white) !important;
    box-shadow: 0 2px 6px rgba(200, 16, 46, 0.2);
}

.btn-primary:hover {
    background: var(--brand-red-dark);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

.btn-accent {
    background: var(--brand-gold);
    color: var(--white) !important;
    box-shadow: 0 2px 6px rgba(214, 163, 58, 0.2);
}

.btn-accent:hover {
    background: var(--brand-gold-hover);
    box-shadow: 0 4px 12px rgba(214, 163, 58, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-primary) !important;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
    background: var(--surface-soft);
    border-color: var(--border-strong);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* =====================================================================
   CONTAINER & LAYOUT
===================================================================== */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}

/* =====================================================================
   HERO BANNER
===================================================================== */
.hero-banner {
    position: relative;
    background: linear-gradient(135deg, #A80D26 0%, #700819 100%);
    color: var(--white);
    padding: 56px 16px;
    text-align: center;
    overflow: hidden;
}

.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(214, 163, 58, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}

.hero-title {
    font-size: 2.3rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 28px;
    line-height: 1.5;
}

.hero-search-form {
    display: flex;
    max-width: 560px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-full);
    padding: 4px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.hero-search-input {
    flex: 1;
    padding: 12px 18px;
    border: none;
    font-size: 0.95rem;
    outline: none;
    border-radius: var(--radius-full) 0 0 var(--radius-full);
    color: var(--text-primary);
}

.hero-search-btn {
    border-radius: var(--radius-full);
    padding: 10px 22px;
}

/* =====================================================================
   VALUE PROPOSITIONS
===================================================================== */
.features-strip {
    background: var(--white);
    border-bottom: 1px solid var(--border-subtle);
    padding: 24px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.feature-icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--brand-red-soft);
    color: var(--brand-red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.feature-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* =====================================================================
   CATEGORY TILES & PILLS
===================================================================== */
.category-scroll-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px 0 20px 0;
    scrollbar-width: none;
}

.category-scroll-container::-webkit-scrollbar {
    display: none;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--white);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-xs);
}

.category-pill:hover, .category-pill.active {
    background: var(--brand-red);
    color: var(--white);
    border-color: var(--brand-red);
    box-shadow: 0 4px 10px rgba(200, 16, 46, 0.25);
}

/* =====================================================================
   PRODUCT CARDS GRID
===================================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin: 24px 0 48px 0;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

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

.product-card-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 70%;
    background: var(--surface-subtle);
    overflow: hidden;
}

.product-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.product-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.product-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-cat {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--brand-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.product-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 6px;
}

.product-card-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.product-price-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}

.product-price-amount {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand-red);
}

/* =====================================================================
   QUANTITY STEPPER (MODERN PILL)
===================================================================== */
.qty-stepper {
    display: inline-flex;
    align-items: center;
    background: var(--surface-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-btn {
    width: 34px;
    height: 34px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.qty-btn:hover {
    background: var(--border-subtle);
    color: var(--brand-red);
}

.qty-input {
    width: 48px;
    height: 34px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    outline: none;
}

/* =====================================================================
   FORMS & INPUTS
===================================================================== */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-control, .form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.92rem;
    font-family: inherit;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-control:focus, .form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12);
}

/* =====================================================================
   BADGES & ALERTS
===================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.4;
}

.badge-published, .badge-success {
    background: var(--success-soft);
    color: var(--success);
}

.badge-warning, .badge-pending {
    background: var(--warning-soft);
    color: var(--warning);
}

.badge-danger, .badge-rejected {
    background: var(--danger-soft);
    color: var(--danger);
}

.badge-info {
    background: var(--info-soft);
    color: var(--info);
}

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
}

.alert-success {
    background: var(--success-soft);
    color: #166534;
    border: 1px solid #BBF7D0;
}

.alert-danger {
    background: var(--danger-soft);
    color: #991B1B;
    border: 1px solid #FECACA;
}

.alert-warning {
    background: var(--warning-soft);
    color: #92400E;
    border: 1px solid #FDE68A;
}

.alert-info {
    background: var(--info-soft);
    color: #075985;
    border: 1px solid #BAE6FD;
}

/* =====================================================================
   MODERN APP CARDS
===================================================================== */
.admin-card, .shop-card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    padding: 24px;
    box-shadow: var(--shadow-xs);
    margin-bottom: 24px;
}

.admin-grid-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}

.stat-box {
    background: var(--white);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-xs);
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--brand-red);
}

.stat-box.gold::before { background: var(--brand-gold); }
.stat-box.green::before { background: var(--success); }
.stat-box.warning::before { background: var(--warning); }

.stat-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-primary);
    margin: 4px 0;
    line-height: 1.1;
}

/* =====================================================================
   DATA TABLES
===================================================================== */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    background: var(--white);
}

table.data-table th {
    background: var(--surface-subtle);
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-subtle);
    text-align: left;
}

table.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

table.data-table tr:hover td {
    background: #F8FAFC;
}

/* =====================================================================
   MOBILE BOTTOM APP BAR — MODERN FLOATING ISLAND
===================================================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 14px calc(10px + env(safe-area-inset-bottom));
    height: 64px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding: 4px 8px;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #64748B;
    font-size: 0.68rem;
    font-weight: 600;
    text-decoration: none !important;
    position: relative;
    padding: 4px 10px;
    border-radius: 16px;
    transition: all var(--transition-fast);
    min-width: 58px;
}

.mobile-nav-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 28px;
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: var(--brand-red);
}

.mobile-nav-item.active .mobile-nav-icon-wrap {
    background: rgba(139, 30, 30, 0.1);
    color: var(--brand-red);
    transform: translateY(-2px);
}

.mobile-cart-badge {
    position: absolute;
    top: -3px;
    right: -4px;
    background: var(--brand-red);
    color: var(--white);
    font-size: 0.62rem;
    font-weight: 800;
    min-width: 17px;
    height: 17px;
    line-height: 15px;
    text-align: center;
    border-radius: var(--radius-full);
    padding: 0 4px;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* =====================================================================
   TOAST NOTIFICATIONS
===================================================================== */
.toast-notice {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--text-primary);
    color: var(--white);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2000;
    animation: toastSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 768px) {
    .toast-notice {
        bottom: 80px;
        right: 16px;
        left: 16px;
    }
}

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

/* =====================================================================
   FOOTER
===================================================================== */
.footer-main {
    background: var(--brand-dark);
    color: #94A3B8;
    padding: 48px 16px 24px 16px;
    border-top: 1px solid #27272A;
    font-size: 0.88rem;
    margin-top: 64px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    margin-bottom: 36px;
}

.footer-title {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #94A3B8;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #27272A;
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #64748B;
}

/* =====================================================================
   UTILITIES & REUSABLE COMPONENTS
   (replace repeated inline style="..." attributes in the views)
===================================================================== */
.u-muted        { color: var(--text-muted); }
.u-muted-sm     { color: var(--text-muted); font-size: 0.78rem; }
.u-muted-85     { color: var(--text-muted); font-size: 0.85rem; }
.u-muted-md     { color: var(--text-muted); font-size: 0.9rem; }
.u-primary      { color: var(--text-primary); }
.u-danger       { color: var(--danger); }
.u-border-strong { color: var(--border-strong); }
.u-center       { text-align: center; }
.u-right        { text-align: right; }
.u-fw-600       { font-weight: 600; }
.u-inline       { display: inline; }
.u-mt-4         { margin-top: 4px; }
.u-mb-20        { margin-bottom: 20px; }
.u-mb-24        { margin-bottom: 24px; }
.u-flex-center-6   { display: flex; align-items: center; gap: 6px; }
.u-flex-center-10  { display: flex; align-items: center; gap: 10px; }
.u-inline-center-6 { display: inline-flex; align-items: center; gap: 6px; }
.u-between-mb-8    { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.u-between-mb-8b   { display: flex; justify-content: space-between; margin-bottom: 8px; }

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-title {
    font-size: 1.15rem;
    color: var(--text-primary);
    font-weight: 800;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

/* Visible keyboard focus for accessibility */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.category-pill:focus-visible,
.qty-btn:focus-visible {
    outline: 3px solid rgba(200, 16, 46, 0.35);
    outline-offset: 2px;
}

img { max-width: 100%; }

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

/* =====================================================================
   RESPONSIVE LAYER — TABLET (<= 992px)
===================================================================== */
@media (max-width: 992px) {
    .hero-title { font-size: 2rem; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
}

/* =====================================================================
   RESPONSIVE LAYER — MOBILE (<= 768px)
===================================================================== */
@media (max-width: 768px) {
    .container { padding: 0 14px; }

    /* Header Navbar: sleek, compact mobile layout */
    .navbar { padding: 8px 12px; }
    .navbar-container { gap: 8px; }
    .brand-badge { gap: 8px; min-width: 0; flex-shrink: 1; }
    .brand-logo { height: 36px; width: auto; flex-shrink: 0; }
    .brand-text { min-width: 0; overflow: hidden; }
    .brand-title { font-size: 0.95rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.15; }
    .brand-subtitle { font-size: 0.62rem; letter-spacing: 0.3px; }
    .nav-actions { gap: 6px; flex-shrink: 0; }
    .nav-desktop-only { display: none !important; }
    .nav-install-btn { padding: 4px 8px; font-size: 0.72rem; }
    .lang-switch { padding: 2px; }
    .lang-btn { padding: 3px 8px; font-size: 0.72rem; }
    .nav-cart-btn { padding: 7px 10px; border-radius: var(--radius-full); }
    .nav-cart-text { display: none !important; }

    /* Hero */
    .hero-banner { padding: 36px 14px; }
    .hero-title { font-size: 1.65rem; }
    .hero-subtitle { font-size: 0.95rem; margin-bottom: 20px; }
    .hero-badge { font-size: 0.7rem; padding: 5px 10px; text-align: center; }
    .hero-search-form { flex-direction: column; border-radius: var(--radius-lg); gap: 6px; padding: 6px; }
    .hero-search-input { border-radius: var(--radius-md); width: 100%; }
    .hero-search-btn { width: 100%; justify-content: center; }

    /* Feature strip: 2 columns */
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .feature-item { flex-direction: column; text-align: center; gap: 8px; }

    /* Product grid: two compact columns */
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 16px 0 32px; }
    .product-card-body { padding: 12px; }
    .product-card-title { font-size: 0.92rem; }
    .product-card-desc { display: none; }
    .product-card-footer { flex-direction: column; align-items: stretch; gap: 10px; }
    .product-card-footer .btn { width: 100%; }
    .product-price-amount { font-size: 1.05rem; }

    /* Touch-friendly controls; 16px inputs stop iOS zoom-on-focus */
    .btn { min-height: 44px; }
    .btn-sm { min-height: 38px; }
    .form-control, .form-input, .form-select, .form-textarea,
    .hero-search-input, .qty-input { font-size: 16px; }
    .form-control { min-height: 44px; }
    .qty-btn { width: 40px; height: 40px; }
    .qty-input { height: 40px; }

    /* Cards, tables, grids */
    .admin-card, .shop-card { padding: 16px; margin-bottom: 16px; }
    .admin-grid-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stat-number { font-size: 1.6rem; }
    table.data-table { min-width: 640px; }
    .table-responsive { -webkit-overflow-scrolling: touch; }
    .page-header { flex-direction: column; align-items: flex-start; }

    /* Horizontal scrolling pills with edge bleed */
    .category-scroll-container { margin: 0 -14px; padding: 8px 14px 14px; -webkit-overflow-scrolling: touch; }

    /* Footer clears the fixed bottom bar */
    .footer-main { margin-top: 40px; padding: 36px 14px 20px; }
    .footer-grid { gap: 24px; }

    /* Floating island bottom bar & page clearance */
    .mobile-bottom-nav {
        margin: 0 12px calc(8px + env(safe-area-inset-bottom));
        height: 60px;
        padding-bottom: 0;
    }
    body { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
    .mobile-nav-item { min-width: 56px; }

    /* Admin header wraps into a scrollable action strip */
    .navbar .nav-actions { overflow-x: auto; flex-wrap: nowrap !important; max-width: 100%; scrollbar-width: none; }
    .navbar .nav-actions::-webkit-scrollbar { display: none; }
    .navbar .nav-actions .btn { flex-shrink: 0; white-space: nowrap; }
}

/* =====================================================================
   RESPONSIVE LAYER — SMALL PHONES (<= 400px)
===================================================================== */
@media (max-width: 400px) {
    .navbar { padding: 6px 10px; }
    .brand-badge { gap: 6px; }
    .brand-logo { height: 32px; }
    .brand-title { font-size: 0.88rem; max-width: 120px; }
    .brand-subtitle { display: none; }
    .nav-actions { gap: 4px; }
    .nav-install-text { display: none !important; }
    .nav-install-btn { padding: 4px 6px; }
    .lang-btn { padding: 3px 6px; font-size: 0.68rem; }
    .hero-title { font-size: 1.4rem; }
    .features-grid { grid-template-columns: 1fr; }
    .admin-grid-stats { grid-template-columns: 1fr; }
    .product-card-cat { font-size: 0.65rem; }
}

/* =====================================================================
   UI COMPONENTS  (markup lives in resources/views/components/*.php)
===================================================================== */

/* ---- Page containers ---- */
.page-container    { margin-top: 32px; margin-bottom: 60px; }
.container--sm     { max-width: 760px; }
.container--md     { max-width: 860px; }
.container--lg     { max-width: 1000px; }
.container--xl     { max-width: 1140px; }
.page-narrow       { max-width: 920px; }

/* ---- Page header ---- */
.page-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    line-height: 1.2;
    margin: 0;
}
.page-title--brand { color: var(--brand-red); font-weight: 900; }
.page-subtitle { font-size: 0.9rem; color: var(--text-muted); margin-top: 4px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.back-link:hover { color: var(--brand-red); }

/* ---- Alerts ---- */
.alert-body { flex: 1; min-width: 0; }
.alert-body > p { margin: 0; }

/* ---- Icon box ---- */
.icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--brand-red-soft);
    color: var(--brand-red);
}
.icon-box--lg    { width: 56px; height: 56px; border-radius: var(--radius-full); margin-bottom: 14px; }
.icon-box--muted { background: var(--surface-subtle); color: var(--text-muted); }
.icon-box--info  { background: #BAE6FD; color: #0284C7; }
.icon-box--gold  { background: var(--brand-gold-soft); color: var(--brand-gold-hover); }
.icon-box--success { background: var(--success-soft); color: var(--success); }
.icon-box--brand { background: var(--brand-red-soft); color: var(--brand-red); }

/* ---- Card heading ---- */
.card-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 14px;
}
.card-heading--brand {
    color: var(--brand-red);
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 10px;
    margin-bottom: 16px;
}
.card-subtitle { font-size: 0.85rem; color: var(--text-muted); margin: -6px 0 16px; line-height: 1.5; }

/* ---- Empty state ---- */
.empty-state { text-align: center; padding: 48px 16px; }
.empty-state-title { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.empty-state-text  { font-size: 0.9rem; color: var(--text-muted); margin: 0 auto 20px; max-width: 440px; line-height: 1.6; }

/* ---- Pills row & search form ---- */
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.search-form { display: flex; gap: 6px; align-items: center; }
.search-field { position: relative; flex: 1; min-width: 200px; }
.search-field .form-control { padding-left: 34px; border-radius: var(--radius-full); font-size: 0.88rem; }
.search-field-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    display: inline-flex;
}
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ---- Stat card ---- */
.stat-box-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.stat-icon { color: var(--brand-red); opacity: 0.85; display: inline-flex; }
.stat-box.gold .stat-icon    { color: var(--brand-gold); }
.stat-box.green .stat-icon   { color: var(--success); }
.stat-box.warning .stat-icon { color: #D97706; }

/* ---- Section header ---- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.section-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}
.section-header-sub { font-size: 0.9rem; color: var(--text-muted); margin-top: 2px; }
.section-block { margin-top: 36px; }

/* ---- Breadcrumb ---- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brand-red); }
.breadcrumb-sep { color: var(--border-strong); }
.breadcrumb-current { color: var(--text-primary); font-weight: 600; }

/* ---- Callout ---- */
.callout {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 28px;
    border: 1px solid var(--border-subtle);
    background: var(--white);
}
.callout-body { flex: 1; min-width: 0; font-size: 0.95rem; line-height: 1.6; }
.callout-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 6px; }
.callout--info  { border: 2px solid var(--info); background: #F0F9FF; color: #0C4A6E; }
.callout--info .callout-title { color: #0369A1; }
.callout--gold  { border-color: var(--brand-gold); background: #FFFDF5; }
.callout--brand { border-left: 4px solid var(--brand-red); }
.callout--success { border-color: #BBF7D0; background: #F0FDF4; color: #166534; }
.callout-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

/* ---- Forms ---- */
.form-label { display: flex; align-items: center; gap: 6px; }
.form-help { display: block; margin-top: 4px; font-size: 0.78rem; color: var(--text-muted); }
.form-section-title { margin-top: 8px; }
.choice-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 14px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
    transition: border-color var(--transition-fast);
}
.choice-card:hover, .choice-card:has(input:checked) { border-color: var(--brand-red); }

/* ---- Status & misc badges ---- */
.badge-neutral { background: var(--surface-subtle); color: var(--text-secondary); border: 1px solid var(--border-subtle); }
.badge-outline {
    background: var(--surface-subtle);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    padding: 6px 12px;
    font-size: 0.78rem;
    text-transform: none;
}
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* ---- Money / price ---- */
.price-total    { font-size: 1.6rem; font-weight: 900; color: var(--brand-red); }
.price-strong   { font-weight: 800; color: var(--brand-red); }
.price-hero     { font-size: 2rem; font-weight: 900; color: var(--brand-red); letter-spacing: -0.5px; }
.price-currency { font-size: 1.1rem; font-weight: 700; color: var(--brand-red); }
.currency-unit  { font-size: 0.75rem; font-weight: 600; }
.text-danger    { color: var(--danger); }
.hidden         { display: none !important; }
.disabled-look  { opacity: 0.6; cursor: not-allowed; }

@media (max-width: 768px) {
    .page-container { margin-top: 20px; margin-bottom: 40px; }
    .page-title { font-size: 1.35rem; }
    .section-header-title { font-size: 1.25rem; }
    .callout { flex-direction: column; padding: 16px; }
    .search-form { width: 100%; }
    .search-field { min-width: 0; }
    .toolbar > * { width: 100%; }
}

/* ---- Buttons, links & text helpers used by components ---- */
.btn-success { background: var(--success); color: var(--white) !important; border-color: var(--success); }
.btn-success:hover { background: #166534; }
.btn-danger-outline { color: var(--danger); border-color: #FDA29B; }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; padding: 6px; }
.btn-ghost:hover { background: var(--danger-soft); }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.link-action { display: inline-flex; align-items: center; gap: 4px; font-size: 0.82rem; font-weight: 600; color: var(--brand-red); }
.link-muted { display: inline-flex; align-items: center; gap: 4px; font-size: 0.82rem; color: var(--text-muted); text-decoration: underline; }
.link-muted:hover { color: var(--brand-red); }
.link-inherit { color: inherit; }

.text-success { color: var(--success); }
.text-gold { color: var(--brand-gold); }
.u-fw-500 { font-weight: 500; }
.u-fw-700 { font-weight: 700; }
.u-fw-800 { font-weight: 800; }
.u-italic { font-style: italic; }
.u-mt-10 { margin-top: 10px; }
.u-mt-16 { margin-top: 16px; }
.u-mt-24 { margin-top: 24px; }
.u-mb-0  { margin-bottom: 0; }
.u-mb-12 { margin-bottom: 12px; }
.u-mb-16 { margin-bottom: 16px; }
.inline-icon { display: inline-flex; align-items: center; gap: 4px; font-size: 0.82rem; }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.pre-line { white-space: pre-line; }

/* ---- Layout helpers (App & Admin shells) ---- */
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand-logo { height: 38px; width: auto; }
.footer-brand-name { color: var(--white); font-size: 1.05rem; }
.footer-text { line-height: 1.6; margin-bottom: 12px; }
.footer-contact { line-height: 1.7; margin-bottom: 14px; }
.footer-hours { font-size: 0.8rem; color: #64748B; }
.footer-copy { margin-top: 6px; }
.admin-nav-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-left: 6px;
    padding: 4px 10px;
    background: var(--surface-subtle);
    border-radius: var(--radius-full);
}
.admin-main { margin-top: 24px; }
.admin-footer {
    text-align: center;
    padding: 24px 16px;
    font-size: 0.82rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
    margin-top: 48px;
}

/* ---- Cards, accents & tables ---- */
.card-flush { padding: 0; overflow: hidden; }
.card-accent-top   { border-top: 3px solid var(--brand-red); }
.card-accent-green { border-top: 3px solid #10B981; }
.card-accent-left  { border-left: 4px solid var(--brand-red); }
.card-accent-gold  { border-left: 4px solid var(--brand-gold); }
.sticky-card       { position: sticky; top: 90px; }
.table-flush { border: none; border-radius: 0; }
.card-footer-bar {
    background: var(--surface-subtle);
    padding: 20px 24px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.card-footer-bar .price-total { font-size: 1.7rem; margin-left: 8px; }
.card-heading--plain { font-size: 1.15rem; color: var(--brand-dark); margin: 0; font-weight: 700; }
.card-heading--green { color: #059669; border-bottom: 1px solid var(--border-subtle); padding-bottom: 10px; margin-bottom: 16px; }
.col-icon { width: 48px; }
.cart-item-name { font-weight: 700; color: var(--text-primary); font-size: 0.98rem; }
.cart-item-meta { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 0.82rem; color: var(--text-muted); }
.badge-gold { background: var(--brand-gold-soft); color: var(--brand-gold-hover); font-size: 0.68rem; padding: 1px 6px; }
.badge-wholesale { background: var(--brand-gold); color: var(--white); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---- Product card & detail ---- */
.product-card-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
    color: var(--brand-red);
}
.product-card-placeholder-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 6px;
    letter-spacing: 0.5px;
}
.product-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 36px;
    align-items: start;
}
.product-hero-card { padding: 0; overflow: hidden; background: var(--surface-subtle); }
.product-hero-img  { width: 100%; height: auto; max-height: 440px; object-fit: cover; display: block; }
.product-hero-placeholder {
    padding: 80px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
    color: var(--brand-red);
}
.product-hero-placeholder-title {
    margin-top: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.6px;
}
.product-meta-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.product-detail-title { font-size: 2rem; color: var(--text-primary); font-weight: 900; margin-bottom: 14px; line-height: 1.2; letter-spacing: -0.5px; }
.product-detail-desc  { font-size: 0.98rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px; }
.unit-price-row { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 14px; }
.subtotal-bar {
    background: var(--surface-subtle);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-subtle);
}
.guarantee-box {
    margin-top: 24px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 18px;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ---- Checkout & Order Tracking ---- */
.checkout-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 820px) {
    .checkout-grid { grid-template-columns: 1.3fr 1fr; }
}
.choice-stack { display: flex; flex-direction: column; gap: 12px; }
.choice-radio { margin-top: 4px; }
.choice-title { color: var(--text-primary); font-size: 0.95rem; font-weight: 700; }
.choice-desc  { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; line-height: 1.4; }
.summary-items-scroll { max-height: 280px; overflow-y: auto; margin-bottom: 16px; padding-right: 4px; }
.summary-item-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.9rem;
    border-bottom: 1px dashed var(--border-subtle);
    padding-bottom: 10px;
    gap: 12px;
}
.summary-totals { border-top: 2px solid var(--border-subtle); padding-top: 14px; font-size: 0.95rem; }
.summary-grand-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}
.hero-confirm-banner {
    padding: 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
    text-align: center;
    flex-direction: column;
    align-items: center;
}
.hero-confirm-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    background: var(--white);
    color: var(--success);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}
.hero-confirm-title { font-size: 1.4rem; font-weight: 800; color: #166534; margin-bottom: 6px; }
.hero-confirm-text  { font-size: 0.95rem; color: #14532D; max-width: 600px; margin: 0 auto; line-height: 1.6; }
.momo-box {
    background: #FFFDF5;
    border: 1px solid var(--brand-gold);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 22px;
    font-size: 0.9rem;
}
.momo-ref-pill {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 800;
    color: var(--brand-red);
    background: var(--brand-red-soft);
    padding: 2px 8px;
    border-radius: var(--radius-xs);
}
.tracking-url-bar {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: var(--shadow-xs);
}
.order-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 20px;
    margin-bottom: 22px;
}
.snapshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    background: var(--surface-subtle);
    padding: 18px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 0.9rem;
    border: 1px solid var(--border-subtle);
}
.snapshot-heading {
    color: var(--text-primary);
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}
.totals-card {
    background: var(--surface-subtle);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    max-width: 400px;
    margin-left: auto;
    border: 1px solid var(--border-subtle);
}
.cod-divider { text-align: center; border-top: 1px solid var(--border-subtle); padding-top: 18px; }

/* ---- Admin views (Login, Settings, Order Detail) ---- */
.login-wrapper { max-width: 440px; margin: 60px auto 40px; padding: 0 16px; }
.login-card    { padding: 32px 28px; box-shadow: var(--shadow-lg); border-radius: var(--radius-lg); }
.login-brand   { text-align: center; margin-bottom: 28px; }
.login-logo    { height: 76px; width: auto; margin: 0 auto 14px; object-fit: contain; }
.login-title   { font-size: 1.4rem; font-weight: 800; color: var(--brand-dark); margin: 0 0 6px; }
.login-footer  { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border-subtle); text-align: center; }
.checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; color: var(--text-primary); }
.inline-test-form { display: flex; gap: 10px; max-width: 500px; flex-wrap: wrap; }
.inline-test-form .form-control { flex: 1; min-width: 200px; }
.admin-order-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 860px) {
    .admin-order-grid { grid-template-columns: 1.2fr 1fr; }
}
.detail-list { font-size: 0.9rem; line-height: 1.9; }
.sub-card {
    background: var(--surface-subtle);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    font-size: 0.88rem;
    border: 1px solid var(--border-subtle);
}
.timeline-list { display: flex; flex-direction: column; gap: 12px; font-size: 0.85rem; }
.timeline-item { border-left: 3px solid var(--brand-red); padding-left: 12px; }

/* ---- Catalog toolbar ---- */
.toolbar-grow { flex: 1; min-width: 0; padding: 4px 0; margin: 0; }
.results-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 20px;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.empty-state--page { padding: 72px 16px; }

@media (max-width: 768px) {
    .card-footer-bar { padding: 16px; }
    .card-footer-bar .btn-group, .card-footer-bar .btn-group .btn { width: 100%; }
    .toolbar-grow { margin: 0 -14px; padding: 4px 14px; }
    .product-detail-title { font-size: 1.5rem; }
    .totals-card { max-width: 100%; }
}

/* ---- Real-Time Web App Notification Bell, Floating Drawer & Floating Cards ---- */
.notif-bell-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.notif-bell-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    transition: transform 0.2s ease, background 0.2s ease;
}
.notif-bell-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}
.notif-bell-btn.has-unread svg {
    animation: bellRing 2.4s ease-in-out infinite;
}
@keyframes bellRing {
    0%, 100% { transform: rotate(0); }
    10%, 30% { transform: rotate(12deg); }
    20%, 40% { transform: rotate(-12deg); }
    50% { transform: rotate(0); }
}
.notif-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
    display: inline-block;
}
.notif-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 390px;
    max-width: calc(100vw - 24px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 45px rgba(17, 17, 17, 0.18), 0 4px 12px rgba(17, 17, 17, 0.08);
    z-index: 1250;
    overflow: hidden;
    animation: notifDropdownIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes notifDropdownIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.notif-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--surface-subtle);
    border-bottom: 1px solid var(--border-subtle);
}
.notif-dropdown-title {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.92rem;
    color: var(--brand-dark);
}
.notif-filter-tabs {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    background: #FAFAFA;
    border-bottom: 1px solid var(--border-subtle);
}
.notif-tab {
    flex: 1;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}
.notif-tab:hover {
    color: var(--brand-dark);
    background: rgba(0, 0, 0, 0.04);
}
.notif-tab.active {
    background: var(--brand-dark);
    color: #FFFFFF;
}
.notif-dropdown-list {
    max-height: 390px;
    overflow-y: auto;
}
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border-subtle);
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.15s ease;
    position: relative;
}
.notif-item:hover {
    background: var(--surface-subtle);
}
.notif-item.unread {
    background: #FFFDF8;
    border-left: 3px solid var(--brand-red);
}
.notif-item-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    background: #F4F1EA;
}
.notif-item-icon.type-delivery_quote { background: #FEF3C7; color: #B45309; }
.notif-item-icon.type-order_update   { background: #DBEAFE; color: #1D4ED8; }
.notif-item-icon.type-payment_update { background: #D1FAE5; color: #047857; }
.notif-item-icon.type-offer,
.notif-item-icon.type-discount       { background: #FEE2E2; color: #B91C1C; }
.notif-item-icon.type-price_drop,
.notif-item-icon.type-price_change   { background: #FCE7F3; color: #BE185D; }
.notif-item-icon.type-restock,
.notif-item-icon.type-restocked      { background: #DCFCE7; color: #15803D; }

.notif-item-body {
    flex: 1;
    min-width: 0;
}
.notif-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 3px;
}
.notif-item-title {
    font-weight: 700;
    font-size: 0.86rem;
    color: var(--brand-dark);
}
.notif-item-time {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
}
.notif-item-msg {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.42;
}
.notif-empty {
    padding: 32px 16px;
    text-align: center;
    font-size: 0.86rem;
    color: var(--text-muted);
}

/* ---- Floating Notification Stack (Fixed Floating Cards) ---- */
.floating-notif-stack {
    position: fixed;
    top: 82px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 370px;
    max-width: calc(100vw - 24px);
    pointer-events: none;
}
.floating-notif-card {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 16px 18px;
    background: rgba(25, 25, 28, 0.96);
    color: #FFFFFF;
    backdrop-filter: blur(14px);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32), 0 4px 12px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    animation: floatingCardIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: transform 0.22s ease, opacity 0.22s ease;
}
.floating-notif-card:hover {
    transform: translateY(-2px);
}
.floating-notif-card.is-closing {
    opacity: 0;
    transform: translateX(40px) scale(0.95);
}
@keyframes floatingCardIn {
    from {
        opacity: 0;
        transform: translateX(48px) scale(0.94);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}
.floating-notif-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--brand-gold);
}
.floating-notif-card.type-delivery_quote::before { background: #F59E0B; }
.floating-notif-card.type-payment_update::before { background: #10B981; }
.floating-notif-card.type-order_update::before   { background: #3B82F6; }
.floating-notif-card.type-offer::before,
.floating-notif-card.type-discount::before,
.floating-notif-card.type-price_drop::before     { background: var(--brand-red); }
.floating-notif-card.type-restock::before,
.floating-notif-card.type-restocked::before      { background: #22C55E; }

.floating-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.floating-card-content {
    flex: 1;
    min-width: 0;
}
.floating-card-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-gold);
    margin-bottom: 2px;
}
.floating-card-title {
    font-weight: 800;
    font-size: 0.92rem;
    color: #FFFFFF;
    margin: 0 0 4px;
    line-height: 1.25;
}
.floating-card-msg {
    font-size: 0.81rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.4;
    margin: 0 0 10px;
}
.floating-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.floating-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--brand-gold);
    color: #111111;
    font-weight: 700;
    font-size: 0.76rem;
    padding: 5px 12px;
    border-radius: 999px;
    text-decoration: none;
    transition: filter 0.15s ease;
}
.floating-card-btn:hover {
    filter: brightness(1.08);
}
.floating-card-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.15rem;
    line-height: 1;
    padding: 2px 6px;
    cursor: pointer;
    border-radius: 6px;
    flex-shrink: 0;
}
.floating-card-close:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
}
.floating-card-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: rgba(255, 255, 255, 0.25);
    transform-origin: left center;
    animation: floatingProgress 8s linear forwards;
}
.floating-notif-card:hover .floating-card-progress {
    animation-play-state: paused;
}
@keyframes floatingProgress {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

/* ---- Floating Quick-Access Launcher Pill (Bottom Right) ---- */
.floating-notif-fab {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 9990;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-dark);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 10px 16px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.84rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.floating-notif-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}
.floating-fab-icon {
    display: inline-flex;
    align-items: center;
    color: var(--brand-gold);
}
.floating-fab-badge {
    background: var(--brand-red);
    color: #FFFFFF;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
}

@media (max-width: 640px) {
    .floating-notif-stack {
        top: 68px;
        right: 12px;
        left: 12px;
        width: auto;
    }
    .notif-dropdown {
        position: fixed;
        top: 64px;
        right: 12px;
        left: 12px;
        width: auto;
    }
    .floating-notif-fab {
        bottom: 16px;
        right: 16px;
        padding: 9px 14px;
    }
}

/* ---- Admin Catalog & Products Management ---- */
.admin-products-table {
    width: 100%;
}
.admin-prod-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}
.admin-prod-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--surface-subtle);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.admin-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.admin-thumb-placeholder {
    color: var(--text-muted);
}
.admin-prod-info {
    min-width: 0;
}
.admin-prod-name {
    display: block;
    font-size: 0.92rem;
    color: var(--brand-dark);
    font-weight: 700;
}
.admin-prod-subname {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
}
.sku-pill {
    background: #F3F4F6;
    color: #374151;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.76rem;
    font-family: monospace;
}
.badge-btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.15s ease, filter 0.15s ease;
}
.badge-btn:hover {
    transform: translateY(-1px);
    filter: brightness(0.96);
}
.status-dot-off {
    background: #EF4444;
}
.btn-danger-ghost {
    color: #DC2626;
}
.btn-danger-ghost:hover {
    background: #FEE2E2;
    color: #B91C1C;
}
.filter-bar-form {
    margin: 0;
}
.filter-grid {
    align-items: flex-end;
}
.filter-actions-group {
    display: flex;
    gap: 8px;
    align-items: center;
}
.admin-media-grid {
    grid-template-columns: 1fr 280px;
    align-items: start;
}
@media (max-width: 768px) {
    .admin-media-grid {
        grid-template-columns: 1fr;
    }
}
.admin-preview-frame {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-md);
    background: var(--surface-subtle);
    border: 2px dashed var(--border-subtle);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.admin-preview-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.admin-preview-none {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.82rem;
}
.presentation-row .form-control {
    font-size: 0.85rem;
}
.block-caption {
    display: block;
}

/* ---- Butcher Preparation Sede Styles ---- */
.prep-queue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}
@media (max-width: 640px) {
    .prep-queue-grid {
        grid-template-columns: 1fr;
    }
}
.prep-card {
    border-top: 4px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.status-card-confirmed {
    border-top-color: #EF4444;
}
.status-card-preparing {
    border-top-color: #F59E0B;
}
.status-card-ready_for_delivery {
    border-top-color: #3B82F6;
}
.status-card-ready_for_pickup {
    border-top-color: #10B981;
}
.prep-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}
.prep-card-order-num {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.prep-tag {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    background: #F3F4F6;
    color: #374151;
}
.status-card-confirmed .prep-tag {
    background: #FEE2E2;
    color: #B91C1C;
}
.status-card-preparing .prep-tag {
    background: #FEF3C7;
    color: #B45309;
}
.status-card-ready_for_delivery .prep-tag {
    background: #DBEAFE;
    color: #1D4ED8;
}
.status-card-ready_for_pickup .prep-tag {
    background: #D1FAE5;
    color: #047857;
}
.prep-num {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand-dark);
}
.prep-card-customer {
    font-size: 0.88rem;
}
.prep-card-type {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.prep-address-box {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
    background: var(--surface-subtle);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}
.prep-notes-box {
    font-size: 0.82rem;
    background: #FFFBEB;
    border-left: 3px solid #F59E0B;
    padding: 8px 10px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 12px;
}
.prep-items-list {
    margin-bottom: 16px;
}
.prep-section-heading {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin: 0 0 8px;
}
.prep-items-ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.prep-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FAFAFA;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}
.prep-item-qty {
    font-weight: 800;
    font-size: 1rem;
    color: var(--brand-red);
    min-width: 38px;
}
.prep-item-details {
    flex: 1;
    min-width: 0;
}
.prep-item-name {
    display: block;
    font-size: 0.88rem;
    color: var(--brand-dark);
}
.prep-item-variant {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.prep-item-check input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.prep-actions-footer {
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
}
.prep-status-done {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}
.inline-flex-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* ---- Delivery Fleet Portal Styles ---- */
.delivery-body {
    background: #F3F4F6;
    color: #111827;
}
.delivery-navbar {
    background: #1E3A8A;
    color: #FFFFFF;
}
.delivery-navbar .brand-title {
    color: #FFFFFF;
}
.delivery-navbar .brand-subtitle {
    color: #93C5FD;
}
.delivery-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #FFFFFF;
}
.delivery-main {
    max-width: 680px;
    margin: 20px auto 40px;
    padding: 0 16px;
}
.delivery-hero-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-subtle);
}
.delivery-welcome-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 4px;
    color: var(--brand-dark);
}
.delivery-stats-row {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
@media (max-width: 520px) {
    .delivery-stats-row {
        flex-direction: column;
    }
}
.delivery-stat-pill {
    flex: 1;
    background: #F9FAFB;
    border: 1px solid var(--border-subtle);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
}
.delivery-stat-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand-dark);
}
.delivery-stat-lbl {
    font-size: 0.74rem;
    color: var(--text-muted);
}
.delivery-stat-cod {
    background: #FEF3C7;
    border-color: #FCD34D;
}
.delivery-stat-cod .delivery-stat-val {
    color: #B45309;
}
.delivery-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.delivery-card {
    border-left: 5px solid #9CA3AF;
    background: #FFFFFF;
    box-shadow: var(--shadow-sm);
}
.status-border-ready_for_delivery {
    border-left-color: #F59E0B;
}
.status-border-out_for_delivery {
    border-left-color: #3B82F6;
}
.status-border-completed {
    border-left-color: #10B981;
}
.delivery-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.delivery-status-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.tag-ready_for_delivery {
    background: #FEF3C7;
    color: #B45309;
}
.tag-out_for_delivery {
    background: #DBEAFE;
    color: #1D4ED8;
}
.tag-completed {
    background: #D1FAE5;
    color: #047857;
}
.delivery-order-id {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0;
    color: var(--brand-dark);
}
.delivery-price-block {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.delivery-total-amount {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--brand-dark);
}
.delivery-customer-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F9FAFB;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}
.delivery-cust-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
}
.delivery-contact-actions {
    display: flex;
    gap: 6px;
}
.btn-whatsapp {
    background: #25D366;
    color: #FFFFFF;
    border: none;
}
.btn-whatsapp:hover {
    background: #1EBE5D;
    color: #FFFFFF;
}
.delivery-address-box {
    background: #EEF2F6;
    padding: 12px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}
.delivery-address-text {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    color: #1E293B;
}
.delivery-address-val {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 2px 0 0;
    color: #0F172A;
}
.btn-nav-gps {
    width: 100%;
    justify-content: center;
}
.delivery-notes-box {
    font-size: 0.82rem;
    background: #FFFBEB;
    border-left: 3px solid #F59E0B;
    padding: 8px 10px;
    margin-bottom: 12px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.delivery-items-toggle {
    margin-bottom: 12px;
    font-size: 0.85rem;
}
.delivery-items-toggle summary {
    cursor: pointer;
    color: var(--text-muted);
}
.delivery-items-ul {
    list-style: none;
    padding: 8px 0 0 14px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.delivery-cod-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FEE2E2;
    border: 1px solid #FCA5A5;
    color: #991B1B;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}
.delivery-footer-actions {
    padding-top: 10px;
}
.delivery-done-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: #D1FAE5;
    color: #065F46;
    font-weight: 700;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}
.w-100 {
    width: 100%;
}
.delivery-footer {
    text-align: center;
    font-size: 0.8rem;
    color: #64748B;
    margin-top: 40px;
}




/* =====================================================================
   COLLAPSIBLE MOBILE NAVIGATION DRAWER & IOS PWA MODAL
===================================================================== */

/* Hamburger Button in Header */
.nav-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: var(--surface-subtle);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.nav-menu-btn:hover {
    background: var(--brand-red-soft);
    color: var(--brand-red);
    border-color: rgba(139, 30, 30, 0.2);
}

@media (max-width: 768px) {
    .nav-menu-btn {
        display: inline-flex;
    }
}

/* Mobile Drawer Backdrop */
.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

/* Slide-out Mobile Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 330px;
    max-width: 86vw;
    background: #ffffff;
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mobile-nav-drawer.open {
    transform: translateX(0);
}

body.drawer-open {
    overflow: hidden;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--surface-subtle);
}

.drawer-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.drawer-close-btn:hover {
    color: var(--brand-red);
    background: var(--brand-red-soft);
    border-color: rgba(139, 30, 30, 0.2);
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* User / Login Hero Card in Drawer */
.drawer-user-card {
    background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 16px;
}

.drawer-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.drawer-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand-red);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

.drawer-user-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.drawer-user-name {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drawer-user-role {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

.drawer-user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.drawer-guest-box {
    text-align: center;
    padding: 4px;
}

.drawer-guest-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(139, 30, 30, 0.08);
    color: var(--brand-red);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.drawer-guest-title {
    display: block;
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 800;
    margin-bottom: 4px;
}

.drawer-guest-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.4;
}

.drawer-guest-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer-section-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
}

.drawer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drawer-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-primary);
    text-decoration: none !important;
    transition: all var(--transition-fast);
}

.drawer-nav-link:hover,
.drawer-nav-link.active {
    background: var(--brand-red-soft);
    color: var(--brand-red);
}

.drawer-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
}

.drawer-category-list a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none !important;
    background: #F8FAFC;
    border: 1px solid #F1F5F9;
    transition: all var(--transition-fast);
}

.drawer-category-list a:hover {
    background: var(--brand-red-soft);
    color: var(--brand-red);
    border-color: rgba(139, 30, 30, 0.2);
}

.drawer-pref-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
}

.drawer-pref-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.drawer-contact-box {
    padding: 12px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
}

.drawer-contact-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

/* =====================================================================
   IOS / PWA INSTALLATION MODAL
===================================================================== */
.ios-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    transition: opacity 0.25s ease;
}

.ios-modal-backdrop.active,
.ios-modal-backdrop:not(.hidden) {
    display: flex !important;
}

.ios-modal-backdrop.hidden {
    display: none !important;
}

.ios-modal-card {
    background: #ffffff;
    border-radius: 24px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: popUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ios-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--surface-subtle);
}

.ios-modal-title-wrap {
    flex: 1;
    min-width: 0;
}

.ios-modal-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--brand-red);
    margin: 0;
}

.ios-modal-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: block;
}

.ios-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.ios-modal-close:hover {
    color: var(--brand-red);
    background: var(--brand-red-soft);
}

.ios-modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ios-modal-intro {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.ios-step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ios-step-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--brand-red);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.ios-step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ios-step-text {
    font-size: 0.86rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.ios-icon-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #1E293B;
    width: fit-content;
}

.ios-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-subtle);
    background: var(--surface-subtle);
}
