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

body {
  font-family: 'Montserrat', sans-serif;
}


/*Header style start*/
.top-row {
  background-color: #1f2937;
  color: white;
  padding: 8px 0;
  position: sticky;
  top: 0;
  z-index: 1001;
  border-bottom: 1px solid #374151;
  width: 100%;
}

.top-row-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 0 20px;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 15px;
}

.social-icon {
  color: #d1d5db;
  font-size: 16px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

/* Announcement Bar */
.announcement-bar {
  flex-grow: 1;
  text-align: center;
  padding: 0 20px;
  position: relative;
  overflow: hidden;
}

.announcement-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.announcement-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 12px;
}

.announcement-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.announcement-slider {
  width: 75%;
  text-align: center;
  padding: 0 20px;
}

.announcement-item {
  display: none;
  font-size: 14px;
  font-weight: 500;
}

.announcement-item.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.announcement-item a {
  color: #60a5fa;
  text-decoration: underline;
  font-weight: 600;
  margin-left: 5px;
}

.middle-row {
  background-color: white;
  /*padding: 10px 0;*/
  position: sticky;
  top: 45px;
  /* Height of top row */
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  width: 100%;
}

.middle-row-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 0px 5px 0px 0px;
}

.menu-navigation {
  flex: 1;
  display: flex;
}

.nav-menu {
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: #4b5563;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.nav-link:hover {
  color: #4f46e5;
  text-decoration: underline;
}

.nav-link i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  min-width: 200px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 60%);
  border-radius: 8px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  display: block;
  padding: 12px 20px;
  color: #4b5563;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.dropdown-link:hover {
  background-color: #f3f4f6;
  color: #4f46e5;
  padding-left: 25px;
  font-size: 18px;
  text-decoration: underline;
}

/* Right Section - Icons */
.nav-icons {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-icon {
  position: relative;
  color: #4b5563;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icon:hover {
  color: #4f46e5;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--bs-form-valid-border-color);
  color: white;
  font-size: 11px;
  font-weight: bold;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu Button - Hidden on Desktop */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #747474;
  font-size: 35px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  color: #4f46e5;
}

/* Mobile Side Navigation */
.mobile-side-nav {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100%;
  background-color: white;
  z-index: 1200;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
  transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow-y: auto;
  padding: 10px;
}

.mobile-side-nav.active {
  left: 0;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
}

.mobile-logo {
  font-size: 22px;
  font-weight: 700;
  color: #4f46e5;
}

.mobile-logo span {
  color: #1f2937;
}

.close-mobile-nav {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 24px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-mobile-nav:hover {
  background-color: #f3f4f6;
  color: #4b5563;
}

.mobile-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mobile-nav-item {
  border-bottom: 1px solid #f3f4f6;
}

.mobile-nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  color: #4b5563;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.mobile-nav-link:hover {
  color: #4f46e5;
}

.mobile-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-dropdown.active {
  max-height: 500px;
}

.mobile-dropdown-link {
  display: block;
  padding: 12px 15px;
  color: #6b7280;
  text-decoration: none;
  font-size: 14px;
  border-left: 2px solid #e5e7eb;
  margin-left: 10px;
  transition: all 0.3s ease;
}

.mobile-dropdown-link:hover {
  color: #4f46e5;
  border-left-color: #4f46e5;
  background-color: #f9fafb;
}

.mobile-nav-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

/* Main Content */
.content {
  padding: 40px 20px;
  text-align: center;
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
}

/*
h1 {
  color: #333;
  margin-bottom: 20px;
  font-size: 2.5rem;
}

p {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 30px;
}
*/
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.feature {
  background: white;
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  width: 280px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  border-color: #d1d5db;
}

.feature i {
  font-size: 2.5rem;
  color: #4f46e5;
  margin-bottom: 15px;
}

.feature h3 {
  margin-bottom: 10px;
  color: #333;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 1100px) {
  .nav-menu {
    gap: 25px;
  }
}

@media (max-width: 992px) {
  .nav-menu {
    gap: 25px;
  }

  .announcement-slider {
    width: 65%;
  }
}

@media (max-width: 768px) {
  .top-row-container {
    flex-direction: column;
    padding: 10px 0px;
  }

  .middle-row {
    top: 60px;
    /* Adjusted for stacked rows on mobile */
  }

  .announcement-bar {
    order: 1;
    width: 97%;
    padding: 0;
  }

  .social-icons {
    order: 2;
    justify-content: center;
  }

  .announcement-slider {
    width: 85%;
  }

  /* Hide desktop navigation on mobile */
  .menu-navigation {
    display: none;
  }

  /* Show mobile menu button */
  .mobile-menu-btn {
    display: block;
  }

  .nav-icons {
    gap: 15px;
  }
}

.cart-title {
  max-width: 400px;
}

@media (max-width: 576px) {
  .cart-title {
    max-width: 150px;
  }

  .top-row {
    padding: 6px 0;
  }

  /*  .middle-row {
    padding: 10px 0;
  }*/

  .announcement-slider {
    width: 100%;
  }

  .announcement-item {
    font-size: 13px;
  }

  .nav-icons {
    gap: 12px;
  }

  .nav-icon {
    font-size: 18px;
  }

  .seller_logo {
    max-width: 140px;
    height: auto !important;
    object-fit: contain;
  }

  .middle-row-container {
    padding: 0 12px !important;
  }
}

@media (max-width: 400px) {
  .mobile-side-nav {
    width: 280px;
    left: -280px;
  }
}

/*Header style end*/


@media (max-width: 991.98px) {
  .navbar-collapse {
    border-top: 1px solid #dee2e6;
    margin-top: 10px;
    padding-top: 15px;
  }

  .user-avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .dropdown-menu {
    width: 280px;
    margin-top: 10px;
  }
}

@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }

  .seller_logo {
    height: 50px !important;
  }

  .navbar-brand span {
    font-size: 16px;
  }

  .input-group .btn {
    padding-left: 12px;
    padding-right: 12px;
  }
}

