:root {
  --main-theme-color: #ff0000; /* Default Red color agar database load na ho */
}

/* Ab jahan bhi aapka primary color use hota hai, wahan yeh variable laga dein */
.navbar, .btn-primary, footer {
  background-color: var(--main-theme-color) !important;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #1a6fc4;
  --primary-dark: #1558a0;
  --primary-light: #e8f1fb;
  --secondary: #ff6b35;
  --secondary-dark: #e55a25;
  --accent: #28a745;
  --danger: #dc3545;
  --warning: #ffc107;
  --dark: #1a1a2e;
  --dark2: #16213e;
  --gray: #6c757d;
  --gray-light: #f8f9fa;
  --gray-border: #dee2e6;
  --white: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --shadow: 0 2px 15px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
}
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, sans-serif; color: var(--text); background: var(--gray-light); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

/* ===== UTILITIES ===== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.grid { display: grid; }
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-danger { color: var(--danger); }
.text-gray { color: var(--gray); }
.text-success { color: var(--accent); }
.fw-bold { font-weight: 700; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.p-2 { padding: 16px; } .p-3 { padding: 24px; }
.rounded { border-radius: var(--radius); }
.badge { display: inline-block; padding: 3px 8px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: #d4edda; color: var(--accent); }
.badge-danger { background: #f8d7da; color: var(--danger); }
.badge-warning { background: #fff3cd; color: #856404; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border: none; border-radius: var(--radius); cursor: pointer; font-size: 14px; font-weight: 600; transition: var(--transition); text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,111,196,0.3); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-secondary:hover { background: var(--secondary-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #c82333; }
.btn-success { background: var(--accent); color: var(--white); }
.btn-success:hover { background: #218838; }
.btn-gray { background: var(--gray-border); color: var(--text); }
.btn-gray:hover { background: #ccc; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; color: var(--text); }
.form-control { width: 100%; padding: 10px 14px; border: 1.5px solid var(--gray-border); border-radius: var(--radius); font-size: 14px; transition: var(--transition); background: var(--white); color: var(--text); }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,111,196,0.1); }
.form-control.is-invalid { border-color: var(--danger); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ===== HEADER / NAVBAR ===== */
.header { background: var(--dark); color: var(--white); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.header-top { background: var(--primary); padding: 6px 0; font-size: 12px; }
.header-top .container { display: flex; justify-content: space-between; align-items: center; }
.header-main { padding: 14px 0; }
.header-main .container { display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 60px; object-fit: contain; }
.logo-text { font-size: 22px; font-weight: 800; color: var(--primary-dark); line-height: 1; }
.logo-text span { color: var(--secondary); }
.logo-sub { font-size: 10px; color: rgba(255,255,255,0.6); }
.search-bar { flex: 1; display: flex; max-width: 500px; margin: 0 auto; }
.search-bar input { flex: 1; padding: 10px 16px; border: none; border-radius: var(--radius) 0 0 var(--radius); font-size: 14px; }
.search-bar input:focus { outline: none; }
.search-btn { padding: 10px 18px; background: var(--secondary); color: var(--white); border: none; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; font-size: 16px; transition: var(--transition); }
.search-btn:hover { background: var(--secondary-dark); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-action-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 12px; color: var(--white); cursor: pointer; border-radius: var(--radius); transition: var(--transition); font-size: 10px; background: none; border: none; position: relative; }
.header-action-btn:hover { background: rgba(255,255,255,0.1); }
.header-action-btn i { font-size: 20px; }
.cart-count { position: absolute; top: 2px; right: 6px; background: var(--secondary); color: var(--white); border-radius: 50%; width: 18px; height: 18px; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.navbar { background: var(--dark2); border-top: 1px solid rgba(255,255,255,0.05); }
.navbar .container { display: flex; align-items: center; gap: 4px; overflow-x: auto; padding: 0 16px; }
.nav-link { padding: 12px 16px; color: rgba(255,255,255,0.85); font-size: 13px; font-weight: 500; white-space: nowrap; transition: var(--transition); border-bottom: 3px solid transparent; }
.nav-link:hover, .nav-link.active { color: var(--white); border-bottom-color: var(--secondary); }
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-hover); min-width: 200px; z-index: 100; padding: 8px 0; }
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-item { display: block; padding: 10px 16px; color: var(--text); font-size: 13px; transition: var(--transition); }
.dropdown-item:hover { background: var(--primary-light); color: var(--primary); }

