@font-face {
    font-family: 'Cairo';
    src: url('/fonts/Cairo-Regular.ttf') format('truetype');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    --primary-color: #146B49;
    --secondary-color: #6c757d;
    --font-heading: 'Cairo', sans-serif;
    --font-body: 'Cairo', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: #f8f9fa;
    color: #333;
    direction: rtl;
    text-align: right;
}

img {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
}

.top-bar {
    background-color: #212529;
}

.font-sm {
    font-size: 0.85rem;
}

/* Nav */
.navbar-brand {
    letter-spacing: -0.5px;
}

.navbar .form-control:focus {
    box-shadow: none;
    background-color: #fff !important;
}

/* Hero */
.hero-section {
    background:
        linear-gradient(90deg, rgba(9, 49, 34, 0.16) 0%, rgba(9, 49, 34, 0.62) 48%, rgba(9, 49, 34, 0.96) 100%),
        url("../img/hero-produce.webp");
    min-height: clamp(360px, 31vw, 430px);
    background-size: cover;
    background-position: center;
    position: relative;
    isolation: isolate;
    box-shadow: 0 20px 48px rgba(9, 49, 34, 0.12);
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.20), transparent 24%),
        radial-gradient(circle at 76% 86%, rgba(255, 193, 7, 0.18), transparent 25%);
    pointer-events: none;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 12px;
    z-index: 4;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: calc(var(--bs-border-radius-lg) - 2px);
    pointer-events: none;
}

.hero-inner {
    display: flex;
    align-items: center;
    min-height: inherit;
    padding: clamp(2rem, 5vw, 4.75rem);
}

.hero-content {
    position: relative;
    z-index: 3;
    width: min(100%, 590px);
    margin-inline-end: auto;
    color: #fff;
    text-align: right;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    margin-bottom: 1rem;
    padding: 0.45rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: #ffc107;
    color: #18233b;
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(255, 193, 7, 0.22);
}

.hero-content h1 {
    max-width: 580px;
    margin: 0 0 1rem;
    color: #fff;
    font-size: clamp(2.3rem, 4.1vw, 4rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
    text-wrap: balance;
    text-shadow: 0 4px 24px rgba(0, 22, 67, 0.3);
}

.hero-content p {
    margin: 0 0 1.75rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.8;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    min-height: 58px;
    padding: 0.45rem 0.55rem 0.45rem 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 999px;
    background: #fff;
    color: var(--primary-color);
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(0, 24, 73, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.hero-cta:hover,
.hero-cta:focus-visible {
    color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(0, 24, 73, 0.3);
}

.hero-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    transition: transform 0.2s ease;
}

.hero-cta:hover .hero-cta-icon {
    transform: translateX(-3px);
}

.hero-decoration,
.hero-floating-shape {
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

.hero-decoration-dots {
    bottom: 24px;
    left: 32px;
    width: 150px;
    height: 88px;
    opacity: 0.44;
    background-image: radial-gradient(rgba(255, 255, 255, 0.8) 1.4px, transparent 1.4px);
    background-size: 16px 16px;
    mask-image: linear-gradient(90deg, #000, transparent);
}

.hero-decoration-ring {
    top: -72px;
    left: 20%;
    width: 190px;
    height: 190px;
    border: 34px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
    filter: blur(1px);
}

.hero-floating-shape {
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    box-shadow: 0 14px 35px rgba(0, 31, 86, 0.22);
    backdrop-filter: blur(8px);
}

.hero-floating-basket {
    bottom: 46px;
    left: 23%;
    width: 70px;
    height: 70px;
    font-size: 1.7rem;
    transform: rotate(-8deg);
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 390px;
        background-position: 48% center;
        background-image:
            linear-gradient(90deg, rgba(9, 49, 34, 0.76) 0%, rgba(9, 49, 34, 0.86) 55%, rgba(9, 49, 34, 0.96) 100%),
            url("../img/hero-produce.webp");
    }

    .hero-section::after {
        inset: 8px;
    }

    .hero-inner {
        padding: 2.25rem 1.5rem;
    }

    .hero-content {
        width: 100%;
    }

    .hero-content h1 {
        font-size: clamp(2.1rem, 10vw, 2.9rem);
        letter-spacing: -0.025em;
    }

    .hero-content p {
        max-width: 30rem;
        margin-bottom: 1.4rem;
        line-height: 1.65;
    }

    .hero-cta {
        min-height: 54px;
        gap: 0.8rem;
        padding-inline-end: 1.35rem;
    }

    .hero-cta-icon {
        width: 38px;
        height: 38px;
    }

    .hero-floating-basket {
        bottom: 30px;
        left: 22px;
        width: 56px;
        height: 56px;
        border-radius: 18px;
        font-size: 1.35rem;
        opacity: 0.82;
    }

    .hero-decoration-ring {
        display: none;
    }

    .hero-decoration-dots {
        bottom: 18px;
        left: 14px;
        width: 110px;
        height: 70px;
        opacity: 0.32;
    }
}

.hover-scale {
    transition: transform 0.2s;
}

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

.hover-lift {
    transition: transform 0.2s, box-shadow 0.2s;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
}

/* Product Cards */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
}

.favorite-btn {
    transition: all 0.2s;
}

.favorite-btn:hover {
    background-color: #fae1e1;
    color: #dc3545 !important;
}

.category-card-simple {
    border: 1px solid #eee;
    transition: all 0.25s ease;
    cursor: pointer;
    background: #fff;
}

.category-card-simple:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.category-icon-bg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    transition: all 0.25s ease;
}

.category-card-simple:hover .category-icon-bg {
    transform: scale(1.05);
}

.category-icon-bg i {
    transition: transform 0.25s ease;
}

.category-card-simple:hover .category-icon-bg i {
    transform: scale(1.1);
}

.category-produce {
    background-color: rgba(25, 135, 84, 0.12) !important;
}

.category-produce i {
    color: #198754 !important;
}

.category-supermarket {
    background-color: var(--primary-light) !important;
}

.category-supermarket i {
    color: var(--primary-color) !important;
}

.category-pharmacy {
    background-color: rgba(220, 53, 69, 0.12) !important;
}

.category-pharmacy i {
    color: #dc3545 !important;
}

.category-restaurants {
    background-color: rgba(255, 193, 7, 0.15) !important;
}

.category-restaurants i {
    color: #ffc107 !important;
}

.category-poultry {
    background-color: rgba(253, 126, 20, 0.15) !important;
}

.category-poultry i {
    color: #fd7e14 !important;
}

.category-default {
    background-color: rgba(108, 117, 125, 0.12) !important;
}

.category-default i {
    color: #6c757d !important;
}

.category-arrow {
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform: translateX(5px);
}

.category-card-simple:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
}

