/* =============================================================================
   HOME COMPONENTS UNIFIED STYLES
   Centralized styling for all home page components
   ============================================================================= */

/* =============================================================================
   GLOBAL VARIABLES & UTILITIES
   ============================================================================= */
:root {
  --primary-color: var(--bs-primary);
  --secondary-color: var(--bs-secondary);
  --accent-color: var(--bs-warning);
  --gradient-primary: linear-gradient(90deg, var(--bs-primary) 0%, var(--bs-info) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-warning) 100%);
  --gradient-background: linear-gradient(120deg, var(--bs-light) 60%, var(--bs-warning-bg-subtle) 100%);
  --card-radius: 1rem;
  --card-img-height: 250px;
  --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 20px 40px rgba(var(--bs-primary-rgb), 0.15);
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

/* Common gradient text */
.text-gradient {
  background: var(--bs-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Common badge styling */
.badge {
  font-size: 0.9rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--bs-warning-rgb),0.7); }
  70% { box-shadow: 0 0 0 10px rgba(var(--bs-warning-rgb),0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--bs-warning-rgb),0); }
}

/* =============================================================================
   HERO SECTION
   ============================================================================= */
.hero-section {
  background: var(--gradient-background);
  position: relative;
}

.hero-section .text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-img {
  box-shadow: 0 8px 32px 0 rgba(var(--bs-primary-rgb),0.15), 0 1.5px 8px 0 rgba(0,0,0,0.04);
  border: 4px solid var(--bs-white);
  transition: var(--transition-normal);
  border-radius: 20px !important;
  max-width: 100%;
  min-width: 180px;
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.hero-img:hover {
  transform: scale(1.05) rotate(-1deg);
  box-shadow: 0 15px 45px 0 rgba(var(--bs-primary-rgb),0.20);
}

/* Carousel Styles */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 20px;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

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

/* Carousel Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
  flex-wrap: nowrap;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition-normal);
  border: 2px solid var(--bs-white);
  flex-shrink: 0;
  display: block;
  box-sizing: border-box;
}

.indicator.active {
  background: var(--bs-warning);
  transform: scale(1.2);
}

.indicator:hover {
  background: var(--bs-primary);
  transform: scale(1.1);
}

/* Hero Buttons */
.hero-section .btn-danger {
  background: linear-gradient(45deg, var(--bs-primary), var(--bs-warning));
  border: none;
  box-shadow: 0 4px 15px 0 rgba(var(--bs-primary-rgb),0.3);
}

.hero-section .btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(var(--bs-primary-rgb),0.4);
}

.hero-section .btn-outline-warning {
  background: var(--bs-white);
  border: 2px solid var(--bs-warning);
  color: var(--bs-warning);
  font-weight: 600;
}

.hero-section .btn-outline-warning:hover {
  background: var(--bs-warning);
  color: var(--bs-white);
  transform: translateY(-2px);
}

/* Floating elements animation */
.hero-image-container {
  position: relative;
}

.floating-element {
  position: absolute;
  font-size: 2rem;
  animation: float 3s ease-in-out infinite;
  opacity: 0.8;
}

.floating-element-1 {
  top: 10%;
  right: -10%;
  animation-delay: 0s;
}

.floating-element-2 {
  bottom: 15%;
  left: -15%;
  animation-delay: 1s;
}

.floating-element-3 {
  top: 60%;
  right: -5%;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

/* =============================================================================
   PRODUCTS SECTION
   ============================================================================= */
.products-compact-section {
  background: var(--gradient-background);
  position: relative;
}

.products-compact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 15% 85%, rgba(var(--bs-primary-rgb),0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 15%, rgba(var(--bs-warning-rgb),0.08) 0%, transparent 50%);
  pointer-events: none;
}

.section-header {
  padding: 1rem 0;
  border-bottom: 2px solid rgba(var(--bs-primary-rgb),0.1);
  margin-bottom: 1.5rem;
}

