@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif !important;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif !important;
  
}
/*  */
@media (max-width: 576px) { 
    body.container {
        padding-left: 0;
        padding-right: 0;
    }
}


.nav-button{
    margin-left: 60%;
}
.logo{
    width: 70px;
    
}
h1{
    font-size: 2.5rem;
    font-weight: 700;
}
h2{
    font-size: 1.8rem;
    font-weight: 600;
}
h3{
    font-size: 1.5rem;
    font-weight: 800;
}
h4{
    font-size: 1.2rem;
    font-weight:600;
}
h5{
    font-size: 1rem;
    font-weight:400;
}
h6{
    color: rgba(207, 166, 110, 1);
    
}
/* Navbar */
.navbar{
    font-size: 16px;
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
    top: 0;
    left: 0;
    box-shadow: 0 5px 10px rgba(31, 223, 31, 0.2);
}

.navbar-light .navbar-nav .nav-link{
    padding: 0 15px;
    color: #000;
    transition: 0.4 ease;
}
.navbar-light .navbar-nav .nav-link:hover, .navbar i:hover, .navbar-light .navbar-nav .nav-link.active .navbar i:hover{
   
    color: rgba(207, 166, 110, 1);
    
}

.navbar i {
    font-size: 1.2rem;
    padding: 0 0.7px;
    transition: 0.45s ease;
    margin-left: 5px;
    cursor: pointer;
}

/* media query for navbar */
@media only screen and (max-width:990px) {
    
    .nav-button{
        margin: 10px;
    }
    .nav-button ul{
        margin: 1rem;
        justify-content: flex-start;
        align-items: flex-start;
        text-align: left;
    }
    .nav-button ul li{
        margin-top: 10px;
    }

}

/* Home */

#home{
    margin-top: 100px;
    background-image: url('../images/background.webp');
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin-left: 30px;
    
}
#home span{
    color: rgba(207, 166, 110, 1);
}

.button{
    font-size: 0.8rem ;
    font-weight: 900;
    outline: none;
    border: none;
    background-color: #1d1d1d;
    color: aliceblue;
    padding: 13px 30px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.5s ease;
}
.button:hover{
    background-color: rgba(207, 166, 110, 1);
}
/* card */
.card{
    border: none !important;
    outline: none !important;
}

/* slider */
.product-slider{
    background: #fff;
    margin: 0 30px;
    padding: 20px;
    margin-bottom: 15px;
}
.product-slider .products{
    display: flex;
    overflow-x: auto;
    gap: 20px;
    margin-top: 10px;
}
.product-slider .products img{
    max-width: 200px;
    max-height: 200px;
}
.product-slider .products::-webkit-scrollbar{
    display: none;

}
.products-slider-price{
    background-color: #fff;
    margin: 0 30px;
    padding: 20px;
    margin-bottom: 15px;
}
.products-slider-price .products{
    display: flex;
    overflow-x: auto;
    gap: 10px;
    margin-top: 10px;
}
.products-slider-price .products::-webkit-scrollbar{
    display: none;
}

.product-card{
    display: flex;
    flex-direction: column;
    justify-content: end;
    min-width: 210px;
    background: #fbfbfb;
}
.product-card img{
    width: 110px;
    margin: 0 50px;
}
.product-offer p{
    background: #be0b3b;
    color: #fff;
    display: inline-block;
    padding: 2px 5px;
    border-radius: 2px;
    margin: 8px 0;
    font-size: 13px;
}

.product-offer span{
    color: #be0b3b;
    font-weight: 500;
    font-size: 12px;
}
.product-price{
    color: gray;
    font-size: 13px;
}
.product-card h4{
    color: #525252;
    font-size: 15px;
    font-weight: 400;
}
/* New */
#new img{
    width: 100%;
    height: 70%;
    margin-top: 30px;
    background-position: center; 
    background-repeat: no-repeat;
    background-size: cover;
}

#new .one{
    position: relative;
}
#new .one .detail{
    position: absolute;
    top: 0;
    left: 0;
    color: burlywood;
    font-weight: bold;
    transition: 0.4s ease;
    opacity: 0.5;
    background-color: rgb(1, 1, 1);
    width: 100%;
    height: 80%;
}


#new .one .detail{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: flex-start;
    text-align: start;
}

