:root {
  --primary-color: #007bff;
  --secondary-color: #f1f1f1;
  /* ...other variables... */
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #f0f2f5;
}
/* Add ARIA labels and roles */
[role="button"] {
  cursor: pointer;
}

/* Improve focus states */
:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
header {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  height: 50px;
}

.logo-text {
  font-size: 1.5em;
  font-weight: bold;
  margin-left: 10px;
}

.home-button {
  background-color: #ff5722;
  color: #fff;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  text-align: center; 
  
}
.home-button p {
  font-size: 14px;
  margin: 0;
  color: #ffffff;
}


.home-button:hover {
  background-color: #e64a19;
}

.border-line {
  border-bottom: 1px solid #ddd;
  margin-bottom: 10px; /* Add margin to create space */
}

.top-icons i {
  font-size: 20px;
  margin-left: 15px;
  cursor: pointer;
}

.nav-bar {
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  background-color: #fff;
}

.nav-bar i {
  font-size: 20px; /* Reduced icon size */
  cursor: pointer;
}

main {
  padding: 20px;
}

.highlights {
  display: flex;
  justify-content: space-around;
  margin-bottom: 1px;
}

.highlight-item {
  text-align: center;
}
.highlight-item i {
  font-size: 1px;
  color: #e6582c;
}
.light-item {
  text-align: center;
}

.light-item i {
  font-size: 30px;
  color: #ec7a08;
  background-color: #ffffff;
}


.button-text {
  position: absolute;
  bottom: -20px;
  width: 100px;
  text-align: center;
  color: #ff5722;
  font-size: 12px;
  background-color: white;
  border-radius: 5px;
  padding: 2px;
  z-index: 1;
}
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px 0;
  position: relative;
  bottom: 0;
  width: 100%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content h3 {
  margin-bottom: 20px;
}

.socials {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.socials li {
  display: inline-block;
}

.socials li a {
  color: white;
  text-decoration: none;
  font-size: 24px;
  transition: color 0.3s ease;
}

.socials li a:hover {
  color: #ff5722;
}
.categories-box {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* Five columns */
  grid-template-rows: repeat(2, 1fr); /* Two rows */
  gap: 20px;
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(235, 232, 55, 0.1);
}

.box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center; /* Center text */
}

.box:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.box i {
  font-size: 24px;
  color: #ff5722;
  margin-bottom: 10px;
}

.box p {
  font-size: 14px;
  margin: 0;
  color: #333;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
  .categories-box {
      grid-template-columns: repeat(3, 1fr); /* Three columns on smaller screens */
      gap: 15px;
      padding: 15px;
  }

  .box {
      padding: 12px;
  }
}


.menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* Align items to the right */
  position: relative; /* Add this to create a positioning context for the dropdown */
  margin: 20px;
}

.menu-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  text-align: center;
}

.menu-icon i {
  font-size: 16px; /* Very small icons */
  color: #ff5722;
}

.menu-icon p {
  margin: 5px 0 0 0;
  font-size: 10px; /* Smaller text */
  color: #333;
}

.dropdown-content {
  display: none;
  grid-template-columns: repeat(5, 1fr); /* Form a rectangle with 2 columns */
  grid-template-rows: repeat(2, 1fr); /* Form 2 rows */
  grid-gap: 10px;
  align-items: center;
  background-color: white;
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  position: absolute; /* Position the dropdown absolutely */
  top: 50px; /* Adjust this value as needed */
  right: 0; /* Align to the right */
  z-index: 1000; /* Ensure the dropdown is above other content */
}

.dropdown-content.show {
  display: grid; /* Display as grid when shown */
}

.dropdown-content::before {
  content: "Categories"; /* Add heading */
  display: block;
  width: 100%;
  text-align: center;
  font-weight: bold;
  margin-bottom: 10px;
}

.category {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s, box-shadow 0.3s;
  margin: 5px 0;
}

.category:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.category i {
  font-size: 16px; /* Very small icons */
  color: #ff5722;
  margin-bottom: 10px;
}

.category p {
  font-size: 10px; /* Smaller text */
  margin: 0;
  color: #333;
}

.search-container {
  flex-grow: 1;
  margin: 0 20px;
  position: relative;
}

#searchForm {
  display: flex;
  justify-content: center;
}

#searchInput {
  width: 100%;
  padding: 8px;
  border: 2px solid #ccc; /* Make border visible */
  border-radius: 20px; /* Make edges really rounded */
  transition: border-color 0.3s ease;
}