.product-compact-card {
  background: var(--bs-white);
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); /* Subtle shadow like premium themes */
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Professional easing */
  border: 1px solid #e8e8e8; /* Clean subtle border */
  position: relative;
  cursor: pointer;
}

.product-compact-card:hover, .product-compact-card:focus {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); /* Enhanced shadow on hover */
  border-color: #d0d0d0;
  transform: translateY(-4px); /* Subtle lift effect */
  z-index: 2;
}

.product-compact-card:hover .product-quick-order {
  opacity: 1;
  transform: translateY(0);
}

.product-quick-order {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 5;
  opacity: 0;
  transform: translateY(-10px);
  transition: var(--transition-normal);
}

.product-quick-order .btn {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  box-shadow: 0 4px 15px rgba(var(--bs-primary-rgb),0.3);
}

/* Hide overlay button on mobile, show on larger screens */
@media (max-width: 767px) {
  .product-quick-order {
    display: none !important;
  }
}

/* Mobile action button styles */
.product-mobile-action {
  border-top: 1px solid var(--bs-light);
}

.product-mobile-action .btn {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: var(--transition-fast);
}

.product-mobile-action .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-compact-img-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1; /* 1:1 ratio for square images */
  background: #ffffff; /* Clean white background like Shopify themes */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-top-left-radius: 1.2rem;
  border-top-right-radius: 1.2rem;
  /*padding: 1.25rem;  Professional padding to show full product */
  border-bottom: 1px solid #f5f5f5; /* Very subtle separator */
}

.product-compact-img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Show entire product without cropping - Shopify standard */
  object-position: center; /* Center the image within the container */
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), /* Smooth professional easing */
              opacity 0.3s ease;
  will-change: transform; /* Performance optimization */
}

.product-compact-card:hover .product-compact-img {
  transform: scale(1.05); /* Subtle zoom like premium themes */
}

.product-compact-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa; /* Very light gray background */
  color: #d0d0d0; /* Subtle icon color */
  font-size: 2.5rem;
  transition: color 0.3s ease;
}

.product-compact-card:hover .product-compact-img-placeholder {
  color: var(--bs-warning); /* Animate color on hover */
}

.product-compact-badge-hot, .product-compact-badge-featured {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 4;
  font-size: 0.8rem;
  padding: 0.4em 0.8em;
  border-radius: 1rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.product-compact-body {
  padding: 1.25rem 1.1rem; /* More generous padding like Shopify */
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--bs-white);
}

.product-compact-title {
  color: #2c2c2c; /* Darker for better readability */
  font-size: 1rem;
  font-weight: 600; /* Medium weight like Shopify */
  letter-spacing: -0.01em; /* Tighter letter spacing */
  line-height: 1.4;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Limit to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-compact-category {
  color: #6c757d; /* Subtle gray */
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: capitalize;
  letter-spacing: 0.02em;
}

.product-compact-pricing {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 0.25rem;
  letter-spacing: -0.02em; /* Tighter for numbers */
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap; /* Prevent wrapping to new line */
  white-space: nowrap; /* Keep prices on same line */
}

.product-compact-pricing .text-primary {
  color: var(--bs-primary) !important;
}

.product-compact-pricing .text-muted {
  font-size: 0.9em; /* Slightly smaller strikethrough price */
}

/* =============================================================================
   PRODUCT MODAL STYLES
   ============================================================================= */
#productModal .modal-content {
  border: none;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

#productModal .modal-header {
  background: linear-gradient(135deg, var(--bs-light) 0%, var(--bs-gray-200) 100%);
  border-radius: 20px 20px 0 0;
}

/* Product Badges in Modal */
#productModal .product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.8rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
}

#productModal .product-badge.hot-deal {
  background: var(--bs-danger);
  color: var(--bs-white);
}

#productModal .product-badge.featured {
  background: var(--bs-warning);
  color: var(--bs-dark);
}

#productModal .product-badge.new {
  background: var(--bs-info);
  color: var(--bs-white);
}

