/* ================= GLOBAL STYLES ================= */
:root {
  /* Primary brand colors */
  --primary-color: #6a1b9a;
  --secondary-color: #ff4081;
  --website-main-color:#1572E8;

  /* Text colors */
  --text-dark: #212121;
  --text-light: #ffffff;

  /* Background colors */
  --bg-light: #f8f9fa;
  --bg-dark: #1e1e1e;

  /* Status colors */
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f8f8f8;
  color: #333;
  line-height: 1.6;
  width: 100%;
  height: 100%;
  overflow-x: hidden; /* prevent horizontal scroll */
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ================= TOP BANNER ================= */
.top-banner {
  background: linear-gradient(90deg, #4a1e7c 0%, #6b2d8e 100%);
  color: white;
  padding: 8px 0;
  width: 100%;
}

.top-banner-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
}

.top-banner a {
  color: white;
  transition: opacity 0.3s;
}

.top-banner a:hover {
  opacity: 0.8;
}

/* ================= MAIN CONTENT ================= */
.main-content {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 30px;
}

.welcome-section {
  background: white;
  padding: 60px 40px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.welcome-section h1 {
  color: #4a1e7c;
  font-size: 36px;
  margin-bottom: 20px;
  font-weight: 700;
}

.welcome-section p {
  color: #666;
  font-size: 16px;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

/* ================= MOBILE SIDEBAR ================= */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 9998;
}

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

.sidebar-menu {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100%;
  background: white;
  overflow-y: auto;
  z-index: 9999;
  transition: left 0.3s ease;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.2);
}

.sidebar-menu.active {
  left: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: linear-gradient(90deg, #4a1e7c 0%, #6b2d8e 100%);
  color: white;
  font-weight: 700;
  font-size: 18px;
}

.sidebar-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
}

.sidebar-content {
  padding: 10px 0;
}

.sidebar-links {
  list-style: none;
}

.sidebar-link {
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 15px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}

.sidebar-link:hover {
  background: #f5f5f5;
  color: #6b2d8e;
}

.sidebar-link i {
  margin-right: 10px;
}

.sidebar-link.has-submenu .toggle-icon {
  transition: transform 0.3s;
}

.submenu {
  display: none;
  list-style: none;
  background: #fafafa;
  padding-left: 20px;
}

.submenu.open {
  display: block;
}

.submenu li {
  padding: 10px 20px;
  border-bottom: 1px solid #eee;
}

.submenu li:last-child {
  border-bottom: none;
}

.submenu a {
  color: #666;
  font-size: 14px;
  display: block;
}

.submenu a:hover {
  color: #6b2d8e;
}

.sidebar-contact {
  padding: 20px;
  background: #f9f9f9;
  border-top: 1px solid #eee;
  margin-top: 20px;
  font-size: 14px;
}

.sidebar-contact p {
  margin: 8px 0;
  color: #666;
}

.sidebar-contact strong {
  color: #4a1e7c;
  display: block;
  margin-bottom: 10px;
}

.sidebar-contact i {
  margin-right: 8px;
  color: #6b2d8e;
}

/* ================= JEWELRY MODAL ================= */
.jewelry-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  overflow-y: auto;
}

.jewelry-modal-content {
  background-color: white;
  margin: 2% auto;
  width: 95%;
  max-width: 1200px;
  border-radius: 12px;
  overflow: hidden;
  animation: modalSlideIn 0.3s;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.jewelry-modal-header {
  background: linear-gradient(135deg, #4a1e7c, #6b2d8e);
  color: white;
  padding: 25px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.jewelry-modal-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

.jewelry-close {
  color: white;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.3s;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
}

.jewelry-close:hover {
  opacity: 0.7;
}

.jewelry-modal-body {
  padding: 30px;
  max-height: 75vh;
  overflow-y: auto;
}

.jewelry-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.jewelry-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
}

.jewelry-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.jewelry-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.jewelry-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #ff6b35;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.jewelry-details {
  padding: 20px;
}

.jewelry-title {
  font-size: 18px;
  color: #4a1e7c;
  font-weight: 600;
  margin-bottom: 8px;
}

.jewelry-price {
  font-size: 20px;
  color: #e74c3c;
  font-weight: 700;
  margin-bottom: 10px;
}

.jewelry-description {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
}

/* .add-to-cart-btn {
  width: 100%;
  padding: 10px;
  /* background: #6b2d8e; */
 /* color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
} */

/* .add-to-cart-btn:hover {
  /* background: #4a1e7c; */
/*} */

.jewelry-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.jewelry-info-section {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 12px;
  border-left: 4px solid #6b2d8e;
}

.jewelry-info-section h3 {
  color: #4a1e7c;
  font-size: 20px;
  margin-bottom: 15px;
  font-weight: 600;
}

.jewelry-specs-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.jewelry-specs-table th,
.jewelry-specs-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
  font-size: 14px;
}

