﻿
/* =========================================
   VRITHANTHAM - GLOBAL STYLES
========================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Georgia, sans-serif;
    background: linear-gradient(to bottom, #fcfaf8, #f6efe7);
    color: #333;
}

/* =========================================
   VIEW ALL BUTTON
========================================= */

.view-all-btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: #8B4513;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

    .view-all-btn:hover {
        background-color: #5D2E0C;
        color: #fff;
        transform: translateY(-2px);
    }

/* =========================================
   HOME PAGE BANNER
========================================= */

.banner {
    position: relative;
    width: 100%;
    height: clamp(300px, 33.85vw, 650px);
    overflow: hidden;
    background: #ead8ca;
}

    .banner .slide {
        display: none;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

        /* Banner link */

        .banner .slide a {
            display: block;
            width: 100%;
            height: 100%;
        }

        /* Picture container */

        .banner .slide picture {
            display: block;
            width: 100%;
            height: 100%;
        }

            /* Banner image */

            .banner .slide picture img {
                display: block;
                width: 100%;
                height: 100%;
                object-fit: cover;
                object-position: center center;
            }

/* Banner caption */

.banner-caption {
    position: absolute;
    left: 8%;
    top: 30%;
    z-index: 5;
    color: #fff;
    text-shadow: 1px 1px 5px #333;
}

    .banner-caption h1 {
        font-size: 38px;
        font-weight: normal;
    }

/* =========================================
   GENERAL SECTIONS
========================================= */

.section {
    padding: 35px 5%;
    text-align: center;
}

    .section h2 {
        color: #91472d;
        font-size: 26px;
        margin-bottom: 8px;
    }

    .section p {
        color: #92775e;
        font-size: 14px;
    }

/* =========================================
   PRODUCT CARDS
========================================= */

.products {
    text-align: center;
}

.product {
    display: inline-block;
    vertical-align: top;
    width: 220px;
    margin: 15px;
    padding: 10px;
    background: #fff;
    border: 1px solid #eee;
}

    .product img {
        display: block;
        width: 100%;
        height: 230px;
        object-fit: cover;
    }

    .product a {
        text-decoration: none;
        color: #333;
    }

    .product h3 {
        font-size: 16px;
        font-weight: normal;
    }

.price {
    color: #a34d2d;
    font-weight: bold;
}

/* =========================================
   HOME PRODUCT CAROUSEL
========================================= */

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 25px auto;
    padding: 0 45px;
}

.carousel-window {
    width: 100%;
    background: #fff;
}

.carousel-track {
    display: flex;
    width: 100%;
}

.product-slide {
    flex: 0 0 25%;
    min-width: 0;
    padding: 10px;
}

    .product-slide a {
        display: block;
        padding: 5px;
        background: #fff;
        border: 1px solid #eee;
        text-decoration: none;
        color: #333;
    }

    .product-slide img {
        display: block;
        width: 100%;
        height: 280px;
        object-fit: cover;
    }

    .product-slide h3 {
        font-size: 15px;
        font-weight: normal;
        min-height:26px;
        margin-bottom: 0px;
    }

    .product-slide .price {
        color: #9b4b2c;
        font-weight: bold;
        margin-top: 0;
        padding-top: 0;
        line-height: 1.3;
    }

.view-details {
    color: #9b4b2c;
    font-size: 12px;
    letter-spacing: 1px;
}

/* Carousel navigation arrows */

.carousel-arrow {
    position: absolute;
    top: 40%;
    z-index: 5;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #9b4b2c;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.left-arrow {
    left: 0;
}

.right-arrow {
    right: 0;
}

/* =========================================
   PRODUCT BADGES
========================================= */

.product-slide .product-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.product-slide .product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.product-slide .new-badge {
    display: inline-block;
    background-color: #0BC926;
    color: #fff;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
}

.product-slide .discount-badge {
    display: inline-block;
    background-color: #FF091A;
    color: #fff;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: bold;
}

