html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

/* Filter Modal */
.filter-modal {
  position: fixed;
  top: 0;
  left: -100%;
  width: 350px;
  height: 100vh;
  background-color: #fff;
  box-shadow: 2px 0 15px rgba(0, 0, 0, 0.3);
  transition: left 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
}

.filter-modal.open {
  left: 0;
}

.filter-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.filter-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.filter-header {
  background-color: #333;
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

.filter-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
}

.filter-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.filter-content {
  padding: 0;
}

.filter-section {
  border-bottom: 1px solid #eee;
  padding: 20px;
}

.filter-section:last-child {
  border-bottom: none;
}

.filter-section h3 {
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.filter-option {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  cursor: pointer;
  padding: 5px 0;
}

.filter-option:hover {
  background-color: #f8f9fa;
  margin-left: -5px;
  margin-right: -5px;
  padding-left: 5px;
  padding-right: 5px;
  border-radius: 4px;
}

.filter-option input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.filter-option label {
  margin: 0;
  font-size: 14px;
  color: #555;
  cursor: pointer;
  flex: 1;
}

.filter-count {
  color: #999;
  font-size: 12px;
  margin-left: 5px;
}

/* Price Range Slider */
.price-range {
  margin-top: 15px;
}

.price-slider-container {
  position: relative;
  margin: 20px 0;
  height: 40px;
}

.slider-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  transform: translateY(-50%);
}

.slider-range {
  position: absolute;
  height: 6px;
  background: #ff9800;
  border-radius: 3px;
  top: 50%;
  transform: translateY(-50%);
}

.price-slider {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 6px;
  background: transparent;
  outline: none;
  pointer-events: none;
}

.price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #ff9800;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

.price-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #ff9800;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

.price-slider::-webkit-slider-track {
  background: transparent;
}

.price-slider::-moz-range-track {
  background: transparent;
}

.price-range-display {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
}

.price-inputs {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.price-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
}

.price-input:focus {
  outline: none;
  border-color: #ff9800;
}

.filter-actions {
  padding: 20px;
  background-color: #f8f9fa;
  border-top: 1px solid #eee;
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 10px;
}

.filter-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-apply {
  background-color: #333;
  color: white;
}

.filter-apply:hover {
  background-color: #555;
}

.filter-clear {
  background-color: #fff;
  color: #333;
  border: 1px solid #ddd;
}

.filter-clear:hover {
  background-color: #f8f9fa;
}


/* -------------------------- */
/* Header Icons */
.header-icons {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-icons a {
  color: #333;
  font-size: 20px;
  position: relative;
  text-decoration: none;
  transition: color 0.3s;
}

.header-icons a:hover {
  color: orange;
}

/* Badge Counts for Heart/Cart */
.heart-count,
.cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background-color: #2e6f40;
  color: #fff;
  font-size: 11px;
  padding: 2px 5px;
  border-radius: 50%;
  line-height: 1;
}



/* Hero Section */
.hero-banner {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('/SofaImages/sofa.jpg') center/cover no-repeat;
  padding: 100px 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-banner .hero-content {
  margin: 0 auto;
  color: white;
}

.hero-banner h3 {
  margin-bottom: 16px;
  color: white;
  font-weight: bold;
}

.hero-banner p {
  font-size: 18px;
  line-height: 1.6;
  color: white;
  margin: 0;
}

#tabcollection {
  padding-bottom: 10vh;
}

/* -------------------------- */
/* Filter & Sort Bar Styling */
/* -------------------------- */

.filter-sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 44px 70px;
  flex-wrap: wrap;
  gap: 12px;
}

