



/* ================= General ================= */
html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 80px; /* adjust to navbar height */
}

.card, .product-card, .blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover, .product-card:hover, .blog-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* ================= Carousel ================= */
#carouselExampleFade {
    width: 100%;
    overflow: hidden;
}

#carouselExampleFade .carousel-item {
    width: 100%;
}

#carouselExampleFade .carousel-item img {
    width: 100%;        
    height: auto;       
    object-fit: cover;  
    max-height: 600px;  
    display: block;
}

/* Tablet / small devices */
@media (max-width: 992px) {
    #carouselExampleFade .carousel-item img {
        max-height: 450px;
    }
}

@media (max-width: 768px) {
    #carouselExampleFade .carousel-item img {
        max-height: 400px;
    }
}

@media (max-width: 576px) {
    #carouselExampleFade .carousel-item img {
        max-height: 250px;
    }
}


/* ================= Accordion ================= */
.accordion-button:not(.collapsed) {
    background-color: transparent !important;
    color: black !important;
}

.accordion-body {
    background-color: #e7eee9;
}

/* ================= Forms ================= */
form.d-flex input.form-control,
.contact-form input,
.contact-form textarea {
    border: 1px solid;
    outline: none;
    box-shadow: none;
}

form.d-flex input.form-control:focus,
.contact-form input:focus,
.contact-form textarea:focus {
    border-width: 3px;
    border-color: #198754;
    box-shadow: none;
}

/* Form responsiveness */
@media (max-width: 576px) {
    form.d-flex {
        flex-direction: column;
    }

    form.d-flex input,
    form.d-flex select,
    form.d-flex button {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* ================= Social Icons ================= */
.social-icons a {
    font-size: 1.5rem;
    margin-right: 15px;
    color: #198754;
    transition: transform 0.2s;
}

.social-icons a:hover {
    color: #145c32;
    transform: scale(1.2);
}

/* ================= iFrames ================= */
iframe {
    border: 0;
    width: 100%;
    height: 300px;
    border-radius: 10px;
}

/* ================= Product Cards ================= */
.product-card-wrapper {
    max-width: calc(25% - 20px); /* 4 cards per row */
    margin: 10px;                /* spacing between cards */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-sizing: border-box;      /* include padding/margin in width */
}

.product-card-wrapper.show {
    opacity: 1;
    transform: translateY(0);
}

.product-card {
    width: 100%;                 /* ensure card fills wrapper */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card img {
    width: 100%;                 /* full width of card */
    height: auto;                /* auto height to show full image */
    object-fit: contain;         /* scale image without cropping */
}

.product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
/* Thumbnails */
.thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.thumb:hover {
    transform: scale(1.1);
    border-color: green;
}

/* Main product image */
#main-image-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 400px;
    border-radius: 6px;
    cursor: zoom-in;
}

#main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

#main-image-container:hover img {
    transform: scale(2);
    transform-origin: center center;
}

/* Product description box */
.product-description-box {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px;
    max-height: 150px;
    overflow: hidden;
    position: relative;
    background-color: #f9f9f9;
}

#fadeOverlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to top, white, transparent);
}


#viewMoreBtn {
    display: block;
    text-align: center;
    margin: 10px auto;
    cursor: pointer;
    color: #007bff;
    font-weight: 500;
}

/* Related products */
.related-product img {
    height: 150px;
    object-fit: cover;
    width: 100%;
    border-radius: 4px;
}

/* ================= Masonry / Testimonials ================= */
.masonry {
    column-count: 3;
    column-gap: 1rem;
}

.masonry .testimonial-item,
.masonry .card {
    display: inline-block;
    width: 100%;
}

/* ================= Blog Cards ================= */
.blog-card {
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.18s, box-shadow 0.18s;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
}

.blog-card .card-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.blog-card .card-text {
    font-size: 13px;
    line-height: 1.2;
    color: #444;
}

/* ================= Counter ================= */
.counter {
    font-size: 3rem;
    font-weight: bold;
    color: #198754;
}

.counter-label {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 10px;
}

/* ================= Buttons / Contact ================= */
.btn-gradient {
    background: linear-gradient(90deg, #28a745, #1fa843);
    color: #fff;
    font-weight: 600;
    border: none;
}

.btn-gradient:hover {
    background: linear-gradient(90deg, #1fa843, #28a745);
}

.contact-card {
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-icons a {
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: transform 0.2s;
}

.contact-icons a:hover {
    transform: scale(1.2);
}

/* ================= Footer ================= */
.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ================= Fully Responsive ================= */

/* Tablets <= 992px */
@media (max-width: 992px) {
    .product-card-wrapper {
        max-width: 45%;
        margin: 10px auto;
    }

    .blog-card {
        flex-direction: column;
    }

    .blog-card img {
        height: 150px;
    }

    .masonry {
        column-count: 2;
    }

    #carouselExampleFade .carousel-item img {
        height: 450px;
    }
}

/* Small tablets / mobiles <= 768px */
@media (max-width: 768px) {
    #main-image-container {
        height: 250px;
    }

    .product-description-box {
        max-height: 120px;
    }

    .related-product img {
        height: 120px;
    }

    .wrapper {
        padding: 0 10px;
    }

    #carouselExampleFade .carousel-item img {
        height: 400px;
    }
}

/* Mobile <= 576px */
@media (max-width: 576px) {
    .product-card-wrapper {
        max-width: 90%;
        margin: 10px auto;
    }

    .thumb {
        width: 50px;
        height: 50px;
    }

    .blog-card img {
        height: 120px;
    }

    .blog-card .card-body {
        padding: 10px;
    }

    .masonry {
        column-count: 1;
    }

    #main-image-container {
        height: 180px;
    }

    #carouselExampleFade .carousel-item img {
        height: 250px;
    }

    .counter {
        font-size: 2rem;
    }

    .counter-label {
        font-size: 1rem;
    }
}