/* Product Gallery in Modal */
#productModal .product-gallery .main-image {
  border: 1px solid var(--bs-border-color);
  background: var(--bs-white);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#productModal .main-product-img {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#productModal .main-product-img:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

/* Product Thumbnails in Modal */
#productModal .product-thumbnails {
  margin-top: 0.75rem;
}

#productModal .thumbnail-wrapper {
  padding: 0;
}

#productModal .product-thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border: 2px solid var(--bs-border-color);
  border-radius: 8px;
  transition: all 0.2s ease;
  background: var(--bs-white);
}

#productModal .product-thumb.active {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.15);
  transform: scale(1.05);
}

#productModal .product-thumb:hover {
  border-color: var(--bs-primary);
  opacity: 0.9;
}

/* Product Info Card in Modal */
#productModal .product-info-card {
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  background: var(--bs-white);
  border: 1px solid var(--bs-border-color);
}

/* Price Section in Modal */
#productModal .price-section {
  margin-bottom: 1rem;
}

#productModal .price-card {
  background: var(--bs-light);
  border: 1px solid var(--bs-gray-400);
  border-radius: 8px;
  padding: 1rem;
}

#productModal .price-content {
  text-align: left;
}

#productModal .price-main {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

#productModal .price-current {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bs-primary);
  line-height: 1;
}

#productModal .price-details {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

#productModal .price-original {
  font-size: 1.25rem;
  color: var(--bs-secondary);
  text-decoration: line-through;
  font-weight: 400;
}

#productModal .discount-badge {
  background: var(--bs-danger);
  color: var(--bs-white);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
}

/* Variants in Modal */
#productModal .variant-btn {
  border-radius: 8px;
  transition: all 0.2s ease;
  border: 2px solid var(--bs-border-color);
  min-width: 140px;
  text-align: center;
}

#productModal .variant-name {
  font-size: 0.9rem;
  line-height: 1.2;
}

#productModal .variant-price-info {
  font-size: 0.85rem;
  line-height: 1;
}

#productModal .variant-price {
  color: var(--bs-dark);
  font-size: 1rem;
}

#productModal .variant-original-price {
  color: var(--bs-secondary);
  opacity: 0.7;
}

#productModal .variant-discount {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
}

#productModal .variant-active {
  background: var(--bs-warning) !important;
  border-color: var(--bs-warning) !important;
  box-shadow: 0 2px 8px rgba(var(--bs-warning-rgb), 0.25);
}

#productModal .variant-active .variant-name,
#productModal .variant-active .variant-price {
  color: var(--bs-white) !important;
}

#productModal .variant-active .variant-original-price {
  color: rgba(255, 255, 255, 0.8) !important;
}

#productModal .variant-inactive {
  background: var(--bs-white);
  color: var(--bs-gray-600);
  border-color: var(--bs-border-color);
}

#productModal .variant-inactive:hover {
  background: var(--bs-light);
  border-color: var(--bs-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Quantity Section in Modal */
#productModal .quantity-group {
  border-radius: 8px;
  overflow: hidden;
  background: var(--bs-white);
  border: 2px solid var(--bs-border-color);
  height: 42px;
  width: 130px;
}

#productModal .btn-qty {
  width: 38px;
  height: 38px;
  border: none;
  background: var(--bs-primary);
  color: var(--bs-white);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

#productModal .btn-qty:hover {
  background: var(--bs-primary);
  filter: brightness(0.9);
  transform: scale(1.05);
}

#productModal .btn-qty:active {
  background: var(--bs-primary);
  filter: brightness(0.85);
  transform: scale(0.95);
}

#productModal .btn-qty i {
  font-size: 0.75rem;
}

#productModal .quantity-input {
  border: none;
  background: transparent;
  font-weight: 600;
  font-size: 1rem;
  flex: 1;
  height: 38px;
  min-width: 0;
  padding: 0 4px;
  color: var(--bs-dark);
  text-align: center;
}

#productModal .quantity-input:focus {
  box-shadow: none;
  outline: none;
}