.jewelry-specs-table th {
  background: #4a1e7c;
  color: white;
  font-weight: 600;
}

.jewelry-specs-table tr:last-child td {
  border-bottom: none;
}

.jewelry-specs-table tr:hover {
  background: #f8f9fa;
}

/* ================= DROPDOWN IMAGE FIX ================= */
.dropdown-submenu {
  width: 260px;
  max-height: 350px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 10px;
  z-index: 9999;
}

.dropdown-submenu .product-card {
  text-align: center;
  margin-bottom: 12px;
}

.dropdown-submenu .product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
}

.dropdown-submenu .product-card p {
  font-size: 14px;
  margin-top: 6px;
  line-height: 1.4;
  color: #333;
}

/* ================= CATEGORY GALLERY (DESKTOP + MOBILE) ================= */
.category-gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 5px;
  scrollbar-width: thin;
  scrollbar-color: #6b2d8e #f0f0f0;
}

.category-gallery::-webkit-scrollbar {
  height: 6px;
}

.category-gallery::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 4px;
}

.category-gallery::-webkit-scrollbar-thumb {
  background-color: #6b2d8e;
  border-radius: 4px;
}

.category-card {
  flex: 0 0 auto;
  width: 90px;
  text-align: center;
}

.category-card img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.category-card img:hover {
  transform: scale(1.05);
}

