.hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f8f9fa;
  min-height: 300px;
  display: flex;
  align-items: center;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.hero-slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  margin: 0 auto;
}

/* --- Product Card Image Global Fix --- */
.product-slide img,
.product-card img,
.product-image,
.product-carousel-track img {
  width: 100%;
  height: 200px;
  max-height: 200px;
  object-fit: contain !important;
  object-position: center center;
  background: #fff;
  display: block;
  border-radius: 0.5rem;
}
@media (max-width: 640px) {
  .product-slide img,
  .product-card img,
  .product-image,
  .product-carousel-track img {
    height: 120px;
    max-height: 33vh;
  }
}

/* Prevent cropping in all product/category cards globally */
.aspect-w-16.aspect-h-12 img,
.aspect-w-16 img,
.aspect-h-12 img {
  object-fit: contain !important;
  width: 100%;
  height: 100%;
  background: #fff;
}

/* --- End of Carousel & Product Image Fixes --- */
/* Custom CSS for Fame Storage Website */
:root {
    --primary-green: #098901;
    --primary-blue: #2563eb;
    --dark-gray: #1F2937;
    --light-gray: #F9FAFB;
    --text-gray: #374151;
    --white: #FFFFFF;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-gray);
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
}

/* Top Navbar Hide on Scroll */
#top-navbar.hidden {
    transform: translateY(-100%);
}

/* Main navbar sticky for all devices */
#main-navbar {
    position: sticky;
    top: 0;
    z-index: 40;
}

/* Navigation Styles */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu Overlay Fix */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
}

#mobile-menu.show {
    max-height: 500px;
}

/* Mobile Dropdown */
#mobile-dropdown {
    max-height: 0;
    overflow: hidden;
}

#mobile-dropdown.show {
    max-height: 300px;
}

/* Hero Section - Responsive Design */
.hero-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Dynamic height based on aspect ratio instead of fixed heights */
@media (max-width: 640px) {
    .hero-carousel {
        aspect-ratio: 16/9;
        min-height: 250px;
        max-height: 400px;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .hero-carousel {
        aspect-ratio: 16/9;
        min-height: 300px;
        max-height: 450px;
    }
}

@media (min-width: 769px) {
    .hero-carousel {
        height: 500px;
    }
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure images maintain aspect ratio */
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(9, 137, 1, 0.2), rgba(6, 99, 160, 0.2));
}

/* Hero Navigation Buttons - Clean Design */
.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--primary-green);
    font-size: 1rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

@media (max-width: 640px) {
    .hero-nav-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 0.875rem;
    }
    .hero-nav-btn.left-4 {
        left: 0.5rem;
    }
    .hero-nav-btn.right-4 {
        right: 0.5rem;
    }
}

.hero-nav-btn:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-50%) scale(1.05);
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 20;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.carousel-dot.active {
    background: white;
    transform: scale(1.2);
    border-color: var(--primary-green);
}

/* Carousel Indicators */
.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
}

@media (min-width: 640px) {
    .carousel-dot {
        width: 12px;
        height: 12px;
    }
}

.carousel-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Product Carousel - Improved */
.product-carousel-container {
    position: relative;
}

.product-carousel-track {
    display: flex;
}

.product-slide {
    flex: 0 0 auto;
}

/* Product Navigation Buttons - Clean Design */
.product-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    font-size: 1.25rem;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-nav-btn:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-50%) scale(1.05);
}

.product-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.product-nav-btn:disabled:hover {
    background: white;
    color: var(--primary-green);
    transform: translateY(-50%);
}

/* Responsive Product Carousel */
@media (max-width: 1023px) {
    .product-slide {
        width: 100%;
    }
}

@media (min-width: 1024px) {
    .product-slide {
        width: 33.333%;
    }
}

/* Responsive Hero Carousel */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-carousel {
        height: 70vh;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #076b01;
}

/* Back to Top Button */
#backToTop {
    transition: all 0.3s ease-in-out;
    transform-origin: center;
}

#backToTop.visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1) !important;
}

#backToTop:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
}

/* Utility Classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Responsive Design */
@media (max-width: 640px) {
    .container {
        padding: 1rem;
    }
    
    .grid-responsive {
        grid-template-columns: 1fr;
    }
    
    /* Mobile navigation improvements */
    #mobile-menu {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .grid-responsive {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .grid-responsive {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Focus styles for better accessibility */
button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* Products Page Styles */

/* Breadcrumb Section */
.breadcrumb-section {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, rgba(9, 137, 1, 0.3), rgba(6, 99, 160, 0.3)),
                url('/static/img/carousel/plastic-pallet-warehouse-uae.webp') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.breadcrumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.breadcrumb-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    padding: 0 1rem;
}