/* Purchase Section in Modal */
#productModal .purchase-section {
  border: 2px solid var(--bs-border-color);
  background: var(--bs-white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

/* Add to Cart Button in Modal */
#productModal .add-to-cart-btn {
  background: var(--bs-primary);
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#productModal .add-to-cart-btn:hover {
  background: var(--bs-primary);
  filter: brightness(0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(var(--bs-primary-rgb), 0.3);
}

#productModal .add-to-cart-btn:active {
  transform: translateY(0);
}

/* Trust Badges in Modal */
#productModal .trust-badge {
  transition: all 0.2s ease;
  border: 1px solid var(--bs-border-color) !important;
}

#productModal .trust-badge:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  border-color: var(--bs-gray-400) !important;
}

/* =============================================================================
   NEWSLETTER SECTION
   ============================================================================= */
.newsletter-signup-section {
  background: var(--gradient-secondary);
  position: relative;
  overflow: hidden;
}

.newsletter-signup-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 25% 75%, rgba(var(--bs-white-rgb),0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 25%, rgba(var(--bs-white-rgb),0.08) 0%, transparent 50%);
  pointer-events: none;
}

.newsletter-signup-section .text-gradient {
  background: var(--bs-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.newsletter-card {
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  transition: var(--transition-normal);
}

.newsletter-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(var(--bs-primary-rgb),0.3) !important;
}

.benefits-list {
  flex-wrap: wrap;
  gap: 1rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(var(--bs-white-rgb),0.1);
  border-radius: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--bs-white-rgb),0.2);
  transition: var(--transition-normal);
}

.benefit-item:hover {
  background: rgba(var(--bs-white-rgb),0.2);
  transform: translateY(-2px);
}

#newsletter-signup .input-group-text {
  border-radius: 2rem 0 0 2rem !important;
  border-right: none !important;
}

#newsletter-signup .newsletter-form input[type="email"] {
  font-size: 1.1rem;
  padding: 0.75rem 1rem;
  transition: var(--transition-normal);
}

.newsletter-form input[type="email"]:focus {
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb),0.25);
  border-color: var(--bs-primary);
}

.newsletter-form input[type="email"]:focus + .input-group-text {
  border-color: var(--bs-primary);
}

.btn-gradient {
  background: linear-gradient(45deg, var(--bs-primary), var(--bs-warning));
  color: var(--bs-white);
  border: none;
  transition: var(--transition-normal);
  box-shadow: 0 6px 20px rgba(var(--bs-primary-rgb),0.3);
  letter-spacing: 0.03em;
  position: relative;
  overflow: hidden;
}

.btn-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255,255,255,0.2), transparent);
  transition: var(--transition-slow);
}

.btn-gradient:hover::before {
  left: 100%;
}

.btn-gradient:hover, .btn-gradient:focus {
  background: linear-gradient(45deg, var(--bs-warning), var(--bs-primary));
  box-shadow: 0 8px 25px rgba(var(--bs-primary-rgb),0.4);
  transform: translateY(-2px) scale(1.02);
  color: var(--bs-white);
}

/* =============================================================================
   GOOGLE MAP SECTION
   ============================================================================= */
.google-map-section {
  background: linear-gradient(135deg, var(--bs-light) 0%, var(--bs-warning-bg-subtle) 15%, var(--bs-light) 100%);
  position: relative;
  overflow: hidden;
}

.google-map-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(var(--bs-primary-rgb), 0.03) 0%, transparent 50%);
  animation: floating 20s ease-in-out infinite;
}

@keyframes floating {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-20px, -10px) rotate(1deg); }
  66% { transform: translate(10px, -20px) rotate(-1deg); }
}

.map-container {
  position: relative;
  transition: transform 0.3s ease;
}