.category-card p {
  margin-top: 6px;
  font-size: 12px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.submenu .category-gallery {
  padding: 8px 10px;
  background: #fafafa;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

/* ================= RESPONSIVE STYLES ================= */
@media (max-width: 992px) {
  .top-banner-content {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }

  .welcome-section {
    padding: 40px 20px;
  }

  .welcome-section h1 {
    font-size: 28px;
  }

  .jewelry-gallery {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
  }

  .jewelry-sections {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .main-content {
    padding: 0 15px;
  }

  .welcome-section {
    padding: 30px 15px;
  }

  .welcome-section h1 {
    font-size: 24px;
  }

  .welcome-section p {
    font-size: 14px;
  }

  .jewelry-gallery {
    grid-template-columns: 1fr;
  }

  .jewelry-modal-content {
    width: 98%;
    margin: 1% auto;
  }

  .jewelry-modal-body {
    padding: 20px 15px;
  }

  .jewelry-item img {
    height: 200px;
  }
}
/* --- PRODUCT SECTION CSS --- */
.product-section {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 30px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.section-title {
  font-size: 32px;
  color: #4a1e7c;
  font-weight: 700;
}

.tabs {
  display: flex;
  gap: 15px;
}

.tab-btn {
  padding: 10px 25px;
  border: 2px solid #6b2d8e;
  background: white;
  color: #6b2d8e;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-btn.active {
  background: #6b2d8e;
  color: white;
}

.filters-section {
  background: white;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.filters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  align-items: end;
}

.filter-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.filter-input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}

.price-display {
  color: #6b2d8e;
  font-weight: 700;
  font-size: 18px;
}

.categories-bar {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.category-btn {
  padding: 10px 20px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
  font-size: 14px;
  font-weight: 500;
}

.category-btn.active {
  background: #6b2d8e;
  color: white;
  border-color: #6b2d8e;
}

.category-btn:hover {
  border-color: #6b2d8e;
  color: #6b2d8e;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

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

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: #f0f0f0;
}

.product-info {
  padding: 20px;
}

.product-name {
  font-size: 18px;
  color: #333;
  font-weight: 600;
  margin-bottom: 10px;
}

.product-price {
  font-size: 20px;
  color: #6b2d8e;
  font-weight: 700;
  margin-bottom: 15px;
}


.add-cart-btn {
  flex: 1;
  padding: 10px;
  background: #6b2d8e;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.add-cart-btn:hover {
  background: #4a1e7c;
}

.wishlist-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #999;
  transition: all 0.3s;
  
}

.wishlist-btn:hover,
.wishlist-btn.active {
  color: #e74c3c;
  border-color: #e74c3c;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.qty-btn:hover {
  background: #6b2d8e;
  color: white;
  border-color: #6b2d8e;
}

.qty-display {
  font-weight: 600;
  min-width: 30px;
  text-align: center;
}

@media (max-width: 768px) {
  .filters-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }
}

/* --- Gender Toggle --- */
.gender-selector {
  text-align: center;
  padding: 20px 0;
  margin-bottom: 20px;
}
.gender-selector button {
  padding: 10px 20px;
  margin: 0 5px;
  border: 2px solid #5a2e6f; /* Purple border */
  border-radius: 25px;
  background-color: white;
  color: #5a2e6f;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}
.gender-selector button.active {
  background-color: #5a2e6f; /* Dark Purple for active */
  color: white;
}

/* --- New Arrivals Carousel --- */
.new-arrivals-section {
  padding: 20px;
  margin-bottom: 40px;
  position: relative;
}
.new-arrivals-section h2 {
  text-align: center;
  font-size: 2em;
  color: #5a2e6f;
  margin-bottom: 20px;
}
.carousel-wrapper {
  display: flex;
  overflow-x: scroll; /* Allows horizontal scrolling */
  scroll-behavior: smooth;
  padding: 10px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
}
.carousel-wrapper::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome, Safari, Opera */
}
.carousel-wrapper .product-card {
  flex: 0 0 250px; /* Fixed width for cards */
  margin-right: 20px;
}
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
}
.nav-arrow.left {
  left: 5px;
}
.nav-arrow.right {
  right: 5px;
}

/* --- Main Product View Container --- */
.product-view-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* --- Category Sidebar --- */
.category-sidebar {
  flex: 0 0 250px; /* Fixed width */
  margin-right: 20px;
  background-color: #2c3e50; /* Dark blue/black */
  color: white;
  height: fit-content;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.category-header {
  font-size: 1.2em;
  font-weight: bold;
  padding: 15px;
  background-color: #34495e;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.category-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.category-sidebar li a {
  display: block;
  padding: 10px 15px;
  color: white;
  text-decoration: none;
  transition: background-color 0.2s;
}
.category-sidebar li a:hover {
  background-color: #5a2e6f; /* Purple hover */
}

/* --- Main Content Area --- */
.main-content {
  flex-grow: 1;
}

/* --- Filter Bar --- */
.filter-bar {
  background-color: #2c3e50;
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.filter-bar label {
  font-weight: bold;
  margin-right: 5px;
}
.filter-bar input[type="text"],
.filter-bar select {
  padding: 8px;
  border: none;
  border-radius: 4px;
  outline: none;
  width: 150px;
}
.filter-bar .price-range {
  flex-grow: 1;
  display: flex;
  align-items: center;
}
.filter-bar .price-range input[type="range"] {
  flex-grow: 1;
  margin-left: 10px;
}

/* --- Product Grid --- */
.product-grid {
  display: grid;
  /* Responsive grid: Min width 280px per column */
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.product-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 15px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.product-card img {
  max-width: 100%;
  height: 200px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
}
.product-card h3 {
  font-size: 1.1em;
  color: #5a2e6f;
  margin: 5px 0;
}
.product-card .price {
  font-size: 1.2em;
  font-weight: bold;
  color: #5a2e6f;
  margin-bottom: 15px;
}
.product-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #f8f8f8;
}



/* Add to Cart Button */




/* Quantity Control (e.g., Silver Bracelet) */
.quantity-control {
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
}
.quantity-control button {
  background-color: #e0e0e0;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 4px;
}
.quantity-control span {
  padding: 0 10px;
  font-weight: bold;
}

/* --- Media Queries for Responsiveness --- */
@media (max-width: 900px) {
  .product-view-container {
    flex-direction: column;
  }
  .category-sidebar {
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
  }
  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .filter-bar input[type="text"],
  .filter-bar select {
    width: 100%;
  }
  .filter-bar > div {
    width: 100%;
    margin-bottom: 10px;
  }
  .filter-bar .price-range {
    margin-bottom: 0;
  }
}
/* Main dropdown */
.dropdown-content {
  position: relative; /* relative inside wrapper for proper positioning */
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  min-width: 220px;
  padding: 10px;
  display: none;
  z-index: 1000;
}

/* Scrollable area for subcategories */
.scrollable-dropdown {
  max-height: 420px; /* around 12 items height */
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #b3b3b3 transparent;
}

/* WebKit scrollbar for Chrome/Edge */
.scrollable-dropdown::-webkit-scrollbar {
  width: 6px;
}
.scrollable-dropdown::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}
.scrollable-dropdown::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* Dropdown items */
.dropdown-item {
  display: block;
  padding: 8px 10px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  border-radius: 4px;
}
.dropdown-item:hover {
  background: #f5f5f5;
}

/* Show dropdown on hover */
.nav-item.dropdown:hover .dropdown-content {
  display: block;
}

/* Wrapper for dropdown and preview */
.dropdown-wrapper {
  position: relative;
  display: flex; /* lets subcategory list and preview sit side by side */
  width: max-content; /* or 100% if you want full nav width */
}

/* Right-side product preview */
.subcategory-preview {
  display: none;
  position: absolute;
  top: 0;
  left: 100%; /* show right to dropdown list */
  width: 400px; /* adjust to match dropdown width or use 100% for full width */
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  padding: 10px;
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto; /* scroll if more products */
}

/* Optional: grid for product preview */
.subcategory-preview .product-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.subcategory-preview .product-item img {
  width: 50px;
  height: 50px;
  margin-right: 10px;
  border-radius: 4px;
}
#bannerCarousel {
    width: 100%;
    height: 500px; /* default height for desktop */
    overflow: hidden;
}

#bannerCarousel .carousel-inner {
    height: 100%;
}

#bannerCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* image covers full area without stretching */
}

/* Responsive heights */
@media (max-width: 1200px) {
    #bannerCarousel {
        height: 400px;
    }
}

@media (max-width: 768px) {
    #bannerCarousel {
        height: 300px;
    }
}

@media (max-width: 480px) {
    #bannerCarousel {
        height: 200px;
    }
}
.product-card {
    position: relative;
    overflow: hidden;
}

.product-image-wrapper {
    position: relative;
}

.product-image-wrapper img {
    width: 100%;
    display: block;
    border-radius: 8px;
}
.subcategory-item{

  justify-content: center;

  cursor: pointer;
}

.subcategory-item:hover {
  transform: scale(1.05)
}

/* Loading overlay background */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Spinner animation */
.spinner {
  border: 5px solid #ddd;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/*----------------------------*/
/* base button */
.scroll-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: none;              /* shown by JS when scrolled */
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);

  /* inner color (button face) */
  background-color: #6c5ce7;
  color: #fff;
  font-size: 18px;
  position: fixed;
  overflow: visible;
  transition: transform .25s ease, opacity .25s ease;
}

/* the ring is drawn as an extra background layer: gradient first, then inner color */
.scroll-top-btn.progress {
  /* --angle must be set by JS in degrees (0deg .. 360deg) */
  --angle: 0deg;
  background-image:
    conic-gradient(#0a0a0a 0deg var(--angle), rgba(255,255,255,0.12) var(--angle) 360deg),
    linear-gradient(#6c5ce7, #6c5ce7);
  background-origin: border-box;
  background-clip: padding-box, border-box; /* ensure ring appears outside inner color */
  padding: 6px; /* creates visible ring width — adjust as needed */
}

/* inside circle where icon sits — keep it centered and white */
.scroll-top-btn i {
  pointer-events: none;
  font-size: 16px;
  z-index: 2;
}

/* tweak for when hidden/shown */
.scroll-top-btn.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.scroll-top-btn.hide {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}
.section-title {
  font-size: 20px;
  font-weight: bold;
  color: #222;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title span {
  background: #fff;
  padding: 0 15px;
  z-index: 2;
  position: relative;
}

.section-title:before,
.section-title:after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 2px;
  background: #ccc;
}

.section-title:before {
  left: 0;
}

.section-title:after {
  right: 0;
}


/* Image Zoom */
.zoom-img-wrapper {
  overflow: hidden;
  border-radius: 12px;
}

.zoom-img {
  transition: transform .4s ease-in-out;
}

.zoom-img-wrapper:hover .zoom-img {
  transform: scale(1.1);
}
.badge-product-count {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--website-main-color); /* aap chaho to brand color set karein */
  color: white;
  padding: 5px 9px;
  font-size: 12px;
  border-radius: 50%;
  font-weight: bold;
  line-height: 1;
  min-width: 28px;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white; /* image se clearly visible */
  z-index: 10;
}


