/* Start Constants */
body {
    font-family: 'Instrument Sans', sans-serif;
}

* {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    padding: 0;
    margin: 0;
}

:root {
    --main-color: #779c26;
    --main-bg-Color: #ecf4d3;
    --main-font-color: rgb(33, 33, 33);
}

html {
    scroll-behavior: smooth;
}

body::selection {
    background-color: var(--main-color);
    color: white;
}

.margin-page {
    margin: 0 10%;
}

/* End constants */
/* Start Header */
header {
    position: relative;
    background-image: url(../images/head-img1.avif);
    background-size: 160%;
    background-position: top center;
    background-repeat: no-repeat;
    height: 100vh;
    color: white;
    z-index: 0;
}

header::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 /60%);
    z-index: -1;
}

header .container-main {
    display: flex;
    justify-content: space-between;
    padding: 25px 0;
    font-size: 18px;
}

header .container-main .nav-bar a {
    text-decoration: none;
    color: white;
    margin: 0 15px;
    position: relative;
}

header .container-main .nav-bar a:hover {
    color: var(--main-bg-Color);
}

header .container-main .nav-bar a.active {
    color: #c3dc8e !important;
}

header .container-main .nav-bar a i {
    position: relative;
    font-size: 20px;
}


header .container-main .nav-bar a .count-orders {
    position: absolute;
    right: -70%;
    top: -70%;
    background-color: white;
    color: black;
    width: 18px;
    height: 18px;
    line-height: 18px;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;

}

header .heed-welcome {
    text-align: center;
    margin-top: 100px;
}

header .heed-welcome .welcome {
    text-transform: uppercase;
    word-spacing: 2px;
}

header .heed-welcome h1 {
    font-size: 60px;
    font-weight: 500;
    white-space: normal;
    margin-top: 50px;
    margin-bottom: 60px;
}

header .heed-welcome a {
    padding: 12px 30px;
    width: 130px;
    font-size: 16px;
    color: white;
    background-color: var(--main-color);
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 30px;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    -ms-border-radius: 30px;
    -o-border-radius: 30px;
}

header .heed-welcome a:hover {
    background-color: #678d15;
}

header .menu-btn,
header .close-btn {
    display: none;
}

header .container-main button {
    background-color: transparent;
    border: none;
}

header .container-main button i {
    padding: 10px;
    color: var(--main-color);
    border: 1px solid var(--main-color);
}

/* ?Orders Cart */
header .cart-orders {
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease, opacity 0.2s ease-in-out;
    position: absolute;
    width: 500px;
    height: 99%;
    top: 0;
    right: 0;
    background-color: white;
    z-index: 1;
    position: fixed;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    -webkit-transform: translateX(100%);
    -moz-transform: translateX(100%);
    -ms-transform: translateX(100%);
    -o-transform: translateX(100%);
    -webkit-transition: transform 0.3s ease, opacity 0.2s ease-in-out;
    -moz-transition: transform 0.3s ease, opacity 0.2s ease-in-out;
    -ms-transition: transform 0.3s ease, opacity 0.2s ease-in-out;
    -o-transition: transform 0.3s ease, opacity 0.2s ease-in-out;
}

.cart-orders.appeared {
    opacity: 1;
    transform: translateX(0);
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    -o-transform: translateX(0);
}

header .cart-orders .cart-orders-content .head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    border-bottom: 1px solid #ccc;
    padding: 20px;
}

header .cart-orders .head h3 {
    font-weight: normal;
    color: #777
}

header .cart-orders .cart-orders-items {
    padding: 0 10px;
    height: 500px !important;
    overflow-y: auto;
}

header .close-orders-btn {
    color: #777;
    font-size: 25px;
    background-color: #f1efefe6;
    border: none;
    width: 50px;
    height: 40px;
    text-align: center;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
}

header .cart-orders .cart-orders-items .empty-cart {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--main-font-color);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
}

header .cart-orders .cart-orders-item {
    display: flex;
    width: 100%;
    color: var(--main-font-color);
    padding: 10px 20px;
    border-bottom: 1px solid #777;
    margin-top: 10px;
    overflow-y: auto
}

header .cart-orders .cart-orders-item-info {
    display: flex;
    width: 100%;
}

header .cart-orders .cart-orders-item-info div {
    padding: 0 10px;
    text-align: center;
}

header .cart-orders .cart-orders-item-info .name {
    padding-bottom: 10px;
}

header .cart-orders .cart-orders-items .cancel-order {
    color: #777;
    height: 25px;
    width: 25px;
    align-self: center;
    background-color: transparent;
    border-color: #777;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
}

header .sum-price-orders {
    display: flex;
    justify-content: space-between;
    color: #777;
    padding: 15px;
    border-top: 1px solid #777;
    border-bottom: 1px solid #777;
}

header .check-out {
    background-color: var(--main-color);
    color: white;
    width: 400px;
    padding: 16px;
    margin: 15px auto;
    display: block;
    border: none;
    font-size: 20px;
    border-radius: 30px;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    -ms-border-radius: 30px;
    -o-border-radius: 30px;

}

header .check-out:hover {
    background-color: #4f6e0a
}

