/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.container {
    width: 80%;
    margin: 0 auto;
}

header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
}

header h1 {
    margin: 0;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 1rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

.hero {
    background: #f4f4f4;
    padding: 2rem 0;
    text-align: center;
}

.hero h2 {
    margin-bottom: 0.5rem;
}

.btn {
    background: #333;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
}

.featured-products {
    padding: 2rem 0;
}

.products {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.product {
    border: 1px solid #ddd;
    padding: 1rem;
    width: calc(33.333% - 1rem);
}

.product img {
    max-width: 100%;
}
.navbar-custom {
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
}

.cart-count {
    background-color: #ff0000;
    color: #ffffff;
    border-radius: 50%;
    padding: 0 5px;
    font-size: 16px;
    vertical-align: top;
    margin-left: 5px;
}
*/

/* ********************************************* */

        /*  Cart icon related - used in main.volt */

        .nav-cart-count-container {
            display: -webkit-box;
            display: -moz-box;
            display: -webkit-flex;
            display: -ms-flexbox;
            display: flex;
            /* position: static; */
            float: none;
            -webkit-flex-flow: column nowrap;
            -ms-flex-flow: column nowrap;
            flex-flow: column nowrap;
            -webkit-box-pack: end;
            -moz-box-pack: end;
            -ms-flex-pack: end;
            -webkit-justify-content: flex-end;
            justify-content: flex-end;
            -webkit-box-align: start;
            -moz-box-align: start;
            -ms-flex-align: start;
            -webkit-align-items: flex-start;
            /* background-color: darkgreen; */
        }


        .cart-count {
            color: #f08804;
            color: white;
            color: darkblue;
            top: 1px;
            left: 0.9rem;
            position: relative;
            background-blend-mode: overlay;
        }

        .cart-count-on-main-menu {
            color: #f08804;
            color: white;
            color: darkblue;
            top: 1px;
            left: 0.9rem;
            position: relative;
            background-blend-mode: overlay;
        }


        .nav-sprite, .nav-icon {
            background-image: url("../images/cart_background_image.png");
            /* dark blue color */
            /* filter: invert(1) sepia(1) saturate(10) hue-rotate(210deg) brightness(0.5); */
        
            background-position: 0 1000px;
            background-repeat: repeat-x;
            /* background-blend-mode: overlay; */
            /* background-color: red; */
        }

        .nav-cart-icon, .nav-sprite{

            background-position: -10px -340px;
            width: 38px;
            height: 26px;
            position: relative;
            top: -12px;

        }

        .nav-sprite {
            /* background-size: 350px; */

        }

        .cart-icon {
            position: relative;
            display: inline-block;
            font-size: 24px; /* Adjust size as needed */
            color: #333; /* Icon color */

        }

        .container{
            background-color: white; /* Light blue background */

        }
        .discount-label {
            background-color: red; /* Background color for visibility */
            color: white; /* Text color */
            /* Padding around the text */
            padding: 5px; 
            font-weight: bold; /* Bold text */
            text-align: left; /* Left align text */
            /* Space above the label */
            /*
            margin-top: -35px;
            */

            margin-top: 1px;
            width: 100%; /* Ensure label takes full width */
            
            border-radius: 3px; /* Optional: rounded corners */
        }


        .product-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;

            gap: 16px;
            justify-content: flex-start;
        }

        .card-img-top{
            border-radius: 8px; /* Optional: rounded corners */
        }
        .product-card {
            display: flex;
            flex-direction: column;
            width: calc(16.66% - 1%); /* Default width for 6 cards */
            width: 15rem;
            margin: 0%; /* Space between cards */
            background-color: lightgrey; /* Light blue background */
            background-color: white; /* Light blue background */

            border: 1px solid #ddd;
            border-radius: 8px; /* Optional: rounded corners */
            overflow: hidden; /* Optional: hide overflow */
        }

        .product-image {
            flex: 40%;
            display: flex; /* Enable flexbox for centering */
            align-items: center; /* Center vertically */
            justify-content: center; /* Center horizontally */
            flex-direction: column; /* Stack image and label vertically */
        }

        .product-info {
            flex: 60%;
            padding: 10px;
            align-self: center;
            text-align: center;
        }

        .product-image img {
            max-width: 100%; /* Make image responsive */
            height: auto;
        }

        .add-to-cart-button {
            background-color: lightgrey;
            background-color: #28a745; /* green */
            background-color: #917adf; /* purple */
            background-color: #6d4ae5; /* purple */
            background-color: #28a745; /* green */
            border: none;
            color: whitesmoke;
            padding: 5px;
            border-radius: 4px;
            align-items: center;
            cursor: pointer;
            font-size: 0.9rem;
            width: 100%;
            width: 30%;
            /* margin-top: 0.9rem;*/
        }

        /* for quantity */

        .quantity-container {
            display: flex;
            align-items: center;
            font-size: 14px;
            justify-content:center;           
        }

        .quantity-button {
            background-color: #ddd;
            border: 1px solid #ccc;
            border-radius: 4px;
            padding: 0px;
            /*
            padding: 0 10px;
            */
            font-size: 14px;
            cursor: pointer;
            user-select: none;
        }

        .quantity-input {
            width: 4rem;
            text-align: center;
            border: 1px solid #ccc;
            border-radius: 4px;
            padding: 2px;
            font-size: 14px;
            appearance: textfield;  /* Hide spinners for Edge */
            -moz-appearance: textfield; /* Hide spinners for Firefox */
        }

        /* for weight button  */
        /* Label styles */
        .weight-label {
            font-weight: bold;
            font-size: 14px;
            color: #333;
            margin-right: 10px;
        }

        /* Dropdown styles */
        .product-weight {
            padding: 5px 30px 5px 5px;
            border-radius: 5px;
            border: 1px solid #ddd;
            background-color: #f8f8f8;
            font-size: 14px;
            margin: 4px 0;
            color: #555;
            transition: border-color 0.3s ease;
            appearance: none; /* Removes default browser arrow */
            background-image: url('../images/arrow-icon.svg'); /* Custom arrow icon */
            background-repeat: no-repeat;
            background-position: right 10px center;
            background-size: 12px;
            cursor: pointer;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Adding box shadow for a 3D look */
        }

        /* On hover */
        .product-weight:hover {
            border-color: #007bff; /* Change border color on hover */
            background-color: #f1f1f1;
        }

        /* On focus */
        .product-weight:focus {
            border-color: #007bff;
            outline: none;
        }

        .product-label {
            font-weight:bold; 
            font-family: 'Noto Sans Devanagari', sans-serif; 
            font-size:14px;
            line-height:1rem;
        }

        .product-price {
            font-weight:bold; 
            font-family: 'Noto Sans Devanagari', sans-serif; 
            font-size:14px;
            line-height:1rem;
        }

        .devnagari-product-label{
            font-weight:bold; 
            font-family: 'Noto Sans Devanagari', sans-serif; 
            color:darkgreen;
            font-size:12px;
            line-height:1rem;
        }
        
        .product-card.show {
            flex-direction: row; /* Set flex direction for visible cards */
        }

        .hidden {
            display: none; /* Use this class to hide cards */
        }

        /* Responsive styles */
        @media (max-width: 1280px) {
            .product-container {
                justify-content: flex-start; /* Align cards to the left */
            }
            .product-card {
                width: calc(23.333% - 16px); /* 4 cards per row */

                /* 3 cards per row */
                /*
                width: calc(28.333% - 16px); 
                */
            }
        }

        @media (max-width: 1000px) {
            .product-container {
                justify-content: flex-start; /* Align cards to the left */
            }

            .product-card {
                width: calc(33.333% - 16px); /* 3 cards per row */
            }
        }

        @media (max-width: 800px) {
            .product-container {
                justify-content: flex-start; /* Align cards to the left */
            }

            .product-card {
                width: calc(50% - 16px); /* 2 cards per row */

            }
        }

        @media (max-width: 450px) {
            .product-card {
                flex-direction: row ; /* Change to horizontal layout */
                width: 100%; /* Full width on mobile */
            }
        

            .product-image {
                flex: 40%; /* Image takes 40% */
                display: flex; /* Enable flexbox for centering */
                /* Center vertically */
                /*
                align-items: center; 
                */
                padding-left:0.5rem;
                /* margin-top:2rem; */
                padding-top:2rem; 
                margin-top:2px;
                margin-bottom:2px;
                padding-bottom:4px;
                height:9rem;
                justify-content: center; /* Center horizontally */
            }

            .product-info {
                flex: 60%; /* Info takes 60% */
                align-items: center; /* Center vertically */
                text-align:left;
                padding-left: 0.8rem;
            }
            .product-weight{
                font-size:12px;
            }
            .quantity-input{
                font-size:12px;

                height:25px;
            }

            .quantity-button{
                font-size:10px;
                width:25px ;
                height:25px;
                padding:0px !important;
                
            }

            .quantity-container {
                font-size:10px;
                align-items: left; /* Center vertically */
                text-align:left;
                justify-content:left;
            }

            .product-label {

                position:absolute;
                left:1.9rem;
            }

             .product-price{
                position:relative;
             }
             .devnagari-product-label{
                position:relative;
             }
        }