/* assets/css/main.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Hind+Siliguri:wght@400;600;700&display=swap');

:root {
    --primary-color: #006400;
    --accent-color: #ff0000;
    --bg-light: #f4f4f4;
    --text-dark: #333333;
    --border-radius: 20px;
    --container-max-width: 1200px;
    --mobile-width: 650px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hind Siliguri', 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Image Optimization Utilities */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.4s ease-in;
}

img.loaded {
    opacity: 1 !important;
}

.fade-in {
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.container {
    width: 100%;
    max-width: var(--mobile-width);
    margin: 0 auto;
    background: #e8ebff;
    padding: 0;
    border: none;
    border-radius: 0;
    position: relative;
    box-shadow: none;
    overflow: hidden;
    transition: all 0.4s ease;
}

@media (min-width: 768px) {
    .container {
        max-width: 1200px !important;
        width: 100% !important;
        margin: 0 auto !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #fff !important;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: var(--container-max-width);
    }
}


/* Top Header with Wave */
.top-header {
    background: #4adeca;
    /* Teal color from image */
    padding: 25px 15px 45px;
    position: relative;
    text-align: center;
    clip-path: ellipse(110% 100% at 50% 0%);
    /* Creates the wavy/curved look */
    margin-bottom: 20px;
}

.top-header h1 {
    color: #000;
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0;
    line-height: 1.3;
}

/* Hero Slider Container */
.hero-slider-container {
    padding: 0 15px;
}

@media (min-width: 992px) {
    .hero-slider-container {
        padding: 0;
    }
}

/* Typography */
h1,
h2,
h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 20px auto;
    padding: 10px 25px;
    display: inline-block;
    width: auto;
    background: #ffa500;
    color: white;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(255, 165, 0, 0.2);
}

/* Slider */
/* Slider */
.slider-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    /* Premium Gallery Background */
    width: 100%;
    border-radius: 20px;
    /* Soft edges for the container */
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.slide {
    min-width: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.slide img {
    width: 100%;
    height: auto;
    min-height: 250px;
    max-height: 450px;
    display: block;
    object-fit: cover;
}

@media (min-width: 992px) {
    .slide img {
        width: auto;
        /* Let width adjust naturally */
        max-width: 90%;
        /* Leave some breathing room */
        height: auto;
        max-height: 400px;
        /* Fixed height constraint */
        object-fit: contain;
        /* Show FULL image */
        object-position: center;
        background: transparent;

        /* Gallery Frame Effect */
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
        /* Deep shadow for floating effect */
        border-radius: 12px;
        /* Smooth corners */
        transform: scale(0.98);
        /* Slight scaling for elegance */
        margin: 20px auto;
        /* Center with spacing */
    }
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #2ecc71;
    /* Green dots as per image */
}

/* Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
    padding: 0 10px;
}

@media (min-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Skeleton Loading Effect */
.skeleton {
    background: #f0f2f5;
    background: linear-gradient(90deg, #f0f2f5 25%, #e0e2e7 50%, #f0f2f5 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite linear;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.product-image {
    width: 100%;
    height: 160px;
    border-radius: 10px;
    margin-bottom: 12px;
    object-fit: cover;
    transition: opacity 0.5s ease, transform 0.3s ease;
    background: #f8f9fa;
}

.product-image.loading {
    opacity: 0;
}

.product-image.loaded {
    opacity: 1;
}

@media (min-width: 992px) {
    .product-image {
        height: 280px;
        /* Taller images for PC */
    }
}

.product-code {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #444;
    margin-bottom: 5px;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 900;
    color: #d32f2f;
    margin-bottom: 10px;
}

/* Order Button */
.order-btn {
    display: block;
    width: 90%;
    max-width: 350px;
    margin: 20px auto;
    background: #006400;
    color: white;
    text-align: center;
    padding: 12px 20px;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 0 15px 5px rgba(255, 255, 0, 0.6);
    /* YELLOW GLOW EFFECT */
    transition: transform 0.2s, box-shadow 0.3s;
    border: 2px solid #555;
    cursor: pointer;
}

.order-btn:hover {
    box-shadow: 0 0 25px 8px rgba(255, 255, 0, 0.8);
    transform: scale(1.02);
}

.order-btn:active {
    transform: scale(0.98);
}

/* FAQ Accordion */
.faq-list {
    padding: 0 15px;
}

.faq-item {
    border: 1px solid var(--primary-color);
    border-radius: 30px;
    margin-bottom: 15px;
    background: #fff;
}

.faq-header {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.faq-icon {
    font-size: 1.4rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-body {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease;
}

.faq-item.active .faq-body {
    max-height: 500px;
    padding: 15px 20px;
    border-top: 1px solid #eee;
}

/* Form */
.order-form {
    margin: 40px auto;
    max-width: 600px;
    padding: 30px;
    background: #fff;
    border: 3px solid var(--accent-color);
    border-radius: 30px;
}

.form-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #444;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fdfdfd;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
}

/* Floating Buttons */
.float-btns {
    position: fixed;
    right: 20px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
    align-items: flex-end;
}

.float-btn {
    width: 55px;
    height: 55px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.6rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

.float-btn:hover {
    transform: scale(1.1) translateY(-5px);
}

@media (max-width: 600px) {
    .float-btns {
        right: 15px;
        bottom: 240px;
        gap: 12px;
    }

    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
}

.bg-call {
    background: #008000;
}

.bg-whatsapp {
    background: #075e54;
}

/* Reviews */
.review-card {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #eee;
}

.review-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 12px;
}

.stars {
    color: #f1c40f;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Reviews Responsive */
.reviews-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .reviews-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .reviews-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        width: 100%;
        margin: 0;
        border-radius: 0;
        border-width: 0;
    }
}


@media (min-width: 769px) {
    /* Kept for potential desktop-only logic if needed */
}