.add-to-cart-btn {
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.add-to-cart-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.2);
}

.add-to-cart-btn:active {
    transform: scale(0.98);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}

.footer {
    background-color: #f8f9fa !important;
}

.footer-link-item {
    margin-bottom: 0.75rem;
}

.footer-whatsapp-cta {
    max-width: 400px;
}

.footer-bottom {
    background-color: #e9ecef !important;
    font-size: 0.8rem;
}

.footer-margin {
    margin-bottom: 5rem;
}


/* Al Baraka design system. Semantic colors stay distinct from the brand. */
:root {
    --primary-hover: #10583c;
    --primary-active: #0c442e;
    --primary-dark: #093122;
    --primary-light: #eaf4ef;
    --surface: #fff;
    --canvas: #f5f7f6;
    --text: #202e28;
    --muted: #5b6961;
    --border: #dce5df;
    --success: #267044;
    --warning: #865b06;
    --danger: #b12d40;
    --info: #226486;
    --motion-fast: 180ms;
    --bs-primary: var(--primary-color);
    --bs-primary-rgb: 20, 107, 73;
    --bs-link-color: var(--primary-color);
    --bs-link-color-rgb: var(--bs-primary-rgb);
    --bs-link-hover-color: var(--primary-hover);
    --bs-link-hover-color-rgb: 16, 88, 60;
    --bs-primary-bg-subtle: var(--primary-light);
    --bs-primary-text-emphasis: var(--primary-dark);
    --bs-primary-border-subtle: var(--border);
    --bs-body-color: var(--text);
    --bs-body-bg: var(--canvas);
    --bs-secondary-color: var(--muted);
    --bs-border-color: var(--border);
    --bs-success-rgb: 38, 112, 68;
    --bs-danger-rgb: 177, 45, 64;
    --bs-info-rgb: 34, 100, 134;
}
body { color: var(--text); background: var(--canvas); line-height: 1.7; }
h1, h2, h3, h4, h5, h6 { line-height: 1.5; }
a { text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--primary-color); outline-offset: 3px; }
.form-control:focus, .form-select:focus { border-color: var(--primary-color); box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .15); }
.btn { border-radius: .65rem; transition: background-color var(--motion-fast), color var(--motion-fast), border-color var(--motion-fast), box-shadow var(--motion-fast); }
.btn-primary {
    --bs-btn-bg: var(--primary-color); --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-bg: var(--primary-hover); --bs-btn-hover-border-color: var(--primary-hover);
    --bs-btn-active-bg: var(--primary-active); --bs-btn-active-border-color: var(--primary-active);
    --bs-btn-disabled-bg: var(--primary-color); --bs-btn-disabled-border-color: var(--primary-color);
    --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
}
.btn-outline-primary {
    --bs-btn-color: var(--primary-color); --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-bg: var(--primary-color); --bs-btn-hover-border-color: var(--primary-color);
    --bs-btn-active-bg: var(--primary-active); --bs-btn-active-border-color: var(--primary-active);
    --bs-btn-disabled-color: var(--primary-color); --bs-btn-disabled-border-color: var(--primary-color);
    --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
}
.page-link { color: var(--primary-color); }
.pagination { --bs-pagination-active-bg: var(--primary-color); --bs-pagination-active-border-color: var(--primary-color); flex-wrap: wrap; gap: .2rem; }
.form-check-input:checked { background-color: var(--primary-color); border-color: var(--primary-color); }
.dropdown-item.active, .dropdown-item:active { background-color: var(--primary-color); }
.nav-pills { --bs-nav-pills-link-active-bg: var(--primary-color); }
.top-bar { background: var(--primary-dark); }
.storefront-search { width: 38%; }
.navbar-brand { white-space: nowrap; }
.navbar-brand img { width: 110px; }
.navbar .nav-link { min-height: 44px; }
.skip-link { position: fixed; top: -100px; inset-inline-start: 1rem; padding: .7rem 1rem; background: var(--surface); color: var(--primary-dark); z-index: 1100; }
.skip-link:focus { top: 1rem; }
.hero-content h1 { line-height: 1.3; }
.hero-content p { color: #fff; }
.hero-kicker { background: var(--primary-light); color: var(--primary-dark); box-shadow: none; }
.hero-floating-shape { box-shadow: 0 12px 25px rgba(9,49,34,.15); }
.hero-cta, .hero-cta-icon { transition-duration: var(--motion-fast); }
.btn-whatsapp { background: var(--primary-color); }
.btn-whatsapp:hover { background: var(--primary-hover); }
.footer { background: var(--surface) !important; }
.footer-bottom { background: var(--canvas) !important; }
.card { --bs-card-bg: var(--surface); border-color: var(--border); border-radius: 1rem; }
.card-header:first-child { border-radius: 1rem 1rem 0 0; }
.product-card { transition: transform var(--motion-fast), box-shadow var(--motion-fast); }
.product-card:hover { transform: none; }
.product-image-wrap { overflow: hidden; border-radius: 1rem 1rem 0 0; }
.product-card .card-img-top { object-fit: cover; height: 200px; transition: transform 220ms ease; }
.product-card .card-body > .d-flex { flex-wrap: wrap; gap: .75rem; }
.favorite-btn { min-width: 44px; min-height: 44px; transition: background-color var(--motion-fast), color var(--motion-fast); }
.add-to-cart-btn:hover { transform: none; box-shadow: 0 3px 10px rgba(var(--bs-primary-rgb), .16); }
.product-card:focus-within { box-shadow: 0 0 0 2px var(--primary-color) !important; }
.category-card-simple { transition: border-color var(--motion-fast), box-shadow var(--motion-fast), transform var(--motion-fast); }
a:focus-visible .category-arrow { opacity: 1; transform: none; }
.category-restaurants i { color: var(--warning) !important; }
[data-reveal].is-revealed { animation: section-reveal 280ms ease-out both; }
@keyframes section-reveal { from { opacity: .75; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (hover: hover) and (pointer: fine) {
    .product-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(9,49,34,.1) !important; }
    .product-card:hover .card-img-top { transform: scale(1.025); }
}

/* Administration: a quiet workspace with a persistent task-oriented navigation. */
.admin-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 2rem; max-width: 1600px; margin: auto; padding: 1.75rem 2rem 3rem; }
.admin-content { min-width: 0; }
.admin-sidebar { align-self: start; padding: 1.25rem 0; }
.admin-nav-title { display: flex; align-items: center; gap: .7rem; padding: 0 .7rem 1rem; }
.admin-nav-title strong { display: block; }
.admin-nav-title small { color: var(--muted); font-size: .75rem; }
.brand-mark { display: grid; place-items: center; background: var(--primary-color); color: white; border-radius: .8rem; width: 40px; height: 40px; }
.admin-nav-group { margin: .8rem 0 1rem; }
.admin-nav-group p { color: var(--muted); font-size: .72rem; margin: 0 .8rem .3rem; }
.admin-nav a { display: flex; gap: .65rem; padding: .55rem .8rem; margin: .2rem 0; border-radius: .7rem; color: var(--text); text-decoration: none; font-size: .85rem; }
.admin-nav a:hover { background: var(--surface); }
.admin-nav a.is-active { color: var(--primary-color); background: var(--primary-light); font-weight: bold; box-shadow: inset -3px 0 var(--primary-color); }
.admin-nav .store-return { border-top: 1px solid var(--border); border-radius: 0; margin-top: 1rem; padding-top: 1rem; }
.admin-nav-toggle { display: none; }
.page-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.page-heading h1 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: bold; margin: .15rem 0 .25rem; }
.page-heading p { color: var(--muted); margin: 0; font-size: .9rem; }
.eyebrow { display: block; font-size: .72rem; font-weight: bold; color: var(--primary-color); margin-bottom: .3rem; }
.surface { background: var(--surface); border: 1px solid var(--border); border-radius: 1rem; min-width: 0; }
.section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: 1.25rem 1.5rem; }
.section-heading h2 { font-size: 1.05rem; font-weight: bold; margin: 0; }
.section-heading > a { font-size: .8rem; }
.kpi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.kpi-card { background: var(--surface); border: 1px solid var(--border); border-radius: 1rem; padding: 1.2rem 1.4rem; display: flex; flex-direction: column; gap: .4rem; }
.kpi-card > span { font-size: .85rem; color: var(--muted); }
.kpi-card > strong { font-size: clamp(1.3rem, 2.2vw, 1.9rem); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; line-height: 1.6; }
.kpi-card small { color: var(--muted); font-size: .7rem; font-weight: normal; }
.kpi-highlight { background: var(--primary-light); border-color: #b7d7c6; }
.kpi-highlight > strong { color: var(--primary-dark); }
.period-presets, .report-sections { display: flex; flex-wrap: wrap; gap: .5rem; }
.period-presets { padding: 0 1.5rem 1rem; }
.period-link, .report-sections a { padding: .4rem 1rem; border-radius: .55rem; color: var(--muted); text-decoration: none; font-size: .85rem; }
.period-link:hover, .report-sections a:hover { background: var(--canvas); color: var(--primary-color); }
.period-link.is-active { color: var(--surface); background: var(--primary-color); }
.custom-period { padding: .8rem 1.5rem 1.1rem; border-top: 1px solid var(--border); }
summary { cursor: pointer; font-weight: bold; }
summary::marker { color: var(--primary-color); }
.form-label { font-size: .85rem; }
.form-control, .form-select { min-height: 43px; border-radius: .55rem; background-color: var(--surface); }
.status-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.status-tab { display: inline-flex; gap: .65rem; align-items: center; text-decoration: none; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: .65rem; padding: .55rem .8rem; font-size: .8rem; }
.status-tab strong { min-width: 1.6rem; text-align: center; background: var(--canvas); border-radius: .35rem; padding: 0 .25rem; }
.status-tab.is-active { background: var(--primary-color); border-color: var(--primary-color); color: white; }
.status-tab.is-active strong { background: rgba(255,255,255,.15); }
.filter-panel { padding: 1.25rem 1.5rem; }
.filter-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 1rem; }
.advanced-filters { border-top: 1px solid var(--border); padding-top: .8rem; }
.advanced-filters summary { font-size: .85rem; }
.advanced-filters summary span { margin-inline-start: .4rem; font-weight: normal; }
.admin-content .table { --bs-table-bg: transparent; --bs-table-hover-bg: var(--primary-light); font-size: .85rem; }
.admin-content .table th, .admin-content .table td { padding: .85rem 1rem; vertical-align: middle; }
.admin-content .table thead { background: var(--canvas); }
.admin-content .table thead th { color: var(--muted); font-size: .75rem; white-space: nowrap; }
.orders-table { min-width: 900px; }
.order-items-table { min-width: 620px; }
.order-items-table img { min-width: 50px; }
.orders-table .customer-cell { max-width: 190px; overflow-wrap: anywhere; }
.table-responsive { border-radius: 0 0 1rem 1rem; }
.table-responsive:focus-visible { outline-offset: -3px; }
.money { white-space: nowrap; font-variant-numeric: tabular-nums; }
.order-status { display: inline-block; padding: .25rem .6rem; border-radius: .4rem; font-size: .72rem; font-weight: bold; white-space: nowrap; }
.status-pending { color: var(--warning); background: #fff4d8; }
.status-processing, .status-shipped { color: var(--info); background: #eaf2fa; }
.status-delivered { color: var(--success); background: var(--primary-light); }
.status-canceled, .status-failed { color: var(--danger); background: #fbecef; }
.badge-soft { color: var(--primary-color); background: var(--primary-light); padding: .45rem .6rem; line-height: 1.4; white-space: normal; }
.empty-state { text-align: center; color: var(--muted); padding: 2.5rem 1rem !important; }
.empty-state > i, .empty-state > strong, .empty-state > span { display: block; margin: .4rem; }
.empty-state > i { font-size: 1.7rem; }
.order-overview { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; padding: 0 1.5rem 1.5rem; }
.order-summary { display: flex; align-items: flex-start; flex-direction: column; gap: .5rem; padding: 1rem; border: 1px solid var(--border); border-radius: .7rem; color: var(--muted); text-decoration: none; }
.order-summary strong { font-size: 1.7rem; color: var(--text); }
.order-summary:hover { border-color: var(--primary-color); background: var(--canvas); }
.recent-products { list-style: none; padding: 0 1.5rem 1rem; margin: 0; }
.recent-products li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; border-top: 1px solid var(--border); padding: .7rem 0; }
.recent-products a { font-size: .85rem; }
.quick-actions { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0 1.5rem 1.5rem; }
.quick-actions a { text-decoration: none; background: var(--canvas); color: var(--text); padding: .65rem .85rem; border-radius: .6rem; font-size: .85rem; }
.quick-actions i { color: var(--primary-color); margin-inline-end: .3rem; }
.summary-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.summary-strip > div { border-inline-start: 2px solid var(--border); padding: .4rem 1rem; }
.summary-strip span, .summary-strip strong { display: block; }
.summary-strip span { font-size: .8rem; color: var(--muted); }
.summary-strip strong { font-size: 1.05rem; }
.summary-strip small { font-size: .7rem; }
.report-facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; padding: .25rem 1.5rem 1rem; }
.report-facts dt { color: var(--muted); font-size: .8rem; font-weight: normal; }
.report-facts dd { font-size: 1.1rem; font-weight: bold; margin: .3rem 0; }
.report-notes { padding: 1.2rem 1.5rem; color: var(--muted); font-size: .85rem; }
.report-notes[open] summary { margin-bottom: 1rem; }
.admin-content section[id] { scroll-margin-top: 120px; }
.order-milestones { display: flex; flex-wrap: wrap; gap: 1.25rem; padding: 0; list-style: none; }
.order-milestones li { flex: 1 1 150px; border-inline-start: 3px solid var(--border); padding-inline-start: .8rem; }
.order-milestones time { display: block; font-size: .8rem; color: var(--muted); }
@media (min-width: 992px) { .admin-nav.collapse { display: block; } }
@media (min-width: 1400px) { .order-overview { grid-template-columns: repeat(6,minmax(0,1fr)); } }
@media (max-width: 1199.98px) { .admin-shell { grid-template-columns: 205px minmax(0,1fr); padding: 1.5rem; gap: 1.25rem; } .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 991.98px) {
    .admin-shell { display: block; padding: 1rem; }
    .admin-sidebar { padding: 0; margin-bottom: 1.5rem; }
    .admin-nav-toggle { display: block; }
    .admin-nav-title { display: none; }
    .admin-nav { background: var(--surface); padding: .75rem; border: 1px solid var(--border); border-radius: .7rem; }
    .storefront-search { width: 100%; }
    .navbar-nav { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: .5rem; }
    .summary-strip, .report-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 575.98px) {
    .navbar-brand { font-size: 1.35rem !important; }
    .navbar-brand img { width: 95px; }
    .top-bar .container { font-size: .72rem; }
    .kpi-grid { grid-template-columns: 1fr; gap: .75rem; }
    .kpi-card { padding: 1rem 1.25rem; }
    .order-overview { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
    .section-heading, .filter-panel { padding: 1rem; }
    .period-presets { padding-inline: 1rem; gap: .25rem; }
    .period-link { padding: .4rem .65rem; }
    .custom-period { padding-inline: 1rem; }
    .page-heading > .btn { width: 100%; }
    .filter-actions > div { width: 100%; }
    .filter-actions .btn { flex: 1; }
    .order-overview, .report-facts, .quick-actions { padding-inline: 1rem; }
    .report-facts { gap: .75rem; }
    .summary-strip > div { padding-inline: .6rem; }
    .product-section > .d-flex { gap: .75rem; flex-wrap: wrap; }
    .pagination .page-link { padding: .4rem .6rem; }
}
@media (hover: none) { .hover-lift:hover, .hover-scale:hover, .category-card-simple:hover, .add-to-cart-btn:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .product-card:hover, .product-card:hover .card-img-top, .hover-lift:hover, .hover-scale:hover,
    .category-card-simple:hover, .category-card-simple:hover .category-icon-bg, .category-card-simple:hover i,
    .hero-cta:hover, .hero-cta:focus-visible, .hero-cta:hover .hero-cta-icon, .add-to-cart-btn:hover,
    .add-to-cart-btn:active, .btn-whatsapp:hover { transform: none !important; }
}

/* Focused admin overview and coupon terms. */
.overview-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.overview-count { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .5rem; text-decoration: none; }
.overview-count strong { font-size: 1.35rem; color: #146B49; }
.overview-orders { list-style: none; padding: 0 1.5rem; margin: 0; }
.overview-orders li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 0; border-top: 1px solid #edf1ee; }
.coupon-list { display: grid; gap: 1.25rem; }
.coupon-card { padding: 1.5rem; }
.coupon-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.coupon-heading h2 { font-size: 1.15rem; overflow-wrap: anywhere; }
.coupon-code { display: inline-block; color: #146B49; background: #edf7f1; border-radius: .5rem; padding: .2rem .6rem; overflow-wrap: anywhere; max-width: 100%; }
.coupon-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.2rem; margin: 0; }
.coupon-facts dt { font-size: .8rem; color: #617469; font-weight: 500; margin-bottom: .3rem; }
.coupon-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.coupon-actions { display: flex; flex-wrap: wrap; gap: .5rem; border-top: 1px solid #edf1ee; padding-top: 1rem; margin-top: 1.25rem; }
.audit-table { min-width: 680px; }
.audit-table td { overflow-wrap: anywhere; max-width: 24rem; }
@media (max-width: 767.98px) { .overview-metrics { grid-template-columns: 1fr; } .coupon-facts { grid-template-columns: repeat(2,minmax(0,1fr)); } .coupon-card { padding: 1rem; } }
@media (max-width: 399.98px) { .coupon-facts { grid-template-columns: 1fr; } }

/* Catalog discovery and product browsing use the existing Al Baraka palette. */
.store-intro { display: grid; grid-template-columns: 1.4fr 1fr; background: var(--primary-light); border: 1px solid var(--border); border-radius: .75rem; overflow: hidden; margin-bottom: 1.75rem; }
.store-intro > div { padding: 1.5rem 2rem; }
.store-intro h1 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); color: var(--primary-dark); margin: .3rem 0; font-weight: 700; }
.store-intro p { margin-bottom: .75rem; }
.store-intro .store-eyebrow { font-size: .8rem; color: var(--primary-color); font-weight: bold; margin: 0; }
.store-intro > img { width: 100%; height: 100%; max-height: 255px; object-fit: cover; }
.catalog-section { margin-block: 1.75rem 2.25rem; min-width: 0; }
#categories { scroll-margin-top: 7rem; }
.catalog-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.catalog-heading h1 { font-size: 1.7rem; margin: 0; font-weight: bold; }
.catalog-heading h2 { font-size: 1.25rem; margin: 0; font-weight: bold; }
.catalog-heading p { color: var(--muted); font-size: .85rem; margin: .25rem 0 0; }
.catalog-heading > a, .catalog-heading > div > a { font-size: .85rem; font-weight: bold; }
.category-discovery { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .7rem; }
.discovery-card { background: var(--surface); border: 1px solid var(--border); border-radius: .65rem; min-width: 0; }
.discovery-card:hover { border-color: var(--primary-color); }
.discovery-link { display: flex; align-items: center; gap: .65rem; padding: 1rem .8rem; text-decoration: none; color: var(--text); height: 100%; }
.discovery-card:has(.pharmacy-category-link) .discovery-link { height: auto; }
.discovery-link strong, .discovery-link small { display: block; }
.discovery-link strong { font-size: .9rem; overflow-wrap: anywhere; }
.discovery-link small { font-size: .75rem; color: var(--muted); }
.discovery-link > .bi { margin-inline-start: auto; color: var(--primary-color); font-size: .7rem; }
.discovery-icon { flex: 0 0 38px; height: 38px; display: grid; place-items: center; border-radius: .5rem; }
.discovery-icon i { font-size: 1.3rem; }
.pharmacy-category-link { display: block; font-size: .8rem; padding: 0 .8rem .6rem; }
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.catalog-card { display: flex; flex-direction: column; min-width: 0; height: 100%; border: 1px solid var(--border); border-radius: .65rem; background: var(--surface); overflow: hidden; }
.catalog-card:focus-within { border-color: var(--primary-color); }
.catalog-image { position: relative; background: white; aspect-ratio: 5 / 4; border-bottom: 1px solid var(--border); }
.catalog-image img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; padding: 1rem; }
.catalog-image [hidden], .product-row-controls[hidden] { display: none; }
.product-image-placeholder { display: grid; place-items: center; height: 100%; color: var(--muted); background: var(--canvas); font-size: 2.5rem; }
.catalog-favorite { position: absolute; top: .4rem; inset-inline-end: .4rem; border: 1px solid var(--border); border-radius: 50%; background: white; }
.catalog-favorite:hover { background: var(--primary-light); }
.catalog-card-body { padding: .85rem; display: flex; flex-direction: column; flex: 1; align-items: stretch; }
.catalog-category { color: var(--muted); font-size: .75rem; text-decoration: none; margin-bottom: .25rem; }
.catalog-product-name { font-size: 1rem; font-weight: bold; margin: 0 0 .35rem; overflow-wrap: anywhere; }
.catalog-unit { font-size: .75rem; color: var(--muted); margin: 0 0 .7rem; }
.catalog-price { margin: auto 0 .75rem; padding-top: .3rem; font-size: 1.2rem; font-weight: bold; color: var(--primary-dark); }
.catalog-price span { font-size: .75rem; font-weight: normal; }
.catalog-add { min-height: 44px; font-size: .85rem; display: flex; align-items: center; justify-content: center; gap: .45rem; }
.product-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3rem) / 4); gap: 1rem; overflow-x: auto; padding: .3rem .2rem .85rem; scroll-snap-type: x proximity; scroll-padding-inline: .2rem; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: var(--primary-color) var(--primary-light); }
.product-row > * { scroll-snap-align: start; }
.product-row:focus-visible { outline-offset: 1px; }
.product-row-controls { display: flex; gap: .4rem; }
.product-row-controls .btn { width: 44px; height: 44px; padding: 0; }
.product-row-controls [aria-disabled="true"] { opacity: .45; cursor: default; }
.category-navigation { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.category-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .85rem; min-height: 44px; background: var(--surface); border: 1px solid var(--border); border-radius: .5rem; text-decoration: none; font-size: .85rem; }
.category-chip span { font-size: .75rem; }
.category-chip[aria-current="page"] { color: white; background: var(--primary-color); border-color: var(--primary-color); }
.catalog-filter { display: grid; gap: .4rem; max-width: 620px; margin-bottom: 1.5rem; }
.catalog-filter label, .catalog-filter > a { font-size: .85rem; }
.catalog-filter input { min-width: 0; }
.catalog-empty { text-align: center; padding: 2.5rem 1rem; border: 1px dashed var(--border); background: var(--surface); border-radius: .65rem; margin-bottom: 1.75rem; color: var(--muted); }
.catalog-empty > i { display: block; font-size: 2.2rem; color: var(--primary-color); margin-bottom: .5rem; }
.catalog-empty h2 { font-size: 1.2rem; color: var(--text); }
.student-callout { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; background: var(--primary-light); border-radius: .65rem; padding: 1.25rem; margin-block: 2rem; }
.student-callout > i { color: var(--primary-color); font-size: 2rem; }
.student-callout h2 { margin: 0; font-size: 1.1rem; font-weight: bold; }
.student-callout p { margin: .25rem 0 0; color: var(--muted); font-size: .85rem; }
.student-callout a { margin-inline-start: auto; }
.store-benefits { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; margin: 2rem 0; }
.store-benefits > div { display: grid; grid-template-columns: auto 1fr; column-gap: .6rem; align-content: start; }
.store-benefits i { color: var(--primary-color); }
.store-benefits strong { font-size: .85rem; }
.store-benefits span { grid-column: 2; color: var(--muted); font-size: .75rem; }
.category-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.category-actions .btn { min-height: 44px; display: inline-flex; align-items: center; }
.categories-table th[scope="row"] { overflow-wrap: anywhere; max-width: 18rem; }
@media (max-width: 991.98px) {
    .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .product-row { grid-auto-columns: calc((100% - 2rem) / 3); }
    .store-intro > div { padding: 1.25rem; }
    .store-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .store-intro { grid-template-columns: 1fr; }
    .store-intro > img { display: none; }
    .category-discovery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
    .discovery-link { padding: .8rem .6rem; gap: .4rem; }
    .discovery-icon { flex-basis: 30px; height: 32px; }
    .discovery-link > .bi { display: none; }
    .catalog-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: .6rem; }
    .catalog-card { align-self: start; height: auto; }
    .catalog-card-body { flex: 0 0 auto; padding: .5rem .6rem .6rem; }
    .catalog-category { margin-bottom: .1rem; font-size: .68rem; line-height: 1.35; }
    .catalog-product-name { margin-bottom: .15rem; font-size: .875rem; line-height: 1.4; }
    .catalog-unit { margin-bottom: .35rem; font-size: .7rem; line-height: 1.35; }
    .catalog-price { margin: 0 0 .45rem; padding-top: 0; font-size: 1rem; line-height: 1.4; }
    .catalog-price span { font-size: .68rem; }
    .catalog-card .badge { padding: .18rem .35rem; font-size: .65rem; }
    .catalog-add { min-height: 42px; padding: .35rem .45rem; font-size: .78rem; gap: .3rem; }
    .product-row { grid-auto-columns: 72%; gap: .65rem; }
    .student-callout a { margin-inline-start: 0; }
    .categories-table, .categories-table tbody, .categories-table tr, .categories-table td, .categories-table th { display: block; width: 100%; }
    .categories-table thead { display: none; }
    .categories-table tr { padding: .7rem; border-bottom: 1px solid var(--border); }
    .admin-content .categories-table td, .admin-content .categories-table th { border: 0; padding: .35rem; max-width: none; }
    .categories-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: .8rem; }
}

