/* Tinics Wholesale & Retail Ordering System - Custom styles for Tinics Wholesale & Retail System */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-radius: 0.375rem;
    --box-shadow: 0 0.1rem 0.2rem rgba(0, 0, 0, 0.05);
    --card-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    --transition: all 0.15s ease-in-out;
}

/* Mobile-First Navigation */
.navbar {
    min-height: 60px;
    z-index: 1030;
}

.brand-icon {
    font-size: 14px;
    font-weight: 700;
}

.mode-badge {
    font-size: 0.75rem;
    font-weight: 600;
}

.user-avatar {
    font-size: 12px;
    font-weight: 600;
}

.notification-dropdown {
    border: none;
    box-shadow: var(--hover-shadow);
    border-radius: 12px;
}

.cart-count, .notification-count {
    min-width: 18px;
    height: 18px;
    font-size: 0.6rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Product Catalog Layout */
.product-catalog-container {
    display: flex;
    min-height: calc(100vh - 60px);
    position: relative;
}

.category-sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid #dee2e6;
    position: fixed;
    left: -280px;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
    z-index: 1020;
    transition: left 0.3s ease;
}

.category-sidebar.show {
    left: 0;
}

.category-item {
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: var(--transition);
}

.category-item:hover {
    background-color: #f8f9fa;
}

.category-item.active {
    background-color: #e3f2fd;
    border-left: 3px solid var(--primary-color);
}

.main-content {
    flex: 1;
    padding: 0;
    margin-left: 0;
}

.search-filter-header {
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #dee2e6;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

.product-image-container {
    position: relative;
    overflow: hidden;
    height: 140px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image {
    transform: scale(1.02);
}

.product-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
}

.product-badges .badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

.product-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-actions {
    opacity: 1;
}

.product-actions .btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-info {
    padding: 10px;
}

.product-category {
    margin-bottom: 4px;
}

.product-name {
    font-size: 0.85rem;
    line-height: 1.2;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-sku {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 4px;
}

.product-rating {
    margin-bottom: 6px;
}

.stars {
    font-size: 0.85rem;
}

.rating-text {
    font-size: 0.8rem;
    margin-left: 4px;
}

.product-pricing {
    margin-bottom: 6px;
}

.current-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 0.75rem;
    margin-left: 2px;
}

.tier-price {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--success-color);
}

.product-stock {
    margin-bottom: 6px;
}

.product-features {
    margin-bottom: 16px;
}

.product-features .badge {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 3px 6px;
    margin-right: 4px;
    margin-bottom: 4px;
    border: 1px solid #dee2e6;
}

.product-actions-bottom .btn {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
}

.add-to-cart-btn {
    background: var(--primary-color);
    border: none;
}

.quote-btn, .buy-now-btn {
    font-size: 0.8rem;
    padding: 8px 6px;
}

/* Filter and Sort */
.filter-sort-bar {
    border-top: 1px solid #f0f0f0;
}