#new .one .detail:hover{
    background-color: initial;
    color: black;
    opacity: 100;
}
/* featured */
.product{
    cursor: pointer;
    margin-bottom: 2rem;
}
.product img{
    transition: 0.3s all;
}
.product:hover img{
    opacity: 0.7;
}
.product .buy-btn{
    background-color: rgba(207, 166, 110, 1);
    transform: translateY(50px);
    opacity: 0;
    transition: 0.3s all;
}



.product:hover .buy-btn{
    transform: translateY(0px);
    opacity: 1;
}
hr{
    width: 30px;
    height: 3px !important;
    opacity: 1 !important;
    background-color: rgba(207, 166, 110, 1);
}
.star{
    padding: 10px 0;
}
.star i{
    font-size: 0.9rem;
    color: goldenrod;
}
/* **** Single Product Style **** */

.single-product .buy-btn{
    font-size: 0.8rem ;
    font-weight: 900;
    outline: none;
    border: none;
    background-color:  rgba(207, 166, 110, 1);
    color: aliceblue;
    padding: 13px 30px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.5s ease;
}
.single-product .buy-btn:hover{
    background-color: #1d1d1d ;
}
.single-product input{
    width: 50px;
    height: 40px;
    padding-left:10px ;
    font-size: 16px;
    margin-right: 10px;
}
.single-product input:focus{
    outline: none;
}

/* small image */

.small-img-group{
    display: flex;
    justify-content: space-between;
}

.small-img-col{
    flex-basis: 24%;
    cursor: pointer;
}

/* Cart */
.cart table{
    width: 100%;
    border-collapse:collapse;

}
.cart .product-info{
    display: flex;
    flex-wrap: wrap;
}
.cart th{
    text-align: left;
    padding: 5px 10px;
    color: #fff;
    background-color: rgba(207, 166, 110, 1);
}
#cart_Quantity{
    border: none;
}
.cart td{
    padding: 5px 10px;

}
.cart td img{
    width: 80px;
    height: 80px;
    margin-right: 10px;
}
.cart td input{
    width: 40px;
    height: 30px;
    padding: 5px;
}
.cart td a{
    color: rgba(207, 166, 110, 1);
}

.cart .remove-btn{
    color: rgba(207, 166, 110, 1);
    text-decoration: none;
    font-size: 15px;
    background-color: white;
    border: none;
    width: 100%;
}
.cart .edit-btn{
    color: rgba(207, 166, 110, 1);
    text-decoration: none;
    font-size: 15px;
    background-color: white;
    border: none;
    

}
.cart .product-info p{
    margin: 3px;
}
.cart-total{
    display: flex;
    justify-content: flex-end;
}
.cart-total table{
    width: 100%;
    max-width: 500px;
    border-top: 3px solid rgba(207, 166, 110, 1);
}
td:last-child{
    text-align: right;
}
th:last-child{
    text-align: right;
}
.checkout-cont{
    display: flex;
    justify-content: flex-end;
}

.checkout-btn{
    
    background-color: rgba(207, 166, 110, 1);
    color: #fff;
}
.checkout-btn:hover{
    background-color: #d8db0e;
}

/* Login */
#login-form{
    width: 50%;
    margin: 5px auto;
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(207, 166, 110, 1);
}

#login-form input{
    width: 50%;
    margin: 5px auto;
}
#login-form #login-btn{
    background-color: rgba(207, 166, 110, 1);
    color: #fff;
}

#login-form #register-url{
    color: rgba(207, 166, 110, 1);
}

/* Register */
#register-form{
    width: 50%;
    margin: 5px auto;
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(207, 166, 110, 1);
}

#register-form input{
    width: 50%;
    margin: 5px auto;
}
#register-form #register-btn{
    background-color: rgba(207, 166, 110, 1);
    color: #fff;
}

#register-form #login-url{
    color: rgba(207, 166, 110, 1);
}
/* Account */
#account-form{
    width: 50%;
    margin: 35px auto;
    text-align: center;
    padding: 20px;
}
#account-form input{
    margin: auto5px auto;
}
#account-form #change-pass-btn{
    color: #fff;
    margin-top: 5px;
    background-color: rgba(207, 166, 110, 1);
}

.account-info #order-btn,#Logout-btn{
    color: rgba(207, 166, 110, 1);
    text-decoration: none;
}
/* Orders */
.orders table{
    width: 100%;
    border-collapse: collapse;
}

.orders .product-info{
    display: flex;
    flex-wrap: wrap;
}

.orders th{
    text-align: left;
    padding: 5px 10px;
    color: #fff;
    background-color: rgba(207, 166, 110, 1);
}

