/* Weed Delivery Page Styles */

/* Product Categories Section Styles */
.product-categories-container {
    padding: 20px 0;
}

.product-category-section {
    margin-bottom: 60px;
}

.category-header {
    margin-bottom: 30px;
    padding: 0 20px;
    text-align: left;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2E2B26;
    margin-bottom: 15px;
    text-align: left;
}

.category-description {
    font-size: 1.1rem;
    color: #6c757d;
    text-align: left;
    margin-bottom: 0;
}

/* FAQ Description - Keep centered */
.faq-description-container .category-description {
    text-align: center;
}

/* Gallery Section Styling */
.gallery-full-width-section {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.gallery-slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    position: relative;
    min-height: 400px;
}

.gallery-slider {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    width: 100vw;
    max-width: 100vw;
    height: 100%;
    margin: 0;
}

.gallery-slider::-webkit-scrollbar {
    display: none;
}

.gallery-slide {
    flex-shrink: 0;
    scroll-snap-align: start;
    width: 600px;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 0;
    padding: 0;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    margin: 0;
    padding: 0;
}

.gallery-slide:hover .gallery-image {
    transform: scale(1.05);
}

/* Gallery Navigation Buttons */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    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;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gallery-nav:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gallery-nav.prev-btn {
    left: 10px;
}

.gallery-nav.next-btn {
    right: 10px;
}

.gallery-nav i {
    font-size: 18px;
    color: #2E2B26;
}

.no-gallery-text {
    color: #6c757d;
    font-style: italic;
    padding: 40px 0;
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-slider-container {
        min-height: 450px;
    }
    
    .gallery-slide {
        width: 500px;
        height: 350px;
    }
    
    .gallery-image {
        height: 250px;
    }
    
    .gallery-nav {
        width: 35px;
        height: 35px;
    }
    
    .gallery-nav i {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .gallery-slider-container {
        min-height: 400px;
    }
    
    .gallery-slide {
        width: 400px;
        height: 300px;
    }
    
    .gallery-image {
        height: 200px;
    }
    
    .gallery-nav {
        width: 30px;
        height: 30px;
    }
    
    .gallery-nav i {
        font-size: 14px;
    }
}

/* Enhanced carousel container */
.product-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    margin: 0 20px;
}

.product-carousel-inner {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0 20px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    /* Ensure last card is visible */
    scroll-padding-right: 20px;
}

.product-carousel-inner::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Simple scroll snap */
.product-carousel-inner {
    scroll-snap-type: x mandatory;
}

.product-carousel-inner .best_seller_card {
    scroll-snap-align: start;
}

/* Responsive Card Display - Different number of cards per row based on screen size */
.product-carousel-inner .best_seller_card {
    flex-shrink: 0;
    margin: 0;
}

/* Desktop - Show 4 cards */
@media (min-width: 1200px) {
    .product-carousel-inner .best_seller_card {
        min-width: calc(25% - 15px);
        max-width: calc(25% - 15px);
    }
}

/* Large screens - Show 3 cards */
@media (min-width: 992px) and (max-width: 1199px) {
    .product-carousel-inner .best_seller_card {
        min-width: calc(33.333% - 15px);
        max-width: calc(33.333% - 15px);
    }
}

