/* ===================================
   E-Ticaret - Ana Stil Dosyası
   Pet Garden ilhamlı profesyonel tasarım
   =================================== */

:root {
  --primary: #0d6efd;
  --primary-dark: #0a58ca;
  --primary-light: #e7f1ff;
  --secondary: #ff6b35;
  --dark: #1a1a2e;
  --muted: #6c757d;
  --bg-body: #f5f7fa;
  --bg-white: #ffffff;
  --border-color: #e9ecef;
  --text-dark: #222;
  --text-muted: #6c757d;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

html, body { height: 100%; }
body {
  padding: 0;
  margin: 0;
  background: var(--bg-body);
  color: var(--text-dark);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content { flex: 1; }

/* ===================================
   Üst Bilgi Çubuğu (Top Bar)
   =================================== */
.top-bar {
  background: var(--dark);
  color: #bbb;
  font-size: 0.78rem;
  padding: 6px 0;
}
.top-bar a {
  color: #ccc;
  text-decoration: none;
  margin-left: 16px;
  transition: color 0.2s;
}
.top-bar a:hover { color: #fff; }
.top-bar i { margin-right: 3px; }

/* Theme Toggle Button */
.theme-toggle-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #f0c040;
  cursor: pointer;
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: 20px;
  transition: all 0.3s ease;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}
.theme-toggle-btn:hover {
  color: #ffd666;
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.35);
  transform: scale(1.05);
}
.theme-toggle-btn:active {
  transform: scale(0.95);
}
.theme-toggle-btn i {
  transition: transform 0.3s ease;
}
.theme-toggle-btn:hover i {
  transform: rotate(20deg);
}

/* ===================================
   Ana Header
   =================================== */
.main-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 100;
}

.header-logo {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.header-logo:hover { color: var(--primary-dark); }
.header-logo i { font-size: 1.7rem; }

/* Arama Barı */
.header-search .input-group {
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.header-search-category {
  max-width: 170px;
  border: none !important;
  border-right: 1px solid var(--border-color) !important;
  border-radius: 0 !important;
  font-size: 0.85rem;
  background: #f8f9fa;
}
.header-search-category:focus { box-shadow: none; }
.header-search-input {
  border: none !important;
  font-size: 0.92rem;
  padding: 10px 14px;
}
.header-search-input:focus { box-shadow: none; }
.header-search-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 0 !important;
  font-size: 1.1rem;
}
.header-search-btn:hover { background: var(--primary-dark); color: #fff; }

/* Header İkonları */
.header-icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}
.header-icon {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: var(--text-dark);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.2s;
  position: relative;
  white-space: nowrap;
}
.header-icon i { font-size: 1.2rem; }
.header-icon:hover { background: var(--primary-light); color: var(--primary); }
.header-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-dark);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}
.header-icon-btn i { font-size: 1.2rem; }
.header-icon-btn:hover { background: #fee2e2; color: #dc3545; }
.header-icon-label { font-size: 0.78rem; }

.header-cart { position: relative; }
.header-cart-badge {
  position: absolute;
  top: 0;
  right: 4px;
  background: var(--secondary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ===================================
   Kategori Navigasyon Barı
   =================================== */
.category-nav {
  background: var(--primary);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.category-nav::-webkit-scrollbar { height: 0; }
.category-nav-inner {
  display: flex;
  align-items: center;
  white-space: nowrap;
  min-height: 44px;
}
.category-nav-link {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.category-nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.category-nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.15);
  border-bottom-color: #fff;
}

/* ===================================
   Hero Banner / Slider
   =================================== */
.hero-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero-slide {
  min-height: 320px;
  display: flex;
  align-items: center;
  padding: 50px 60px;
  position: relative;
}
.hero-slide-1 {
  background: linear-gradient(135deg, #0d6efd 0%, #0a4dd6 40%, #083ba8 100%);
}
.hero-slide-2 {
  background: linear-gradient(135deg, #ff6b35 0%, #e85d26 40%, #c44d1c 100%);
}
.hero-slide-3 {
  background: linear-gradient(135deg, #198754 0%, #157347 40%, #0f5132 100%);
}
.hero-slide-content {
  position: relative;
  z-index: 2;
  max-width: 500px;
}
.hero-slide-content h2 {
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.hero-slide-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 20px;
}
.hero-btn {
  font-weight: 600;
  padding: 10px 28px;
  border-radius: var(--radius-md);
}

.carousel-indicators { margin-bottom: 12px; }
.carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0.5;
}
.carousel-indicators button.active { opacity: 1; }

/* ===================================
   Section Headers
   =================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}
.section-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}
.section-link:hover { color: var(--primary-dark); }

/* ===================================
   Yeni Ürünler Carousel
   =================================== */
.product-carousel-wrapper {
  position: relative;
}
.product-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 4px 16px 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.product-carousel::-webkit-scrollbar { display: none; }

.product-carousel-item {
  min-width: 190px;
  max-width: 190px;
  flex-shrink: 0;
}
.product-carousel-card {
  display: block;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text-dark);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}
.product-carousel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--text-dark);
}
.product-carousel-img {
  height: 160px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-carousel-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.product-carousel-info {
  padding: 12px;
  text-align: center;
}
.product-code {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}
.product-carousel-name {
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0 0 6px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-carousel-price {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

/* Carousel Nav Buttons */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-white);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.carousel-nav-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.carousel-nav-prev { left: -12px; }
.carousel-nav-next { right: -12px; }

/* ===================================
   Kategori Kartları
   =================================== */
.category-cards {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.category-cards::-webkit-scrollbar { display: none; }
.category-card-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}
.category-card-item i {
  color: var(--primary);
  font-size: 1rem;
}
.category-card-item:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.category-card-item:hover i { color: #fff; }

/* ===================================
   Filtre Paneli (Sol Sidebar)
   =================================== */
.filter-panel {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 16px;
}
.filter-group {
  margin-bottom: 16px;
}
.filter-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  display: block;
}
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ===================================
   Ürün Kartları (Grid)
   =================================== */
.product-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-card-img-link { display: block; }
.product-card-img {
  height: 180px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}
.product-card-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}
.product-card:hover .product-card-img img {
  transform: scale(1.05);
}
.no-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #ccc;
  font-size: 2.5rem;
}
.product-card-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card-code {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.product-card-title {
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0 0 4px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}
.product-card-title a {
  color: var(--text-dark);
  text-decoration: none;
}
.product-card-title a:hover { color: var(--primary); }
.product-card-category {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}
.product-card-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.product-card-form {
  margin-top: auto;
}
.product-card-form .btn {
  font-size: 0.8rem;
  padding: 7px 12px;
}

/* ===================================
   Ürün Detay Sayfası
   =================================== */
.product-detail-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.product-detail-img {
  height: 400px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}
.product-detail-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.product-detail-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}
.product-detail-stock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
}
.stock-available {
  background: #d1e7dd;
  color: #0f5132;
}
.stock-low {
  background: #fff3cd;
  color: #664d03;
}

/* ===================================
   Breadcrumb
   =================================== */
.breadcrumb-nav {
  padding: 12px 0;
}
.breadcrumb-nav a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.85rem;
}
.breadcrumb-nav span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===================================
   Sayfa Kartları (Genel)
   =================================== */