.map-container:hover {
  transform: scale(1.02);
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.map-container:hover .map-overlay {
  opacity: 1;
}

.overlay-content {
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.map-container:hover .overlay-content {
  transform: translateY(0);
}

.info-card {
  background: linear-gradient(135deg, var(--bs-white) 0%, var(--bs-light) 100%);
  border: 1px solid rgba(var(--bs-primary-rgb), 0.1);
  transition: var(--transition-normal);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy) !important;
}

.icon-circle {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.info-item {
  transition: transform 0.2s ease;
}

.info-item:hover {
  transform: translateX(5px);
}

.service-card {
  background: linear-gradient(135deg, var(--bs-white) 0%, var(--bs-light) 100%);
  border: 1px solid rgba(var(--bs-warning-rgb), 0.2);
  transition: var(--transition-normal);
  cursor: pointer;
}

.service-card:hover {
  background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-warning) 100%);
  color: var(--bs-white);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(var(--bs-primary-rgb), 0.3);
}

.service-card:hover i {
  color: var(--bs-white) !important;
  transform: scale(1.1);
}

.service-card:hover .text-muted {
  color: rgba(var(--bs-white-rgb), 0.8) !important;
}

.action-buttons .btn {
  transition: var(--transition-normal);
}

.action-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* =============================================================================
   ALERT STYLES
   ============================================================================= */
.alert {
  border-radius: 1rem;
  border: none;
}

.alert-success {
  background: linear-gradient(45deg, rgba(var(--bs-success-rgb),0.1), rgba(var(--bs-success-rgb),0.05));
  color: var(--bs-success);
  border-left: 4px solid var(--bs-success);
}

.alert-danger {
  background: linear-gradient(45deg, rgba(var(--bs-danger-rgb),0.1), rgba(var(--bs-danger-rgb),0.05));
  color: var(--bs-danger);
  border-left: 4px solid var(--bs-danger);
}

/* =============================================================================
   CART COUNTER ANIMATION
   ============================================================================= */
.animate__pulse {
  animation: pulse 0.6s ease-in-out;
}

/* Loading Animation */
.spinner-border {
  width: 3rem;
  height: 3rem;
}

/* =============================================================================
   RESPONSIVE BREAKPOINTS
   ============================================================================= */

/* Large screens (desktop) */
@media (max-width: 991.98px) {
  .hero-section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
  
  .hero-img {
    max-width: 320px;
    height: 280px;
  }
  
  .hero-carousel {
    height: 280px;
  }
  
  .floating-element {
    font-size: 1.5rem;
  }
  
  .carousel-indicators {
    bottom: 15px;
    gap: 8px;
  }
  
  .indicator {
    width: 10px;
    height: 10px;
    border-width: 1.5px;
  }
  
  .product-compact-img-wrapper {
    /* padding: 0.875rem; /* Slightly less padding on mobile */
  }
  
  .product-compact-body {
    padding: 1rem 0.875rem; /* Compact padding for mobile */
  }
  
  .product-compact-title {
    font-size: 0.95rem; /* Slightly smaller on mobile */
  }
  
  .product-compact-pricing {
    font-size: 1rem; /* Slightly smaller on mobile */
    gap: 0.4rem;
  }
  
  .product-compact-pricing .text-muted {
    font-size: 0.85em; /* Even smaller strikethrough on mobile */
  }
  
  .benefits-list {
    justify-content: center;
    margin-bottom: 2rem;
  }
  
  .benefit-item {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
  
  .newsletter-card {
    margin: 0 1rem;
  }
  
  #productModal .modal-dialog {
    margin: 1rem;
    max-width: calc(100% - 2rem);
  }
  
  #productModal .product-gallery .main-image {
    min-height: 260px;
  }
  
  #productModal .main-product-img {
    max-height: 360px !important;
  }
  
  #productModal .product-thumb {
    width: 65px;
    height: 65px;
  }
  
  #productModal .product-info-card {
    margin-top: 1rem;
    padding: 1.25rem !important;
  }
  
  #productModal .price-current {
    font-size: 1.8rem !important;
  }
  
  #productModal .modal-body {
    padding: 1rem;
  }
}