/* search prtoduct */
.search-results-box {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  z-index: 9999;
  display: none;
  max-height: 300px;
  overflow-y: auto;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f3f3f3;
  transition: background 0.2s;
}

.search-item:hover {
  background: #f8f8f8;
}

.search-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
}

.search-item span {
  font-size: 0.9rem;
  color: #333;
  font-weight: 500;
}

.no-results {
  padding: 12px;
  text-align: center;
  color: #777;
  font-size: 0.9rem;
}
/** new footer style */
.footer {
  background: #111;
  color: #ddd;
  font-size: 0.9rem;
}

.footer h5, 
.footer h6 {
  color: #fff;
}

.footer a:hover {
  color: #c77dff;
}

.footer .newsletter-form input {
  border: 1px solid #555;
  background: #222;
  color: #ddd;
}

.footer .newsletter-form input::placeholder {
  color: #aaa;
}

.footer .newsletter-form button {
  border: 1px solid #555;
  background: #333;
  color: #fff;
  transition: all 0.3s ease;
}

.footer .newsletter-form button:hover {
  background: #c77dff;
  border-color: #c77dff;
  color: #fff;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .footer .newsletter-form {
    flex-direction: column;
    gap: 8px;
  }

  .footer .newsletter-form input, 
  .footer .newsletter-form button {
    width: 100%;
    border-radius: 6px !important;
  }

  .footer img[alt="Certificate"] {
    max-width: 80%;
  }
}
.cart-added-animate {
  transform: scale(1.2);
  transition: 0.2s ease-in-out;
}

/* ✅ REMOVE hover icons inside product image */
.product-card .product-icons {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.product-card:hover .product-icons {
  opacity: 0 !important;
  transform: none !important;
}
.wishlist-btn .bi-heart-fill {
  color: red !important;
}
.wishlist-section .product-card {
  transition: 0.3s ease;
}
.wishlist-section .product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.wishlist-remove-btn {
  border: 1px solid #d2d2d2;
  background: #fff;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card {
  transition: all 0.25s ease;
}
.footer .payment-logos img {
  filter: brightness(0) invert(1); /* Agar dark background mei icons ko light banana ho */
  transition: transform 0.2s ease;
}
.footer .payment-logos img:hover {
  transform: scale(1.1);
}
.footer-link {
  color: #ccc;
  text-decoration: none;
  padding: 2px 4px;
  display: inline-block;
  transition: 0.25s ease;
}
.footer-link:hover {
  color: #fff;
}
.active-footer-link {
  background: #0d6efd;
  color: #fff !important;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}
 .object-fit-cover {
    object-fit: cover;
  }
  .cart-items-box img {
    object-fit: cover;
  }
  .order-summary {
    background: #f8f9fa;
  }
  .cart-item {
    transition: background 0.2s ease;
  }
  .cart-item:hover {
    background: #fafafa;
  }
  @media (max-width: 768px) {
    .cart-item {
      gap: 8px;
    }
  }
  .wishlistSwiper {
  width: 100%;
  height: 200px;
  border-radius: 6px;
  overflow: hidden;
}
.wishlistSwiper .swiper-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* ✅ No Image Placeholder */
.no-image-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #f0f0f0, #e4e4e4);
  color: #555;
  font-size: 0.9rem;
  text-align: center;
  border-radius: 6px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: capitalize;
}
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.icon-btn {
  background: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
@keyframes shakeAnim {
    0% { transform: translateX(0px); }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-2px); }
    100% { transform: translateX(0px); }
}

.size-option {
    border: 1px solid #ccc;
    padding: 6px 12px;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

.active-size {
    background-color: #1572E8 !important;
    color: #fff !important;
    border-color: #000 !important;
}
