/* START OF FILE css/index.css */

/* Ensure header/footer padding is correct for the main index page */
header .user-actions .nav-icon .icon-text { display: none; } /* Keep hidden */
header #user-info .user-email-display { display: none; } /* Hidden on small screens by default */

body.homepage-body {
    background-image: url('../images/background.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
/* Banner Section */
.banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--banner-bg); /* Light yellow */
    color: var(--text-dark); /* Black text */
    padding: 50px 100px; /* ~px-8 py-6 */
    margin: 24px; /* ~m-6 */
    margin-left: 100px;
    margin-right: 100px;
    border-radius: 50px; /* ~rounded-lg */
}
.banner div h2 { /* Banner heading */
    font-size: 2.75rem; /* ~text-xl */
    font-weight: bolder;
    margin-bottom: 0.25em;
    color: var(--text-dark);
}
.banner div p { /* Banner text */
    font-size: 1.9rem; /* ~text-lg */
    line-height: 1.4;
    color: var(--text-dark);
    margin-bottom: 30px;
    font-weight: bold;
}
.banner img {
    width: 200px; /* ~w-24 */
    height: auto;
}

/* Remove Old Hero */
.hero { display: none; }

/* Categories */
.categories {
    padding: 16px 0; /* Reduced padding */
}
.categories h2 { /* Heading */
    font-size: 2rem; /* ~text-xl */
    font-weight: 700; /* Bold */
    padding: 0 24px; /* Match container padding */
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.category-list {
    display: flex;
    overflow-x: auto; /* Horizontal scroll */
    gap: 12px; /* ~gap-3 */
    padding: 16px 24px; /* ~px-6 py-4 */
    flex-wrap: nowrap; /* Prevent wrapping */
    /* Hide scrollbar visually (optional) */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.category-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}
.category-button { /* White pill buttons */
    background-color: rgba(0,0,0,0);
    color: var(--text-light);
    padding: 13px 27px; /* ~px-4 py-2 */
    border-radius: 9999px; /* Pill shape */
    border: #fff solid 3px;
    transition: background-color 0.2s ease;
    font-size: 1.4em;
    font-weight: 600; /* Semi-bold */
    flex-shrink: 0; /* Prevent shrinking */
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.category-button.active {
    background-color: #f3f4f6; /* Example active style */
    color: var(--text-dark);
}

.category-button:hover,
.category-button.active {
     background-color: #f3f4f6; /* Lighter gray hover */
     color: var(--text-dark);
     transform: none; /* Remove transform */
}
.category-button i { margin-right: 6px; }


/* Product Section & Grid */
.product-section {
    padding: 16px 0; /* ~py-4 */
}
.product-section .section-header { /* Wrapper for heading and link */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px; /* ~px-6 */
    margin-bottom: 8px; /* ~mb-2 */
}
.product-section h2 {
    font-size: 2rem; /* ~text-xl */
    font-weight: 700; /* Bold */
    margin-bottom: 0; /* Remove margin as it's handled by wrapper */
    display: flex;
    align-items: center;
    gap: 8px;
}
.product-section .view-all-link {
    color: var(--primary-color); /* Yellow */
    font-weight: 600; /* Semi-bold */
    font-size: 0.9em;
}
.product-section .view-all-link:hover {
    color: var(--primary-color-dark);
    text-decoration: underline;
}

.product-grid { /* Changed to horizontal scrolling flex */
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 25px; /* ~gap-4 */
    padding: 16px 24px; /* ~px-6 py-4 */
    /* Hide scrollbar visually (optional) */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.product-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.product-card { /* Card styles specific to index grid */
    background-color: var(--card-bg); /* White background */
    color: var(--text-dark); /* Black text */
    border-radius: 35px; /* ~rounded-lg */
    overflow: hidden;
    box-shadow: none; /* Remove shadow for flatter look */
    display: flex;
    flex-direction: column;
    transition: none; /* Remove transitions */
    /* Set fixed width and prevent shrinking */
    width: 250px; /* ~w-48 */
    flex-shrink: 0;
    /*padding: 16px;  ~p-4 */
}
.product-card:hover {
    transform: none; /* Remove hover effect */
    box-shadow: none;
}

.product-card-image-container { /* Adjust if needed */
     width: 100%;
     height: auto; /* Let image determine height */
     aspect-ratio: 1 / 1; /* Maintain square aspect ratio */
     overflow: hidden;
     margin-bottom: 12px; /* Space below image */
    /* border-radius: 20px;*/
}
.product-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none; /* Remove zoom */
}
/* Remove hover zoom */
.product-card:hover .product-card-image {
    transform: none;
}

.product-card-content { /* Content is now directly in card */
    padding: 0; /* Remove padding here, handled by card */
    text-align: left; /* Align text left */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.product-card h3 { /* Product Name */
    font-size: 1.5rem; /* ~text-base */
    margin-bottom: 4px; /* ~mt-2 */
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.4;
    margin-left: 15px;
    margin-right: 10px;
}
.product-card .description { display: none; } /* Hide description on card */

.product-card .price {
    font-size: 1..25rem;
    font-weight: 400; /* Regular weight */
    color: var(--text-dark); /* Black */
    margin-top: 8px;
    margin-left: 15px;
    margin-bottom: 15px;
}

/* Add to Cart Button - removed from default card display */
.product-card .add-to-cart-btn {
    margin: 10px 0 0 0; /* Adjust margin if displayed */
    width: 100%; /* Full width within padding */
    display: none; /* Hide by default as per example */
}


/* Explore More Section */
.explore-more-section {
    text-align: center;
    padding: 24px 0 48px; /* ~py-6, more bottom padding */
}
.explore-more-section .btn-explore { /* Use primary style */
    background-color: var(--primary-color);
    color: var(--text-dark);
    padding: 10px 24px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1em;
    border: none;
    cursor: pointer;
}
.explore-more-section .btn-explore:hover {
    background-color: var(--primary-color-dark);
}
.explore-more-section img { /* Standing choco image */
    margin: 16px auto 0; /* ~mt-4 */
    width: 80px; /* ~w-20 */
    height: auto;
}


/* About Section */
.about-section {
    text-align: center;
    padding: 30px 20px;
    background-color: rgba(0,0,0,0.1); /* Subtle dark background */
    border-radius: 8px;
    margin: 20px;
}
.about-section h2 {
    color: var(--text-light); /* White heading */
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.about-section p {
    max-width: 600px;
    margin: 0 auto;
    color: #d1d5db; /* Lighter text */
    line-height: 1.6;
}

.explore-more-section {
    text-align: center;
    padding: 40px 20px;
    margin-top: 20px;
}

.explore-more-section .btn {
    box-shadow: 0 4px 10px rgba(250, 204, 21, 0.3);
    text-decoration: none;
}

.explore-more-section img {
    margin: 20px auto 0;
    width: 80px;
    height: auto;
    opacity: 0.8;
}

#hero-order-now {
    background-color: var(--bg-gradient-end);
    padding: 15px;
    border-radius: 18px;
    font-weight: 600;
    font-size: 0.95em;
}

#hero-order-now:hover {
    color: var(--white);
    text-decoration: none;
}


/* Responsive Index Adjustments */
@media (max-width: 992px) {
    /* Stack banner items */
    .banner {
        text-align: center;
        margin: 16px;
        padding: 50px;
    }
    .banner img {
        margin-top: 16px;
        max-width: 150px;
    }

    /* Ensure horizontal scrollbars are usable */
    .category-list, .product-grid {
        padding: 16px; /* Reduce padding */
    }
}

@media (max-width: 768px) {
    .product-card {
         width: 225px;
     }
     /* Adjust banner font sizes */
     .banner div h2 { font-size: 1.5rem; }
     .banner div p { font-size: 1.2rem;}
     .product-section h2 { font-size: 1.7rem; }

}

@media (max-width: 480px) {
     .product-card {
         /* padding: 15px;*/
         width: 200px;
     }
      .product-card h3 { font-size: 1.1rem;}
      .product-card .price { font-size: 1rem;}

     /* Full width category buttons might look odd, keep scroll */
     .category-list { padding: 12px; gap: 10px; }
     .category-button { padding: 13px 20px; font-size: 1em;}

     .banner { margin: 10px; padding: 20px;}
     .banner div h2 { font-size: 1.2rem; }
     .banner div p { font-size: 0.81rem;}
     .product-section h2 { font-size: 1.4rem;}
}

/* END OF FILE css/index.css */