#searchInput:focus {
  border-color: var(--primary-color); /* Change border color when focused */
  outline: none;
}

#searchForm button {
  background-color: #ff6f61;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 20px; /* Make edges really rounded */
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add shading */
}

#searchForm button:hover {
  background-color: #e65c00;
}

.suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
  display: none;
}

.suggestions p {
  padding: 10px;
  cursor: pointer;
}

.suggestions p:hover {
  background-color: #f0f0f0;
}

main {
  padding: 20px;
}

/* Gallery container setup */

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.listings-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.product-item {
  width: 300px;
  margin: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: white;
  position: relative;
}

.profile {
  display: flex;
  align-items: center;
  padding: 10px;
}

.profile img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 10px;
}

/* Your existing CSS remains the same until the product-image-container */

.product-image-container {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.product-image-container:hover {
  transform: translateX(-10px); /* Move slightly to the left */
  transition-delay: 0.5s; /* Add delay before applying the hover effect */
}

.image-slider {
  display: flex;
  transition: transform 0.3s ease-in-out;
  width: 100%;
  height: 100%;
}

.product-image {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Update the pagination dots styles */
.pagination-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.3); /* Add semi-transparent background */
  padding: 5px 10px;
  border-radius: 15px;
}

.dot {
  width: 10px;  /* Slightly larger */
  height: 10px; /* Slightly larger */
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.7); /* Brighter inactive state */
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.2); /* Add border for contrast */
}

.dot.active {
  background-color: #ff5722; /* Use your primary color */
  transform: scale(1.2); /* Slightly larger when active */
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3); /* Add shadow for depth */
}

/* Add touch support */
.product-image-container {
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

/* Rest of your existing CSS remains the same */

.image-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.image-navigation img {
  max-width: 100%;
  height: auto;
  display: block;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: black;
  font-weight: bold;
  font-size: 18px;
  user-select: none;
  -webkit-user-select: none;
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
}

.prev {
  left: -50px;
}

.next {
  right: -50px;
}

.description {
  margin-top: 10px;
  color: #333;
  text-align: left;
  font-size: 14px;
}

.product-price {
  padding: 10px;
  font-size: 18px;
  text-align: center;
}

.product-actions {
  display: flex;
  justify-content: space-around;
  padding: 10px;
  border-top: 1px solid #ccc;
}

.product-actions-button {
  text-align: center;
}

.product-actions-button button,
.product-actions i {
  background-color: #ff5722;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 18px;
}

.product-actions-button button:hover,
.product-actions i:hover {
  background-color: #e64a19;
}
.category-header {
  text-align: center;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.category-icon {
  font-size: 40px;
  color: #ff5722;
}

.category-description {
  font-size: 16px;
  color: #666;
}
.floating-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #ff5722;
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  font-size: 24px;
  transition: transform 0.3s;
}

.floating-button:hover {
  transform: translateY(-5px);
}

.button-text {
  position: absolute;
  bottom: -20px;
  width: 100px;
  text-align: center;
  color: #ff5722;
  font-size: 12px;
  background-color: white;
  border-radius: 5px;
  padding: 2px;
}

.floating-button i {
  position: relative;
  z-index: 1;
}



@keyframes fire {
  0% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
  100% { opacity: 0.5; transform: scale(1); }
}

footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px 0;
  position: relative;
  bottom: 0;
  width: 100%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content h3 {
  margin-bottom: 20px;
}

.socials {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 15px;
}
.suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.suggestion-item {
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.suggestion-item:hover {
  background-color: #f5f5f5;
}

.suggestion-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
}
.share-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.share-modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  position: relative;
  max-width: 90%;
  width: 300px;
}

.share-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 15px;
}

.share-buttons a, .share-buttons button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  border-radius: 5px;
  text-decoration: none;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.share-buttons a:nth-child(1) {
  background-color: #25D366;
}

.share-buttons a:nth-child(2) {
  background-color: #0088cc;
}

.share-buttons a:nth-child(3) {
  background-color: #1DA1F2;
}

.share-buttons button {
  background-color: #6c757d;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #666;
}
.product-image-container {
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.product-image-container:hover {
  opacity: 0.9;
}
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 300px;
  max-width: 450px;
  transform: translateX(120%);
  transition: transform 0.3s ease;
  z-index: 1000;
}

