/* Quick-commerce production polish shared across storefront, admin and rider surfaces. */
:root {
    --qc-green: #16a34a;
    --qc-green-dark: #087f3a;
    --qc-mint: #e9fdf1;
    --qc-ink: #101828;
    --qc-muted: #667085;
    --qc-line: #e5e7eb;
    --qc-page: #f6f8fb;
    --qc-card: #ffffff;
    --qc-orange: #f97316;
    --qc-blue: #2563eb;
    --qc-pink: #db2777;
    --qc-shadow: 0 12px 32px rgba(16, 24, 40, .08);

    /* Shared content grid — mirrors .container steps in style.css / responsive.css
       so header, hero and every section share one content column. */
    --qc-shell: 1280px;
    --qc-gutter: 20px;
}

@media (max-width: 1400px) { :root { --qc-shell: 1200px; } }
@media (max-width: 1199px) { :root { --qc-shell: 960px; } }
@media (max-width: 991px)  { :root { --qc-shell: 720px; --qc-gutter: 15px; } }
@media (max-width: 767px)  { :root { --qc-shell: 540px; } }
@media (max-width: 479px)  { :root { --qc-shell: 100%; --qc-gutter: 12px; } }

body {
    background: var(--qc-page);
    color: var(--qc-ink);
    text-rendering: optimizeLegibility;
}

.module-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
    padding: 22px;
    border: 1px solid rgba(22, 163, 74, .16);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(22, 163, 74, .13), rgba(37, 99, 235, .08)),
        var(--qc-card);
    box-shadow: var(--qc-shadow);
}
.module-hero h2 {
    margin: 4px 0 6px;
    font-size: clamp(1.35rem, 2vw, 2rem);
    letter-spacing: -.02em;
}
.module-hero p {
    margin: 0;
    color: var(--qc-muted);
    max-width: 740px;
}
.module-hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--qc-green-dark);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.module-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.module-filters {
    align-items: flex-end;
}
.module-filters .field {
    min-width: 150px;
    flex: 1 1 160px;
}
.module-table table.data td {
    white-space: normal;
}
.stat-grid.compact {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.product-card,
.cart-item,
.offer-card,
.address-card,
.category-product-section,
.sidebar-filters,
.checkout-section {
    border: 1px solid var(--qc-line) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .06) !important;
}
.product-card {
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(22, 163, 74, .34) !important;
    box-shadow: 0 18px 38px rgba(16, 24, 40, .12) !important;
}
.btn,
.btn-primary,
.btn-add-cart,
.btn-buy-now,
.checkout-btn,
button[type="submit"] {
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover,
.btn-primary:hover,
.btn-add-cart:hover,
.btn-buy-now:hover,
.checkout-btn:hover {
    transform: translateY(-1px);
}

.skeleton-line,
.skeleton-card {
    background: linear-gradient(90deg, #eef2f7 25%, #f8fafc 37%, #eef2f7 63%);
    background-size: 400% 100%;
    animation: qcShimmer 1.3s ease-in-out infinite;
}

@keyframes qcShimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

@media (max-width: 760px) {
    .module-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px;
        border-radius: 12px;
    }
    .module-hero-actions,
    .module-hero-actions .btn {
        width: 100%;
    }
    .module-filters {
        display: grid;
        grid-template-columns: 1fr;
    }
    .module-filters .field,
    .module-filters .btn {
        width: 100%;
    }
    table.data th,
    table.data td {
        padding: 10px 11px;
        font-size: .78rem;
    }
}

/* ============================================================ *
 * Storefront — one shared 1280px content grid (desktop 1366+)
 * Everything below lines up with .container in style.css and with the
 * .nav-inner grid used by includes/header.php.
 * ============================================================ */
.hero-elegant {
    min-height: clamp(470px, 76vh, 700px);
}
.hero-elegant .container-wide,
.hero-slide .container-wide {
    width: 100%;
    max-width: var(--qc-shell, 1280px);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--qc-gutter, 20px);
    padding-right: var(--qc-gutter, 20px);
}
.categories-section .cat-grid,
.category-header-wrapper,
.category-products-grid {
    max-width: var(--qc-shell, 1280px);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--qc-gutter, 20px);
    padding-right: var(--qc-gutter, 20px);
}
.feature-strip,
.newsletter-section {
    padding-left: calc((100% - var(--qc-shell, 1280px)) / 2 + var(--qc-gutter, 20px));
    padding-right: calc((100% - var(--qc-shell, 1280px)) / 2 + var(--qc-gutter, 20px));
}
.category-product-section .category-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 22px;
}

@media print {
    .admin-sidebar,
    .sidebar-overlay,
    .admin-header,
    .page-actions,
    .module-hero-actions,
    .pagination,
    .action-btn,
    .btn {
        display: none !important;
    }
    body,
    .admin-main {
        background: #fff !important;
        padding: 0 !important;
    }
    .module-hero,
    .panel,
    .table-wrap {
        box-shadow: none !important;
        border-color: #d0d5dd !important;
    }
}
