.hero-section {
    background-image: url('../images/hero_picture.jpg');
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.5);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: clamp(600px, 90vh, 750px);
    /* Fluid height */
    display: flex;
    align-items: center;
    position: relative;
    padding: clamp(40px, 8vh, 80px) 0;
    /*padding: 80px 0;*/
    /* Fluid vertical padding */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-container {
    max-width: clamp(768px, 83.33vw, 1200px);
    /*max-width: 1200px;*/
    /* Fluid max-width */
    margin: 0;
    padding: 0 2%;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-start;
}

.hero-content {
    max-width: clamp(400px, 48.61vw, 700px);
    /* Fluid max-width */
    margin-left: 10%;
}

.hero-title {
    font-size: clamp(2.5rem, 4.5vw, 3.6rem);
    /* Fluid font size */
    font-weight: 900;
    color: white;
    line-height: 1.1;
    margin-bottom: clamp(16px, 2vw, 24px);
    /* Fluid margin-bottom */
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    color: #10b981;
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: clamp(24px, 3vw, 40px);
    /* Fluid margin-bottom */
    line-height: 1.6;
    max-width: clamp(300px, 35vw, 500px);
    /* Fluid max-width */
}

.shop-now-btn {
    background-color: #10b981;
    color: white;
    border: none;
    padding: clamp(12px, 1.5vw, 16px) clamp(24px, 3vw, 32px);
    /* Fluid padding */
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5%;
}