.orders th:nth-child(3){
    text-align: right;
}

.orders td{
    padding: 10px 20px;
}
.orders td img{
    width: 80px;
    height: 80px;
    margin-right: 10px;

}

/* Checkout */

#checkout-form .checkout-small-element{
    display: inline-block;
    width: 48%;
    margin: 10px auto;

}
#checkout-form .checkout-large-element{
    width: 97%;
}

#checkout-form .checkout-btn-container{
    margin: 10px;
    text-align: right;
    margin-right: 40px;
}
#checkout-form #checkout-btn{
    color: #fff;
    background-color: rgba(207, 166, 110, 1);
}

/* Contact */
#contact span{
    color: rgba(207, 166, 110, 1);
}

/* ERROR STYLE*/

.error-message {
    background-color: #f8d7da;
    color: #155724;
    padding: 10px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    margin: 15px 0;
    font-size: 14px;
    text-align: center;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    margin: 15px 0;
    font-size: 14px;
    text-align: center;
}
.error-message .close-btn {
    margin-left: 15px;
    color: #155724;
    font-weight: bold;
    cursor: pointer;
}


/* grid  */
/* Base Grid Styles */
.grid-container {
    display: grid;
    gap: 5px;  /* Space between grid items */
    padding: 1px;
}

/* Responsive Grid: 5 columns on small screens, scaling up on larger screens */
@media (max-width: 600px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);  /* 5 items per row */
    }
}

@media (min-width: 601px) and (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);  /* 3 items per row */
    }
}

@media (min-width: 1025px) {
    .grid-container {
        grid-template-columns: repeat(4, 1fr);  /* 4 items per row */
    }
}

/* Individual grid item (card) */
.grid-item {
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);  /* Light shadow for better look */
}

/* Image styling */
.grid-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    box-sizing: border-box;
    object-fit: cover;
}

/* Heading styling */
.grid-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

/* Paragraph styling */
.grid-item p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

/* Button styling */
.grid-item button {
    background-color: rgba(207, 166, 110, 1);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.grid-item button:hover {
    background-color: rgba(207, 166, 110, 1); /* Darken button on hover */
}
/* bannner */
#banner{
    margin-top: 100px;
    background-image: url('../images/background.webp');
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position-x: center;
    background-position-y: 80px;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin-left: 30px;
}

/* media query for slider */
/* For Mobile Screens (up to 480px) */
@media only screen and (max-width: 480px) {
    .product-slider,
    .products-slider-price {
        margin: 0 10px;
        padding: 10px;
    }
    .product-card {
        min-width: 160px;
    }
    .product-card img {
        width: 80px;
        margin: 0 auto;
    }
    .product-offer p,
    .product-price {
        font-size: 12px;
    }
    .product-card h4 {
        font-size: 13px;
    }
    
}
 /* Responsive Grid Settings */
 
/* For Tablets (up to 768px) */
@media only screen and (max-width: 768px) {
    .product-slider,
    .products-slider-price {
        margin: 0 15px;
        padding: 15px;
    }
    .product-card {
        min-width: 180px;
    }
    .product-card img {
        width: 100px;
        margin: 0 auto;
    }
    .product-offer p,
    .product-price {
        font-size: 13px;
    }
    .product-card h4 {
        font-size: 14px;
    }
}

/* For Small Laptops (up to 1024px) */
@media only screen and (max-width: 1024px) {
    .product-slider,
    .products-slider-price {
        margin: 0 20px;
        padding: 15px;
    }
    .product-card {
        min-width: 200px;
    }
    .product-card img {
        width: 110px;
        margin: 0 auto;
    }
}



/* FOOTER */
footer{
    background-color: #222222 !important;

}

footer h5{
    color: #d8d8d8;
    font-weight: 700;
    font-size: 1.3rem;
}

footer li{
    padding-bottom: 4px;
}
footer li a{
    font-size: 0.8rem;
    color: #999;
    text-decoration: none;
}
footer li a:hover{
    color: rgba(207, 166, 110, 1);
}
footer .copyright a{
    color: #000;
    height: 40px;
    width: 40px;
    background-color: white;
    display: inline-block;
    border-radius: 50%;
    text-align: center;
    line-height: 38px;
    transition: 0.3s ease;
    margin: 0 5px;
}

footer .copyright a:hover{
    color: #fff;
    background-color: rgba(207, 166, 110, 1);
}

footer p{
    color: #fff;
}