/* Filter Button */
.filter-button {
  background-color: #fff;
  border: none;
  color: #333;
  padding: 6px 12px;
  font-size: 17px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.filter-button:hover {
  color: orange;
}

/* Grid Controls */
.grid-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.grid-button {
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 10px 13px;
  font-size: 20px;
  color: #333;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background-color 0.3s, border-color 0.3s;
}

.grid-button:hover,
.grid-button.active {
  background-color: lightgray;
  border-color: black;
  color: black;
}

/* Desktop-only grid buttons (5 and 6 columns) */
.grid-button.desktop-only {
  display: none;
}

/* Sort Dropdown */
.sort-dropdown {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-dropdown label {
  font-size: 14px;
  color: #333;
}

.sort-dropdown select {
  padding: 13px 40px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 40px;
  background-color: #fff;
  color: #333;
  cursor: pointer;
  transition: border-color 0.3s;
}

.sort-dropdown select:hover {
  color: #c47f16;

}



/* --------------------------- */
/* Product Listing Section     */
/* --------------------------- */

.product-listing {
  padding: 40px 80px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* --------------------------- */
/* Carousel Styles             */
/* --------------------------- */

.carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.carousel-grid {
  display: grid;
  gap: 30px;
  transition: transform 0.3s ease;
  width: 100%;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.9);
  border: 2px solid #ddd;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  color: #333;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-nav:hover {
  background-color: #f57c00;
  color: white;
  border-color: #f57c00;
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
  left: -25px;
}

.carousel-nav.next {
  right: -25px;
}

.carousel-nav.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.carousel-nav i {
  font-size: 24px;
}

/* Individual Product Card */
.product-card {
  position: relative;
  background-color: #fff;
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.product-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* List View Layout (Single Column) */
.product-grid[style*="repeat(1, 1fr)"] .product-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  padding: 20px;
  margin-bottom: 20px;
  min-height: 200px;
}

.product-grid[style*="repeat(1, 1fr)"] .product-image-wrapper {
  flex: 0 0 250px;
  margin-right: 30px;
  position: relative;
}

.product-grid[style*="repeat(1, 1fr)"] .product-image-wrapper img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
}

.product-grid[style*="repeat(1, 1fr)"] .product-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 200px;
}

.product-grid[style*="repeat(1, 1fr)"] .product-card h3 {
  margin: 0 0 10px 0;
  font-size: 24px;
  color: #222;
  font-weight: 600;
}

.product-grid[style*="repeat(1, 1fr)"] .product-card p {
  margin: 0 0 15px 0;
  font-size: 18px;
  color: #555;
  line-height: 1.6;
}

.product-grid[style*="repeat(1, 1fr)"] .product-card .price {
  margin-bottom: 20px;
}

.product-grid[style*="repeat(1, 1fr)"] .product-card .price del {
  color: #888;
  margin-right: 10px;
  font-size: 16px;
}

.product-grid[style*="repeat(1, 1fr)"] .product-card .price strong {
  color: #c47f16;
  font-weight: 700;
  font-size: 20px;
}

.product-grid[style*="repeat(1, 1fr)"] .product-actions {
  display: flex;
  gap: 15px;
  margin-top: auto;
}

.product-grid[style*="repeat(1, 1fr)"] .product-actions .btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}



.product-grid[style*="repeat(1, 1fr)"] .product-actions .add-to-cart-btn {
  background-color: #17a2b8;
  color: #fff;
  border: 2px solid #17a2b8;
}

.product-grid[style*="repeat(1, 1fr)"] .product-actions .add-to-cart-btn:hover {
  background-color: #138496;
  border-color: #138496;
}

.product-grid[style*="repeat(1, 1fr)"] .discount-badge {
  top: 20px;
  right: 20px;
}

.product-grid[style*="repeat(1, 1fr)"] .wishlist-heart {
  top: 20px;
  left: 20px;
}

/* Hide overlay buttons in list view */
.product-grid[style*="repeat(1, 1fr)"] .product-overlay {
  display: none;
}

/* Grid view layout adjustments (2, 3, 4, 5, 6 columns) */
.product-grid[style*="repeat(2, 1fr)"] .product-card,
.product-grid[style*="repeat(3, 1fr)"] .product-card,
.product-grid[style*="repeat(4, 1fr)"] .product-card,
.product-grid[style*="repeat(5, 1fr)"] .product-card,
.product-grid[style*="repeat(6, 1fr)"] .product-card {
  display: block;
  flex-direction: column;
  text-align: center;
  padding: 0;
  margin-bottom: 0;
  min-height: auto;
}