.product-slide .original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 12px;
    margin-right: 6px;
}
.product-slide .current-price {
    font-size: 16px;
    margin-right: 6px;
}


/* =========================================
   TABLET RESPONSIVE
   769px - 1024px
========================================= */

@media screen and (max-width: 1024px) {

    .banner {
        height: clamp(280px, 36vw, 420px);
    }

    .banner-caption h1 {
        font-size: 32px;
    }

    .carousel-container {
        padding: 0 35px;
    }

    .product-slide img {
        height: 190px;
    }
}

/* =========================================
   MOBILE RESPONSIVE
   Up to 768px
========================================= */

@media screen and (max-width: 768px) {

    /* Banner */

    .banner {
        height: clamp(220px, 52vw, 380px);
    }

        .banner .slide picture img {
            object-position: center center;
        }

    .banner-caption {
        left: 6%;
        top: 25%;
    }

        .banner-caption h1 {
            font-size: 25px;
        }

    /* Sections */

    .section {
        padding: 25px 4%;
    }

        .section h2 {
            font-size: 23px;
        }

    /* View all button */

    .view-all-btn {
        padding: 10px 22px;
        font-size: 14px;
    }

    /* Product cards */

    .product {
        width: 44%;
        margin: 5px;
    }

        .product img {
            height: 170px;
        }

    /* Carousel */

    .carousel-container {
        padding: 0 5px;
    }

    .carousel-window {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        scrollbar-width: none;
    }

        .carousel-window::-webkit-scrollbar {
            display: none;
        }

    .carousel-track {
        width: max-content;
    }

    .product-slide {
        flex: 0 0 50vw;
        min-width: 0;
        padding: 7px;
    }

        .product-slide a {
            padding: 7px;
        }

        .product-slide img {
            width: 100%;
            height: 210px;
            object-fit: cover;
        }

        .product-slide h3 {
            font-size: 13px;
            min-height: 15px;
        }

    .carousel-arrow {
        display: none;
    }

    /* Footer */

    .footer {
        padding: 20px 12px;
    }
}

/* =========================================
   SMALL MOBILE
   Up to 480px
========================================= */

@media screen and (max-width: 480px) {

    .banner {
        height: clamp(200px, 60vw, 300px);
    }
    .banner-caption {
        top: 23%;
        left: 5%;
    }

        .banner-caption h1 {
            font-size: 22px;
        }

    .view-all-btn {
        padding: 10px 18px;
        font-size: 13px;
        letter-spacing: 0.3px;
    }

    .product img {
        height: 150px;
    }

    .product-slide img {
        height: 190px;
    }

    .product-slide h3 {
        font-size: 13px;
    }

    .footer h3 {
        font-size: 22px;
    }
}

/* =========================================
   EXTRA SMALL MOBILE
   Up to 360px
========================================= */

@media screen and (max-width: 360px) {

    .banner {
        height: 210px;
    }

    .banner-caption h1 {
        font-size: 19px;
    }

    .view-all-btn {
        padding: 9px 14px;
        font-size: 12px;
    }

    .product-slide {
        flex: 0 0 50vw;
    }

        .product-slide img {
            height: 175px;
        }

        .product-slide h3 {
            font-size: 12px;
        }
}
/* =====================================
   MOBILE CAROUSEL TOUCH SCROLLING
===================================== */

.carousel-window {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: auto;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

    .carousel-window::-webkit-scrollbar {
        display: none;
    }

.carousel-track {
    display: flex;
}

.product-slide {
    flex-shrink: 0;
}


@media screen and (max-width: 768px) {

    .nav-shop {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

        .nav-shop .dropdown-toggle {
            width: 100%;
            text-align: left;
            padding: 12px 18px;
            cursor: pointer;
        }

        .nav-shop.open .shop-dropdown {
            display: block !important;
        }

    .shop-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        border-top: none;
        border-left: 2px solid #a65c38;
        margin-left: 12px;
        background: #fdf5ee;
    }
}
.product-slide .price {
    margin-top: 0;
    padding-top: 0;
    line-height: 1.3;
}