.user-avatar {
  width: 36px;
  height: 36px;
  background-color: #0d6efd;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

.cursor-pointer {
  cursor: pointer;
}

.user-info {
  padding: 0.5rem 1rem;
}

.user-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.user-email {
  font-size: 0.85rem;
  opacity: 0.8;
}

.logout-item {
  color: #dc3545;
}

.logout-item:hover {
  background-color: #dc3545;
  color: white;
}

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

@media (min-width: 992px) {
  .seller_logo {
    margin: 0px 25px 0px 39px;
  }
}

.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;
}

.fixed-height-carousel {
  height: 565px;
}

@media (max-width: 768px) {
  .fixed-height-carousel {
    height: 300px;
  }
}

.carousel-item {
  height: 100%;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.carousel-caption {
  /*background-color: rgba(0, 0, 0, 0.5);*/
  border-radius: 10px;
  padding: 15px;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 20px;
}

/* Category Card Styling */
.category-card {
  transition: all 0.3s;
  cursor: pointer;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  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;
}

.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.line-clamp-4 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.line-clamp-5 {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Product Card Styling */
.product-card {
  transition: transform 0.3s, box-shadow 0.3s;
  border-radius: 5px;
  border: 1px solid #e5e7eb;
  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:hover .product-title {
  text-decoration: underline;
  color: var(--primary-color) !important;
}

.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;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.card-body {
  padding: 1rem;
}


.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: #fff;
  border: 1px solid #eee;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  color: #ccc;
  transition: all 0.2s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-wishlist:hover {
  background: white;
  color: #dc3545;
  transform: scale(1.1);
}

.btn-wishlist.active {
  color: #dc3545;
}

@keyframes heart-burst {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1);
  }
}

/* Dark Mode Overrides */
[data-bs-theme="dark"] body {
  background-color: #212529 !important;
  color: #f8f9fa !important;
}

[data-bs-theme="dark"] .middle-row {
  background-color: #212529 !important;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .nav-link,
[data-bs-theme="dark"] .nav-icon {
  color: #e9ecef !important;
}

[data-bs-theme="dark"] .nav-link:hover,
[data-bs-theme="dark"] .nav-icon:hover {
  color: #a29bfe !important;
}

[data-bs-theme="dark"] .product-card {
  background-color: #2c3035 !important;
  border: 1px solid #373b3e !important;
  color: #f8f9fa !important;
}

[data-bs-theme="dark"] .product-card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .product-card .text-muted {
  color: #adb5bd !important;
}

[data-bs-theme="dark"] .product-card .text-dark {
  color: #f8f9fa !important;
}

[data-bs-theme="dark"] .category-card {
  background-color: #2c3035 !important;
  border-color: #373b3e !important;
}

[data-bs-theme="dark"] .product-card-featured {
  background-color: #2c3035 !important;
  border-color: rgba(52, 152, 219, 0.5) !important;
}

[data-bs-theme="dark"] .mobile-search-row {
  background: #212529 !important;
  border-bottom: 1px solid #373b3e !important;
}

[data-bs-theme="dark"] .search-box input {
  background-color: #2c3035 !important;
  border-color: #373b3e !important;
  color: #f8f9fa !important;
}

[data-bs-theme="dark"] .search-overlay,
[data-bs-theme="dark"] .search-suggestions {
  background-color: #212529 !important;
  color: #f8f9fa;
}

[data-bs-theme="dark"] .suggestion-header {
  background-color: #2c3035 !important;
  color: #e9ecef;
  border-bottom-color: #373b3e !important;
}

[data-bs-theme="dark"] .suggestion-item {
  border-bottom-color: #373b3e !important;
}

[data-bs-theme="dark"] .suggestion-item:hover {
  background-color: #2c3035 !important;
}

[data-bs-theme="dark"] .suggestion-text {
  color: #e9ecef;
}

[data-bs-theme="dark"] .mobile-side-nav {
  background-color: #212529 !important;
}

[data-bs-theme="dark"] .mobile-nav-header {
  border-bottom-color: #373b3e !important;
}

[data-bs-theme="dark"] .mobile-nav-link {
  color: #e9ecef !important;
}

[data-bs-theme="dark"] .mobile-dropdown-link {
  color: #adb5bd !important;
  border-left-color: #373b3e !important;
}

[data-bs-theme="dark"] .mobile-dropdown-link:hover {
  background-color: #2c3035 !important;
  color: #a29bfe !important;
}

[data-bs-theme="dark"] .mobile-nav-footer {
  border-top-color: #373b3e !important;
}

[data-bs-theme="dark"] .mobile-logo span {
  color: #f8f9fa !important;
}

[data-bs-theme="dark"] .dropdown {
  background-color: #2c3035 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .dropdown-link {
  color: #e9ecef !important;
}

[data-bs-theme="dark"] .dropdown-link:hover {
  background-color: #373b3e !important;
  color: #a29bfe !important;
}

[data-bs-theme="dark"] .mobile-menu-btn {
  color: #e9ecef !important;
}

[data-bs-theme="dark"] .sticky-sidebar {
  background-color: #212529 !important;
  color: #f8f9fa !important;
}

[data-bs-theme="dark"] .review-card,
[data-bs-theme="dark"] .card:not(.product-card) {
  background-color: #2c3035 !important;
  border-color: #373b3e !important;
  color: #f8f9fa !important;
}

[data-bs-theme="dark"] .main-image-container,
[data-bs-theme="dark"] .img-zoom-result {
  background-color: #2c3035 !important;
  border-color: #373b3e !important;
}

[data-bs-theme="dark"] hr {
  border-color: #495057 !important;
  opacity: 0.5;
}

[data-bs-theme="dark"] .form-select,
[data-bs-theme="dark"] .form-control {
  background-color: #2c3035 !important;
  border-color: #495057 !important;
  color: #f8f9fa !important;
}

[data-bs-theme="dark"] .form-select:focus,
[data-bs-theme="dark"] .form-control:focus {
  background-color: #343a40 !important;
  border-color: #a29bfe !important;
  box-shadow: 0 0 0 0.25rem rgba(162, 155, 254, 0.25) !important;
}

[data-bs-theme="dark"] .text-dark {
  color: #f8f9fa !important;
}

[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6 {
  color: #f8f9fa !important;
}

[data-bs-theme="dark"] .sticky-top,
[data-bs-theme="dark"] .sticky-content,
[data-bs-theme="dark"] .sticky-sidebar {
  background-color: #212529 !important;
}

[data-bs-theme="dark"] .reviews-section,
[data-bs-theme="dark"] .bg-light {
  background-color: #2c3035 !important;
  color: #f8f9fa !important;
}

[data-bs-theme="dark"] .breadcrumb-item.active {
  color: #adb5bd !important;
}

[data-bs-theme="dark"] .text-muted {
  color: #adb5bd !important;
}

.btn-wishlist.active i {
  animation: heart-burst 0.4s ease-in-out;
  position: relative;
  /* Ensure pseudo-elements are positioned relative to the icon */
  z-index: 1;
}

@keyframes sparkle {
  0% {
    opacity: 0;
    box-shadow: 0 0 0 -5px #dc3545, 0 0 0 -5px #dc3545, 0 0 0 -5px #dc3545, 0 0 0 -5px #dc3545, 0 0 0 -5px #dc3545, 0 0 0 -5px #dc3545;
  }

  30% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    box-shadow: 0 -15px 0 0px #dc3545, 14px -8px 0 0px #dc3545, 14px 8px 0 0px #dc3545, 0 15px 0 0px #dc3545, -14px 8px 0 0px #dc3545, -14px -8px 0 0px #dc3545;
  }
}

.btn-wishlist.active i::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

.btn-wishlist.active i::after {
  animation: sparkle 0.6s ease-in-out forwards;
}

.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-content {
  position: -webkit-sticky;
  position: sticky;
  top: 105px;
  z-index: 900;
  background-color: var(--bs-body-bg);
}

.sticky-sidebar {
  position: -webkit-sticky;
  position: sticky;
  z-index: 900;
  align-self: flex-start;
}

.sticky-top-with-announcement {
  top: 93px !important;
}

.sticky-top-no-announcement {
  top: 48px !important;
}

@media (max-width: 991px) {
  .sticky-top-with-announcement {
    top: 150px !important;
    /* Account for mobile search row */
  }

  .sticky-top-no-announcement {
    top: 105px !important;
  }
}

@media (max-width: 576px) {
  .sticky-top-with-announcement {
    top: 170px !important;
    /* Account for larger logo on mobile */
  }

  .sticky-top-no-announcement {
    top: 120px !important;
  }
}


/* 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 #e5e7eb;
  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;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-option.active {
  border-color: var(--primary-color);
  transform: scale(1.1);
  box-shadow: 0 0 0 2px white, 0 0 0 3px var(--primary-color);
}

.size-option {
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  font-weight: 500;
  font-size: 13px;
}

.size-option:hover {
  background: #f8f9fa;
  border-color: #ccc;
}

.size-option.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.color-option.disabled,
.size-option.disabled {
  opacity: 0.6;
  /* Increased visibility */
  pointer-events: auto;
  cursor: not-allowed;
  /* filter: grayscale(100%); Removed to keep color hint */
  border-color: #e0e0e0;
  background-color: #f8f9fa;
  /* Lighter background */
  color: #aaa;
  position: relative;
}

.color-option.unavailable,
.size-option.unavailable {
  opacity: 0.5;
  cursor: pointer;
  /* Changed from not-allowed */
  /* Keep color hint but maybe desaturate slightly if desired, or just opacity */
}

/* Optional: Add a diagonal line for disabled options if desired, 
   but for now just keeping it simple with better opacity */
.size-option.disabled::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 1px;
  background-color: #ccc;
  transform: translate(-50%, -50%) rotate(-45deg);
}

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