/* Home storefront polish: a more visual hero and responsive product-card motion. */
.home-page .store-intro {
    grid-template-columns: minmax(280px, 2fr) minmax(0, 3fr);
    min-height: clamp(330px, 30vw, 390px);
    border-radius: 1.1rem;
    box-shadow: 0 16px 38px rgba(9, 49, 34, .12);
    transition: box-shadow 240ms ease, border-color 240ms ease;
}
.home-page .store-intro > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.75rem, 3.5vw, 3rem);
}
.home-page .store-intro h1 { font-size: clamp(1.8rem, 3.1vw, 2.65rem); }
.home-page .store-intro > img {
    align-self: stretch;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center;
    transition: transform 280ms ease;
}
.home-page .catalog-card {
    position: relative;
    border-radius: .85rem;
    box-shadow: 0 4px 14px rgba(9, 49, 34, .06);
    transition: transform 260ms cubic-bezier(.2, .7, .2, 1), box-shadow 260ms ease, border-color 220ms ease, opacity 300ms ease;
}
.home-page .catalog-image { overflow: hidden; }
.home-page .catalog-image img { transition: transform 240ms ease; }
.home-page .catalog-card.is-reveal-pending {
    opacity: 0;
    transform: translateY(12px);
    transition-delay: var(--product-reveal-delay, 0ms), 0ms, 0ms, var(--product-reveal-delay, 0ms);
}
.home-page .catalog-card.is-reveal-pending:not(.is-revealed) { transition: none; }
.home-page .catalog-card.is-reveal-pending.is-revealed {
    opacity: 1;
    transform: translateY(0);
}
.home-page .catalog-favorite {
    z-index: 2;
    box-shadow: 0 3px 10px rgba(9, 49, 34, .08);
    transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.home-page .catalog-add {
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.home-page .catalog-add:active { transform: scale(.98); }
.home-page .product-row { padding-block-start: .65rem; scroll-behavior: smooth; }

@media (hover: hover) and (pointer: fine) {
    .home-page .store-intro:hover {
        border-color: rgba(20, 107, 73, .3);
        box-shadow: 0 20px 44px rgba(9, 49, 34, .16);
    }
    .home-page .store-intro:hover > img { transform: scale(1.015); }
    .home-page .catalog-card:hover {
        transform: translateY(-6px) scale(1.008);
        border-color: rgba(20, 107, 73, .32);
        box-shadow: 0 16px 32px rgba(9, 49, 34, .14);
    }
    .home-page .catalog-card:hover .catalog-image img { transform: scale(1.045); }
    .home-page .catalog-favorite:hover,
    .home-page .catalog-favorite:focus-visible {
        transform: scale(1.08);
        border-color: rgba(20, 107, 73, .35);
        box-shadow: 0 6px 16px rgba(9, 49, 34, .16);
    }
    .home-page .catalog-add:hover {
        transform: translateY(-2px);
        box-shadow: 0 7px 16px rgba(20, 107, 73, .18);
    }
}

@media (max-width: 991.98px) {
    .home-page .store-intro {
        grid-template-columns: minmax(250px, 45%) minmax(0, 55%);
        min-height: 320px;
    }
    .home-page .store-intro > div { padding: 1.5rem; }
}

@media (min-width: 576px) and (max-width: 639.98px) {
    .home-page .catalog-card { align-self: start; height: auto; }
    .home-page .catalog-card-body { flex: 0 0 auto; padding: .5rem .6rem .6rem; }
    .home-page .catalog-category { margin-bottom: .1rem; font-size: .68rem; line-height: 1.35; }
    .home-page .catalog-product-name { margin-bottom: .15rem; font-size: .875rem; line-height: 1.4; }
    .home-page .catalog-unit { margin-bottom: .35rem; font-size: .7rem; line-height: 1.35; }
    .home-page .catalog-price { margin: 0 0 .45rem; padding-top: 0; font-size: 1rem; line-height: 1.4; }
    .home-page .catalog-price span { font-size: .68rem; }
    .home-page .catalog-add { min-height: 42px; padding: .35rem .45rem; font-size: .78rem; gap: .3rem; }
}

@media (max-width: 575.98px) {
    .home-page .store-intro {
        grid-template-columns: 1fr;
        min-height: 0;
        border-radius: .9rem;
    }
    .home-page .store-intro > div { padding: 1.5rem 1.25rem; }
    .home-page .store-intro h1 { font-size: clamp(1.65rem, 8vw, 2.05rem); }
    .home-page .store-intro > img {
        display: block;
        height: clamp(165px, 48vw, 210px);
    }
    .home-page .catalog-card.is-reveal-pending { transform: translateY(8px); }
    .home-page .catalog-card.is-reveal-pending.is-revealed { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .home-page .catalog-card.is-reveal-pending,
    .home-page .catalog-card.is-reveal-pending.is-revealed { opacity: 1 !important; }
    .home-page .store-intro:hover > img,
    .home-page .catalog-card:hover,
    .home-page .catalog-card:hover .catalog-image img,
    .home-page .catalog-favorite:hover,
    .home-page .catalog-favorite:focus-visible,
    .home-page .catalog-add:hover,
    .home-page .catalog-add:active { transform: none !important; }
}

/* Order operations: persistent attention counts and a visible mobile inbox. */
.order-attention { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.attention-card { display: flex; flex-direction: column; gap: .4rem; padding: 1.2rem; border: 1px solid #dce5df; border-radius: 1rem; background: #fff; color: #214a39; text-decoration: none; min-width: 0; }
.attention-card strong { font-size: 2rem; line-height: 1.3; }
.attention-card small { color: #53655c; }
.attention-new { background: #edf8ed; border: 2px solid #387847; }
.attention-card:focus-visible, .staff-mobile-bell:focus-visible { outline: 3px solid #9a6218; outline-offset: 3px; }
.new-orders-tab { border-color: #387847; }
.order-needs-attention > * { background: #f2f9ef !important; }
.staff-mobile-bell { position: relative; font-size: 1.5rem; margin-inline-start: auto; margin-inline-end: 1.4rem; color: #214a39; }
.staff-notification-badge { position: absolute; top: -.25rem; inset-inline-end: -.55rem; border-radius: 2rem; background: #f5c453; color: #29230e; padding: .1rem .4rem; font-size: .75rem; font-weight: 700; }
@media (max-width: 991px) { .order-attention { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .attention-card { padding: .8rem; } .order-attention { gap: .6rem; } .overview-orders li { flex-wrap: wrap; } }