/* ===== HERO / BANNER ===== */
.hero { background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 50%, #0f3460 100%); color: var(--white); padding: 60px 0; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; width: 400px; height: 400px; background: var(--primary); border-radius: 50%; opacity: 0.05; top: -100px; right: -100px; }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-badge { display: inline-block; background: var(--secondary); color: var(--white); padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-bottom: 12px; }
.hero h1 { font-size: 42px; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.hero h1 span { color: var(--secondary); }
.hero p { font-size: 16px; color: rgba(255,255,255,0.8); margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-img { text-align: center; position: relative; }
.hero-img img { width: 100%; max-width: 400px; border-radius: var(--radius-lg); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.hero-stats { display: flex; gap: 24px; margin-top: 24px; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 28px; font-weight: 800; color: var(--secondary); }
.hero-stat .label { font-size: 12px; color: rgba(255,255,255,0.7); }

/* ===== OFFER BANNERS ===== */
.offer-strip { background: var(--secondary); color: var(--white); text-align: center; padding: 10px; font-size: 14px; font-weight: 600; }
.offer-strip span { background: rgba(255,255,255,0.2); padding: 2px 10px; border-radius: 20px; margin: 0 8px; }

/* ===== SECTION TITLES ===== */
.section { padding: 50px 0; }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title h2 { font-size: 30px; font-weight: 800; color: var(--dark); margin-bottom: 8px; position: relative; display: inline-block; }
.section-title h2::after { content: ''; position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); width: 50px; height: 3px; background: var(--secondary); border-radius: 2px; }
.section-title p { color: var(--gray); margin-top: 16px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.section-header h2 { font-size: 22px; font-weight: 700; }

/* ===== CATEGORY CARDS ===== */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.category-card { background: var(--white); border-radius: var(--radius-lg); padding: 24px 16px; text-align: center; cursor: pointer; transition: var(--transition); box-shadow: var(--shadow); border: 2px solid transparent; }
.category-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.category-icon { width: 60px; height: 60px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 26px; transition: var(--transition); }
.category-card:hover .category-icon { background: var(--primary); }
.category-card .name { font-weight: 600; font-size: 13px; color: var(--text); }
.category-card .count { font-size: 12px; color: var(--gray); margin-top: 4px; }

/* ===== PRODUCT CARDS ===== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.product-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); position: relative; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.product-badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
.product-badge .badge { font-size: 11px; padding: 4px 10px; }
.product-wishlist { position: absolute; top: 10px; right: 10px; z-index: 2; background: var(--white); border: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: var(--transition); color: var(--gray); }
.product-wishlist:hover { color: var(--danger); transform: scale(1.1); }
.product-img { position: relative; overflow: hidden; background: #f0f0f0; }
.product-img img { width: 100%; height: 220px; object-fit: cover; transition: var(--transition); }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--transition); }
.product-card:hover .product-overlay { opacity: 1; }
.overlay-btns { display: flex; gap: 8px; }
.overlay-btn { background: var(--white); color: var(--primary); border: none; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; transition: var(--transition); }
.overlay-btn:hover { background: var(--primary); color: var(--white); }
.product-info { padding: 14px; }
.product-category { font-size: 11px; color: var(--primary); text-transform: uppercase; font-weight: 600; margin-bottom: 4px; }
.product-name { font-weight: 600; font-size: 14px; margin-bottom: 8px; color: var(--dark); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.stars { color: var(--warning); font-size: 13px; }
.rating-count { font-size: 12px; color: var(--gray); }
.product-price { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.price-current { font-size: 18px; font-weight: 800; color: var(--primary); }
.price-original { font-size: 13px; color: var(--gray); text-decoration: line-through; }
.price-discount { font-size: 12px; color: var(--accent); font-weight: 600; }
.product-actions { display: flex; gap: 8px; }
.btn-cart { flex: 1; padding: 8px 12px; font-size: 13px; }
.stock-info { font-size: 12px; margin-bottom: 8px; }
.in-stock { color: var(--accent); }
.out-of-stock { color: var(--danger); }
.soldout-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 3; background: rgba(255,255,255,0.7); }
.soldout-overlay img { width: 80px; opacity: 0.8; }

/* ===== PRODUCT DETAIL ===== */
.product-detail { background: var(--white); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.product-images { position: relative; }
.main-img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--gray-border); overflow: hidden; }
.main-img img { width: 100%; height: 400px; object-fit: cover; }
.thumb-imgs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.thumb-img { width: 70px; height: 70px; border-radius: var(--radius); overflow: hidden; border: 2px solid transparent; cursor: pointer; }
.thumb-img.active, .thumb-img:hover { border-color: var(--primary); }
.thumb-img img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info h1 { font-size: 26px; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.product-detail-price { display: flex; align-items: baseline; gap: 12px; margin: 16px 0; flex-wrap: wrap; }
.detail-price-current { font-size: 32px; font-weight: 800; color: var(--primary); }
.detail-price-original { font-size: 18px; color: var(--gray); text-decoration: line-through; }
.detail-discount { background: var(--accent); color: var(--white); padding: 3px 10px; border-radius: 20px; font-size: 14px; font-weight: 600; }
.quantity-control { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.qty-btn { width: 36px; height: 36px; border: 2px solid var(--gray-border); background: var(--white); border-radius: var(--radius); cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.qty-btn:hover { border-color: var(--primary); color: var(--primary); }
.qty-input { width: 56px; height: 36px; text-align: center; border: 2px solid var(--gray-border); border-radius: var(--radius); font-size: 16px; font-weight: 600; }
.qty-input:focus { outline: none; border-color: var(--primary); }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.product-meta { border-top: 1px solid var(--gray-border); padding-top: 16px; margin-top: 20px; }
.meta-row { display: flex; gap: 8px; margin-bottom: 8px; font-size: 14px; }
.meta-label { color: var(--gray); font-weight: 600; min-width: 80px; }
.tab-container { margin-top: 40px; }
.tabs { display: flex; border-bottom: 2px solid var(--gray-border); margin-bottom: 20px; }
.tab-btn { padding: 12px 20px; border: none; background: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--gray); border-bottom: 3px solid transparent; margin-bottom: -2px; transition: var(--transition); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== BREADCRUMB ===== */
.breadcrumb { background: var(--white); padding: 12px 0; border-bottom: 1px solid var(--gray-border); font-size: 13px; }
.breadcrumb-list { display: flex; align-items: center; gap: 8px; }
.breadcrumb-list .sep { color: var(--gray); }
.breadcrumb-list a { color: var(--primary); }
.breadcrumb-list .current { color: var(--gray); }

/* ===== FILTERS (SIDEBAR) ===== */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; margin-top: 24px; }
.filter-sidebar { background: var(--white); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); height: fit-content; }
.filter-section { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--gray-border); }
.filter-section:last-child { border-bottom: none; margin-bottom: 0; }
.filter-title { font-weight: 700; margin-bottom: 14px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.filter-option { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; cursor: pointer; font-size: 13px; }
.filter-option input { accent-color: var(--primary); width: 15px; height: 15px; cursor: pointer; }
.price-range { display: flex; gap: 10px; align-items: center; }
.price-range input { width: 80px; padding: 6px 10px; border: 1.5px solid var(--gray-border); border-radius: var(--radius); font-size: 13px; }
.filter-actions { display: flex; gap: 8px; margin-top: 20px; }

/* ===== CART ===== */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; }
.cart-table { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.cart-table table { width: 100%; border-collapse: collapse; }
.cart-table th { background: var(--gray-light); padding: 14px 16px; text-align: left; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray); }
.cart-table td { padding: 16px; border-bottom: 1px solid var(--gray-border); vertical-align: middle; }
.cart-product { display: flex; align-items: center; gap: 14px; }
.cart-product img { width: 70px; height: 70px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--gray-border); }
.cart-product-name { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.cart-product-cat { font-size: 12px; color: var(--gray); }
.cart-qty { display: flex; align-items: center; gap: 8px; }
.qty-minus, .qty-plus { width: 28px; height: 28px; border: 1.5px solid var(--gray-border); background: var(--white); border-radius: 4px; cursor: pointer; font-size: 16px; }
.qty-minus:hover, .qty-plus:hover { border-color: var(--primary); }
.cart-qty-num { width: 40px; text-align: center; font-weight: 600; border: 1.5px solid var(--gray-border); border-radius: 4px; padding: 4px; font-size: 14px; }
.cart-remove { background: none; border: none; color: var(--gray); cursor: pointer; font-size: 18px; transition: var(--transition); }
.cart-remove:hover { color: var(--danger); }
.cart-summary { background: var(--white); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); height: fit-content; position: sticky; top: 100px; }
.cart-summary h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--gray-border); }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; }
.summary-row.total { font-size: 18px; font-weight: 700; border-top: 2px solid var(--gray-border); padding-top: 14px; margin-top: 14px; color: var(--primary); }
.coupon-form { display: flex; gap: 8px; margin: 16px 0; }
.coupon-form input { flex: 1; }
.empty-cart { text-align: center; padding: 60px 20px; }
.empty-cart i { font-size: 64px; color: var(--gray-border); margin-bottom: 16px; }
.empty-cart h3 { font-size: 22px; margin-bottom: 8px; }
.empty-cart p { color: var(--gray); margin-bottom: 24px; }