.shop-now-btn:hover {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

/* Stats Section */
.stats-section {
    display: flex;
    gap: clamp(30px, 6vw, 80px);
    /* Fluid gap */
    margin-top: 2%;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: #10b981;
    line-height: 1;
    margin-bottom: clamp(4px, 0.7vw, 8px);
    /* Fluid margin-bottom */
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.categories-section {
    padding: 80px 0;
    background-color: #fff;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    text-align: center;
    color: #047857;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 48px;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Individual Card Styling */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: stretch; /* This ensures all cards stretch to match the tallest */
}

/* Individual Card Styling - Updated for consistent heights */
.category-card {
    background-color: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensures all cards take full available height */
    min-height: 350px; /* Set a minimum height for consistency */
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.card-image-container {
    position: relative;
    background-color: #f1f5f9;
    overflow: hidden;
    height: 220px; /* Fixed height for all images */
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This ensures images fill the container properly */
    display: block;
}

.card-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 60px;
    height: auto;
    z-index: 2;
}

.card-content {
    padding: 24px;
    flex-grow: 1; /* This makes the content area expand to fill available space */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* This pushes the button to the bottom */
    min-height: 130px; /* Ensures consistent content area height */
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
    flex-grow: 1; /* Allows title to take available space */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.3;
    min-height: 50px; /* Ensures consistent title area height */
}

.card-link {
    display: inline-block;
    padding: 8px 24px;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    color: #059669;
    background-color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: auto; /* This pushes the button to the bottom */
    align-self: center; /* Centers the button horizontally */
}

.card-link:hover {
    background-color: #059669;
    color: #fff;
    border-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}


/* View All Button */
.view-all-container {
    text-align: center;
    margin-top: 48px;
}

.view-all-btn {
    display: inline-block;
    padding: 14px 48px;
    background-color: #059669;
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.view-all-btn:hover {
    background-color: #047857;
    transform: translateY(-2px);
}

.product-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.rating-stars {
    --rating: 0;
    --star-color: #f59e0b;
    /* yellow */
    --star-background: #fde68a;
    /* light yellow for unfilled stars */
    display: inline-block;
    font-size: 20px;
    font-family: Times;
    line-height: 1;
    position: relative;
}

.rating-stars::before {
    content: '★★★★★';
    letter-spacing: 3px;
    background: linear-gradient(90deg,
            var(--star-color) 0%,
            var(--star-color) calc(var(--rating) / 5 * 100%),
            var(--star-background) calc(var(--rating) / 5 * 100%),
            var(--star-background) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rating-text {
    font-size: 0.9rem;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #059669;
    margin: 0;
}

.services-section {
    padding: 80px 0;
    background-color: #f8fafc;
}

.slider-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider-slide {
    min-width: 100%;
    position: relative;
    display: none;
    /* Hide all slides by default */
    color: white;
}

.slider-slide.active {
    display: block;
    /* Show only the active slide */
}

.slide-bg {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    border-radius: 24px;
}

/* Dark overlay for better text readability */
.slider-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 24px;
    z-index: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    z-index: 2;
    max-width: 50%;
}

.slide-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.slide-description {
    font-size: 1rem;
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 450px;
}

.slide-button {
    display: inline-block;
    padding: 12px 32px;
    background-color: #fff;
    color: #333;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.slide-button:hover {
    background-color: #f1f5f9;
    transform: translateY(-2px);
}

/* Slider Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-arrow:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

/* Slider Pagination Dots */
.slider-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pagination-dot.active {
    background-color: white;
}

.reviews-section {
    padding: 80px 0;
    background-color: #fff;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

/* Overriding the centered .section-title for this section */
.reviews-header .section-title {
    text-align: left;
    margin-bottom: 0;
}

.review-nav-arrows {
    display: flex;
    gap: 16px;
}

.review-arrow {
    background: none;
    border: 1px solid #e2e8f0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.3s ease;
}

.review-arrow:hover {
    background-color: #f8fafc;
    color: #059669;
}

.review-arrow:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    background-color: transparent;
    color: #9ca3af;
}

/* Slider styles */
.reviews-slider-container {
    overflow: hidden;
}

.reviews-slider-wrapper {
    display: flex;
    gap: 24px;
    transition: transform 0.5s ease-in-out;
}

.review-card {
    flex: 0 0 calc(33.333% - 16px);
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
}

.review-card .rating-stars {
    justify-content: flex-start;
    /* Realigns stars to the left */
    margin-bottom: 16px;
}

.review-customer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.customer-name {
    font-size: 1.25rem;
    font-weight: 600;
}

.verified-icon {
    width: 20px;
    height: 20px;
    color: #10b981;
}

.review-text {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.reviews-section .view-all-container {
    text-align: center;
    margin-top: 48px;
}

.reviews-section .view-all-btn {
    display: inline-block;
    padding: 14px 48px;
    background-color: #059669;
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.reviews-section .view-all-btn:hover {
    background-color: #047857;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero-section {
        min-height: clamp(350px, 60vh, 500px);
        /* Adjusted fluid height for smaller screens */
        padding: clamp(30px, 8vh, 60px) 0;
        /* Adjusted fluid vertical padding */
    }

    .hero-container {
        padding: 0 3vw;
        /* Using vw for padding */
    }

    .hero-title {
        font-size: clamp(2rem, 4vw, 2.5rem);
        /* Adjusted fluid font size for smaller screens */
        margin-bottom: 2vw;
        /* Using vw for margin */
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 3vw;
        /* Using vw for margin */
    }

    .shop-now-btn {
        padding: clamp(10px, 2vw, 14px) clamp(20px, 4vw, 28px);
        /* Adjusted fluid padding */
        font-size: 1rem;
        margin-bottom: 4vw;
        /* Using vw for margin */
    }

    .stats-section {
        flex-direction: column;
        gap: 3vw;
        /* Using vw for gap */
        margin-top: 3vw;
        /* Using vw for margin */
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on tablets */
    }

    .slide-bg {
        height: 450px;
    }

    .slide-content {
        max-width: 70%;
        left: 5%;
    }

    .slide-title {
        font-size: 2rem;
    }

    .slide-description {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }

    .review-card {
        flex-basis: calc(50% - 12px);
        /* 2 reviews per view */
    }
}

@media (max-width: 480px) {
    .hero-content {
        /* Center the content block */
        margin: 0 auto;
        width: 90%;
        text-align: center;
    }

    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.2rem);
        /* Slightly larger for impact */
        margin-bottom: 2vw;
        width: 100%;
        /* border: 1px solid red;  <-- This line should be removed */
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 5vw;
        /* Increased margin */
        max-width: 100%;
        /* Allow it to take full width of parent */
    }

    .shop-now-btn {
        padding: clamp(12px, 3vw, 16px) clamp(16px, 4vw, 24px);
        font-size: 1rem;
        /* Slightly larger font */
        margin-bottom: 5vw;
        /* Increased margin */
        width: 100%;
        /* Make button full width */
        display: block;
    }

    .stats-section {
        flex-direction: row;
        /* Allow items to be side-by-side */
        flex-wrap: wrap;
        /* Allow items to wrap to the next line */
        justify-content: center;
        /* Center the items */
        gap: 0;
        /* Control gap with item padding */
        row-gap: 20px;
        /* Space between the rows of stats */
        margin-top: 4vw;
    }

    /* This is a new rule needed for the stats layout */
    .stat-item {
        flex-basis: 50%;
        /* Each item takes up half the width */
        text-align: center;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .categories-section {
        padding: 60px 0;
    }

    .section-container {
        padding: 0 16px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on phones */
        gap: 16px;
        /* Reduced gap to better fit the content */
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 32px;
    }

    .card-content {
        padding: 20px;
    }

    .services-section {
        padding: 60px 0;
    }

    .slider-container {
        border-radius: 16px;
    }

    .slide-bg {
        height: 400px;
        border-radius: 16px;
    }

    .slider-slide::before {
        border-radius: 16px;
    }

    .slide-content {
        max-width: 90%;
        left: 5%;
        right: 5%;
    }

    .slide-title {
        font-size: 1.75rem;
    }

    .slide-description {
        display: -webkit-box;
        /* Limit description to 3 lines */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .slider-arrow {
        font-size: 18px;
        padding: 8px 12px;
    }

    .slider-arrow.prev {
        left: 10px;
    }

    .slider-arrow.next {
        right: 10px;
    }

    .pagination-dot {
        width: 10px;
        height: 10px;
    }

    .reviews-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 32px;
    }

    .review-card {
        flex-basis: 100%;
        /* 1 review per view */
    }
}