/**
 * TechShop - Storefront Design System (V1)
 * Clean, Modern, Bootstrap 5 Compatible
 */

:root {
    --font-sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Brand Colors */
    --color-primary: #2563eb;
    --color-primary-hover: #1d4ed8;
    --color-primary-light: #eff6ff;
    --color-dark: #0f172a;
    --color-dark-surface: #1e293b;
    --color-body-bg: #f8fafc;
    --color-text-main: #0f172a;
    --color-text-muted: #64748b;
    
    /* Accent & Semantic */
    --color-danger: #e11d48;
    --color-danger-light: #ffe4e6;
    --color-success: #10b981;
    --color-success-light: #ecfdf5;
    --color-warning: #f59e0b;
    --color-warning-light: #fffbeb;
    --color-border: #e2e8f0;
    --color-border-hover: #cbd5e1;

    /* Shadows & Radii */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

/* =========================================================
   1. RESET & BASE
   ========================================================= */
body {
    font-family: var(--font-sans);
    background-color: var(--color-body-bg);
    color: var(--color-text-main);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.15s ease, background-color 0.15s ease;
}

a:hover {
    color: var(--color-primary);
}

.header ul, 
.footer ul, 
.nav-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

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

/* =========================================================
   2. HEADER
   ========================================================= */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 16px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 800;
    color: var(--color-dark);
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.logo i {
    color: #f59e0b;
    font-size: 24px;
}

.logo span {
    color: var(--color-primary);
}

/* Nút mở bảng danh mục thay cho thanh điều hướng danh mục luôn hiển thị. */
.header-category-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #ffffff;
    color: var(--color-dark);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.header-category-toggle:hover,
.header-category-toggle[aria-expanded="true"] {
    border-color: #bfdbfe;
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.header-category-toggle:focus-visible,
.category-menu-link:focus-visible,
.category-feature-link:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 2px;
}

.header-category-panel {
    position: absolute;
    z-index: 1030;
    top: 100%;
    right: 0;
    left: 0;
    padding: 14px 0 24px;
    border-top: 1px solid var(--color-border);
    background: rgba(248, 250, 252, 0.92);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(10px);
}

.category-mega-surface {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.75fr);
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-lg);
}

.category-mega-main {
    padding: 26px 28px 28px;
}

.category-mega-explore {
    padding: 26px;
    border-left: 1px solid var(--color-border);
    background: linear-gradient(145deg, #eff6ff, #f8fafc 56%, #ffffff);
}

.category-mega-eyebrow {
    margin: 0 0 6px;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.category-mega-heading h2,
.category-mega-explore h2 {
    margin: 0;
    color: var(--color-dark);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.category-menu-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.category-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 54px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.category-menu-link:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: var(--color-primary);
}

.category-menu-icon {
    display: inline-flex;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eff6ff;
    color: var(--color-primary);
    font-size: 14px;
}

.category-menu-arrow {
    margin-left: auto;
    color: #94a3b8;
    font-size: 11px;
}

.category-feature-link {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    color: #334155;
}

.category-feature-link:last-child {
    border-bottom: 0;
}

.category-feature-link > i:first-child {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #dbeafe;
    color: var(--color-primary);
}

.category-feature-link > i:last-child {
    color: #94a3b8;
    font-size: 11px;
}

.category-feature-link strong,
.category-feature-link small {
    display: block;
}

.category-feature-link strong {
    color: var(--color-dark);
    font-size: 13px;
}

.category-feature-link small {
    margin-top: 2px;
    color: var(--color-text-muted);
    font-size: 11px;
}

.category-feature-link:hover strong,
.category-feature-link:hover > i:last-child {
    color: var(--color-primary);
}

.category-feature-sale > i:first-child {
    background: var(--color-danger-light);
    color: var(--color-danger);
}

/* Search Bar */
.search-bar {
    flex: 1;
    max-width: 540px;
    position: relative;
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border: 1.5px solid transparent;
    border-radius: var(--radius-full);
    padding: 2px 4px 2px 16px;
    transition: all 0.2s ease;
}

.search-bar:focus-within {
    background: #ffffff;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.search-bar .search-icon {
    color: var(--color-text-muted);
    font-size: 14px;
    margin-right: 8px;
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 9px 0;
    font-size: 14px;
    font-family: inherit;
    color: var(--color-text-main);
}

.search-bar .search-submit-btn {
    border: none;
    background: var(--color-primary);
    color: #ffffff;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.search-bar .search-submit-btn:hover {
    background: var(--color-primary-hover);
}

.header-ai-suggestions {
    position: absolute;
    z-index: 1100;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    overflow: hidden;
    border: 1px solid #dbe4f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.header-ai-heading {
    padding: 12px 14px 10px;
    border-bottom: 1px solid #edf2f7;
    background: linear-gradient(100deg, #eff6ff, #faf5ff);
}

.header-ai-heading span {
    display: block;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
}

.header-ai-heading small {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: #64748b;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-ai-list {
    max-height: 310px;
    overflow-y: auto;
}

.header-ai-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    color: inherit;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.header-ai-item:hover {
    background: #f8fafc;
}

.header-ai-image {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    overflow: hidden;
    border-radius: 9px;
    background: #f1f5f9;
    color: #94a3b8;
}

.header-ai-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header-ai-content {
    display: grid;
    min-width: 0;
    flex: 1;
    gap: 1px;
}

.header-ai-content strong,
.header-ai-content small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-ai-content strong {
    color: #0f172a;
    font-size: 13px;
}

.header-ai-content small {
    color: #64748b;
    font-size: 11px;
}

.header-ai-content b {
    color: #dc2626;
    font-size: 12px;
}

.header-ai-item > .fa-chevron-right {
    color: #94a3b8;
    font-size: 11px;
}

.header-ai-all-results {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-top: 1px solid #edf2f7;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    color: var(--color-dark);
    transition: all 0.2s ease;
}

.action-cart-btn:hover {
    background: #f1f5f9;
    border-color: var(--color-border-hover);
    color: var(--color-primary);
}

.cart-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 17px;
}

.badge-cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: var(--color-danger);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    line-height: 1;
    min-width: 18px;
    text-align: center;
}

/* User Menu Pill */
.header-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px 4px 5px;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.header-user-pill:hover {
    background: #f1f5f9;
    border-color: var(--color-border-hover);
}

.user-avatar-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

.user-name-text {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--color-dark);
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.caret-icon {
    font-size: 11px;
    color: var(--color-text-muted);
}

/* User Dropdown */
.user-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #ffffff;
    min-width: 230px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    z-index: 1050;
    overflow: hidden;
    animation: dropdownFade 0.2s ease;
}

