/* SADAQAH MALL Main Stylesheet */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #212529;
}

/* Header & Navbar */
.navbar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.navbar-brand small {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Agent: GitHub Copilot | Code: GC-STOREFRONT-REFRESH-001 | Date: 2026-09-05 17:55:00 +04:00 */
/* Change: Added storefront hierarchy, browse tools, refined product cards, and mobile controls. */
.storefront-nav {
    background: #145a43;
    box-shadow: 0 3px 14px rgba(20, 90, 67, 0.22);
}

.storefront-nav .navbar-brand {
    letter-spacing: 0.04em;
}

.storefront-nav .navbar-brand span {
    color: #f7c948;
}

.storefront-nav .navbar-brand small {
    color: rgba(255, 255, 255, 0.72);
    display: block;
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0;
}

.cart-nav-button {
    background: #f7c948;
    border-color: #f7c948;
    color: #17202a;
}

.cart-nav-button:hover {
    background: #ffe08a;
    border-color: #ffe08a;
    color: #17202a;
}

.storefront-shell {
    padding-bottom: 5.5rem;
    padding-top: 1rem;
}

.storefront-intro {
    align-items: end;
    background: linear-gradient(110deg, #e8f5ed 0%, #f8fbf7 65%, #fff8df 100%);
    border: 1px solid #d9eade;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    min-height: 190px;
    overflow: hidden;
    padding: 2rem;
    position: relative;
}

.storefront-intro::after {
    border: 28px solid rgba(247, 201, 72, 0.18);
    border-radius: 50%;
    content: '';
    height: 180px;
    position: absolute;
    right: 9%;
    top: -70px;
    width: 180px;
}

.storefront-intro > * {
    position: relative;
    z-index: 1;
}

.storefront-kicker {
    color: #198754;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 0.55rem;
    text-transform: uppercase;
}

.storefront-intro h1 {
    color: #173c2d;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1;
    margin-bottom: 0.7rem;
    max-width: 620px;
}

.storefront-subtitle {
    color: #527060;
    margin-bottom: 0;
    max-width: 520px;
}

.storefront-promise {
    align-items: end;
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    text-align: right;
}

.storefront-promise strong {
    color: #145a43;
    font-size: 1.1rem;
}

.storefront-promise span {
    color: #6c757d;
}

.storefront-toolbar {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.storefront-search-wrap {
    align-items: center;
    background: #fff;
    border: 1px solid #dfe5eb;
    border-radius: 8px;
    color: #6c757d;
    display: flex;
    gap: 0.65rem;
    max-width: 520px;
    padding: 0.65rem 0.85rem;
    width: 100%;
}

.storefront-search-wrap input {
    border: 0;
    color: #17202a;
    outline: 0;
    width: 100%;
}

.product-result-count {
    color: #6c757d;
    font-size: 0.85rem;
    white-space: nowrap;
}

.storefront-category-bar {
    scrollbar-color: #198754 #edf4ef;
    scrollbar-width: thin;
}

.storefront-category-bar .btn {
    border-radius: 999px;
    white-space: nowrap;
}

/* Storefront Product Cards */
.product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.product-card img {
    height: 76px;
    object-fit: cover;
    width: 100%;
    background-color: #e9ecef;
}

/* Agent: GitHub Copilot | Code: GC-STOCK-AWARE-STOREFRONT-004 | Date: 2026-09-05 21:20:00 +04:00 */
/* Change: Reduced product card footprint further for a denser catalog view. */
.product-card .card-title {
    font-size: 0.76rem;
    line-height: 1.15;
    margin-bottom: 0.3rem;
    min-height: 1.75rem;
}

.product-card .card-body {
    padding: 0.42rem 0.55rem 0.55rem;
}

.product-stock {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

/* Agent: GitHub Copilot | Code: GC-STOREFRONT-CARD-TYPE-001 | Date: 2026-09-05 21:27:24 +04:00 */
/* Change: Reduced product detail typography and spacing for a shorter catalog card. */
.product-card .product-category {
    font-size: 0.62rem;
    margin-bottom: 0.25rem !important;
}

.product-card .product-original-price,
.product-card .product-saving {
    font-size: 0.66rem;
}

.product-card .text-success.fs-5 {
    font-size: 0.92rem !important;
}

.product-card .product-add-button {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

.product-stock-good { color: #198754; }
.product-stock-low { color: #b77900; }
.product-stock-out { color: #dc3545; }
.product-stock-neutral { color: #6c757d; font-weight: 500; }

/* Horizontal Category Navigation Bar */
#categoryBar {
    white-space: nowrap;
    scrollbar-width: thin;
}

#categoryBar::-webkit-scrollbar {
    height: 5px;
}

#categoryBar::-webkit-scrollbar-thumb {
    background-color: #198754;
    border-radius: 10px;
}

/* Order Status Badges */
.badge-placed {
    background-color: #0d6efd;
    color: #fff;
}

.badge-packing {
    background-color: #ffc107;
    color: #000;
}

.badge-out-for-delivery {
    background-color: #fd7e14;
    color: #fff;
}

.badge-delivered {
    background-color: #198754;
    color: #fff;
}

.badge-cancelled {
    background-color: #dc3545;
    color: #fff;
}

/* Modals & Drawers */
.modal-header {
    border-bottom: 2px solid #e9ecef;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
}

/* Admin Dashboard Transitions */
.admin-tab-content {
    animation: fadeIn 0.25s ease-in-out;
}

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

/* Agent: GitHub Copilot | Code: GC-ADMIN-MATRIX-001 | Date: 2026-09-05 14:27:57 +04:00 */
/* Change: Added responsive styling for the admin landing card matrix and workspace sections. */
.admin-home {
    animation: fadeIn 0.25s ease-in-out;
}

.admin-page-title {
    color: #17202a;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 700;
}

.admin-eyebrow {
    color: #6c757d;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-status-pill {
    align-items: center;
    background: #fff;
    border: 1px solid #dfe5eb;
    border-radius: 999px;
    color: #52606d;
    display: inline-flex;
    font-size: 0.8rem;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
}

.admin-status-pill span {
    background: #198754;
    border-radius: 50%;
    height: 0.45rem;
    width: 0.45rem;
}

.admin-card-matrix {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-nav-card {
    align-items: center;
    background: #fff;
    border: 1px solid #e1e6eb;
    border-left: 5px solid;
    border-radius: 8px;
    color: #17202a;
    display: grid;
    gap: 0.85rem;
    grid-template-columns: auto 1fr auto;
    min-height: 118px;
    padding: 1.15rem 1.25rem;
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    width: 100%;
}

.admin-nav-card:hover,
.admin-nav-card:focus-visible {
    box-shadow: 0 10px 24px rgba(23, 32, 42, 0.1);
    outline: none;
    transform: translateY(-2px);
}

.admin-nav-card strong,
.admin-nav-card small {
    display: block;
}

.admin-nav-card strong {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.admin-nav-card small {
    color: #6c757d;
    font-size: 0.83rem;
    line-height: 1.4;
}

.admin-nav-icon {
    align-items: center;
    background: #f1f4f7;
    border-radius: 8px;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 700;
    height: 2.5rem;
    justify-content: center;
    width: 2.5rem;
}

.admin-nav-arrow {
    color: #6c757d;
    font-size: 1.25rem;
}

.admin-nav-blue { border-left-color: #0d6efd; }
.admin-nav-amber { border-left-color: #f0ad00; }
.admin-nav-green { border-left-color: #198754; }
.admin-nav-cyan { border-left-color: #0dcaf0; }

.admin-section {
    animation: fadeIn 0.25s ease-in-out;
}

.admin-section-toolbar {
    align-items: end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

/* Agent: GitHub Copilot | Code: GC-DELIVERY-FLOW-001 | Date: 2026-09-05 15:19:56 +04:00 */
/* Change: Added floating cart and scooter delivery progress styling. */
.floating-cart {
    align-items: center;
    background: #ffffff;
    border: 1px solid #198754;
    border-radius: 8px;
    bottom: 1.25rem;
    box-shadow: 0 8px 24px rgba(23, 32, 42, 0.18);
    color: #17202a;
    display: flex;
    gap: 0.65rem;
    min-width: 190px;
    padding: 0.7rem 0.85rem;
    position: fixed;
    right: 1.25rem;
    text-align: left;
    z-index: 1040;
}

.floating-cart:hover {
    background: #f2fff8;
}

.floating-cart-icon {
    font-size: 1.35rem;
}

.floating-cart strong,
.floating-cart small {
    display: block;
}

.floating-cart small {
    color: #198754;
    font-weight: 700;
}

.floating-cart-arrow {
    color: #198754;
    font-size: 1.2rem;
    margin-left: auto;
}

.delivery-progress {
    background: #f7fbf9;
    border: 1px solid #d8eee1;
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
}

.delivery-progress-topline {
    display: flex;
    font-size: 0.86rem;
    justify-content: space-between;
    gap: 1rem;
}

.delivery-progress-topline span,
.delivery-progress small {
    color: #527060;
}

.delivery-track {
    background: #dce9e1;
    border-radius: 999px;
    height: 0.55rem;
    margin: 1.15rem 0 0.65rem;
    position: relative;
}

.delivery-progress-bar {
    background: #198754;
    border-radius: inherit;
    height: 100%;
    transition: width 0.25s ease;
    width: 0;
}

.delivery-scooter {
    font-size: 1.25rem;
    left: -0.75rem;
    line-height: 1;
    position: absolute;
    top: -0.65rem;
    transition: left 0.25s ease;
}

@media (max-width: 575.98px) {
    .storefront-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
        margin-top: 0.75rem;
        width: 100%;
    }

    .storefront-actions .btn {
        font-size: 0.78rem;
        padding: 0.4rem 0.55rem;
    }

    .storefront-intro {
        align-items: start;
        flex-direction: column;
        gap: 1.25rem;
        min-height: 0;
        padding: 1.4rem;
    }

    .storefront-intro h1 {
        font-size: 2.2rem;
    }

    .storefront-promise {
        align-items: start;
        text-align: left;
    }

    .storefront-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 0.45rem;
    }

    .admin-card-matrix {
        grid-template-columns: 1fr;
    }

    .admin-section-toolbar {
        align-items: start;
        flex-direction: column;
        gap: 0.85rem;
    }

    .floating-cart {
        bottom: 0.75rem;
        left: 0.75rem;
        right: 0.75rem;
        width: auto;
    }

    .delivery-progress-topline {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.2rem;
    }
}

/* Agent: GitHub Copilot | Code: GC-INVENTORY-VISIBILITY-001 | Date: 2026-09-05 17:50:00 +04:00 */
/* Change: Added readable hub stock cards and inventory state styling. */
.stock-hub-summary {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.stock-hub-card {
    background: #f7fbf9;
    border: 1px solid #d8eee1;
    border-radius: 8px;
    color: #17202a;
    padding: 0.85rem 1rem;
    text-align: left;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.stock-hub-card:hover,
.stock-hub-card:focus-visible {
    box-shadow: 0 6px 16px rgba(25, 135, 84, 0.14);
    outline: none;
    transform: translateY(-1px);
}

.stock-hub-card-label,
.stock-hub-card span {
    color: #527060;
    display: block;
    font-size: 0.78rem;
}

.stock-hub-card strong {
    display: block;
    font-size: 1.45rem;
    margin: 0.2rem 0;
}

.stock-hub-card strong small {
    color: #6c757d;
    font-size: 0.72rem;
    font-weight: 400;
}

.inventory-empty {
    background: #f8f9fa;
    border: 1px dashed #ced4da;
    border-radius: 8px;
    color: #6c757d;
    padding: 1rem;
    text-align: center;
}

.product-card .card-body {
    padding: 1rem;
}

.product-category {
    color: #198754;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.product-original-price {
    color: #8b959e;
    font-size: 0.78rem;
    text-decoration: line-through;
}

.product-saving {
    color: #198754;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-add-button {
    border-radius: 6px;
    font-weight: 700;
    padding: 0.35rem 0.7rem;
}

.storefront-empty {
    align-items: center;
    background: #fff;
    border: 1px dashed #cbd8cf;
    border-radius: 10px;
    color: #527060;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 3rem 1rem;
    text-align: center;
}

.storefront-empty strong {
    color: #173c2d;
}