.breadcrumb-nav {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.breadcrumb-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb-link:hover {
    color: white;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-current {
    color: white;
    font-weight: 500;
}

.breadcrumb-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Main Content */
.main-content {
    padding: 3rem 0;
    background: #f8f9fa;
    width: 100%;
}

.container {
    width: 90%;
    max-width: 1530px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

@media (min-width: 1535px) {
    .container {
        width: 50%;  /* Fixed width at and above 1535px */
    }
}

@media (max-width: 1024px) {
    .container {
        max-width: 95%;
    }
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Product Content */
.product-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-intro {
    margin-bottom: 2rem;
}

.category-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.category-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #6b7280;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem 0;
}

.features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: #374151;
}

.features-list li:last-child {
    margin-bottom: 0;
}

.features-list i {
    color: var(--primary-green);
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

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

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-fluid {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 0.5rem;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.product-dimensions {
    font-size: 0.9rem;
    color: var(--primary-blue);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.product-specs {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.quote-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-green), #076b01);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.quote-btn i {
    font-size: 0.8rem;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Quote Form Widget */
.quote-form-widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
    text-align: center;
}

.quote-form .form-group {
    margin-bottom: 1rem;
}

.quote-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(9, 137, 1, 0.1);
}

.quote-form textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-green), #076b01);
    color: white;
    border: none;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Categories Widget */
.categories-widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    border-bottom: 1px solid #f3f4f6;
}

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

.category-link {
    display: block;
    padding: 0.75rem 0;
    color: #374151;
    text-decoration: none;
    font-size: 0.9rem;
    position: relative;
}

.category-link:hover {
    color: var(--primary-green);
}

.category-link.active {
    color: var(--primary-green);
    font-weight: 500;
}

.category-link.active::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--primary-green);
    border-radius: 2px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(5px);
}

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

.modal-container {
    background: white;
    border-radius: 12px;
    width: 80%;
    max-width: 480px; /* Changed from 600px to 480px */
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}


.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #000000;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #514d4d;
}

.modal-body {
    padding: 1.5rem;
}

.modal-form .form-group {
    margin-bottom: 1rem;
}

.modal-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;   /* Reduced padding */
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.8rem;         /* Smaller font size */
}


.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(9, 137, 1, 0.1);
}

.modal-form input[readonly] {
    background: #f9fafb;
    color: #6b7280;
}

.modal-form textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.cancel-btn {
    background: #f3f4f6;
    color: #374151;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

.cancel-btn:hover {
    background: #e5e7eb;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .breadcrumb-title {
        font-size: 2rem;
    }
    
    .main-content {
        padding: 2rem 0;
    }
    
    .product-content {
        padding: 1.5rem;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .category-description {
        font-size: 1rem;
    }
    
    .quote-form-widget,
    .categories-widget {
        padding: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .cancel-btn,
    .submit-btn {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .breadcrumb-section {
        height: 150px;
    }
    
    .breadcrumb-title {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    .product-content {
        padding: 1rem;
    }
    
    .modal-header,
    .modal-body {
        padding: 1rem;
    }
}



/* carousel FIXES */

.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Remove all fixed heights! */
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 0;
    transition: opacity 0.6s ease-in-out;
    display: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
    z-index: 1;
    display: block;
}

.hero-slide img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 100vh;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
}





/* new carousel fixes */

/* HERO CAROUSEL - FIXED VERSION */
.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f8f9fa;
    /* Remove fixed heights - let content determine height */
    min-height: 200px; /* Fallback minimum */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 2;
}

.hero-slide img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
    /* Ensure images maintain their natural aspect ratio */
}

/* Dynamic carousel height based on active image */
.hero-carousel.height-calculated {
    height: auto;
}

/* Hero Navigation Buttons - FIXED POSITIONING */
.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--primary-green);
    font-size: 1.1rem;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 50; /* Higher z-index to ensure visibility */
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    user-select: none;
}

/* Responsive button sizing and positioning */
@media (max-width: 640px) {
    .hero-nav-btn {
        width: 2.8rem;
        height: 2.8rem;
        font-size: 0.9rem;
    }
    
    /* Ensure buttons stay within viewport */
    .hero-nav-btn[class*="left"] {
        left: 0.75rem;
    }
    
    .hero-nav-btn[class*="right"] {
        right: 0.75rem;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .hero-nav-btn {
        width: 3rem;
        height: 3rem;
        font-size: 1rem;
    }
}

.hero-nav-btn:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 25px rgba(9, 137, 1, 0.3);
}

.hero-nav-btn:active {
    transform: translateY(-50%) scale(1.02);
}

/* Carousel Indicators - IMPROVED */
.carousel-indicators {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    z-index: 30;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 640px) {
    .carousel-indicators {
        bottom: 1rem;
        gap: 0.4rem;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
}

.carousel-dot.active {
    background: white;
    border-color: var(--primary-green);
    transform: scale(1.25);
    box-shadow: 0 3px 12px rgba(9, 137, 1, 0.4);
}

/* Smooth loading state */
.hero-carousel.loading {
    min-height: 300px;
}

.hero-carousel.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(9, 137, 1, 0.3);
    border-top: 3px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Product carousel image fixes remain the same */
.product-slide img,
.product-card img,
.product-image,
.product-carousel-track img {
    width: 100%;
    height: 200px;
    max-height: 200px;
    object-fit: contain !important;
    object-position: center center;
    background: #fff;
    display: block;
    border-radius: 0.5rem;
}

@media (max-width: 640px) {
    .product-slide img,
    .product-card img,
    .product-image,
    .product-carousel-track img {
        height: 120px;
        max-height: 33vh;
    }
}

/* Prevent any unwanted spacing around carousel */
.hero-carousel + * {
    margin-top: 0;
}

/* Ensure carousel container doesn't create extra spacing */
section:has(.hero-carousel) {
    padding: 0;
    margin: 0;
}

/* Fix for any section immediately following the carousel */
.hero-carousel ~ section:first-of-type,
section:has(.hero-carousel) + section {
    padding-top: 4rem;
}

@media (max-width: 768px) {
    .hero-carousel ~ section:first-of-type,
    section:has(.hero-carousel) + section {
        padding-top: 2rem;
    }
}