/* ===== CHECKOUT ===== */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; }
.checkout-form { background: var(--white); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.checkout-section { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--gray-border); }
.checkout-section h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.checkout-section h3 .step { background: var(--primary); color: var(--white); width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.payment-method { display: flex; flex-direction: column; gap: 12px; }
.payment-option { display: flex; align-items: center; gap: 12px; padding: 14px; border: 2px solid var(--gray-border); border-radius: var(--radius); cursor: pointer; transition: var(--transition); }
.payment-option:hover { border-color: var(--primary); }
.payment-option input[type="radio"] { accent-color: var(--primary); width: 18px; height: 18px; }
.payment-option.selected { border-color: var(--primary); background: var(--primary-light); }
.order-summary-panel { background: var(--white); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); height: fit-content; position: sticky; top: 100px; }
.order-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--gray-border); }
.order-item img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--gray-border); }
.order-item-info { flex: 1; }
.order-item-name { font-size: 13px; font-weight: 600; }
.order-item-qty { font-size: 12px; color: var(--gray); }
.order-item-price { font-size: 14px; font-weight: 700; }

/* ===== AUTH PAGES ===== */
.auth-page { min-height: 100vh; background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%); display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-card { background: var(--white); border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 440px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo img { height: 50px; object-fit: contain; }
.auth-card h2 { text-align: center; font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.auth-card .subtitle { text-align: center; color: var(--gray); margin-bottom: 28px; font-size: 14px; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; }
.auth-footer a { color: var(--primary); font-weight: 600; }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--gray); font-size: 13px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-border); }