.card {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.card:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}
.card-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
}

/* ===================================
   Pagination
   =================================== */
.pagination .page-link {
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  padding: 8px 14px;
  font-size: 0.85rem;
}
.pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
}

/* ===================================
   Footer
   =================================== */
.site-footer {
  margin-top: auto;
}
.footer-main {
  background: var(--dark);
  color: #ccc;
  padding: 40px 0 30px;
}
.footer-title {
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
  font-size: 1.2rem;
}
.footer-title i {
  color: var(--primary);
  margin-right: 6px;
}
.footer-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #aaa;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.2s;
}
.footer-social a:hover {
  background: var(--primary);
  color: #fff;
}
.footer-subtitle {
  color: #fff;
  font-weight: 600;
  margin-bottom: 14px;
  font-size: 0.95rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-contact li {
  color: #aaa;
  font-size: 0.85rem;
}
.footer-contact i {
  color: var(--primary);
  margin-right: 6px;
  width: 16px;
}
.footer-bottom {
  background: #111122;
  padding: 14px 0;
  text-align: center;
}
.footer-bottom p {
  margin: 0;
  color: #777;
  font-size: 0.82rem;
}

/* ===================================
   Genel Yardımcılar
   =================================== */
.price-badge {
  font-size: 1rem;
  color: #fff;
  background: var(--primary);
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 991px) {
  .hero-slide { min-height: 240px; padding: 30px 30px; }
  .hero-slide-content h2 { font-size: 1.5rem; }
  .product-card-img { height: 140px; }
  .carousel-nav-btn { display: none; }
}

@media (max-width: 767px) {
  .top-bar-left { display: none; }
  .hero-slide { min-height: 200px; padding: 24px 20px; }
  .hero-slide-content h2 { font-size: 1.2rem; }
  .hero-slide-content p { font-size: 0.88rem; }
  .hero-btn { padding: 8px 18px; font-size: 0.85rem; }
  .product-carousel-item { min-width: 155px; max-width: 155px; }
  .product-carousel-img { height: 120px; }
  .product-card-img { height: 120px; }
  .product-card-body { padding: 10px; }
  .product-card-title { font-size: 0.8rem; }
  .product-card-price { font-size: 0.9rem; }
  .section-title { font-size: 1.05rem; }
  .filter-panel { margin-bottom: 16px; }
  .footer-main { padding: 28px 0 20px; }
  .product-detail-img { height: 250px; }
}

@media (max-width: 575px) {
  .header-logo { font-size: 1.2rem; }
  .header-logo i { font-size: 1.3rem; }
  .header-icon { padding: 4px 6px; }
  .header-icon i { font-size: 1.15rem; }
  .header-icon-label { display: none; }
  .category-nav-link { padding: 8px 12px; font-size: 0.75rem; }
}

/* ===================================
   Sticky Header
   =================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* ===================================
   Enhanced Product Cards
   =================================== */
.product-card {
  border: 1px solid var(--border-color);
  position: relative;
}
.product-card:hover {
  border-color: var(--primary);
}
.product-badge-outofstock {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 2;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.product-card-price-old {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: 6px;
}
.product-card-price-discount {
  color: #dc3545;
  font-weight: 700;
}
.product-card-savings {
  font-size: 0.7rem;
  color: #198754;
  font-weight: 600;
  display: block;
  margin-top: 2px;
}

/* Quick Add Button Animation */
.product-card-form .btn {
  transition: all 0.3s;
}
.product-card-form .btn:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(13,110,253,0.3);
}

/* ===================================
   Checkout Steps Indicator
   =================================== */
.checkout-steps {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 30px;
  padding: 0;
  list-style: none;
}
.checkout-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
}
.checkout-step.active {
  color: var(--primary);
}
.checkout-step.completed {
  color: #198754;
}
.checkout-step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
}
.checkout-step.active .checkout-step-number {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.checkout-step.completed .checkout-step-number {
  background: #198754;
  border-color: #198754;
  color: #fff;
}
.checkout-step-divider {
  width: 40px;
  height: 2px;
  background: var(--border-color);
  margin: 0 4px;
}
.checkout-step.completed + .checkout-step-divider {
  background: #198754;
}

/* ===================================
   Scroll to Top Button
   =================================== */
.scroll-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 999;
  transition: all 0.3s;
}
.scroll-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}
.scroll-to-top.visible {
  display: flex;
}

