/* Custom color overrides */

/* Override Bootstrap primary color with a darker red */
:root {
  --bs-primary: #b71c1c; /* Darker red */
  --bs-primary-rgb: 183, 28, 28;
}

.btn-primary {
  --bs-btn-bg: #b71c1c;
  --bs-btn-border-color: #b71c1c;
  --bs-btn-hover-bg: #9a0007;
  --bs-btn-hover-border-color: #8d0007;
  --bs-btn-active-bg: #8d0007;
  --bs-btn-active-border-color: #7f0006;
  --bs-btn-disabled-bg: #b71c1c;
  --bs-btn-disabled-border-color: #b71c1c;
}

/* ===================================
   Product Card Modernization
   =================================== */

/* Product card hover effect */
.product-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15) !important;
}

/* Product image zoom on hover */
.product-image {
  transition: transform 0.4s ease;
}

.product-card:hover .product-image {
  transform: scale(1.08);
}

/* Hover overlay - hidden by default */
.product-overlay {
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

/* Smooth transitions for all interactive elements */
.card-title,
.btn {
  transition: color 0.2s ease, background-color 0.2s ease;
}

/* Better responsive spacing */
@media (max-width: 576px) {
  .product-card {
    margin-bottom: 1rem;
  }
}

/* Success badge styling */
.bg-success-subtle {
  background-color: rgba(25, 135, 84, 0.1) !important;
}

.text-success {
  color: #198754 !important;
}

/* ===================================
   Product Detail Page
   =================================== */

/* Sticky product info on desktop */
@media (min-width: 992px) {
  .product-info-sticky {
    position: sticky;
    top: 140px; /* Account for fixed navbar */
  }
}

/* Product image container */
.main-image-container {
  border-radius: 0.5rem;
  overflow: hidden;
  padding: 1rem;
}

/* Gallery image transitions */
.gallery-main-image {
  transition: opacity 0.3s ease;
}

/* Thumbnail button hover */
.thumbnail-btn {
  border-radius: 0.375rem;
  overflow: hidden;
  transition: all 0.2s ease;
}

.thumbnail-btn:hover {
  border-color: var(--bs-primary) !important;
  transform: scale(1.05);
}

.thumbnail-btn.active {
  box-shadow: 0 0 0 2px rgba(183, 28, 28, 0.2);
}

/* Product info card enhancements */
.product-info-sticky .card {
  border-radius: 1rem;
}

/* Quantity input styling */
#product-qty {
  font-weight: 600;
  border-left: none;
  border-right: none;
}

/* Product highlights list */
.product-highlights li:last-child {
  border-bottom: none !important;
}

/* Responsive improvements for detail page */
@media (max-width: 991px) {
  .product-info-sticky {
    margin-top: 2rem;
  }

  .main-image-container {
    margin-bottom: 1rem;
  }
}