.notification.show {
  transform: translateX(0);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.notification.success {
  border-left: 4px solid #4CAF50;
}

.notification.error {
  border-left: 4px solid #f44336;
}

.notification.warning {
  border-left: 4px solid #ff9800;
}

.notification.info {
  border-left: 4px solid #2196F3;
}

.notification i {
  font-size: 20px;
}

.notification.success i {
  color: #4CAF50;
}

.notification.error i {
  color: #f44336;
}

.notification.warning i {
  color: #ff9800;
}

.notification.info i {
  color: #2196F3;
}

.notification-close {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 4px;
  transition: color 0.3s ease;
}

.notification-close:hover {
  color: #333;
}
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent; /* Changed to transparent */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease-out;
  backdrop-filter: blur(0px); /* Optional: remove if you don't want any blur effect */
}

#loading-overlay.hide {
  opacity: 0;
  pointer-events: none;
}

.loader {
  text-align: center;
}

.loader-content {
  background: transparent; /* Changed to transparent */
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader-gif {
  width: 300px;
  height: 300px;
  object-fit: contain;
}

/* Fallback spinner styles */
.fallback-loader {
  display: none;
}

.fallback-loader .spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-top: 5px solid #ff5722;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.product-tags {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.product-tags .product-condition,
.product-tags .product-age {
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px;
  border-radius: 3px;
  font-size: 12px;
}

/* Cart Notification */
.cart-notification {
  background-color: red;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  position: absolute;
  top: -10px; /* Adjusted to position on the top right */
  right: -10px; /* Adjusted to position on the top right */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000; /* Ensure it appears above other elements */
}

/* Add styles for the clicked button animation */
.clicked {
  animation: click-animation 0.3s ease-in-out;
}

@keyframes click-animation {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Ensure the cloned icon is visible during animation */
.icon-clone {
  position: absolute;
  z-index: 1000;
  transition: all 1s ease-in-out;
}

/* Improve button click animation */
.clicked {
  animation: clickEffect 0.3s ease-out;
  pointer-events: none;
}

@keyframes clickEffect {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Add ripple effect */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  top: 0;
  left: 0;
  border-radius: inherit;
  transform: scale(0);
  opacity: 0;
  transition: all 0.3s ease-out;
  pointer-events: none;
}

.ripple:active::after {
  transform: scale(2);
  opacity: 0;
  transition: 0s;
}

/* Blinking notification */
.blinking-notification {
  background-color: red;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  position: absolute;
  top: -10px;
  right: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: blink-animation 1s infinite;
}

@keyframes blink-animation {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

/* Add styles for the filter form */
.filter-form {
  display: none; /* Initially hidden */
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 20px auto;
}

.filter-form label {
  margin: 10px 0 5px;
  font-weight: bold;
  font-size: 14px;
}

.filter-form input[type="text"],
.filter-form select {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

.filter-form button {
  background-color: #ff5722; /* Carrot color */
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.filter-form button:hover {
  background-color: #e64a19; /* Darker carrot color */
}

/* Quantity Modal */
.quantity-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.quantity-modal-content {
    background: white;
    padding: 32px;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.quantity-modal-content h3 {
    color: #212121;
    margin-bottom: 16px;
    font-size: 24px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 24px 0;
}

.qty-btn {
    background: #ff5722;
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: #e64a19;
    transform: scale(1.1);
}

#buyNowQuantity {
    width: 100px;
    padding: 12px;
    font-size: 24px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
}

.quantity-total {
    background: #fafafa;
    padding: 16px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
}

.quantity-total p {
    font-size: 18px;
    color: #424242;
}

#quantityTotal {
    font-size: 28px;
    font-weight: 700;
    color: #ff5722;
    display: block;
    margin-top: 8px;
}

.quantity-actions {
    display: flex;
    gap: 12px;
}

.cancel-btn, .confirm-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn {
    background: #fafafa;
    color: #212121;
}

.cancel-btn:hover {
    background: #e0e0e0;
}

.confirm-btn {
    background: #ff5722;
    color: white;
}

.confirm-btn:hover {
    background: #e64a19;
    transform: translateY(-2px);
}

/* Variation Cards */
.variation-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 12px;
}

.variation-card:hover {
    border-color: #ff5722;
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.15);
}

.variation-card.selected {
    border-color: #ff5722;
    background: #fff5f2;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.2);
}

.variation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.variation-header h4 {
    color: #212121;
    font-size: 16px;
    margin: 0;
}

.variation-thumb {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    border: 2px solid #e0e0e0;
}

.variation-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.variation-details p {
    font-size: 14px;
    color: #424242;
    margin: 0;
}

.variation-price {
    grid-column: 1 / -1;
    font-size: 16px !important;
    color: #ff5722 !important;
    font-weight: 600;
}

.select-variation-btn {
    width: 100%;
    background: #ff5722;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-variation-btn:hover {
    background: #e64a19;
}

.variation-card.selected .select-variation-btn {
    background: #e64a19;
}

/* Variations Modal */
.variations-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.variations-modal-content {
    background: white;
    padding: 32px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.variations-modal-content h3 {
    color: #212121;
    margin-bottom: 20px;
    font-size: 24px;
}

.variations-list {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.variations-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.variations-modal-actions button {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.variations-modal-close {
    background: #fafafa;
    color: #212121;
}

.variations-modal-close:hover {
    background: #e0e0e0;
}

.variations-modal-continue {
    background: #ff5722;
    color: white;
}

.variations-modal-continue:hover {
    background: #e64a19;
}

/* --- Scrollable Category Strip Styles for Index Page --- */
.category-strip-section {
  margin: 30px 0 10px 0;
  background: #fff;
  border-radius: 12px;
  padding: 10px 0 20px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  
}

.category-strip-section h2 {
  text-align: center;
  margin: 0 0 10px 0;
  font-size: 1.2em;
  color: #ff5722; /* Changed from blue to carrot orange */
  letter-spacing: 0.5px;
}

.category-strip-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0 10px;
}

#categoryStrip {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 14px;
  padding: 10px 0;
  width: 100%;
  scrollbar-width: none; /* Firefox */
}

#categoryStrip::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.category-card {
  flex: 0 0 110px;
  min-width: 110px;
  max-width: 110px;
  height: 120px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-right: 0;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
  border: 2px solid transparent;
  position: relative;
}

.category-card:last-child {
  margin-right: 0;
}

.category-card:hover, .category-card.active {
  box-shadow: 0 4px 16px rgba(255,87,34,0.12);
  border-color: #ff5722;
  transform: translateY(-3px) scale(1.04);
}

.category-card i {
  font-size: 2em;
  color: #ff5722;
  margin-bottom: 8px;
}

.category-card span {
  font-size: 0.95em;
  color: #333;
  text-align: center;
  font-weight: 500;
  word-break: break-word;
}

.scroll-btn {
  background: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  color: #ff5722;
  cursor: pointer;
  margin: 0 4px;
  z-index: 2;
  transition: background 0.2s;
}

.scroll-btn:active {
  background: #ffe5d9;
}

.scroll-left {
  margin-right: 6px;
}

.scroll-right {
  margin-left: 6px;
}

/* Show a peek of the next card */
#categoryStrip {
  padding-right: 30px;
}
.category-strip-wrapper {
  overflow-x: hidden;
}
@media (max-width: 600px) {
  .category-card {
    min-width: 90px;
    max-width: 90px;
    height: 95px;
  }
  #categoryStrip {
    gap: 10px;
    padding-right: 20px;
  }
}

/* --- Variation Mini-Card Styles for Quantity Modal (Category Page) --- */
.modal-variations {
  margin: 18px 0 10px 0;
}

.variations-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.variation-mini-card {
  flex: 0 0 70px;
  min-width: 70px;
  max-width: 70px;
  background: #fafafa;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 7px 4px 7px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  font-size: 12px;
  position: relative;
  user-select: none;
}

.variation-mini-card.selected,
.variation-mini-card:active,
.variation-mini-card:hover {
  border-color: #ff5722;
  background: #fff5f2;
  box-shadow: 0 2px 8px rgba(255,87,34,0.10);
}

.variation-mini-card img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 4px;
  border: 1px solid #e0e0e0;
}

.variation-mini-card i {
  font-size: 1.5em;
  color: #ff5722;
  margin-bottom: 4px;
}

.variation-mini-card p {
  margin: 0;
  font-size: 11px;
  color: #333;
  text-align: center;
  line-height: 1.1;
}

.variation-mini-card .variation-attr {
  color: #888;
  font-size: 10px;
}

.variation-mini-card .variation-stock {
  color: #ff5722;
  font-size: 10px;
  font-weight: 600;
  margin-top: 2px;
}