.user-dropdown-menu.show {
    display: block;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-dropdown-header {
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid var(--color-border);
}

.dropdown-item-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13.5px;
    color: #334155;
    transition: background-color 0.15s ease;
}

.dropdown-item-link:hover {
    background-color: #f1f5f9;
    color: var(--color-primary);
}

.dropdown-item-link.admin-entry-link {
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-weight: 600;
}

.dropdown-divider-line {
    height: 1px;
    background-color: var(--color-border);
    margin: 4px 0;
}

/* Auth Buttons */
.header-auth-btn {
    font-size: 13.5px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.header-login-btn {
    background: transparent;
    color: var(--color-dark);
    border: 1px solid var(--color-border);
}

.header-login-btn:hover {
    background: #f1f5f9;
    border-color: var(--color-border-hover);
    color: var(--color-primary);
}

.header-register-btn {
    background: var(--color-primary);
    color: #ffffff;
    border: 1px solid var(--color-primary);
}

.header-register-btn:hover {
    background: var(--color-primary-hover);
    color: #ffffff;
}

/* Category Navigation */
.header-nav {
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}

/*
 * Desktop compact layout
 * Giữ nội dung ở một độ rộng đọc thoải mái trên màn hình lớn thay vì kéo giãn
 * theo toàn bộ viewport. Tablet và mobile vẫn dùng breakpoint Bootstrap mặc định.
 */
@media (min-width: 1400px) {
    .header > .container,
    .header-category-panel > .container,
    .main-content > .container,
    .footer > .container {
        max-width: 1200px;
    }
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    padding: 6px 16px;
    white-space: nowrap;
}

.nav-list li a {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    font-size: 13.5px;
    font-weight: 500;
    color: #475569;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.nav-list li a:hover {
    background: #f1f5f9;
    color: var(--color-primary);
}

.nav-list li.active a {
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-weight: 600;
}

.nav-list .sale-link {
    color: var(--color-danger) !important;
    font-weight: 600;
}

.nav-list .sale-link:hover {
    background: var(--color-danger-light) !important;
}

/* =========================================================
   3. TOAST NOTIFICATIONS (TS-TOAST)
   ========================================================= */
.ts-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.ts-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 310px;
    max-width: 420px;
    padding: 14px 18px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
    border-left: 5px solid var(--color-primary);
    animation: tsSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ts-toast-success { border-left-color: var(--color-success); }
.ts-toast-error   { border-left-color: var(--color-danger); }
.ts-toast-warning { border-left-color: var(--color-warning); }
.ts-toast-info    { border-left-color: #0284c7; }

.ts-toast-icon {
    font-size: 20px;
}
.ts-toast-success .ts-toast-icon { color: var(--color-success); }
.ts-toast-error .ts-toast-icon   { color: var(--color-danger); }
.ts-toast-warning .ts-toast-icon { color: var(--color-warning); }
.ts-toast-info .ts-toast-icon    { color: #0284c7; }

.ts-toast-body {
    flex: 1;
    font-size: 14px;
    line-height: 1.45;
    color: var(--color-dark);
}

.ts-toast-close {
    border: none;
    background: transparent;
    font-size: 18px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
}

.ts-toast-close:hover {
    color: var(--color-dark);
}

.ts-toast-hide {
    animation: tsSlideOut 0.25s forwards ease-in;
}

@keyframes tsSlideIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes tsSlideOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(40px); }
}

/* =========================================================
   4. PRODUCT GRID & CARD (E-COMMERCE STANDARD)
   ========================================================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}

.product-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.product-img,
.product-img-box {
    width: 100%;
    height: 210px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    position: relative;
}

.product-img img,
.product-img-box img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-danger);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 2;
}

.stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 2;
}

.product-name {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--color-dark);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
}

.price-sale {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-danger);
}

.price-original {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: line-through;
}

/* =========================================================
   5. VARIANTS, SPECS & STATUS BADGES
   ========================================================= */
.variant-selector {
    margin: 16px 0;
}

.variant-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
    background: #ffffff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.variant-pill:hover {
    border-color: var(--color-primary);
}