/* ===== ORDERS ===== */
.order-card { background: var(--white); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.order-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: gap; }
.order-id { font-weight: 700; color: var(--primary); }
.order-date { font-size: 13px; color: var(--gray); }
.order-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.status-pending { background: #fff3cd; color: #856404; }
.status-processing { background: #cce5ff; color: #004085; }
.status-shipped { background: #d1ecf1; color: #0c5460; }
.status-delivered { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }
.order-items-preview { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.order-thumb { width: 60px; height: 60px; border-radius: var(--radius); border: 1px solid var(--gray-border); object-fit: cover; }
.order-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--gray-border); }
.order-total { font-size: 18px; font-weight: 700; color: var(--primary); }

/* ===== ADMIN PANEL ===== */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--dark); color: var(--white); padding: 0; }
.admin-sidebar-logo { padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); text-align: center; }
.admin-sidebar-logo img { height: 40px; }
.admin-sidebar-logo p { color: rgba(255,255,255,0.6); font-size: 12px; margin-top: 4px; }
.admin-nav { padding: 12px 0; }
.admin-nav-item { display: flex; align-items: center; gap: 12px; padding: 13px 20px; color: rgba(255,255,255,0.7); cursor: pointer; transition: var(--transition); font-size: 14px; font-weight: 500; }
.admin-nav-item:hover, .admin-nav-item.active { background: var(--primary); color: var(--white); }
.admin-nav-item i { width: 20px; text-align: center; }
.admin-main { background: var(--gray-light); overflow: hidden; }
.admin-header { background: var(--white); padding: 16px 24px; border-bottom: 1px solid var(--gray-border); display: flex; justify-content: space-between; align-items: center; }
.admin-header h1 { font-size: 22px; font-weight: 700; }
.admin-content { padding: 24px; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 28px; }
.stat-card { background: var(--white); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); border-left: 4px solid var(--primary); display: flex; justify-content: space-between; align-items: center; }
.stat-card.green { border-left-color: var(--accent); }
.stat-card.orange { border-left-color: var(--secondary); }
.stat-card.purple { border-left-color: #6f42c1; }
.stat-info .label { font-size: 13px; color: var(--gray); margin-bottom: 6px; }
.stat-info .value { font-size: 28px; font-weight: 800; }
.stat-icon { font-size: 36px; opacity: 0.15; }
.data-table { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.data-table-header { padding: 16px 20px; border-bottom: 1px solid var(--gray-border); display: flex; justify-content: space-between; align-items: center; }
.data-table-header h3 { font-size: 16px; font-weight: 700; }
.data-table table { width: 100%; border-collapse: collapse; }
.data-table th { background: var(--gray-light); padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray); }
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--gray-border); font-size: 14px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--gray-light); }
.admin-panel-content { display: none; }
.admin-panel-content.active { display: block; }
.admin-form-card { background: var(--white); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); margin-bottom: 24px; }
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000; align-items: center; justify-content: center; }
.modal.show { display: flex; }
.modal-content { background: var(--white); border-radius: var(--radius-lg); padding: 28px; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-header h3 { font-size: 18px; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--gray); }