/* Medium screens - Show 2 cards */
@media (min-width: 768px) and (max-width: 991px) {
    .product-carousel-inner .best_seller_card {
        min-width: calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

/* Mobile - Show 1 full card with proper spacing */
@media (max-width: 767px) {
    .product-carousel-inner .best_seller_card {
        min-width: 100%;
        max-width: 100%;
        margin: 0 10px;
    }
    
    .product-carousel-container {
        margin: 0 10px;
    }
    
    .product-carousel-inner {
        padding: 0 10px;
        scroll-padding-right: 10px;
    }
    
    .carousel-nav.prev-btn {
        left: 10px !important;
    }
    
    .carousel-nav.next-btn {
        right: 10px !important;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .carousel-nav i {
        font-size: 18px;
    }
}

/* Extra small mobile screens */
@media (max-width: 480px) {
    .product-carousel-inner .best_seller_card {
        margin: 0 5px;
    }
    
    .product-carousel-container {
        padding: 15px 0;
    }
    
    .carousel-nav.prev-btn {
        left: 5px !important;
    }
    
    .carousel-nav.next-btn {
        right: 5px !important;
    }
    
    .carousel-nav {
        width: 35px;
        height: 35px;
    }
    
    .carousel-nav i {
        font-size: 14px;
    }
}

/* Dynamic Content Section Styles */
.dynamic-content-section {
    background: #F1F1F1;
    padding: 40px 0;
}

/* FAQ Section Centering */
.section-about .container-accordion {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.section-about .accordion {
    width: 100%;
    max-width: 600px;
    margin-bottom: 1rem;
}

.section-about .heading-text h1 {
    text-align: center;
    margin-bottom: 1rem;
}

/* FAQ Description Styling */
.faq-description-container {
    margin-bottom: 2rem;
}

.faq-description-container .category-description {
    font-size: 16px;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Background Styling */
.section-about .row[style*="background: white"] {
    background: white !important;
}

.section-about .row[style*="background: #F1F1F1"] {
    background: #F1F1F1 !important;
}

.dynamic-content-section h1,
.dynamic-content-section h2,
.dynamic-content-section h3,
.dynamic-content-section h4,
.dynamic-content-section h5,
.dynamic-content-section h6 {
    color: #2E2B26;
    margin-bottom: 1rem;
    text-align: start;
}

.dynamic-content-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.6px;
}

.dynamic-content-section h3 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.6px;
}

.dynamic-content-section p {
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: -0.6px;
    color: #2E2B26;
    margin-bottom: 1rem;
    text-align: start;
}

.dynamic-content-section ul,
.dynamic-content-section ol {
    color: #2E2B26;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: start;
}

.dynamic-content-section li {
    margin-bottom: 0.5rem;
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: -0.6px;
}

.dynamic-content-section .benefit-item,
.dynamic-content-section .service-area {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
}

/* Responsive Design for Dynamic Content */
@media (max-width: 768px) {
    .dynamic-content-section h2 {
        font-size: 2rem;
    }
    
    .dynamic-content-section h3 {
        font-size: 1.8rem;
    }
    
    .dynamic-content-section .benefit-item,
    .dynamic-content-section .service-area {
        padding: 1.25rem;
    }
}

@media (max-width: 576px) {
    .dynamic-content-section h2 {
        font-size: 1.8rem;
    }
    
    .dynamic-content-section h3 {
        font-size: 1.6rem;
    }
    
    .dynamic-content-section .benefit-item,
    .dynamic-content-section .service-area {
        padding: 1rem;
    }
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

.carousel-nav:hover {
    background: white;
    border-color: #007bff;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

/* Specific button positioning */
.carousel-nav.prev-btn {
    left: 15px !important;
}

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

/* Ensure both buttons are visible */
.carousel-nav.prev-btn,
.carousel-nav.next-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    z-index: 100 !important;
}

/* Force button positioning */
.carousel-nav.prev-btn {
    left: 15px !important;
    right: auto !important;
}

.carousel-nav.next-btn {
    right: 15px !important;
    left: auto !important;
}

/* Mobile specific button positioning */
@media (max-width: 767px) {
    .carousel-nav.prev-btn {
        left: 10px !important;
        right: auto !important;
    }
    
    .carousel-nav.next-btn {
        right: 10px !important;
        left: auto !important;
    }
}

@media (max-width: 480px) {
    .carousel-nav.prev-btn {
        left: 5px !important;
        right: auto !important;
    }
    
    .carousel-nav.next-btn {
        right: 5px !important;
        left: auto !important;
    }
}

.carousel-nav i {
    color: #2E2B26;
    font-size: 20px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.carousel-nav:hover i {
    color: #007bff;
}

/* Disabled state for navigation buttons */
.carousel-nav.disabled {
    opacity: 0.4;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.6);
    border-color: #dee2e6;
}

.carousel-nav.disabled i {
    color: #6c757d;
}

/* Enhanced responsive behavior */
@media (max-width: 768px) {
    .category-title {
        font-size: 2rem;
    }
    
    .category-description {
        font-size: 1rem;
    }
    
    .product-carousel-container {
        margin: 0 10px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .carousel-nav i {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .category-title {
        font-size: 1.8rem;
    }
    
    .category-description {
        font-size: 0.9rem;
    }
    
    .product-carousel-container {
        margin: 0 5px;
    }
    
    .carousel-nav {
        width: 35px;
        height: 35px;
        left: 5px;
        right: 5px;
    }
    
    .carousel-nav i {
        font-size: 16px;
    }
}