.variant-pill.active {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-weight: 600;
}

.variant-pill.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    text-decoration: line-through;
    border-color: #cbd5e1;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.specs-table tr:nth-child(even) {
    background: #f8fafc;
}

.specs-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
}

.specs-table td.spec-key {
    width: 35%;
    font-weight: 600;
    color: #475569;
}

/* Status Badges */
.badge-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.badge-status-pending,
.badge-status-processing,
.badge-status-unpaid {
    background: var(--color-warning-light);
    color: #b45309;
}

.badge-status-confirmed,
.badge-status-shipped,
.badge-status-delivered,
.badge-status-paid,
.badge-status-active {
    background: var(--color-success-light);
    color: #047857;
}

.badge-status-cancelled,
.badge-status-suspended,
.badge-status-inactive {
    background: var(--color-danger-light);
    color: #be123c;
}

/* Pagination */
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 32px 0 16px;
}

.page-btn {
    border: 1px solid var(--color-border);
    background: #ffffff;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.page-btn:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: var(--color-border-hover);
    color: var(--color-primary);
}

.page-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
    font-weight: 600;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* =========================================================
   6. FOOTER
   ========================================================= */
.footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 48px 0 24px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 32px;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-col p {
    font-size: 13.5px;
    line-height: 1.6;
    color: #94a3b8;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 13.5px;
    color: #94a3b8;
    transition: color 0.15s ease;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1e293b;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.footer-socials a:hover {
    background: var(--color-primary);
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 575px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   7. RESPONSIVE HEADER & GLOBAL FEEDBACK
   ========================================================= */
@media (max-width: 991.98px) {
    .header-main {
        flex-wrap: wrap;
        gap: 12px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .search-bar {
        order: 3;
        flex: 0 0 100%;
        max-width: none;
    }

    .category-mega-surface {
        grid-template-columns: 1fr;
    }

    .category-mega-explore {
        border-top: 1px solid var(--color-border);
        border-left: 0;
    }
}

@media (max-width: 575.98px) {
    .header-main {
        gap: 8px;
        padding: 10px 12px;
    }

    .logo,
    .logo i {
        font-size: 20px;
    }

    .header-actions {
        gap: 8px;
        margin-left: auto;
    }

    .action-cart-btn {
        gap: 0;
        padding: 8px 10px;
    }

    .header-auth-actions {
        gap: 6px !important;
    }

    .header-auth-btn {
        min-height: 36px;
        padding: 7px 9px;
        font-size: 12px;
    }

    .header-login-btn span,
    .header-user-pill .user-name-text,
    .header-user-pill .caret-icon {
        display: none;
    }

    .header-user-pill {
        min-height: 36px;
        padding: 3px;
    }

    .search-bar {
        padding-left: 12px;
    }

    .header-category-toggle {
        min-height: 36px;
        padding: 7px 10px;
        font-size: 12px;
    }

    .header-category-panel {
        padding: 8px 12px 16px;
    }

    .category-mega-main,
    .category-mega-explore {
        padding: 20px;
    }

    .category-menu-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        margin-top: 14px;
    }

    .category-menu-link {
        min-height: 48px;
        gap: 8px;
        padding: 8px;
        font-size: 12px;
    }

    .category-menu-icon {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        font-size: 12px;
    }

    .category-menu-arrow {
        display: none;
    }

    .nav-list {
        gap: 2px;
        padding: 6px 12px;
    }

    .nav-list li a {
        padding: 7px 10px;
        font-size: 13px;
    }

    .ts-toast-container {
        top: 12px;
        right: 12px;
        left: 12px;
    }

    .ts-toast {
        width: 100%;
        min-width: 0;
        max-width: none;
        padding: 12px 14px;
    }
}
