

:root {
    --DisplayText--: "Libre Baskerville", serif;
    --NormalText--: "Montserrat", sans-serif;
    --PrimaryColor--: #ff812f;

}

.hero {
    position: relative;
    text-align: center;
    color: white;
    width: 100vw;
    height: 400px;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center bottom;
}

/* 🔥 Orange Overlay (Applies to Image Only) */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 129, 47, 0.6); /* Orange (#ff812f) with 60% opacity */
    z-index: 1;
}

/* Ensure text stays on top */
.hero h1 {
    position: relative;
    z-index: 2;
    font-size: 2.5rem;
    font-family: var(--DisplayText--);
    bottom:  10%;
}



.waves {
    position: absolute;
    width: 100%;
    max-height: 50%;
    top: 60%;

    bottom: 0;
    z-index: 2;

}




.category-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden; /* Prevents unnecessary overflow */
    padding: 20px 0;
 
}

/* Scrollable category container */
.category-container {
    display: flex;
    gap: 50px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    scroll-snap-type: x mandatory;
    padding: 20px;
    overflow-x: auto;
    max-width: calc(5 * 250px);
    white-space: nowrap;
    cursor: grab;
    margin: 0 50px;
}


.category-container::-webkit-scrollbar {
    height: 5px;
   

    
}

.category-container::-webkit-scrollbar-thumb {
    background: #888; 
    border-radius: 4px; 
 
}

.category-container::-webkit-scrollbar-thumb:hover {
    background: #555; 
    
}

.category-container::-webkit-scrollbar-track {
    background: #f0f0f0;  
   
 
}

/* Category items */
.category-item {
    text-decoration: none;
    text-align: center;
    flex: 0 0 200px; /* Ensure fixed width */
}

/* Fix image size */
.category-item img {
    width: 150px;
    height: 150px;
    display: block;
    margin: auto;
}

/* Active drag effect */
.category-container:active {
    cursor: grabbing;
   
}
.category-container p{
    color: var(--PrimaryColor--);
    font-family: var(--NormalText--);
    font-size: 1.5rem;
}


/* Scroll buttons */
.scroll-btn {
    background-color: transparent;
    border: none;
    color: gray;
    font-size: 50px;
    padding: 10px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.product-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 5 columns */
    gap: 20px; /* Space between items */
    padding: 20px;
  
    justify-items: center; /* Center items inside grid */
}

/* Product Card Styling */
.product-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    width: 350px; /* Ensure uniform width */
   
    transition: transform 0.2s ease-in-out;
}

.product-card:hover {
    transform: scale(1.05);
}

/* Image Styling */
.product-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.back-to-top-wrapper {
    display: flex;
    justify-content: center;
    margin: 30px auto; /* Centers horizontally with auto margins */
    padding: 20px 0;
    width: 100%; /* Ensures full container width */
    max-width: 1200px; /* Match your product container's max-width if needed */
}

.back-to-top {
    padding: 20px 35px;
    background-color: var(--PrimaryColor--); /* Using your orange variable */
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--DisplayText--); /* Consistent with your typography */

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-align: center; /* Ensures text stays centered */
}

.back-to-top:hover {
    background-color: #E05D00; /* Darker orange on hover */
    transform: scale(1.05);
}
.product-card{
    padding: 20px;
}
.product-name{
    font-family: var(--NormalText--);
    font-size: 1rem;
    font-weight: bold;
  
    padding: 0px 10px;
}
.product-description{
    font-family: var(--NormalText--);
    font-size: 0.8rem;
  
    margin-top: 10px;
    padding: 10px;
}

@media (max-width: 1600px) {

    .product-container {
        grid-template-columns: repeat(3, 1fr); /* 4 columns */
    }

    .product-card{
        width: 350px;
    }
}
@media (max-width: 1024px) {
    .product-container {
        grid-template-columns: repeat(2, 1fr); /* 3 columns */
   
    }

}





@media (max-width: 768px) {
    .hero {
        height: 300px; /* Adjusted height for smaller screens */
    }
    .hero h1 {
        font-size: 1.8rem; /* Adjusted font size for smaller screens */
        width: 80%; /* Control width to force line break */
        margin: 0 auto; /* Center the text */
        line-height: 1.3; /* Adjust line height for better readability */
        text-align: center; /* Center the text */
    }
    .category-container {
        gap: 20px; /* Smaller gaps */
        max-width: 100%; /* Full width on mobile */
        padding: 15px 5px; /* Reduce padding */
    }

    .category-item {
        flex: 0 0 140px; /* Reduce width */
    }

    .category-item img {
        width: 100px; /* Smaller images */
        height: 100px;
    }

    .category-item h2 {
        font-size: 12px; /* Smaller text */
    }

    .scroll-btn {
       display: none;
    }
    .product-container {
        grid-template-columns: repeat(2, 1fr); /* 1 column */
    }

    .product-card{
        width: 250px;
       
    }

  

    .category-container::-webkit-scrollbar{
        display: none;
    }

    


}
@media (max-width: 480px) {
    .product-container {
        grid-template-columns: repeat(1, 1fr); /* 1 column */
    }
    .category-item img {
        width: 80px; /* Smaller images */
        height: 90px;
    }

  
 
}