/* ===== FOOTER ===== */
.footer { background: var(--dark); color: rgba(255,255,255,0.8); padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-brand img { height: 45px; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,0.6); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.social-icon { width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transition); font-size: 15px; }
.social-icon:hover { background: var(--primary); }
.footer-section h4 { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-links a:hover { color: var(--white); padding-left: 6px; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 10px; font-size: 13px; color: rgba(255,255,255,0.6); align-items: flex-start; }
.footer-contact i { color: var(--secondary); margin-top: 2px; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-pay img { height: 30px; opacity: 0.8; }
.footer-trust img { height: 25px; opacity: 0.8; margin-left: 16px; }

/* ===== ALERTS ===== */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container { position: fixed; top: 80px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--white); border-radius: var(--radius); padding: 14px 18px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); display: flex; align-items: center; gap: 10px; font-size: 14px; min-width: 280px; border-left: 4px solid var(--primary); animation: slideIn 0.3s ease; }
.toast.success { border-left-color: var(--accent); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== LOADING ===== */
.loading { display: flex; align-items: center; justify-content: center; padding: 60px; }
.spinner { width: 40px; height: 40px; border: 4px solid var(--gray-border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; }
.page-btn { width: 36px; height: 36px; border: 1.5px solid var(--gray-border); background: var(--white); border-radius: var(--radius); cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.page-btn:hover, .page-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ===== RATINGS ===== */
.review-card { border: 1px solid var(--gray-border); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.review-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.reviewer-name { font-weight: 600; font-size: 14px; }
.review-date { font-size: 12px; color: var(--gray); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
}
@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { font-size: 28px; }
  .hero-img { display: none; }
  .header-main .container { flex-wrap: wrap; gap: 10px; }
  .search-bar { order: 3; max-width: 100%; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { justify-content: center; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .header-action-btn span { display: none; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr 1fr; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .product-img img { height: 160px; }
}
/* Pura Menu Stack Vertical Karne K Liye */
.sidebar-menu-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.menu-item-wrapper {
  width: 100%;
  display: block;
}

/* Common Sidebar Links and Button Core Design */
.sidebar-menu-list .menu-item {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  padding: 14px 20px;
  color: #a3aed0; /* Text color matching your dashboard */
  background: transparent;
  border: none;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  text-align: left;
  font-family: inherit;
  transition: all 0.2s ease;
}

/* Hover effects */
.sidebar-menu-list .menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

/* Icons Size Control */
.sidebar-menu-list .menu-item .icon {
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
}
/* --- THEME POPUP MODAL STYLING --- */
.theme-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6); /* Black transparent overlay */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999; /* Sabse upar dikhane ke liye */
  backdrop-filter: blur(4px); /* Premium blur effect */
}

.theme-modal-content {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  color: #333333;
  animation: fadeInModal 0.3s ease;
}

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

.theme-modal-content .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #eeeeee;
  padding-bottom: 12px;
}

.theme-modal-content .modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #111;
}

.theme-modal-content .close-btn {
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: #888;
  line-height: 1;
}

.theme-modal-content .close-btn:hover {
  color: #000;
}

.theme-modal-content .modal-body {
  padding: 10px 0;
}

.theme-modal-content .modal-body label {
  font-size: 14px;
  font-weight: 500;
  display: block;
  margin-bottom: 8px;
  color: #555;
}

.theme-modal-content .color-picker-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
}

#themeColorPicker {
  border: 1px solid #ccc;
  width: 60px;
  height: 40px;
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  background: none;
}

.theme-modal-content .color-code {
  font-family: monospace;
  font-size: 15px;
  background: #f5f6fa;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #e1e4e8;
  color: #333;
}

.theme-modal-content .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
  border-top: 1px solid #eeeeee;
  padding-top: 15px;
}
/* Global Button Styles for Mahi Mart */
.mahi-btn {
    background-color: #0056b3; /* Professional Royal Blue */
    color: #ffffff !important;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.mahi-btn:hover {
    background-color: #003d80; /* Darker blue on hover for depth */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Footer specific adjustments if needed */
footer .mahi-btn {
    background-color: #004494; /* Slightly different shade for footer contrast */
}