.btn-group-sm .btn {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* Loading States */
.loading-indicator {
    padding: 40px 0;
}

.spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Responsive Design */
@media (min-width: 992px) {
    .category-sidebar {
        position: static;
        left: 0;
        width: 280px;
        height: auto;
        min-height: calc(100vh - 60px);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .product-catalog-container {
        display: flex;
    }
}

@media (max-width: 991.98px) {
    .product-image-container {
        height: 140px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-name {
        font-size: 0.9rem;
    }
    
    .current-price {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .search-filter-header {
        padding: 16px;
    }
    
    .products-container {
        padding: 0 16px;
    }
    
    .product-image-container {
        height: 130px;
    }
    
    .col-12:nth-child(odd) .product-card {
        margin-right: 8px;
    }
    
    .col-12:nth-child(even) .product-card {
        margin-left: 8px;
    }
}

/* Modal Enhancements */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: var(--hover-shadow);
}

.modal-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 20px 24px 16px;
}

.modal-body {
    padding: 20px 24px;
}

.modal-footer {
    border-top: 1px solid #f0f0f0;
    padding: 16px 24px 20px;
}

.filter-section h6 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-check-label {
    font-size: 0.9rem;
    cursor: pointer;
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1010;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Search Enhancement */
.search-bar {
    border-bottom: 1px solid #dee2e6;
}

.input-group-text {
    border-color: #dee2e6;
}

.form-control {
    border-color: #dee2e6;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Global Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5;
  font-size: 0.9rem;
}

.btn {
  border-radius: var(--border-radius);
  transition: var(--transition);
  font-weight: 500;
  font-size: 0.875rem;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Navigation */
.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.nav-link {
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Product Cards */
.product-card {
  transition: var(--transition);
  border: 1px solid #e9ecef;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.price-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(45deg, var(--primary-color), var(--info-color));
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.875rem;
}

.wholesale-badge {
  background: linear-gradient(45deg, var(--success-color), #20c997);
}

.stock-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

/* Cart & Checkout */
.cart-item {
  border-bottom: 1px solid #e9ecef;
  padding: 1rem 0;
}

.cart-item:last-child {
  border-bottom: none;
}

.quantity-input {
  width: 80px;
  text-align: center;
}

.checkout-summary {
  background: var(--light-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  position: sticky;
  top: 20px;
}

/* Dashboard Cards */
.dashboard-card {
  background: linear-gradient(135deg, var(--primary-color), var(--info-color));
  color: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.dashboard-card.success {
  background: linear-gradient(135deg, var(--success-color), #20c997);
}

.dashboard-card.warning {
  background: linear-gradient(135deg, var(--warning-color), #fd7e14);
}

.dashboard-card.danger {
  background: linear-gradient(135deg, var(--danger-color), #e83e8c);
}

.dashboard-icon {
  font-size: 2.5rem;
  opacity: 0.8;
}

/* Forms */
.form-control, .form-select {
  border-radius: var(--border-radius);
  border: 1px solid #ced4da;
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-label {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

/* Tables */
.table {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.table thead th {
  background: var(--primary-color);
  color: white;
  font-weight: 600;
  border: none;
}

.table tbody tr:hover {
  background-color: rgba(13, 110, 253, 0.05);
}

/* Status Badges */
.status-pending {
  background: var(--warning-color);
  color: var(--dark-color);
}

.status-processing {
  background: var(--info-color);
  color: white;
}

.status-shipped {
  background: var(--primary-color);
  color: white;
}

.status-delivered {
  background: var(--success-color);
  color: white;
}

.status-cancelled {
  background: var(--danger-color);
  color: white;
}

/* Dropzone Customization */
.dropzone {
  border: 2px dashed var(--primary-color);
  border-radius: var(--border-radius);
  background: rgba(13, 110, 253, 0.05);
  transition: var(--transition);
}

.dropzone:hover {
  background: rgba(13, 110, 253, 0.1);
}

.dropzone .dz-message {
  color: var(--primary-color);
  font-weight: 500;
}

/* Loading States */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--primary-color);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .product-card {
    margin-bottom: 1rem;
  }
  
  .checkout-summary {
    position: static;
    margin-top: 2rem;
  }
  
  .dashboard-card {
    text-align: center;
  }
  
  .table-responsive {
    font-size: 0.875rem;
  }
}

/* PWA Styles */
.pwa-install-prompt {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-color);
  color: white;
  padding: 1rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1050;
  display: none;
}

.pwa-install-prompt.show {
  display: block;
  animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Chart Containers */
.chart-container {
  position: relative;
  height: 300px;
  margin: 1rem 0;
}

/* Swiper Customization */
.swiper-pagination-bullet-active {
  background: var(--primary-color);
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--primary-color);
}

/* Utility Classes */
.text-gradient {
  background: linear-gradient(45deg, var(--primary-color), var(--info-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-hover {
  transition: var(--transition);
}

.shadow-hover:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.border-gradient {
  border: 2px solid;
  border-image: linear-gradient(45deg, var(--primary-color), var(--info-color)) 1;
}

/* Navigation Menu Styles */
.nav-menu {
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  visibility: visible !important;
}

.nav-link-custom {
  display: inline-flex !important;
  align-items: center;
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  color: #000000 !important;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
  white-space: nowrap;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.nav-link-custom:hover {
  background-color: #f8f9fa;
  color: #007bff !important;
  text-decoration: none;
  border-color: #dee2e6;
}

.nav-link-custom.active {
  background-color: #007bff !important;
  color: white !important;
  border-color: #007bff;
}

.nav-link-custom.active:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Mobile Navigation Styles */
.mobile-nav-menu {
  width: 100%;
}

.mobile-nav-item {
  display: flex !important;
  align-items: center;
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: #000000 !important;
  border-bottom: 1px solid #f1f3f4;
  transition: all 0.2s ease;
}

.mobile-nav-item:hover {
  background-color: #f8f9fa;
  color: #007bff !important;
  text-decoration: none;
}

.mobile-nav-item.active {
  background-color: #007bff !important;
  color: white !important;
}

.mobile-nav-item i {
  width: 20px;
  margin-right: 12px;
  text-align: center;
}

.nav-section {
  padding: 0.5rem 0;
}

.nav-section-title {
  padding: 0.75rem 1.5rem 0.5rem;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  color: #495057;
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.mobile-nav-item:hover {
  background-color: #f8f9fa;
  color: var(--primary-color);
  text-decoration: none;
}

.mobile-nav-item.active {
  background-color: rgba(13, 110, 253, 0.1);
  color: var(--primary-color);
  border-right: 3px solid var(--primary-color);
}

.mobile-nav-item i {
  width: 20px;
  margin-right: 12px;
  font-size: 1rem;
}

.mobile-nav-item span {
  flex: 1;
}

/* Dashboard Cards Matching Design */
.dashboard-stats-card {
  background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
  color: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.dashboard-stats-card:hover {
  transform: translateY(-2px);
}

.dashboard-stats-card.orders {
  background: linear-gradient(135deg, #4285f4 0%, #1976d2 100%);
}

.dashboard-stats-card.cart {
  background: linear-gradient(135deg, #34a853 0%, #2e7d32 100%);
}

.dashboard-stats-card.status {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.dashboard-stats-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1;
}

.dashboard-stats-label {
  font-size: 0.9rem;
  opacity: 0.9;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dashboard-stats-icon {
  font-size: 2rem;
  opacity: 0.3;
  position: absolute;
  top: 20px;
  right: 20px;
}

/* Order Management Styles */
.order-card {
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.order-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.order-status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.order-status-delivered {
  background-color: #d4edda;
  color: #155724;
}

.order-status-shipped {
  background-color: #cce7ff;
  color: #004085;
}

.order-status-processing {
  background-color: #fff3cd;
  color: #856404;
}

.order-status-pending {
  background-color: #f8d7da;
  color: #721c24;
}

.order-status-cancelled {
  background-color: #f5c6cb;
  color: #721c24;
}

/* Featured Products Section */
.featured-products-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
}

.featured-products-header {
  text-align: center;
  margin-bottom: 24px;
}

.featured-products-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 8px;
}

.featured-products-subtitle {
  color: #6c757d;
  font-size: 1rem;
}

.loading-products {
  text-align: center;
  padding: 40px 0;
}

.loading-products i {
  font-size: 3rem;
  color: #dee2e6;
  margin-bottom: 16px;
}

.loading-products h5 {
  color: #6c757d;
  margin-bottom: 8px;
}

.loading-products p {
  color: #adb5bd;
  font-size: 0.9rem;
}

.view-all-products-btn {
  background: var(--primary-color);
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.view-all-products-btn:hover {
  background: #0b5ed7;
  transform: translateY(-1px);
}

/* Order Status Badges */
.order-status-pending {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.order-status-confirmed {
    background-color: #17a2b8 !important;
    color: #fff !important;
}

.order-status-processing {
    background-color: #007bff !important;
    color: #fff !important;
}

.order-status-shipped {
    background-color: #fd7e14 !important;
    color: #fff !important;
}

.order-status-delivered {
    background-color: #28a745 !important;
    color: #fff !important;
}

.order-status-cancelled {
    background-color: #dc3545 !important;
    color: #fff !important;
}

.order-status-returned {
    background-color: #6c757d !important;
    color: #fff !important;
}

/* Payment Status Badges */
.payment-status-paid {
    background-color: #28a745 !important;
    color: #fff !important;
}

.payment-status-unpaid {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.payment-status-failed {
    background-color: #dc3545 !important;
    color: #fff !important;
}

.payment-status-refunded {
    background-color: #17a2b8 !important;
    color: #fff !important;
}

.payment-status-pending {
    background-color: #6c757d !important;
    color: #fff !important;
}

/* Order Cards */
.order-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e9ecef !important;
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

.order-details {
    font-size: 0.9rem;
}

/* Dashboard Stats Cards Variations */
.dashboard-stats-card.orders-total {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.dashboard-stats-card.orders-pending {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #333;
}

.dashboard-stats-card.orders-delivered {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
}

.dashboard-stats-card.orders-value {
    background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%);
    color: #333;
}

/* Orders View Toggle */
.orders-view {
    transition: opacity 0.3s ease;
}

/* Admin Dashboard Styles */
.dashboard-stats-card.admin-orders {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.dashboard-stats-card.admin-revenue {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.dashboard-stats-card.admin-products {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.dashboard-stats-card.admin-users {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.dashboard-stats-change {
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.admin-quick-action {
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
    height: 100%;
}

.system-status-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.system-status-item:last-child {
    border-bottom: none;
}

.low-stock-item {
    transition: background-color 0.2s ease;
}

.low-stock-item:hover {
    background-color: #fff3cd;
}

.support-ticket-item {
    transition: background-color 0.2s ease;
}

.support-ticket-item:hover {
    background-color: #e7f3ff;
}

/* Promotional Banner Section (Jumia-style) */
.promotional-banner-section {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.promo-row {
    align-items: stretch;
}

/* Categories Panel */
.categories-panel {
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px;
}

.categories-panel:hover {
    box-shadow: var(--hover-shadow);
}

.categories-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 1rem 1.25rem;
    font-weight: 600;
    flex-shrink: 0;
}

.categories-header h5 {
    font-size: 1.1rem;
}

.categories-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f3f4;
    text-decoration: none;
    color: #212529;
    transition: var(--transition);
    gap: 0.75rem;
}

.category-item:last-child {
    border-bottom: none;
}

.category-item:hover {
    background-color: #f8f9fa;
    padding-left: 1.25rem;
    color: #dc3545;
}

.category-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border-radius: 6px;
    font-size: 1rem;
    flex-shrink: 0;
}

.category-item:hover .category-icon {
    transform: scale(1.1);
}

.category-name {
    flex: 1;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-item .fa-chevron-right {
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Discount Slider Panel */
.discount-slider-panel {
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.discount-slider-panel #discountSlider {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.5rem;
}

.carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: rgba(255, 255, 255, 0.9);
    width: 10px;
    height: 10px;
}

.carousel-indicators button:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

.discount-slide {
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.discount-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.discount-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem;
    animation: slideInScale 0.6s ease-out;
}

@keyframes slideInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.discount-product-name {
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
    color: white;
    margin: 0;
    max-width: 90%;
    line-height: 1.3;
}

.discount-badges-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.2) 100%);
    padding: 2rem 2rem 1.5rem 2rem;
    clip-path: polygon(0 5%, 100% 40%, 100% 100%, 0 100%);
}

.discount-badges {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    justify-content: flex-start;
}

.badge-old-price {
    font-size: 0.95rem;
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.badge-new-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6b6b;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.badge-save {
    font-size: 1rem;
    font-weight: 600;
    color: #51cf66;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.grab-deal-btn {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.5);
    z-index: 10;
}

.grab-deal-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.7);
    background-color: #c82333;
    border-color: #c82333;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: var(--transition);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Featured Scroll Panel */
.featured-scroll-panel {
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px;
}

.featured-scroll-header {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
    padding: 1rem 1.25rem;
    font-weight: 600;
    flex-shrink: 0;
}

.featured-scroll-header h5 {
    font-size: 1.1rem;
}

.featured-scroll-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 0;
}

/* Custom scrollbar styling */
.featured-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.featured-scroll-container::-webkit-scrollbar-track {
    background: #f1f3f4;
    border-radius: 3px;
}

.featured-scroll-container::-webkit-scrollbar-thumb {
    background: #dc3545;
    border-radius: 3px;
}

.featured-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #c82333;
}

.featured-scroll-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: #212529;
    transition: var(--transition);
    border: 1px solid transparent;
    animation: slideUpSmooth 0.6s ease-out backwards;
    flex-shrink: 0;
}

@keyframes slideUpSmooth {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.featured-scroll-item:hover {
    background-color: #f8f9fa;
    border-color: #dc3545;
    transform: translateX(4px);
}

.featured-scroll-image {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f1f3f4;
}

.featured-scroll-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-scroll-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.featured-scroll-info h6 {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #212529;
}

.featured-scroll-price {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.featured-scroll-price .price {
    font-weight: 700;
    color: #dc3545;
    font-size: 0.9rem;
}

.featured-scroll-price .original-price {
    font-size: 0.75rem;
    color: #6c757d;
    text-decoration: line-through;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-menu {
    display: none !important;
  }
  
  .dashboard-stats-number {
    font-size: 2rem;
  }
  
  .order-card {
    padding: 16px;
  }
  
  .featured-products-section {
    padding: 20px 16px;
  }
  
  .order-card .btn {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
  }

  /* Promotional Banner Mobile Adjustments */
  .promotional-banner-section {
    margin-bottom: 2rem;
  }

  .promo-row {
    align-items: auto;
  }

  /* Hide categories and featured on mobile */
  .my-featured, .my-categories {
    display: none;
  }

  .col-lg-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .categories-panel {
    height: auto;
  }

  .categories-header {
    padding: 0.75rem 1rem;
  }

  .categories-header h5 {
    font-size: 1rem;
  }

  .categories-list {
    max-height: 250px;
  }

  .category-item {
    padding: 0.6rem 0.8rem;
  }

  .category-icon {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }

  .category-name {
    font-size: 0.85rem;
  }

  .discount-slider-panel {
    height: auto;
  }

  .discount-slide {
    height: 280px;
  }

  .discount-content {
    padding: 1.5rem;
  }

  .discount-product-name {
    font-size: 1.1rem;
    max-width: 100%;
  }

  .discount-badges-container {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    clip-path: polygon(0 10%, 100% 40%, 100% 100%, 0 100%);
  }

  .badge-old-price {
    font-size: 0.85rem;
  }

  .badge-new-price {
    font-size: 1.2rem;
  }

  .badge-save {
    font-size: 0.9rem;
  }

  .grab-deal-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.8rem;
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .carousel-indicators {
    bottom: 10px;
  }

  .carousel-indicators button {
    width: 6px;
    height: 6px;
  }

  .carousel-indicators button.active {
    width: 8px;
    height: 8px;
  }

  .featured-scroll-panel {
    height: auto;
  }

  .featured-scroll-header {
    padding: 0.75rem 1rem;
  }

  .featured-scroll-header h5 {
    font-size: 1rem;
  }

  .featured-scroll-image {
    width: 55px;
    height: 55px;
  }

  .featured-scroll-info h6 {
    font-size: 0.8rem;
  }

  .featured-scroll-price .price {
    font-size: 0.8rem;
  }

  .featured-scroll-price .original-price {
    font-size: 0.7rem;
  }
}