.product-grid[style*="repeat(2, 1fr)"] .product-image-wrapper,
.product-grid[style*="repeat(3, 1fr)"] .product-image-wrapper,
.product-grid[style*="repeat(4, 1fr)"] .product-image-wrapper,
.product-grid[style*="repeat(5, 1fr)"] .product-image-wrapper,
.product-grid[style*="repeat(6, 1fr)"] .product-image-wrapper {
  flex: none;
  margin-right: 0;
  margin-bottom: 16px;
}

.product-grid[style*="repeat(2, 1fr)"] .product-image-wrapper img,
.product-grid[style*="repeat(3, 1fr)"] .product-image-wrapper img,
.product-grid[style*="repeat(4, 1fr)"] .product-image-wrapper img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 0;
}

/* Smaller images for 5 and 6 column layouts */
.product-grid[style*="repeat(5, 1fr)"] .product-image-wrapper img,
.product-grid[style*="repeat(6, 1fr)"] .product-image-wrapper img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0;
}

/* Show only basic info in grid views - hide description and actions */
.product-grid[style*="repeat(2, 1fr)"] .product-details,
.product-grid[style*="repeat(3, 1fr)"] .product-details,
.product-grid[style*="repeat(4, 1fr)"] .product-details,
.product-grid[style*="repeat(5, 1fr)"] .product-details,
.product-grid[style*="repeat(6, 1fr)"] .product-details {
  display: block;
  padding: 0 12px 16px;
}

.product-grid[style*="repeat(2, 1fr)"] .product-details .product-info,
.product-grid[style*="repeat(3, 1fr)"] .product-details .product-info,
.product-grid[style*="repeat(4, 1fr)"] .product-details .product-info,
.product-grid[style*="repeat(5, 1fr)"] .product-details .product-info,
.product-grid[style*="repeat(6, 1fr)"] .product-details .product-info {
  display: block;
}

/* Hide description paragraph in grid views */
.product-grid[style*="repeat(2, 1fr)"] .product-details .product-info p:not(.price),
.product-grid[style*="repeat(3, 1fr)"] .product-details .product-info p:not(.price),
.product-grid[style*="repeat(4, 1fr)"] .product-details .product-info p:not(.price),
.product-grid[style*="repeat(5, 1fr)"] .product-details .product-info p:not(.price),
.product-grid[style*="repeat(6, 1fr)"] .product-details .product-info p:not(.price) {
  display: none;
}

/* Hide product actions in grid views */
.product-grid[style*="repeat(2, 1fr)"] .product-actions,
.product-grid[style*="repeat(3, 1fr)"] .product-actions,
.product-grid[style*="repeat(4, 1fr)"] .product-actions,
.product-grid[style*="repeat(5, 1fr)"] .product-actions,
.product-grid[style*="repeat(6, 1fr)"] .product-actions {
  display: none;
}

/* Style product name in grid views */
.product-grid[style*="repeat(2, 1fr)"] .product-details h3,
.product-grid[style*="repeat(3, 1fr)"] .product-details h3,
.product-grid[style*="repeat(4, 1fr)"] .product-details h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: #222;
  font-weight: 600;
  text-align: center;
}

/* Smaller text for 5 and 6 column layouts */
.product-grid[style*="repeat(5, 1fr)"] .product-details h3,
.product-grid[style*="repeat(6, 1fr)"] .product-details h3 {
  margin: 0 0 6px 0;
  font-size: 16px;
  color: #222;
  font-weight: 600;
  text-align: center;
}

/* Style price in grid views */
.product-grid[style*="repeat(2, 1fr)"] .product-details .price,
.product-grid[style*="repeat(3, 1fr)"] .product-details .price,
.product-grid[style*="repeat(4, 1fr)"] .product-details .price {
  margin: 0;
  font-size: 16px;
  color: #555;
  text-align: center;
}

