/* Storefront & admin shared design tokens — Super99store */
:root {
    --qc-green: #FF5000;
    --qc-green-dark: #D94200;
    --qc-mint: #FFF3ED;
    --qc-ink: #2A343D;
    --qc-muted: #667085;
    --qc-line: #e5e7eb;
    --qc-page: #f6f8fb;
    --qc-card: #ffffff;
    --qc-orange: #FF5000;
    --qc-blue: #2563eb;
    --qc-pink: #db2777;
    --qc-shadow: 0 12px 32px rgba(42, 52, 61, .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(255, 80, 0, .18);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(255, 80, 0, .12), rgba(42, 52, 61, .07)),
        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;
    display: flex;
    flex-direction: column;
}
.product-card .product-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    min-height: 2.7em;
}

/* Store download badges (Header, Footer, Mobile Menu, Homepage Promo) */
.nv-store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.nv-store-badges--compact {
    gap: 6px;
}
.nv-store-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #edf4f0;
    color: #0f7b4f;
    border: 1px solid #cfe3d8;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s ease, transform .15s ease;
}
.nv-store-chip:hover {
    background: #0f7b4f;
    color: #fff;
    border-color: #0f7b4f;
}
.nv-store-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 12px;
    background: #101828;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, .14);
    text-decoration: none;
    transition: transform .15s ease, background .15s ease;
}
.nv-store-badge:hover {
    background: #0f7b4f;
    color: #ffffff;
    transform: translateY(-1px);
}
.nv-store-badge-ico {
    font-size: 20px;
    display: inline-flex;
    align-items: center;
}
.nv-store-custom-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 4px;
}
.nv-store-badge-txt {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-align: left;
}
.nv-store-badge-txt small {
    font-size: 9px;
    letter-spacing: .05em;
    opacity: .8;
    text-transform: uppercase;
}
.nv-store-badge-txt strong {
    font-size: 13px;
    font-weight: 700;
}
.m-menu-apps .nv-store-badges {
    padding: 4px 12px 8px;
}
.m-menu-apps .nv-store-badge {
    width: 100%;
}

/* Homepage App Promotion Section */
.nv-home-app-promo {
    padding: 28px 0;
}
.nv-promo-card {
    background: linear-gradient(135deg, var(--promo-bg, #0f7b4f), #0a5a39);
    color: #ffffff;
    border-radius: 20px;
    padding: 28px 32px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    box-shadow: 0 16px 36px rgba(15, 123, 79, .18);
}
.nv-promo-eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, .16);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}
.nv-promo-copy h2 {
    margin: 0 0 8px;
    font-size: clamp(1.35rem, 2.5vw, 1.9rem);
    color: #ffffff;
}
.nv-promo-copy p {
    margin: 0 0 16px;
    opacity: .9;
    max-width: 520px;
    font-size: 14.5px;
    line-height: 1.45;
}
.nv-promo-media img {
    max-height: 210px;
    width: auto;
    border-radius: 14px;
    object-fit: contain;
}
@media (max-width: 767px) {
    .nv-promo-card {
        grid-template-columns: 1fr;
        padding: 22px 18px;
    }
    .nv-promo-media {
        text-align: center;
    }
    .nav-actions .nv-store-badges--compact {
        display: none;
    }
}
}
.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;
    }
}