/* ===================================
   Checkout Options Cards
   =================================== */
.checkout-option-card {
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  text-align: center;
  transition: all 0.3s;
  text-decoration: none;
  color: var(--text-dark);
  display: block;
  height: 100%;
}
.checkout-option-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  color: var(--text-dark);
}
.checkout-option-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 16px;
}
.checkout-option-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.checkout-option-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.checkout-option-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ===================================
   Guest Checkout Form
   =================================== */
.guest-checkout-form .form-label {
  font-weight: 600;
  font-size: 0.88rem;
}
.guest-checkout-form .form-control {
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.guest-checkout-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13,110,253,0.1);
}
.order-summary-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
}
.order-summary-header {
  background: var(--primary);
  color: #fff;
  padding: 16px 20px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  font-weight: 700;
}
.order-summary-body {
  padding: 20px;
}
.order-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-color);
}
.order-summary-row:last-child {
  border-bottom: none;
}
.order-summary-total {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}

/* ===================================
   Enhanced Mobile
   =================================== */
@media (max-width: 575px) {
  .product-card-form .btn {
    font-size: 0.75rem;
    padding: 6px 10px;
    min-height: 38px;
  }
  .checkout-steps {
    flex-wrap: wrap;
    gap: 4px;
  }
  .checkout-step {
    padding: 6px 12px;
    font-size: 0.78rem;
  }
  .checkout-step-divider {
    width: 20px;
  }
  .checkout-option-card {
    padding: 20px 16px;
  }
}

/* ===================================
   Loading Animation
   =================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.product-card {
  animation: fadeIn 0.3s ease-out;
}

/* ===================================
   Wishlist & Notification Header Icons
   =================================== */
.header-wishlist,
.header-notification { position: relative; }

.header-wishlist-badge,
.header-notification-badge {
  position: absolute;
  top: 0;
  right: 4px;
  background: #dc3545;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.header-wishlist:hover i { color: #dc3545; }
.header-notification:hover i { color: var(--primary); }

/* ===================================
   Product Card Wishlist Heart
   =================================== */
.product-card-wishlist {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
}
.wishlist-btn {
  background: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #999;
  transition: all 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.wishlist-btn:hover {
  color: #dc3545;
  background: #fff;
  transform: scale(1.1);
}
.wishlist-btn.active {
  color: #dc3545;
}
.wishlist-btn.active:hover {
  color: #999;
}
.product-card {
  position: relative;
}

/* ===================================
   Wishlist Page
   =================================== */
.wishlist-card-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* ===================================
   Notification Page
   =================================== */
.notification-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.notification-item {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-white);
  transition: background 0.2s;
}
.notification-item:hover {
  background: #fafbfc;
}
.notification-unread {
  background: #f0f7ff;
  border-left: 3px solid var(--primary);
}
.notification-unread:hover {
  background: #e8f2ff;
}
.notification-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-body);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.notification-content {
  flex: 1;
  min-width: 0;
}
.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 4px;
}
.notification-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-dark);
}
.notification-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.notification-message {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0 0 8px 0;
  line-height: 1.5;
}
.notification-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.notification-actions .btn {
  font-size: 0.75rem;
  padding: 3px 10px;
}

/* ===================================
   Responsive - Wishlist & Notification
   =================================== */
@media (max-width: 768px) {
  .notification-item {
    padding: 12px 14px;
    gap: 10px;
  }
  .notification-icon {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }
  .notification-header {
    flex-direction: column;
    gap: 2px;
  }
  .wishlist-btn {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }
}

/* ===================================
   Koyu Mod (Dark Mode)
   =================================== */
[data-bs-theme="dark"] {
  --bg-body: #121212;
  --bg-white: #1e1e1e;
  --text-dark: #e0e0e0;
  --text-muted: #adb5bd;
  --border-color: #333;
  --dark: #0d0d1a;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.35);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.4);
}

[data-bs-theme="dark"] .top-bar {
  background: #0d0d1a;
}

[data-bs-theme="dark"] .main-header {
  background: var(--bg-white);
  border-bottom-color: var(--border-color);
}