.footer a {
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--accent-color) !important;
  text-decoration: underline !important;
}

#footerDescriptionAccordion .accordion-button::after {
  filter: brightness(0) invert(1);
}

#footerDescriptionAccordion .accordion-button {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 0;
  padding-right: 0;
}

.contact-list li {
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
}

.social-icon-animated {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon-animated:hover {
  background: white;
  color: var(--primary-color) !important;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.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;
}

@media (max-width: 767px) {
  .sticky-mobile-footer {
    position: sticky;
    bottom: 0;
    background-color: #ffffff;
    z-index: 1020;
    border-top: 1px solid #dee2e6;
    left: 0;
    margin-left: -1.5rem;
    padding: 0.75rem 1.5rem !important;
    width: calc(100% + 3rem);
    color: #333 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.4;
  }

  .sticky-mobile-footer a,
  .sticky-mobile-footer .text-white {
    color: #333 !important;
  }

  .footer-row-policies {
    font-size: 0.9em;
  }
}

.pwa-banner-hidden {
  display: none !important;
}

/* Product Detail Cart Button Styling - Persistent Large Size */
.product-detail-cart-wrapper .btn {
  padding: 0.5rem 1rem !important;
  font-size: 1.25rem !important;
  border-radius: 0.3rem !important;
}

.product-detail-cart-wrapper .cart-controls .btn {
  font-size: 1.25rem !important;
  padding: 0.5rem 1rem !important;
}

.product-detail-cart-wrapper .quantity {
  font-size: 1.25rem !important;
  font-weight: bold;
}

.border-dashed {
  border-style: dashed !important;
  border-width: 2px !important;
  border-color: #dee2e6 !important;
  transition: all 0.3s ease;
}

.border-dashed:hover {
  border-color: var(--primary-color) !important;
  background-color: rgba(var(--bs-primary-rgb), 0.05) !important;
}

/* Base btn-add-cart styling is already defined around line 938. 
   Adding responsive fix for mobile wrapping. */
@media (max-width: 576px) {
  .btn-add-cart {
    white-space: nowrap !important;
    font-size: 0.8rem !important;
    padding: 0.5rem 0.25rem !important;
  }
}

/* Increase star rating size */
.rating-stars i {
  font-size: 1.2rem;
}

/* Increase star rating size on mobile */
@media (max-width: 576px) {
  .rating-stars i {
    font-size: 1.1rem !important;
  }
}

/* Increase header icon and logo size on mobile */
@media (max-width: 576px) {
  .mobile-menu-btn {
    font-size: 42px !important;
  }

  .seller_logo {
    height: 65px !important;
  }

  .nav-icon {
    font-size: 24px !important;
  }

  .cart-count {
    width: 20px !important;
    height: 20px !important;
    font-size: 12px !important;
    top: -10px !important;
    right: -10px !important;
  }
}

@media (max-width: 575.98px) {
  .row-cols-2>* {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
}

/* Pagination Styling */
.pagy-bootstrap-nav .pagination {
  margin-top: 2rem;
  margin-bottom: 2rem;
  gap: 5px;
  justify-content: center;
}

.pagy-bootstrap-nav .page-item .page-link {
  border-radius: 8px !important;
  color: #4b5563;
  border: 1px solid #e5e7eb;
  padding: 8px 16px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.pagy-bootstrap-nav .page-item.active .page-link {
  background-color: #4f46e5;
  border-color: #4f46e5;
  color: white;
}

.pagy-bootstrap-nav .page-item .page-link:hover {
  background-color: #f3f4f6;
  color: #4f46e5;
}

.pagy-bootstrap-nav .page-item.disabled .page-link {
  color: #9ca3af;
  background-color: #f9fafb;
}

/* Modern Image Preview & Loaders */
.main-image-container {
  transition: all 0.3s ease;
  background: #fdfdfd;
}

.nav-btn-product {
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #333 !important;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-btn-product:hover {
  background: rgba(255, 255, 255, 0.8) !important;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.thumbnail-img {
  transition: all 0.2s ease;
  border: 2px solid transparent !important;
  opacity: 0.7;
}

.thumbnail-img:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.thumbnail-img.active {
  border-color: var(--primary-color) !important;
  opacity: 1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Premium Skeleton Loaders */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 8px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
}

.skeleton-title {
  height: 2rem;
  width: 80%;
  margin-bottom: 1rem;
}

.skeleton-button {
  height: 45px;
  width: 100%;
}

.image-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* WhatsApp Widget Positioning */
.whatsapp-widget-container {
  bottom: 20px;
  right: 20px;
}

@media (max-width: 768px) {
  .whatsapp-widget-container {
    bottom: 90px;
    /* Lift above mobile checkout/action bars */
    right: 15px;
  }
}

/* Legal Pages Styling */
.legal-hero {
  background: white;
  padding: 40px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.legal-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.legal-icon-wrapper {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #4f46e5, #818cf8);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.2);
  transform: rotate(-5deg);
  transition: transform 0.3s ease;
}

.legal-hero:hover .legal-icon-wrapper {
  transform: rotate(0deg) scale(1.05);
}

.legal-icon {
  font-size: 32px;
  color: white;
}

.legal-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.legal-last-updated {
  color: #6b7280;
  font-size: 0.95rem;
  font-weight: 500;
}

.legal-container {
  max-width: 900px;
  margin: -40px auto 60px;
  position: relative;
  z-index: 10;
  padding: 0 20px;
}

.legal-card {
  background: white;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  padding: 60px;
  border: 1px solid #e5e7eb;
}

.legal-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #374151;
}

.legal-content h1,
.legal-content h2,
.legal-content h3 {
  color: #111827;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.legal-content h1 {
  font-size: 2rem;
}

.legal-content h2 {
  font-size: 1.75rem;
}

.legal-content h3 {
  font-size: 1.5rem;
}

.legal-content p {
  margin-bottom: 24px;
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 24px;
  padding-left: 20px;
}

.legal-content li {
  margin-bottom: 10px;
}

.legal-content a {
  color: #4f46e5;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(79, 70, 229, 0.3);
  transition: all 0.2s ease;
}

.legal-content a:hover {
  border-bottom-color: #4f46e5;
}

.legal-empty {
  text-align: center;
  padding: 40px;
  background: #f9fafb;
  border-radius: 16px;
  color: #6b7280;
}

@media (max-width: 768px) {
  .legal-card {
    padding: 30px;
  }

  .legal-title {
    font-size: 2rem;
  }
}

/* Modern Add to Bag Button & Sparkle Animation */
.btn-add-cart {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  border: none;
  border-radius: 8px;
  /* More rounded */
  /* CHECK IF THIS CONFLICTS existing, will verify later */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
  z-index: 1;
}

.btn-add-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  color: white;
}

.btn-add-cart:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-add-cart.disabled,
.btn-add-cart:disabled {
  background: #e9ecef;
  color: #adb5bd;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Sparkle Element */
.sparkle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
  animation: sparkle-burst 0.6s ease-out forwards;
}

@keyframes sparkle-burst {
  0% {
    transform: scale(0);
    opacity: 1;
  }

  50% {
    opacity: 0.8;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Click scale effect for button */
.animate-click {
  animation: button-pop 0.3s ease-out;
}

@keyframes button-pop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.95);
  }

  100% {
    transform: scale(1);
  }
}

/* Payment Option Card Styles */
.payment-option-card {
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border: 1px solid #e9ecef;
  background-color: #fff;
}

.payment-option-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .05);
  border-color: var(--bs-primary);
  background-color: #f8f9fa;
}

.payment-icon-wrapper {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

/* Dark Mode Overrides for Payment Modal */
[data-bs-theme="dark"] .payment-option-card {
  background-color: #2d2d2d;
  border-color: #444;
  color: #e2e8f0;
}

[data-bs-theme="dark"] .payment-option-card:hover {
  background-color: #3d3d3d;
  border-color: var(--bs-primary);
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
}

[data-bs-theme="dark"] .payment-option-card .text-muted {
  color: #a0aec0 !important;
}

[data-bs-theme="dark"] .payment-option-card .fw-bold {
  color: #fff !important;
}

/* Modal Dark Mode overrides if not covered globally */
[data-bs-theme="dark"] .modal-content {
  background-color: #1a1a1a;
  border: 1px solid #444;
  color: #e2e8f0;
}

[data-bs-theme="dark"] .modal-header {
  border-bottom-color: #444;
}

[data-bs-theme="dark"] .modal-header .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

[data-bs-theme="dark"] .modal-title {
  color: #fff;
}

/* Review Image Compact Fix */
.quill-content img {
  max-height: 200px !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  border-radius: 8px !important;
  margin: 10px 0 !important;
  cursor: pointer !important;
  display: block !important;
}
