/* ============================================
   ResellerMart BD - Main Stylesheet
   Orange & White Theme
   ============================================ */

:root {
    --primary: #FF6B00;
    --primary-dark: #E05500;
    --primary-light: #FF8C2F;
    --primary-bg: #FFF5EE;
    --secondary: #FFB347;
    --accent: #FF4500;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-medium: #555;
    --text-light: #888;
    --border: #e8e8e8;
    --shadow: 0 2px 15px rgba(255,107,0,0.1);
    --shadow-lg: 0 8px 30px rgba(255,107,0,0.2);
    --radius: 12px;
    --radius-sm: 8px;
    --header-height: 56px;
    --bottom-nav-height: 64px;
    --font: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font);
    background: #f5f5f5;
    color: var(--text-dark);
    min-height: 100vh;
    padding-top: var(--header-height);
    padding-bottom: calc(var(--bottom-nav-height) + 10px);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
input, button, select, textarea { font-family: var(--font); }

/* ============ HEADER ============ */
.main-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
}
.header-inner {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 12px;
    gap: 10px;
}
.menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
}
.menu-btn:hover { background: rgba(255,255,255,0.15); }
.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 700;
    font-size: 17px;
    flex: 1;
}
.logo-icon {
    background: rgba(255,255,255,0.2);
    width: 34px; height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-right {
    display: flex;
    gap: 4px;
}
.header-icon {
    position: relative;
    color: white;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-icon:hover { background: rgba(255,255,255,0.15); }
.header-icon .badge {
    position: absolute;
    top: 3px; right: 3px;
    background: #ff1744;
    color: white;
    font-size: 9px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ============ SLIDE MENU ============ */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.overlay.show { opacity: 1; pointer-events: all; }

.slide-menu {
    position: fixed;
    top: 0; left: -300px;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 1200;
    overflow-y: auto;
    transition: left 0.3s cubic-bezier(.25,.8,.25,1);
    box-shadow: 3px 0 20px rgba(0,0,0,0.2);
}
.slide-menu.open { left: 0; }

.menu-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
}
.menu-header button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}
.menu-header button:hover { background: rgba(255,255,255,0.2); }

.menu-user-info {
    padding: 16px;
    background: var(--primary-bg);
    border-bottom: 2px solid var(--primary);
}
.user-avatar {
    width: 60px; height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--primary);
    background: white;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-details strong { display: block; font-size: 15px; margin-bottom: 4px; }
.role-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.role-badge.admin { background: #ff1744; color: white; }
.role-badge.reseller { background: var(--primary); color: white; }
.role-badge.customer { background: #2196F3; color: white; }
.user-meta small { display: block; font-size: 11px; color: var(--text-medium); margin-bottom: 2px; }
.profile-progress {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    margin: 8px 0 4px;
    overflow: hidden;
}
.progress-bar { height: 100%; background: var(--primary); border-radius: 3px; transition: width 0.5s; }

.guest-menu { text-align: center; padding: 8px 0; }
.guest-icon { font-size: 50px; color: #ccc; display: block; margin-bottom: 10px; }
.btn-menu-login, .btn-menu-reg {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin: 4px;
}
.btn-menu-login { background: var(--primary); color: white; }
.btn-menu-reg { background: white; color: var(--primary); border: 2px solid var(--primary); }

.menu-list { list-style: none; padding: 8px 0; }
.menu-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--text-dark);
    transition: all 0.2s;
}
.menu-list li a:hover, .menu-list li a.active {
    background: var(--primary-bg);
    color: var(--primary);
    border-right: 3px solid var(--primary);
}
.menu-list li a i { width: 18px; color: var(--primary); }
.menu-divider { height: 1px; background: var(--border); margin: 4px 0; }
.logout-link { color: #e53935 !important; }
.logout-link i { color: #e53935 !important; }

/* ============ MAIN CONTENT ============ */
.main-content { min-height: calc(100vh - var(--header-height) - var(--bottom-nav-height)); }

/* ============ FLASH MESSAGES ============ */
.flash-message {
    position: fixed;
    top: calc(var(--header-height) + 8px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    max-width: 90vw;
    transition: opacity 0.5s;
    white-space: nowrap;
}
.flash-success { background: #43a047; color: white; }
.flash-error { background: #e53935; color: white; }
.flash-info { background: #1976D2; color: white; }
.flash-warning { background: #F57C00; color: white; }
.flash-message button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    margin-left: 8px;
    opacity: 0.7;
}

/* ============ BANNER ============ */
.hero-banner {
    width: 100%;
    overflow: hidden;
    position: relative;
}
.hero-banner img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.hero-banner-placeholder {
    background: linear-gradient(135deg, var(--primary) 0%, #FF8C00 50%, var(--secondary) 100%);
    padding: 30px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}
.hero-banner-placeholder::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 300px; height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}
.banner-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
}
.banner-subtitle {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.5;
}
.banner-btn {
    display: inline-block;
    margin-top: 14px;
    background: white;
    color: var(--primary);
    padding: 10px 28px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ============ SOCIAL LINKS ============ */
.social-links {
    background: white;
    padding: 16px;
    display: flex;
    justify-content: space-around;
    border-bottom: 3px solid var(--primary-bg);
}
.social-link {
    width: 50px; height: 50px;
    border-radius: 50%;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s;
}
.social-link:hover { transform: scale(1.1); }
.social-link.facebook { border-color: #1877F2; color: #1877F2; }
.social-link.youtube { border-color: #FF0000; color: #FF0000; }
.social-link.telegram { border-color: #0088cc; color: #0088cc; }
.social-link.whatsapp { border-color: #25D366; color: #25D366; }

/* ============ SECTION HEADERS ============ */
.section-header {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    color: white;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ============ QUICK LINKS / SERVICES GRID ============ */
.quick-links-grid {
    background: white;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.quick-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.2s;
}
.quick-link-item:hover { transform: translateY(-2px); }
.quick-link-icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(255,107,0,0.3);
}
.quick-link-item span {
    font-size: 11px;
    text-align: center;
    color: var(--text-medium);
    line-height: 1.2;
}

/* ============ REFERRAL SECTION ============ */
.referral-section {
    background: white;
    padding: 14px 16px;
    margin-bottom: 8px;
}
.referral-link-box {
    background: var(--primary-bg);
    border: 1.5px dashed var(--primary);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.referral-link-box input {
    flex: 1;
    border: none;
    background: none;
    font-size: 12px;
    color: var(--text-medium);
    outline: none;
}
.copy-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}

/* ============ CATEGORIES ROW ============ */
.categories-scroll {
    background: white;
    padding: 12px 0;
    overflow-x: auto;
    display: flex;
    gap: 12px;
    padding-left: 16px;
    scrollbar-width: none;
}
.categories-scroll::-webkit-scrollbar { display: none; }
.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 70px;
    cursor: pointer;
}
.cat-icon {
    width: 54px; height: 54px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--border);
}
.cat-icon img { width: 100%; height: 100%; object-fit: cover; }
.cat-name { font-size: 11px; text-align: center; color: var(--text-medium); }

/* ============ PRODUCTS GRID ============ */
.products-section {
    background: white;
    margin-top: 8px;
    padding-bottom: 10px;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border);
}
.product-card {
    background: white;
    padding: 10px;
    position: relative;
    transition: box-shadow 0.2s;
}
.product-card:hover { box-shadow: var(--shadow); }
.product-thumb {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: #f9f9f9;
    margin-bottom: 8px;
}
.product-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wishlist-btn {
    position: absolute;
    top: 8px; right: 8px;
    background: white;
    border: none;
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    cursor: pointer;
    color: #ccc;
    font-size: 14px;
    z-index: 1;
}
.wishlist-btn.active, .wishlist-btn:hover { color: #e53935; }
.product-name {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}
.product-original-price {
    font-size: 11px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 4px;
}
.btn-order {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: var(--font);
}
.btn-order:hover { background: var(--primary-dark); }

/* ============ BOTTOM NAV ============ */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--bottom-nav-height);
    background: white;
    display: flex;
    border-top: 1px solid var(--border);
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-light);
    font-size: 10px;
    padding: 6px 0;
    transition: color 0.2s;
    cursor: pointer;
}
.nav-item i { font-size: 20px; }
.nav-item.active, .nav-item:hover { color: var(--primary); }
.nav-item.active i { transform: scale(1.1); }

/* ============ FORMS ============ */
.form-container {
    background: white;
    padding: 20px 16px;
    margin: 10px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.form-group { margin-bottom: 16px; }
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font);
    transition: border-color 0.2s;
    outline: none;
    color: var(--text-dark);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,107,0,0.1); }
.form-control.error { border-color: #e53935; }
.form-hint { font-size: 11px; color: var(--text-light); margin-top: 4px; }
.form-error { font-size: 11px; color: #e53935; margin-top: 4px; }

.btn-primary {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.2s;
    letter-spacing: 0.3px;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,107,0,0.3); }
.btn-primary:active { transform: none; }

.btn-secondary {
    padding: 10px 20px;
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.2s;
}
.btn-secondary:hover { background: var(--primary); color: white; }

/* ============ DASHBOARD ============ */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 12px;
    background: var(--primary-bg);
}
.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}
.stat-card.green { border-left-color: #43a047; }
.stat-card.blue { border-left-color: #1976D2; }
.stat-card.purple { border-left-color: #7B1FA2; }
.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
}
.stat-card.green .stat-value { color: #43a047; }
.stat-card.blue .stat-value { color: #1976D2; }
.stat-card.purple .stat-value { color: #7B1FA2; }
.stat-label { font-size: 11px; color: var(--text-light); }

/* ============ CARDS ============ */
.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin: 10px;
}
.card-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============ TABLE ============ */
.table-wrapper { overflow-x: auto; }
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.data-table th {
    background: var(--primary-bg);
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-medium);
    white-space: nowrap;
    border-bottom: 2px solid var(--primary);
}
.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.data-table tr:hover td { background: var(--primary-bg); }

/* ============ STATUS BADGES ============ */
.badge-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}
.badge-pending { background: #FFF3E0; color: #E65100; }
.badge-confirmed { background: #E3F2FD; color: #1565C0; }
.badge-processing { background: #F3E5F5; color: #6A1B9A; }
.badge-shipped { background: #E8F5E9; color: #2E7D32; }
.badge-delivered { background: #E8F5E9; color: #1B5E20; border: 1px solid #43A047; }
.badge-cancelled { background: #FFEBEE; color: #C62828; }
.badge-returned { background: #FBE9E7; color: #BF360C; }
.badge-paid { background: #E8F5E9; color: #2E7D32; }
.badge-failed { background: #FFEBEE; color: #C62828; }

/* ============ PAGE HEADER ============ */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 16px;
    color: white;
}
.page-header h1 { font-size: 18px; font-weight: 700; }
.page-header p { font-size: 12px; opacity: 0.85; margin-top: 2px; }

/* ============ EMPTY STATE ============ */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}
.empty-state i { font-size: 48px; margin-bottom: 12px; color: var(--border); }
.empty-state h3 { font-size: 16px; margin-bottom: 6px; color: var(--text-medium); }
.empty-state p { font-size: 13px; }

/* ============ LOADING ============ */
.loading-spinner {
    display: flex;
    justify-content: center;
    padding: 30px;
}
.spinner {
    width: 36px; height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ PRODUCT DETAIL ============ */
.product-detail-images {
    position: relative;
}
.main-image {
    width: 100%;
    height: 300px;
    object-fit: contain;
    background: #f9f9f9;
}
.product-info { padding: 16px; }
.product-detail-name { font-size: 17px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.product-detail-price { font-size: 26px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.product-detail-original {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 8px;
}
.price-row { display: flex; align-items: center; margin-bottom: 12px; }
.stock-info { font-size: 13px; color: var(--text-medium); margin-bottom: 16px; }
.qty-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.qty-btn {
    width: 36px; height: 36px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    background: none;
    color: var(--primary);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.qty-input {
    width: 56px;
    text-align: center;
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 6px;
    font-size: 16px;
    font-weight: 600;
}
.action-btns { display: flex; gap: 10px; margin-top: 10px; }
.btn-cart {
    flex: 1;
    padding: 13px;
    border: 2px solid var(--primary);
    color: var(--primary);
    background: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font);
}
.btn-buy { flex: 2; }

/* ============ ORDER FORM ============ */
.order-form-section {
    background: white;
    margin: 10px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.order-summary {
    background: var(--primary-bg);
    padding: 14px;
    border-bottom: 1px solid var(--border);
}
.order-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 4px 0;
}
.order-summary-row.total {
    font-weight: 700;
    font-size: 16px;
    color: var(--primary);
    border-top: 1px solid var(--primary);
    padding-top: 8px;
    margin-top: 4px;
}

/* ============ ADMIN PANEL ============ */
.admin-sidebar {
    position: fixed;
    top: var(--header-height);
    left: -260px;
    width: 250px;
    height: calc(100vh - var(--header-height));
    background: #1a1a2e;
    z-index: 900;
    overflow-y: auto;
    transition: left 0.3s;
}
.admin-sidebar.open { left: 0; }
.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.admin-nav-item:hover, .admin-nav-item.active {
    color: white;
    background: rgba(255,107,0,0.15);
    border-left-color: var(--primary);
}
.admin-nav-item i { width: 18px; }

/* ============ PAGINATION ============ */
.pagination-nav { padding: 16px; display: flex; justify-content: center; }
.pagination { display: flex; gap: 4px; list-style: none; }
.page-item .page-link {
    display: block;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-medium);
}
.page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ============ SEARCH BAR ============ */
.search-bar {
    padding: 10px 12px;
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: var(--header-height);
    z-index: 100;
}
.search-input-wrap {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 25px;
    padding: 8px 14px;
    gap: 8px;
}
.search-input-wrap i { color: var(--text-light); }
.search-input-wrap input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 14px;
    font-family: var(--font);
}

/* ============ CART PAGE ============ */
.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}
.cart-item-img {
    width: 70px; height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 13px; font-weight: 500; margin-bottom: 4px; line-height: 1.3; }
.cart-item-price { font-size: 15px; font-weight: 700; color: var(--primary); }
.cart-item-remove { color: #e53935; cursor: pointer; font-size: 16px; padding: 4px; }

/* ============ CHECKOUT STICKY ============ */
.checkout-bar {
    background: white;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    position: sticky;
    bottom: var(--bottom-nav-height);
    z-index: 99;
}

/* ============ UTILITY ============ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-success { color: #43a047; }
.text-danger { color: #e53935; }
.text-muted { color: var(--text-light); }
.fw-bold { font-weight: 700; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.p-2 { padding: 16px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.w-100 { width: 100%; }

@media (min-width: 768px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .dashboard-stats { grid-template-columns: repeat(4, 1fr); }
    .quick-links-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (min-width: 1024px) {
    .products-grid { grid-template-columns: repeat(4, 1fr); }
    .admin-sidebar { left: 0; }
}