[data-bs-theme="dark"] .header-search-input,
[data-bs-theme="dark"] .header-search-category {
  background: #2a2a2a;
  border-color: #444;
  color: #e0e0e0;
}

[data-bs-theme="dark"] .category-nav {
  background: var(--primary);
}

[data-bs-theme="dark"] .product-card {
  background: var(--bg-white);
  border-color: var(--border-color);
}

[data-bs-theme="dark"] .product-card-title a {
  color: #e0e0e0;
}

[data-bs-theme="dark"] .product-card-category {
  color: var(--text-muted);
}

[data-bs-theme="dark"] .site-footer {
  background: #0d0d1a;
}

[data-bs-theme="dark"] .footer-main {
  background: #0d0d1a;
  color: #ccc;
}

[data-bs-theme="dark"] .footer-bottom {
  background: #080812;
  border-top-color: #222;
}

[data-bs-theme="dark"] .alert {
  border-color: var(--border-color);
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
  background: #2a2a2a;
  border-color: #444;
  color: #e0e0e0;
  color-scheme: dark;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
  background: #2a2a2a;
  border-color: var(--primary);
  color: #e0e0e0;
  box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.15);
}

[data-bs-theme="dark"] .form-select option {
  background: #2a2a2a;
  color: #e0e0e0;
}

[data-bs-theme="dark"] .form-select option:hover,
[data-bs-theme="dark"] .form-select option:checked {
  background: #3a3a4a;
  color: #fff;
}

[data-bs-theme="dark"] .dropdown-menu {
  background: #2a2a2a;
  border-color: #444;
}

[data-bs-theme="dark"] .dropdown-item {
  color: #e0e0e0;
}

[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus {
  background: #3a3a4a;
  color: #fff;
}

[data-bs-theme="dark"] .list-group-item {
  background: var(--bg-white);
  border-color: var(--border-color);
  color: #e0e0e0;
}

[data-bs-theme="dark"] input::placeholder,
[data-bs-theme="dark"] textarea::placeholder {
  color: #777;
}

[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .modal-content {
  background: var(--bg-white);
  border-color: var(--border-color);
}

[data-bs-theme="dark"] .breadcrumb-item a {
  color: var(--text-muted);
}

[data-bs-theme="dark"] .scroll-to-top {
  background: var(--primary);
  color: #fff;
}

/* ===================================
   Product Zoom
   =================================== */
.product-zoom-container {
  position: relative;
  overflow: hidden;
  cursor: crosshair;
}
.product-zoom-img {
  width: 100%;
  height: auto;
  display: block;
  transition: none;
}
.product-zoom-hint {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  pointer-events: none;
  opacity: 0.8;
}
.product-zoom-container:hover .product-zoom-hint { opacity: 0; }
.product-zoom-result {
  display: none;
  position: absolute;
  top: 0;
  left: 105%;
  width: 400px;
  height: 400px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background-repeat: no-repeat;
  background-color: var(--bg-white);
  z-index: 10;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 991px) {
  .product-zoom-result { display: none !important; }
  .product-zoom-hint { display: none; }
  .product-zoom-container { cursor: default; }
}

/* ===================================
   Related Products
   =================================== */
.related-products-section {
  padding-top: 20px;
}

/* ===================================
   Search Autocomplete
   =================================== */
.header-search {
  position: relative;
}
.search-suggestions {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
}
.search-suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-color);
  transition: background 0.15s;
}
.search-suggestion-item:last-child { border-bottom: none; }
.search-suggestion-item:hover { background: var(--primary-light); }
.search-suggestion-img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.search-suggestion-noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  color: #bbb;
  font-size: 1rem;
}
.search-suggestion-name {
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.3;
}
.search-suggestion-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}
[data-bs-theme="dark"] .search-suggestions {
  background: var(--bg-white);
  border-color: var(--border-color);
}
[data-bs-theme="dark"] .search-suggestion-item:hover {
  background: rgba(255,255,255,0.05);
}

/* ===================================
   Toast Notifications
   =================================== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
}
.toast-notification {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  animation: toastSlideIn 0.3s ease;
  position: relative;
  overflow: hidden;
  min-width: 280px;
}
.toast-success {
  background: #d1e7dd;
  color: #0f5132;
  border-left: 4px solid #198754;
}
.toast-danger {
  background: #f8d7da;
  color: #842029;
  border-left: 4px solid #dc3545;
}
.toast-warning {
  background: #fff3cd;
  color: #664d03;
  border-left: 4px solid #ffc107;
}
.toast-info {
  background: #cff4fc;
  color: #055160;
  border-left: 4px solid #0dcaf0;
}
.toast-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}
.toast-body {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 500;
}
.toast-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  opacity: 0.6;
  padding: 0 2px;
  color: inherit;
}
.toast-close:hover { opacity: 1; }
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(0,0,0,0.15);
  animation: toastProgress 4s linear forwards;
}
.toast-danger .toast-progress {
  animation-duration: 8s;
}

@keyframes toastSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toastSlideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}
@keyframes toastProgress {
  from { width: 100%; }
  to { width: 0; }
}

[data-bs-theme="dark"] .toast-success { background: #0f5132; color: #d1e7dd; }
[data-bs-theme="dark"] .toast-danger { background: #842029; color: #f8d7da; }
[data-bs-theme="dark"] .toast-warning { background: #664d03; color: #fff3cd; }
[data-bs-theme="dark"] .toast-info { background: #055160; color: #cff4fc; }

/* ===================================
   Cart Mobile Layout
   =================================== */
