:root {
  --primary-color: var(--bs-blue);
  --accent-color: #3498db;
  --ai-color: #6c5ce7;
  --ai-gradient: linear-gradient(135deg, #6c5ce7, #a29bfe);
}

.seller_logo {
  width: auto;
  height: 40px;
}

.cursor-pointer {
  cursor: pointer;
}

/* Navbar Styling */
.navbar {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
}

.badge-notification {
  font-size: 0.65rem;
  position: absolute;
  top: 5px;
  right: -5px;
}

.nav-link.active {
  color: var(--accent-color) !important;
  font-weight: 600;
}

/* Hero Carousel Styling */
.carousel-control-next, .carousel-control-prev {
  width: 5% !important;
  background: #ffffff21;
}

.carousel-item {
  height: 400px;
}

.carousel-item img {
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.carousel-caption {
  bottom: 40%;
  z-index: 2;
}

/* Category Card Styling */
.category-card {
  transition: all 0.3s;
  cursor: pointer;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #eef2f5;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  padding: 1rem;
}
.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
  border-color: var(--accent-color);
  background: #f8f9fa;
}
.category-icon {
  font-size: 2rem;
  color: var(--primary-color);
  transition: color 0.3s;
}
.category-card:hover .category-icon {
  color: var(--accent-color);
}
.category-title {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Product Card Styling */
.product-card {
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
  border-radius: 15px;
  overflow: hidden;
  height: 100%;
  background: white;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-card-featured {
  border: 1px solid rgba(52, 152, 219, 0.3);
  background: #fdfdfd;
}
.product-card-featured .card-body {
  padding: 1rem;
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
  padding-top: 100%; /* 1:1 Aspect Ratio */
}

.card-img-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.product-card:hover .card-img-top {
  transform: scale(1.1);
}

.card-body {
  padding: 1rem;
}

.product-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: help; /* Suggests tooltip availability */
}

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

.badge-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #dc3545;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 5;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Wishlist Button */
.btn-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  color: #ccc;
  transition: all 0.2s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.btn-wishlist:hover {
  background: white;
  color: #dc3545;
  transform: scale(1.1);
}
.btn-wishlist.active {
  color: #dc3545;
}

.btn-add-cart {
  background-color: var(--primary-color);
  color: white;
  border: none;
  transition: background-color 0.2s;
}

.btn-add-cart:hover {
  background-color: var(--accent-color);
  color: white;
}

.btn-ai-insight {
  background: white;
  color: var(--ai-color);
  border: 1px solid var(--ai-color);
  font-size: 0.75rem; 
  transition: all 0.3s;
}

.btn-ai-insight:hover {
  background: var(--ai-gradient);
  color: white;
  border-color: transparent;
}

/* Thumbnail Gallery Styles */
.thumbnail-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: all 0.2s;
}

.thumbnail-img:hover {
  opacity: 1;
}

.thumbnail-img.active {
  border-color: var(--accent-color);
  opacity: 1;
}

.main-image-container {
  height: 500px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  position: relative;
  cursor: crosshair;
}

.main-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ZOOM LENS STYLES */
.img-zoom-lens {
  position: absolute;
  border: 1px solid #d4d4d4;
  width: 100px;
  height: 100px;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: none;
  display: none;
  z-index: 10;
}

.img-zoom-result {
  position: absolute;
  border: 1px solid #d4d4d4;
  width: 400px;
  height: 400px;
  top: 0;
  left: 102%; /* Position to the right of image container */
  z-index: 1000;
  display: none;
  background-color: white;
  background-repeat: no-repeat;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  border-radius: 8px;
}

.nav-btn-product {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  z-index: 20; /* Higher z-index than lens */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--primary-color);
  font-size: 1.2rem;
  cursor: pointer;
}

.nav-btn-product:hover {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.nav-prev { left: 15px; }
.nav-next { right: 15px; }

.sticky-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 90px;
  z-index: 900;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  height: 8px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e0 #f1f1f1;
}

/* Hide scrollbar for review section */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.scroll-btn-home {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  border: none;
  background: white;
  color: var(--primary-color);
  transition: all 0.3s;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.9;
}
.scroll-btn-home:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-50%) scale(1.1);
  opacity: 1;
}

.track-step {
  position: relative;
  z-index: 1;
}
.track-step.active .rounded-circle {
  background-color: var(--accent-color) !important;
  color: white !important;
}
.track-line {
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #e9ecef;
  z-index: 0;
}
.track-line-fill {
  height: 100%;
  background-color: var(--accent-color);
  width: 0%;
  transition: width 0.5s;
}

.fab-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1050;
}

.btn-fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--ai-gradient);
  color: white;
  font-size: 24px;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.btn-fab:hover {
  transform: scale(1.1) rotate(10deg);
  color: white;
}

.fab-label {
  position: absolute;
  right: 70px;
  top: 15px;
  background: white;
  padding: 5px 15px;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  font-weight: 600;
  color: var(--primary-color);
  white-space: nowrap;
  display: none;
}

.fab-container:hover .fab-label {
  display: block;
}

.ai-response-content h3 { font-size: 1.2rem; font-weight: bold; margin-top: 10px; }
.ai-response-content ul { padding-left: 20px; }
.ai-response-content li { margin-bottom: 5px; }

/* Review Styles */
.review-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eef2f5;
  height: 100%;
}
.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

/* Variant Styles */
.color-option {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}
.color-option.active {
  border-color: var(--primary-color);
  transform: scale(1.1);
}
.size-option {
  min-width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
  font-weight: 600;
}
.size-option:hover {
  background: #f8f9fa;
}
.size-option.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Footer Sticky at Bottom */
.footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 40px 0 20px;
  margin-top: auto; /* Pushes footer to bottom */
}

.toast-container {
  z-index: 1060;
}

.spinner-ai {
  color: var(--ai-color);
}

/* Order History Row Stripe */
.order-card-even {
  background-color: #f1f8ff !important; /* Light blue tint for visibility */
  border-color: #cce5ff !important;
}