/* Smaller price text for 5 and 6 column layouts */
.product-grid[style*="repeat(5, 1fr)"] .product-details .price,
.product-grid[style*="repeat(6, 1fr)"] .product-details .price {
  margin: 0;
  font-size: 14px;
  color: #555;
  text-align: center;
}

.product-grid[style*="repeat(2, 1fr)"] .product-details .price del,
.product-grid[style*="repeat(3, 1fr)"] .product-details .price del,
.product-grid[style*="repeat(4, 1fr)"] .product-details .price del,
.product-grid[style*="repeat(5, 1fr)"] .product-details .price del,
.product-grid[style*="repeat(6, 1fr)"] .product-details .price del {
  color: #888;
  margin-right: 6px;
}

.product-grid[style*="repeat(2, 1fr)"] .product-details .price strong,
.product-grid[style*="repeat(3, 1fr)"] .product-details .price strong,
.product-grid[style*="repeat(4, 1fr)"] .product-details .price strong,
.product-grid[style*="repeat(5, 1fr)"] .product-details .price strong,
.product-grid[style*="repeat(6, 1fr)"] .product-details .price strong {
  color: #c47f16;
  font-weight: 700;
}

/* Product Image */
.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* Discount Badge */
.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #2e6f40;
  color: white;
  padding: 21px 14px;
  font-size: 16px;
  border-radius: 50%;
  z-index: 2;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  text-align: center;
}



/* Product Name */
.product-card h3 {
  margin: 16px 12px 8px;
  font-size: 18px;
  color: #222;
  font-weight: 600;
}

/* Pricing */
.product-card p {
  margin-bottom: 16px;
  font-size: 16px;
  color: #555;
}

.product-card p del {
  color: #888;
  margin-right: 6px;
}

.product-card p strong {
  color: #2e6f40;
  font-weight: 700;
}




/* Product Image & Zoom */
.product-image-wrapper {
  position: relative;
  overflow: hidden;
}

.product-image-wrapper img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image-wrapper img {
  transform: scale(1.05);
}

/* Product overlay buttons */
.product-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Wishlist Heart Icon */
.wishlist-heart {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  color: #ccc;
  transition: all 0.3s ease;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.wishlist-heart:hover {
  background-color: #fff;
  color: #ff4757;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.wishlist-heart.active {
  background-color: #ff4757;
  color: #fff;
}

.wishlist-heart.active:hover {
  background-color: #ff3742;
}

/* Wishlist Notifications */
.wishlist-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #4CAF50;
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 300px;
}

.wishlist-notification.show {
  transform: translateX(0);
}

.wishlist-notification.removed {
  background-color: #f44336;
}

.wishlist-notification.added {
  background-color: #4CAF50;
}

/* Sorting Notifications */
.sorting-notification {
  position: fixed;
  top: 80px;
  right: 20px;
  background-color: #2196F3;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 250px;
}

.sorting-notification.show {
  transform: translateX(0);
}

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

.product-image-wrapper img {
  transition: transform 0.3s ease;
}

/* Show overlay on hover over product image wrapper */
.product-image-wrapper:hover img {
  transform: scale(1.05);
}

.product-image-wrapper:hover .product-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Buttons (text only visible initially) */
.overlay-btn {
  background-color: white;
  color: #333;
  border: none;
  padding: 14px 16px;
  font-size: 16px;
  border-radius: 40px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Icons hidden initially */
.overlay-btn i {
  display: none;
  transition: opacity 0.2s ease;
}

/* When button is hovered, show the icon */
/* .overlay-btn:hover i {
  display: inline-block;
} */

/* Hover effects */
.overlay-btn:hover {
  background-color: #f57c00;
  color: #fff;
}




/* Quick View Modal */
.quick-view-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.quick-view-modal.active {
  opacity: 1;
  visibility: visible;
}

.quick-view-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

.quick-view-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  border-radius: 8px;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.quick-view-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-view-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

.quick-view-body {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 40px;
}

.quick-view-image {
  flex: 1;
  min-width: 300px;
  position: relative;
}

.quick-view-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
}