.cart-mobile-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 10px;
  background: var(--bg-white);
}
.cart-mobile-item-warning {
  background: #fff3cd;
}
.cart-mobile-info {
  margin-bottom: 8px;
}
.cart-mobile-price {
  font-weight: 600;
  margin-bottom: 8px;
}
.cart-mobile-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.cart-mobile-subtotal {
  text-align: right;
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
  font-size: 0.9rem;
}
.cart-mobile-total {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: var(--bg-white);
  font-size: 0.9rem;
}
.cart-mobile-grand-total {
  border-top: 2px solid var(--border-color);
  padding-top: 8px;
  margin-top: 6px;
}

/* Cart Sticky Checkout */
.cart-sticky-checkout {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-white);
  border-top: 2px solid var(--primary);
  padding: 12px 16px;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
}

/* ===================================
   Checkout Steps
   =================================== */
.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.checkout-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.checkout-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  background: #e9ecef;
  color: #6c757d;
  border: 2px solid #e9ecef;
  transition: all 0.3s;
}
.checkout-step.active .checkout-step-circle {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(13,110,253,0.15);
}
.checkout-step.completed .checkout-step-circle {
  background: #198754;
  color: #fff;
  border-color: #198754;
}
.checkout-step-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6c757d;
}
.checkout-step.active .checkout-step-label { color: var(--primary); }
.checkout-step.completed .checkout-step-label { color: #198754; }
.checkout-step-line {
  width: 50px;
  height: 3px;
  background: #e9ecef;
  margin: 0 6px;
  margin-bottom: 22px;
  border-radius: 2px;
}
.checkout-step-line.completed {
  background: #198754;
}
@media (max-width: 575px) {
  .checkout-step-line { width: 24px; }
  .checkout-step-circle { width: 30px; height: 30px; font-size: 0.75rem; }
  .checkout-step-label { font-size: 0.65rem; }
}

/* ===================================
   View Toggle (Grid/List)
   =================================== */
.view-toggle {
  display: flex;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.view-toggle-btn {
  background: var(--bg-white);
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all 0.2s;
}
.view-toggle-btn:hover { color: var(--primary); }
.view-toggle-btn.active {
  background: var(--primary);
  color: #fff;
}
.view-toggle-btn + .view-toggle-btn {
  border-left: 1px solid var(--border-color);
}

/* Product List View */
.product-list-view .product-card {
  display: flex;
  flex-direction: row;
}
.product-list-view .product-card-img {
  width: 180px;
  min-height: 140px;
  flex-shrink: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.product-list-view .product-card-img img {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.product-list-view .product-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}
.product-list-view .product-card-form {
  max-width: 200px;
}

/* ===================================
   Profile Avatar
   =================================== */
.profile-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
}

/* ===================================
   Add to Cart Animation
   =================================== */
@keyframes flyToCart {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(0.5); }
  100% { opacity: 0; transform: scale(0.1); }
}
.fly-to-cart {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}
.header-cart-badge.pulse {
  animation: badgePulse 0.4s ease;
}
@keyframes badgePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.5); }
  100% { transform: scale(1); }
}

/* ===================================
   Recently Viewed Products
   =================================== */
.recently-viewed-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

/* ===================================
   Quick View Modal
   =================================== */
.quick-view-btn {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.3s;
  z-index: 5;
  white-space: nowrap;
}
.product-card:hover .quick-view-btn {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.quick-view-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
#quickViewModal .modal-body { padding: 0; }
#quickViewModal .qv-img {
  height: 300px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#quickViewModal .qv-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
#quickViewModal .qv-info { padding: 24px; }
#quickViewModal .qv-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}
#quickViewModal .qv-stock {
  font-size: 0.82rem;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
}
#quickViewModal .qv-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-height: 80px;
  overflow: hidden;
}

/* ===================================
   Price Range Slider
   =================================== */
.price-range-container {
  padding: 0 4px;
}
.price-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: var(--border-color);
  outline: none;
  margin: 10px 0;
}
.price-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.price-range-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.price-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ===================================
   Stock Notification
   =================================== */
.stock-notify-form {
  background: var(--primary-light);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 16px;
}
.stock-notify-form h6 {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 10px;
}
.stock-notify-success {
  color: #198754;
  font-weight: 600;
}

/* ===================================
   Mobile Lightbox
   =================================== */
.product-lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.95);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.product-lightbox.active { display: flex; }
.product-lightbox img {
  max-width: 95vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}
.product-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-lightbox-close:hover { background: rgba(255,255,255,0.3); }
.product-lightbox-hint {
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  margin-top: 12px;
}
@media (min-width: 992px) {
  .mobile-lightbox-trigger { display: none !important; }
}

/* Review Image Lightbox */
.review-lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.92);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.review-lightbox.active { display: flex; }
.review-lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
}
.review-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.review-lightbox-nav:hover { background: rgba(255,255,255,0.4); }
.review-lightbox-prev { left: 16px; }
.review-lightbox-next { right: 16px; }