/* Medium screens (tablet) */
@media (max-width: 767px) {
  #productModal .modal-xl {
    max-width: 95%;
  }
  
  #productModal .product-thumb {
    width: 60px;
    height: 60px;
  }
  
  #productModal .product-info-card {
    padding: 1rem !important;
    margin-top: 0.75rem;
  }
  
  #productModal .price-card {
    padding: 0.75rem !important;
    border-radius: 8px;
  }
  
  #productModal .price-current {
    font-size: 1.6rem !important;
  }
  
  #productModal .product-header {
    margin-bottom: 1rem !important;
  }
  
  #productModal .h2 {
    font-size: 1.4rem !important;
  }
  
  #productModal .features-section,
  #productModal .variants-container {
    margin-bottom: 1rem !important;
  }
  
  #productModal .variant-btn {
    width: 100%;
    min-width: 100%;
    text-align: left;
  }
  
  #productModal .variant-price-info {
    justify-content: flex-start !important;
  }
  
  #productModal .purchase-section {
    padding: 0.75rem !important;
    border-radius: 8px;
  }
  
  #productModal .purchase-section .row {
    flex-direction: column;
  }
  
  #productModal .purchase-section .col-auto,
  #productModal .purchase-section .col {
    width: 100%;
    max-width: 100%;
  }
  
  #productModal .quantity-group {
    width: 100%;
    max-width: 180px;
    margin: 0 auto;
  }
  
  #productModal .add-to-cart-btn {
    margin-top: 0.5rem;
    padding: 0.65rem 1rem !important;
    font-size: 0.9rem !important;
  }
  
  #productModal .main-image {
    padding: 0.75rem !important;
    min-height: 220px;
  }
  
  #productModal .main-product-img {
    max-height: 300px !important;
  }
  
  #productModal .product-thumbnails {
    gap: 0.4rem !important;
  }
  
  .map-container iframe {
    height: 300px;
  }
  
  .info-card {
    margin-top: 2rem;
  }
  
  .service-card {
    margin-bottom: 1rem;
  }
}

/* Small screens (mobile) */
@media (max-width: 575.98px) {
  :root {
    --card-img-height: 200px;
  }
  
  .hero-section {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  
  .hero-img {
    max-width: 90vw;
    height: 250px;
  }
  
  .hero-carousel {
    height: 250px;
  }
  
  .hero-section h1 {
    font-size: 2.1rem;
  }
  
  .floating-element {
    display: none;
  }
  
  .position-absolute.top-0.end-0,
  .position-absolute.bottom-0.start-0 {
    display: none;
  }
  
  .carousel-indicators {
    bottom: 12px;
    gap: 6px;
  }
  
  .indicator {
    width: 8px;
    height: 8px;
    border-width: 1px;
    border-radius: 50%;
  }
  
  .indicator.active {
    transform: scale(1.3);
  }
  
  .indicator:hover {
    transform: scale(1.2);
  }
  
  .product-compact-img-wrapper {
    /* aspect-ratio: 1 / 1 is maintained from main declaration */
  }
  
  .product-compact-pricing {
    font-size: 0.95rem; /* Compact pricing on small phones */
    gap: 0.3rem;
  }
  
  .product-compact-pricing span {
    line-height: 1.2; /* Tighter line height */
  }
  
  .benefits-list {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  .benefit-item {
    width: 100%;
    justify-content: center;
    max-width: 280px;
  }
  
  .newsletter-card {
    margin: 0;
    padding: 1.5rem !important;
  }
  
  
  
}

/* Extra small screens */
@media (max-width: 380px) {
  .carousel-indicators {
    bottom: 10px;
    gap: 5px;
  }
  
  .indicator {
    width: 7px;
    height: 7px;
    border-width: 1px;
    border-radius: 50%;
  }
}

/* =============================================================================
   PRINT STYLES
   ============================================================================= */
@media print {
  .floating-element,
  .carousel-indicators,
  .image-nav-arrows,
  .product-quick-order,
  .product-mobile-action {
    display: none !important;
  }
}