.quick-view-image .discount-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: #ff6b35;
  color: white;
  padding: 8px 12px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
}

.quick-view-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.quick-view-nav-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  color: #333;
  pointer-events: auto;
  transition: all 0.3s ease;
}

.quick-view-nav-btn:hover {
  background: #f57c00;
  color: white;
}

.quick-view-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.quick-view-indicators .indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.quick-view-indicators .indicator.active {
  background: #f57c00;
}

.quick-view-info {
  flex: 1;
  min-width: 300px;
}

.quick-view-info h2 {
  margin: 0 0 15px 0;
  font-size: 28px;
  color: #333;
  font-weight: 600;
}

.quick-view-price {
  margin-bottom: 20px;
}

.quick-view-price span:first-child {
  color: #888;
  text-decoration: line-through;
  margin-right: 10px;
  font-size: 18px;
}

.quick-view-price span:last-child {
  color: #f57c00;
  font-size: 24px;
  font-weight: bold;
}

.quick-view-info p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 25px;
}

.quick-view-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}

.qty-btn {
  background: #f8f9fa;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: #333;
  transition: all 0.3s ease;
}

.qty-btn:hover {
  background: #e9ecef;
}

.quantity-selector input {
  border: none;
  width: 60px;
  height: 40px;
  text-align: center;
  font-size: 16px;
  outline: none;
}

/* Hide number input spinners */
.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


.quick-view-wishlist,
.quick-view-compare {
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: #333;
  transition: all 0.3s ease;
}

.quick-view-wishlist:hover {
  background: #ff4757;
  color: white;
  border-color: #ff4757;
}

.quick-view-compare:hover {
  background: #333;
  color: white;
  border-color: #333;
}

.quick-view-add-to-cart {
  width: 100%;
  background: #333;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.quick-view-add-to-cart:hover {
  background: #555;
}

.quick-view-details {
  background: none;
  border: none;
  color: #333;
  font-size: 16px;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.quick-view-details:hover {
  color: #f57c00;
}

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 400px;
  height: 100vh;
  background: #fff;
  z-index: 9999;
  transition: right 0.3s ease;
  box-shadow: -2px 0 15px rgba(0, 0, 0, 0.1);
}

.cart-sidebar.active {
  right: 0;
}

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

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

.cart-sidebar-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.cart-sidebar-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-sidebar-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.cart-sidebar-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-sidebar-close:hover {
  color: #333;
}

.cart-sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-progress {
  margin-bottom: 20px;
}

.cart-progress-text {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.cart-progress-text strong {
  color: #f57c00;
}

.cart-progress-bar {
  position: relative;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.cart-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #8BC34A);
  width: 60%;
  transition: width 0.3s ease;
}

.cart-progress-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #f57c00;
  font-size: 16px;
}