/* ===================================
   Mini Cart Dropdown
   =================================== */
.mini-cart-wrapper {
  position: relative;
}
.mini-cart-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 340px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  max-height: 400px;
  overflow-y: auto;
}
.mini-cart-wrapper:hover .mini-cart-dropdown,
.mini-cart-dropdown:hover {
  display: block;
}
.mini-cart-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 700;
  font-size: 0.9rem;
}
.mini-cart-item {
  display: flex;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}
.mini-cart-item:last-child { border-bottom: none; }
.mini-cart-item-img {
  width: 45px;
  height: 45px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f8f9fa;
}
.mini-cart-item-info {
  flex: 1;
  min-width: 0;
}
.mini-cart-item-name {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-cart-item-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.mini-cart-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
  background: #f8f9fa;
}
.mini-cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 10px;
}
.mini-cart-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}
[data-bs-theme="dark"] .mini-cart-dropdown {
  background: var(--bg-white);
  border-color: var(--border-color);
}
[data-bs-theme="dark"] .mini-cart-footer {
  background: #2a2a2a;
}

/* ===================================
   Product Comparison
   =================================== */
.compare-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  z-index: 1050;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
}
.compare-bar.active { display: block; }
.compare-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.compare-bar-items {
  display: flex;
  gap: 10px;
  align-items: center;
}
.compare-bar-item {
  background: rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.compare-bar-item .remove-compare {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 0;
  font-size: 0.9rem;
}
.compare-bar-item .remove-compare:hover { color: #fff; }

/* Compare Modal */
.compare-table {
  width: 100%;
  font-size: 0.88rem;
}
.compare-table th {
  background: #f8f9fa;
  padding: 10px 14px;
  font-weight: 600;
  width: 120px;
  vertical-align: middle;
}
.compare-table td {
  padding: 10px 14px;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-color);
}
.compare-table .compare-product-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 6px;
}
.compare-table .compare-product-name {
  font-weight: 700;
  color: var(--primary);
}

/* ===================================
   Cookie Consent Banner
   =================================== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: #e0e0e0;
  padding: 16px 24px;
  z-index: 99999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  display: none;
}
.cookie-consent.active { display: block; }
.cookie-consent-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-consent-text {
  flex: 1;
  font-size: 0.88rem;
  line-height: 1.5;
}
.cookie-consent-text a {
  color: var(--primary);
  text-decoration: underline;
}
.cookie-consent-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
@media (max-width: 575px) {
  .cookie-consent-inner {
    flex-direction: column;
    text-align: center;
  }
  .cookie-consent-actions {
    width: 100%;
    justify-content: center;
  }
}

/* ===================================
   Better 404 Page
   =================================== */
.error-404-container {
  padding: 60px 0;
  text-align: center;
}
.error-404-code {
  font-size: 8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}
.error-404-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.error-404-desc {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 24px;
  line-height: 1.6;
}
.error-404-search {
  max-width: 400px;
  margin: 0 auto 24px;
}
.error-404-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}
.error-404-categories {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}


/* ===================================
   Product Reviews & Star Ratings
   =================================== */
.review-section { margin-top: 30px; }
.review-summary {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  padding: 24px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
}
.review-avg-box {
  text-align: center;
  min-width: 120px;
}
.review-avg-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.review-avg-stars {
  color: #ffc107;
  font-size: 1.2rem;
  margin: 6px 0;
}
.review-avg-count {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.review-dist { flex: 1; }
.review-dist-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 0.82rem;
}
.review-dist-label {
  min-width: 50px;
  text-align: right;
  font-weight: 600;
  color: var(--text-muted);
}
.review-dist-bar {
  flex: 1;
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}
.review-dist-fill {
  height: 100%;
  background: #ffc107;
  border-radius: 4px;
  transition: width 0.3s;
}
.review-dist-count {
  min-width: 24px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Review Form */
.review-form-card {
  background: var(--primary-light);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}
.review-form-card h6 {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
}
.star-rating-input {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}
.star-rating-input .star-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #ddd;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s, transform 0.15s;
}
.star-rating-input .star-btn:hover,
.star-rating-input .star-btn.active {
  color: #ffc107;
  transform: scale(1.1);
}