header .cart-orders .pending {
    color: rgb(234, 234, 65);
    font-size: 15px;
    align-self: center;
    margin-right: 30px;

}

header .cart-orders .accepted {
    color: var(--main-color);
    font-size: 15px;
    align-self: center;
    margin-right: 30px;

}

/* ?End Cart Order */
/* Media Quary */
@media (max-width:767px) {
    header {
        background-size: 400%;
        height: 80vh;
        background-position: top center;
    }

    header .heed-welcome {
        margin-top: 40px;
    }

    header .heed-welcome h1 {
        font-size: 30px;
    }

    header .heed-welcome {
        padding-top: 25px;
    }

    header .menu-btn {
        display: block;
    }

    header {
        position: relative;
    }

    header #nav-bar-id {
        display: none;
        position: absolute;
        top: 10%;
        left: 0;
        height: 350px;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    header #nav-bar-id a {
        color: black;
        width: 90%;
        padding: 15px;
        margin-left: 20px;
    }

    header #nav-bar-id a:hover {
        color: white;
        background-color: rgb(0 0 0 /50%);
    }

    header .container-main .nav-bar a .count-orders {
        left: 30px;
        top: 2px;
        background-color: black;
        color: white;
    }

    header .cart-orders {
        width: 350px;
    }
}

@media(min-width:768px) and (max-width:991px) {
    header {
        background-size: 300%;
        background-position: top center;
    }

    header .container-main .nav-bar a .count-orders {
        background-color: var(--main-font-color);
        color: white;
    }

    header .heed-welcome h1 {
        font-size: 50px;
    }

    header .heed-welcome {
        padding-top: 40px;
    }

    header .menu-btn {
        display: block;
    }

    header #nav-bar-id {
        display: none;
        position: absolute;
        top: 10%;
        left: 0;
        height: 350px;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    header #nav-bar-id a {
        color: black;
        width: 90%;
        padding: 15px;
        margin-left: 20px;
    }

    header #nav-bar-id a:hover {
        color: white;
        background-color: rgb(0 0 0 /50%);
    }

    header .container-main .nav-bar a .count-orders {
        left: 30px;
        top: 2px;
        background-color: black;
        color: white;
    }
}

/* Media Quary */

/* Start Ready to Find */
.Ready-to-Find {
    margin-top: 40px;
    height: 400px;
    background-image: url(../images/home/bg-readytofind.avif);
    background-size: cover;
    background-position: bottom;
}


.Ready-to-Find .content {
    height: 100%;
    color: white;
    display: flex;
    padding: 20px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.Ready-to-Find .content h1 {
    font-size: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.Ready-to-Find .content a {
    text-decoration: none;
    margin-top: 40px;
    background-color: var(--main-color);
    padding: 10px 25px;
    color: white;
    border-radius: 30px;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    -ms-border-radius: 30px;
    -o-border-radius: 30px;
}

.Ready-to-Find .content a:hover {
    background-color: #6d9023;
}

@media (max-width:767px) {
    .flash-sale .content h1 {
        font-size: 30px;
    }
}

/* End Ready to Find */
/* Start Footer */
footer {
    background-color: var(--main-bg-Color);
}

footer .footer-content {
    padding-top: 60px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

footer .footer-content .col-footer ul {
    list-style-type: none;
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
}

footer .footer-content .social-icons a {
    color: var(--main-font-color);
    margin: 0 10px;
    font-size: 20px;
}

footer .footer-content .col-footer ul a {
    text-decoration: none;
    margin: 0 15px;
    color: var(--main-font-color);
}

footer .footer-content .col-footer ul a:hover {
    color: var(--main-color);
}

footer .footer-content .col-footer ul a:active {
    color: var(--main-color);
}

footer .copy-right {
    padding: 30px 0;
    text-align: center;
    color: var(--main-font-color);
    font-size: 15px;
}

@media (max-width:991px) {
    footer .footer-content {
        flex-direction: column;
    }
}

/* End Footer */

/* Scroll to Top */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    background-color: var(--main-color);
    color: white;
    padding: 8px 12px;
    font-size: 18px;
    text-decoration: none;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    -webkit-transition: background-color 0.3s ease, opacity 0.3s ease;
    -moz-transition: background-color 0.3s ease, opacity 0.3s ease;
    -ms-transition: background-color 0.3s ease, opacity 0.3s ease;
    -o-transition: background-color 0.3s ease, opacity 0.3s ease;
}

.back-to-top:hover {
    background-color: var(--main-bg-color);
    color: black;
}

/* Scroll to Top */

.no-products {
    margin-top: 30px;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 25px;
    color: red;
    text-align: center;
}

.quantity {
    margin-top: 5px;

}

.col-prodact {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.to-flex {
    max-height: 80px;
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-top: 1px solid #ccc;
}

.wishlist {
    padding-top: 5px;
    text-align: end;
}

.wishlist i {
    text-align: left;
}

/* alert */
.custom-alert {
    position: fixed;
    top: 100px;
    right: 38%;
    text-align: center;
    background: #d93232;
    color: #f4efef;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-family: Arial, sans-serif;
    font-size: 18px;
    z-index: 9999;
    min-width: 300px;
    animation: fadeIn 0.3s ease;
    align-self: center;
}

.hidden {
    display: none;
}