.cart-items {
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.cart-item-price {
  color: #f57c00;
  font-weight: bold;
  margin-bottom: 10px;
}

.cart-item-price del {
  color: #888;
  margin-right: 8px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.cart-item-quantity button {
  background: #f8f9fa;
  border: none;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

.cart-item-quantity button:hover {
  background: #e9ecef;
}

.cart-item-quantity input {
  border: none;
  width: 40px;
  height: 30px;
  text-align: center;
  font-size: 14px;
  outline: none;
}

/* Hide number input spinners */
.cart-item-quantity input::-webkit-outer-spin-button,
.cart-item-quantity input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


.cart-item-remove {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 18px;
  padding: 5px;
  transition: color 0.3s ease;
}

.cart-item-remove:hover {
  color: #ff4757;
}

.cart-empty {
  text-align: center;
  padding: 40px 20px;
}

.cart-empty-icon {
  font-size: 60px;
  color: #ccc;
  margin-bottom: 20px;
}

.cart-empty p {
  color: #666;
  margin-bottom: 20px;
}

.cart-empty-btn {
  background: #f57c00;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cart-empty-btn:hover {
  background: #e65100;
}

.cart-sidebar-footer {
  padding: 20px;
  border-top: 1px solid #eee;
  background: #f8f9fa;
}

.cart-additional-options {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.cart-option-btn {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: #666;
  transition: all 0.3s ease;
}

.cart-option-btn:hover {
  background: #f0f0f0;
  border-color: #bbb;
}

.cart-subtotal {
  font-size: 16px;
  color: #333;
  margin-bottom: 15px;
}

.cart-subtotal strong {
  color: #f57c00;
}

.cart-agreement {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  font-size: 14px;
  color: #666;
}

.cart-agreement input {
  cursor: pointer;
}

.cart-view-btn,
.cart-checkout-btn {
  width: 100%;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.cart-view-btn {
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
}

.cart-view-btn:hover {
  background: #f8f9fa;
}

.cart-checkout-btn {
  background: #f57c00;
  color: white;
}

.cart-checkout-btn:hover {
  background: #e65100;
}

/* Responsive adjustments for modals */
@media (max-width: 768px) {
  .quick-view-content {
    width: 95%;
    max-height: 95vh;
  }

  .quick-view-body {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .cart-sidebar {
    width: 100%;
    right: -100%;
  }
}








/* --------------------------------------------------------------------------- */
/* -------------------------- */
/* 📱 MEDIA QUERIES SECTION   */
/* -------------------------- */

@media (max-width: 575px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 12px;
    font-size: 13px;
  }

  .top-left,
  .top-centerr,
  .top-right {
    width: 100%;
    margin-bottom: 6px;
  }

  .site-header {
    flex-wrap: wrap;
    padding: 8px 12px;
  }

  .logo,
  .header-icons,
  .main-nav {
    width: 100%;
    justify-content: center;
    margin-bottom: 8px;
  }

  .hero-banner {
    padding: 20px 12px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
  }

  .filter-sort-bar {
    flex-direction: column;
    padding: 8px 12px;
  }

  .footer-columns {
    flex-direction: column;
    gap: 24px;
  }

  /* Carousel responsive adjustments */
  .carousel-nav {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

  .carousel-nav.prev {
    left: -15px;
  }

  .carousel-nav.next {
    right: -15px;
  }
}

/* ✅ Small devices (phones landscape / small tablets 576–767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 16px;
    font-size: 14px;
  }

  .top-left,
  .top-centerr,
  .top-right {
    width: 100%;
    margin-bottom: 6px;
  }

  .site-header {
    flex-wrap: wrap;
    padding: 10px 16px;
  }

  .logo,
  .header-icons,
  .main-nav {
    width: 100%;
    justify-content: center;
    margin-bottom: 8px;
  }

  .hero-banner {
    padding: 30px 16px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
  }

  .filter-sort-bar {
    flex-direction: column;
    padding: 10px 16px;
  }

  .footer-columns {
    flex-direction: column;
    gap: 28px;
  }

  /* Carousel responsive adjustments */
  .carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .carousel-nav.prev {
    left: -20px;
  }

  .carousel-nav.next {
    right: -20px;
  }
}

/* ✅ Medium devices (tablets 768–991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .top-bar {
    padding: 12px 20px;
    font-size: 14px;
  }

  .site-header {
    padding: 14px 24px;
  }

  .main-nav .nav-menu {
    gap: 16px;
  }

  .hero-banner {
    padding: 60px 30px;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .filter-sort-bar {
    padding: 20px 30px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .footer-columns {
    gap: 30px;
  }
}

/* ✅ Large devices (small laptops 992–1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .top-bar {
    padding: 14px 24px;
    font-size: 15px;
  }

  .site-header {
    padding: 20px 30px;
  }

  .main-nav {
    margin: 0 20px;
  }

  .main-nav .nav-menu {
    gap: 18px;
  }

  .hero-banner {
    padding: 80px 40px;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .filter-sort-bar {
    padding: 30px 40px;
  }

  .footer-columns {
    gap: 40px;
  }
}

/* ✅ Extra Large devices (desktops 1200px and up) */
@media (min-width: 1200px) {

  /* Show desktop-only grid buttons (5 and 6 columns) */
  .grid-button.desktop-only {
    display: flex;
  }
}