/* Review List */
.review-card {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}
.review-card:last-child { border-bottom: none; }
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.review-user {
  display: flex;
  align-items: center;
  gap: 8px;
}
.review-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.review-user-name {
  font-weight: 700;
  font-size: 0.9rem;
}
.review-verified-badge {
  font-size: 0.72rem;
  color: #198754;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}
.review-stars {
  color: #ffc107;
  font-size: 0.9rem;
}
.review-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.review-comment {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-dark);
  margin-top: 6px;
}
.review-empty {
  text-align: center;
  padding: 30px;
  color: var(--text-muted);
}
/* Star display inline */
.star-display { color: #ffc107; }
.star-display .bi-star { color: #ddd; }

/* ===================================
   Skeleton Loading
   =================================== */
@keyframes skeletonPulse {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-img {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
  width: 80%;
}
.skeleton-text-sm {
  height: 10px;
  margin-bottom: 6px;
  width: 60%;
}
.skeleton-price {
  height: 20px;
  width: 40%;
  margin-bottom: 10px;
}
.skeleton-btn {
  height: 36px;
  width: 100%;
  border-radius: var(--radius-sm);
}
.skeleton-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.skeleton-card-body {
  padding: 14px;
}
/* Image skeleton for lazy loading */
.product-card-img img {
  transition: opacity 0.3s;
}

/* ===================================
   Product Badges
   =================================== */
.product-badge {
  position: absolute;
  top: 8px;
  z-index: 5;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.product-badge-new {
  right: 8px;
  background: #198754;
  color: #fff;
}
.product-badge-bestseller {
  right: 8px;
  background: #fd7e14;
  color: #fff;
}
.product-badge-sale {
  right: 8px;
  background: #dc3545;
  color: #fff;
}
/* Adjust when both outofstock + other badge */
.product-badge-outofstock ~ .product-badge { top: 36px; }
/* Star rating on product card */
.product-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  margin-bottom: 4px;
}
.product-card-rating .stars { color: #ffc107; font-size: 0.7rem; }
.product-card-rating .count { color: var(--text-muted); }

/* ===================================
   Newsletter / Footer Subscription
   =================================== */
.footer-newsletter {
  background: var(--primary);
  padding: 30px 0;
}
.footer-newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}
.footer-newsletter h5 {
  font-weight: 700;
  margin-bottom: 6px;
}
.footer-newsletter p {
  font-size: 0.88rem;
  opacity: 0.85;
  margin-bottom: 16px;
}
.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 450px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}
.newsletter-form button {
  background: var(--dark);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: #333; }
#newsletterMsg {
  margin-top: 10px;
  font-size: 0.82rem;
}

/* ===================================
   Product Detail Tabs
   =================================== */
.product-tabs {
  margin-top: 30px;
}
.product-tabs .nav-tabs {
  border-bottom: 2px solid var(--border-color);
}
.product-tabs .nav-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  border: none;
  padding: 10px 20px;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.product-tabs .nav-link:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.product-tabs .nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: transparent;
}
.product-tabs .tab-content {
  padding: 24px 0;
}
.tab-desc {
  line-height: 1.8;
  color: var(--text-dark);
}
/* Social share */
.social-share {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}
.social-share-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}
.social-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  transition: transform 0.2s;
}
.social-share a:hover { transform: scale(1.1); }
.social-share .share-whatsapp { background: #25D366; }
.social-share .share-twitter { background: #1DA1F2; }
.social-share .share-facebook { background: #1877F2; }
.social-share .share-copy {
  background: var(--muted);
  cursor: pointer;
}

/* ===================================
   Order Timeline
   =================================== */
.order-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 20px 0;
}
.order-timeline::before {
  content: '''';
  position: absolute;
  top: 38px;
  left: 40px;
  right: 40px;
  height: 3px;
  background: var(--border-color);
  z-index: 0;
}
.order-timeline-progress {
  position: absolute;
  top: 38px;
  left: 40px;
  height: 3px;
  background: #198754;
  z-index: 1;
  transition: width 0.5s ease;
}
.order-timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
}
.order-timeline-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 8px;
  transition: all 0.3s;
}
.order-timeline-step.active .order-timeline-icon,
.order-timeline-step.completed .order-timeline-icon {
  background: #198754;
  color: #fff;
}
.order-timeline-step.cancelled .order-timeline-icon {
  background: #dc3545;
  color: #fff;
}
.order-timeline-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}
.order-timeline-step.active .order-timeline-label,
.order-timeline-step.completed .order-timeline-label {
  color: #198754;
}
.order-timeline-step.cancelled .order-timeline-label {
  color: #dc3545;
}
.order-timeline-date {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 2px;
}
@media (max-width: 575px) {
  .order-timeline {
    flex-direction: column;
    gap: 12px;
    padding-left: 30px;
  }
  .order-timeline::before {
    top: 0;
    bottom: 0;
    left: 18px;
    right: auto;
    width: 3px;
    height: auto;
  }
  .order-timeline-progress {
    top: 0;
    left: 18px;
    right: auto;
    width: 3px !important;
    height: auto;
  }
  .order-timeline-step {
    flex-direction: row;
    gap: 12px;
  }
  .order-timeline-icon {
    flex-shrink: 0;
    margin-bottom: 0;
  }
}

/* ===================================
   Mega Menu
   =================================== */
.mega-menu-wrapper {
  position: relative;
}
.mega-menu-trigger {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  padding: 24px;
}
.mega-menu.active { display: block; }
.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.mega-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.2s;
}
.mega-menu-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.mega-menu-item i {
  font-size: 1.2rem;
  color: var(--primary);
  width: 28px;
  text-align: center;
}
.mega-menu-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
}
@media (max-width: 767px) {
  .mega-menu {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 70vh;
    overflow-y: auto;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .mega-menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===================================
   WhatsApp / Live Chat Button
   =================================== */
.whatsapp-float {
  position: fixed;
  bottom: 70px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  color: #fff;
}
.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--dark);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

/* Dark mode overrides for new features */
[data-bs-theme="dark"] .review-summary { background: var(--bg-white); }
[data-bs-theme="dark"] .review-form-card { background: #1a2332; border-color: var(--primary); }
[data-bs-theme="dark"] .review-user-avatar { background: #1a2332; }
[data-bs-theme="dark"] .skeleton { background: linear-gradient(90deg, #2a2a2a 25%, #333 50%, #2a2a2a 75%); background-size: 200% 100%; }
[data-bs-theme="dark"] .order-timeline::before { background: #333; }
[data-bs-theme="dark"] .mega-menu { background: var(--bg-white); border-color: var(--border-color); }
[data-bs-theme="dark"] .mega-menu-item:hover { background: #1a2332; }
[data-bs-theme="dark"] .newsletter-form input { background: #1a2332; color: #e0e0e0; border: 1px solid #333; }

/* Dark mode: fix hover states to avoid white/bright backgrounds */
[data-bs-theme="dark"] .header-icon:hover {
  background: rgba(13,110,253,0.12);
  color: var(--primary);
}
[data-bs-theme="dark"] .header-icon-btn:hover {
  background: rgba(220,53,69,0.12);
  color: #dc3545;
}
[data-bs-theme="dark"] .notification-item:hover {
  background: rgba(255,255,255,0.04);
}
[data-bs-theme="dark"] .notification-unread {
  background: rgba(13,110,253,0.08);
}
[data-bs-theme="dark"] .notification-unread:hover {
  background: rgba(13,110,253,0.12);
}
[data-bs-theme="dark"] .product-card-img {
  background: #2a2a2a;
}
[data-bs-theme="dark"] .checkout-option-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(13,110,253,0.15);
}
[data-bs-theme="dark"] .list-group-item:hover {
  background: rgba(255,255,255,0.04);
}
[data-bs-theme="dark"] .page-link {
  background: #2a2a2a;
  border-color: #444;
  color: var(--text-dark);
}
[data-bs-theme="dark"] .page-link:hover {
  background: #3a3a3a;
  color: #fff;
  border-color: #555;
}
[data-bs-theme="dark"] .category-card-item:hover {
  background: rgba(255,255,255,0.06);
}
[data-bs-theme="dark"] .wishlist-btn:hover {
  background: rgba(220,53,69,0.12);
}
[data-bs-theme="dark"] .card-header {
  background: var(--bg-white);
  border-bottom-color: var(--border-color);
}
[data-bs-theme="dark"] .no-image-placeholder {
  color: #555;
}
[data-bs-theme="dark"] .search-suggestion-noimg {
  background: #2a2a2a;
  color: #555;
}
[data-bs-theme="dark"] .product-tabs .nav-link:hover {
  color: var(--text-dark);
  background: rgba(255,255,255,0.04);
}


/* ===================================
   Compare Toggle Button (replacing checkbox)
   =================================== */
.compare-toggle-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.9);
  color: #6c757d;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.2s ease;
  opacity: 0;
  backdrop-filter: blur(4px);
}
.product-card:hover .compare-toggle-btn { opacity: 1; }
.compare-toggle-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: scale(1.1);
}
.compare-toggle-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  opacity: 1;
  box-shadow: 0 2px 8px rgba(13,110,253,0.3);
}

/* ===================================
   User Avatar (small - header)
   =================================== */
.user-avatar-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* ===================================
   Animated Stats Section
   =================================== */
.stats-section {
  padding: 0;
}
.stat-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.stat-icon {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===================================
   Sticky Add to Cart Bar
   =================================== */
.sticky-cart-bar {
  position: fixed;
  bottom: -80px;
  left: 0;
  right: 0;
  z-index: 1040;
  background: var(--bg-white);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
  transition: bottom 0.3s ease;
  padding: 10px 0;
}
.sticky-cart-bar.visible {
  bottom: 0;
}
.sticky-cart-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}
.sticky-cart-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sticky-cart-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-color);
}
.sticky-cart-name {
  font-weight: 600;
  font-size: 0.9rem;
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-cart-price {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
}
.sticky-cart-btn {
  white-space: nowrap;
  font-weight: 600;
  padding: 8px 24px;
}
@media (max-width: 575px) {
  .sticky-cart-name { max-width: 120px; font-size: 0.8rem; }
  .sticky-cart-btn { padding: 6px 16px; font-size: 0.82rem; }
  .sticky-cart-img { width: 36px; height: 36px; }
}

/* ===================================
   Dark Mode Overrides for New Features
   =================================== */
[data-bs-theme="dark"] .compare-toggle-btn {
  background: rgba(30,30,30,0.9);
  border-color: rgba(255,255,255,0.15);
  color: #adb5bd;
}
[data-bs-theme="dark"] .stat-card {
  background: #1e1e1e;
  border-color: #333;
}
[data-bs-theme="dark"] .sticky-cart-bar {
  background: #1e1e1e;
  border-top-color: #333;
}

/* ===================================
   Mobile Search Bar
   =================================== */
.mobile-search-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
}

/* ===================================
   Bootstrap Button Color Override
   =================================== */
.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary-dark);
  --bs-btn-hover-border-color: var(--primary-dark);
  --bs-btn-active-bg: var(--primary-dark);
  --bs-btn-active-border-color: var(--primary-dark);
}
.btn-outline-primary {
  --bs-btn-color: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary);
  --bs-btn-hover-border-color: var(--primary);
}
a {
  color: var(--primary);
}
a:hover {
  color: var(--primary-dark);
}
