@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Inter:wght@400;500&display=swap");

:root {
    --main_color: #ff8716;
    --p_color: #7b7b7b;
    --bg_color: #f3f3f3;
    --white_color: #fff;
    --color_heading: #121416;
    --border_color: #e5e5e5d5;
    --Sale_color: #e51a1a;
}

*,
*::after,
*::before {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: inherit;
}

html {
    font-size: 62.5%;
}

body {
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
    padding-top: 18rem;
}

span {
    color: var(--main_color);
}

p {
    color: var(--p_color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color_heading);
    font-family: "DM Sans", sans-serif;
}

header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    padding-top: 2rem;
    box-shadow: 0.5rem 0.8rem 0.8rem #d1d1d13b;
    background-color: #fff;
    z-index: 1000;
}

img {
    width: 100%;
}

.container {
    width: 90%;
    margin: auto;
    max-width: 135rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

@media (max-width: 1100px) {
    .container .search_box {
        order: 1;
        margin: 0 auto;
        width: 80%;
    }

    .top_header .container {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

.logo {
    width: 15rem;
}

.search_box {
    display: flex;
    width: 61rem;
    align-items: center;
    height: 5.5rem;
    border-radius: 2px;
}

.search_box * {
    border: none;
    background-color: transparent;
    outline: none;
}

#category {
    width: 12rem;
}

.search_box {
    background-color: var(--bg_color);
}

.search_box .select_box {
    width: 13rem;
    padding-left: 1rem;
    margin-right: 1rem;
    font-size: 1.6rem;
    outline: none;
    border: none;
    padding-top: auto;
    position: relative;
}

.search_box .select_box option {
    font-size: 1.2rem;
}

.search_box .select_box::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 100%;
    background-color: #b9b9b9;
}

.search_box input {
    padding: 0 1rem;
    flex-grow: 1;
}

.search_box button {
    background-color: var(--main_color);
    border-radius: 2px;
    font-size: 1.8rem;
    color: white;
    height: 100%;
    width: 6rem;
}

.header-icons {
    display: flex;
    gap: 3rem;
}

.header-icons .icon {
    cursor: pointer;
    position: relative;
}

.header-icons .icon i {
    font-size: 2.4rem;
    color: black;
}

.header-icons .icon .count {
    background-color: var(--main_color);
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    color: white;
    display: grid;
    place-content: center;
}

/* //////////////////// */

.bottom_header {
    border-top: 1px solid var(--border_color);
}

.bottom_header .container {
    height: 6rem;
    margin-bottom: 0;
}

.nav {
    display: flex;
    /* margin: 2rem 0; */
    align-items: center;
    gap: 5rem;
    height: 100%;
}

.category_nav {
    height: 100%;
    position: relative;
}

.category_nav_list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    border: 1px solid #999;
    border-top: 0;
    display: flex;
    flex-direction: column;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: 0.3s ease-in-out;
}

.category_nav_list.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.category_nav_list a {
    padding: 1.4rem 1rem;
    border-bottom: 1px solid var(--border_color);
    font-style: 1.4rem;
    color: var(--color_heading);
}

.category_nav_list a:last-child {
    border-bottom: 0;
}

.category_nav_list a:hover {
    background-color: #d0d0d0;
}

.category_btn {
    width: 22rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    font-size: 1.3rem;
    font-weight: bold;
    background-color: var(--main_color);
    color: white;
    cursor: pointer;
}

.category_btn p {
    color: white;
}

.nav_links {
    display: flex;
    justify-content: space-between;
    gap: 3.5rem;
}

.nav_links li a {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--color_heading);
    transition: all 0.2s;
}

.nav_links li a:hover {
    color: var(--main_color);
}

.nav_links .active a {
    color: var(--main_color);
}

.btns {
    display: flex;
    gap: 2vw;
}

.btns i {
    color: #fff;
}

.btns a {
    background-color: var(--main_color);
    color: #fff;
    padding: 1rem 1.8rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: 2px;
    transition: all 0.3s;
}

.btns a:hover {
    scale: 1.1;
}

/* /////////////////// */

.slider {
    width: 90%;
    max-width: 135rem;
    margin: 0 auto;
}

.slider_container {
    padding: 0;
}

.swiper {
    width: 75%;
    height: 100%;
}

.swiper-slide {
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.swiper-slide a img {
    display: block;
}

.slider_container {
    position: relative;
    display: flex;
    gap: 2%;
}

.banner2 {
    width: 23%;
    height: 100%;
}

.swiper-wrapper {
    height: auto !important;
}

.swiper-pagination span {
    background: #fff;
}

.swiper-pagination-bullet-active {
    background-color: var(--main_color) !important;
    width: 3.5rem;
    height: 0.8rem;
    border-radius: 8px;
}

/* /////////////// */

.banner3_container {
    width: 90%;
    max-width: 135rem;
    margin: 0 auto;
    margin-top: 5rem;
}

.banner3 {
    display: flex;
    justify-content: space-between;
}

.prod {
    background-image: url(../img/bg_banner3.jpg);
    background-repeat: no-repeat;
}

.photo {
    width: 45%;
}

.prod {
    width: 24%;
    padding: 1.2rem 1rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    border-radius: 5px;
    cursor: pointer;
}

.prod .photo img {
    transition: all 0.3s;
}

.prod:hover .photo img {
    transform: scale(1.1);
}

.prod p {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color_heading);
}

.prod .p2 {
    font-weight: 500;
}

.prod h5 {
    font-size: 1.6rem;
    font-weight: 100;
    color: var(--p_color);
}

.sub-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 2rem;
    font-weight: bold;
}

/* ///////////////// */

.slide {
    margin-bottom: 7rem;
}

.top_slide {
    position: relative;
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--main_color);
}

.top_slide h2 {
    position: relative;
    text-transform: uppercase;
    font-size: 1.8rem;
    padding: 1rem 4rem;
    background-color: var(--main_color);
    width: max-content;
    color: var(--white_color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top_slide h2::before {
    content: "";
    position: absolute;
    height: 0;
    width: 0;
    top: 0;
    z-index: 9;
    border-left: 2rem solid transparent;
    background-color: #fff;
    left: 0;
    border-bottom: 2rem solid #e26e02;
}

.slide .container {
    position: relative;
}

.slide .container .Swiper {
    padding: 1rem 0;
}

.slide .container .Swiper .btn-swip {
    position: absolute;
    top: 3rem;
    right: 0;
    color: var(--color_heading);
    background-color: var(--bg_color);
    font-weight: bold;
    border-radius: 0.5rem;
    height: 3.5rem;
    width: 3.5rem;
    border: 1px solid var(--border_color);
}

.slide .container .Swiper .btn-swip::after {
    font-size: 1.2rem;
}

.slide .container .Swiper .btn-swip.swiper-button-prev {
    left: calc(100% - 8rem);
    /* right: 10rem; */
}

/* ///////////////// */

.products .product {
    display: inline-block;
    background-color: #fff;
    padding: 2rem 2rem;
    box-shadow: 5px 5px 10px #94949428;
    border-radius: 5px;
    border: 1px solid var(--border_color);
    width: calc(20% - 1.6rem); /* عشان تحسب الفراغات */
    box-sizing: border-box;
    position: relative;
}

.slide .container {
    display: block;
    margin-top: 5rem;
}

.Swiper {
    overflow: hidden;
}

.product .sale_present {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    background-color: #ed0505;
    color: var(--white_color);
    padding: 0.4rem 1rem;
    font-size: 1.3rem;
}

.product .img_product {
    position: relative;
    height: 18rem;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.product:hover .img_product {
    transform: scale(1.1);
}

.product .name_product a {
    margin-bottom: 1rem;
    color: var(--color_heading);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product .name_product a:hover {
    text-decoration: underline;
}

.stars {
    margin-bottom: 1rem;
    color: var(--main_color);
    font-size: 1.4rem;
}

.price {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.price {
    color: var(--main_color);
    font-size: 1.8rem;
    font-weight: bold;
}

.price p {
    color: var(--color_heading);
    font-weight: bold;
    font-size: 1.8rem;
}

.price .old_price {
    color: var(--p_color);
    text-decoration: line-through;
    font-size: 1.3rem;
    font-weight: normal;
}

.product .icons {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.product .icons .icon_product {
    width: 4rem;
    height: 4rem;
    border: 1px solid var(--border_color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.product .icons .icon_product:hover {
    background-color: var(--main_color);
}

.product .icons .icon_product i {
    color: black;
    font-size: 1.4rem;
}

.product .icons .icon_product:hover i {
    color: var(--white_color);
}

.product .icons .btn_add_cart {
    background: var(--main_color);
    color: var(--white_color);
    display: flex;
    cursor: pointer;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--main_color);
    transition: 0.2s;
}

.product .icons .btn_add_cart.active {
    color: var(--color_heading);
    background: transparent;
    pointer-events: none;
}

.product .icons .btn_add_cart.active i {
    color: var(--main_color);
}

.product .icons .btn_add_cart:hover {
    scale: 1.05;
    background-color: #fa7600;
}

/* //////////////////// */

.banners {
    margin: 5rem 0;
}

.banners_boxs {
    display: flex;
    justify-content: space-between;
}

.banners_boxs .box {
    width: 49%;
}

.banner_3_img .box {
    width: 32%;
}

/* //////////////////////////////////////////////////////////////// */

footer {
    background-color: var(--color_heading);
    color: var(--white_color);
}

footer .container {
    padding: 4rem 0;
    margin-bottom: 0;
    padding-right: 20rem;
}

.logo_footer {
    width: 15rem;
}

.big_row p {
    margin: 0.8rem 0 !important;
    font-size: 1.2rem;
}

.icons_footer {
    display: flex;
    gap: 1rem;
}

.icons_footer a {
    color: var(--white_color);
    background-color: var(--main_color);
    border-radius: 0.5rem;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
}

.row .links {
    display: flex;
    flex-direction: column;
}

.row .links i {
    color: var(--main_color);
    margin-right: 0.5rem;
}

.row .links a {
    color: var(--p_color);
    transition: all 0.3s;
    font-size: 1.2rem;
}

.row .links a:not(:last-child) {
    margin-bottom: 0.5rem;
}

.row .links a:hover {
    color: var(--main_color);
    transform: translateX(5px);
}

.row h4 {
    color: var(--white_color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* ///////////////////////////////// */

.cart {
    position: fixed;
    top: 0;
    right: -35rem;
    bottom: 0;
    z-index: 1100;
    background-color: var(--white_color);
    border-left: 1px solid var(--border_color);
    padding: 3rem;
    width: 35rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.3s;
}

.cart.active {
    right: 0;
}

.cart .top_cart {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart .top_cart h3 span {
    color: var(--color_heading) !important;
}

.cart .top_cart .close_cart {
    color: black;
    font-size: 3.5rem;
    cursor: pointer;
}

.cart .items_in_cart {
    padding: 2rem 0;
    border-block: 1px solid var(--border_color);
    margin-block: 2rem;
    height: 100%;
    overflow-y: auto;
}

.cart .items_in_cart .item_cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    height: 12.5rem;
    border-bottom: 1px solid var(--border_color);
}

.cart .items_in_cart .item_cart:last-child {
    border-bottom: 0;
    margin-bottom: 0;
}

.cart .items_in_cart .item_cart img {
    width: 8rem;
}

.cart .items_in_cart .item_cart h4 {
    margin-bottom: 2rem;
    font-weight: 500;
    font-size: 1.4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cart .items_in_cart .item_cart .delete_item {
    all: unset;
    cursor: pointer;
    font-size: 2.2rem;
    transition: 0.2s;
}

.cart .items_in_cart .item_cart .delete_item:hover {
    color: #e51a1a;
}

.cart .items_in_cart .item_cart .quantity_control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart .items_in_cart .item_cart .quantity_control span {
    font-size: 1.8rem;
    min-width: 4rem;
    text-align: center;
}

.cart .items_in_cart .item_cart .quantity_control button {
    height: 2.7rem;
    width: 2.7rem;
    display: grid;
    place-content: center;
    cursor: pointer;
    font-size: 2rem;
    border-radius: 2px;
    border: 1px solid var(--border_color);
}

.cart .bottom_cart .total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.cart .bottom_cart .total .price_cart_total {
    color: var(--main_color);
    font-size: 2rem;
}

.cart .bottom_cart .button_cart {
    display: flex;
    gap: 2rem;
}

/* .cart .bottom_cart .button_cart a {
    background-color: var(--main_color);
    color: var(--white_color);
    padding: .8rem 3rem;
} */

.cart .bottom_cart .button_cart .btn_cart {
    text-transform: uppercase;
    transition: 0.2s;
}

.cart .bottom_cart .button_cart span {
    border: 2px solid var(--main_color);
    color: var(--color_heading);
    padding: 1rem 1.8rem;
    font-size: 1.3rem;
    border-radius: 2px;
    cursor: pointer;
    display: grid;
    place-content: center;
}

.cart .bottom_cart .button_cart span:hover {
    scale: 1.1;
}

/* ////////////////////////////////////////////////// */

.close_menu,
.open_menu {
    display: none;
}

@media (max-width: 1100px) {
    .container .search_box {
        order: 1;
        margin: 0 auto;
        width: 80%;
    }

    .top_header .container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    body {
        padding-top: 24rem;
    }

    .banner3 {
        flex-wrap: wrap;
        /* gap: 2rem; */
    }

    .photo {
        width: 40%;
    }

    .prod {
        width: 49%;
        margin-bottom: 2rem;
    }

    footer .container {
        padding-right: 0;
        align-items: start;
        gap: 2rem;
    }

    .big_row {
        width: 25rem;
    }

    .logo_footer {
        width: 11rem;
    }
}

@media (max-width: 1000px) {
    .nav .nav_links {
        position: fixed;
        top: 0;
        left: -40rem;
        bottom: 0;
        background-color: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        width: 40rem;
        padding-top: 10rem;
        gap: 3.5rem;
        border: 1px solid #b5b5b596;
        transition: 0.3s;
    }

    .nav .nav_links.active {
        left: 0;
    }

    .nav .nav_links li {
        font-size: 1.8rem;
        height: auto;
    }

    .close_menu {
        display: block;
        color: black;
        font-size: 3rem;
        position: absolute;
        top: 3rem;
        right: 3rem;
    }

    .open_menu {
        display: block;
        font-size: 2.5rem;
        border: 1px solid var(--main_color);
        height: 4rem;
        width: 4rem;
        display: grid;
        place-content: center;
        border-radius: 3px;
    }

    .category_btn {
        width: auto;
        gap: 1rem;
        font-weight: 500;
        padding: 0 1rem;
    }

    .nav {
        gap: 2vw;
    }

    .banner2 {
        display: none;
    }

    .slide-swp {
        width: 100%;
    }
}

@media (max-width: 600px) {
    html {
        font-size: 50%;
    }

    .category_btn {
        display: none;
    }

    .search_box {
        width: 100% !important;
    }

    #category {
        width: 110px;
    }

    .search_box .select_box {
        width: 120px;
    }

    .search_box input {
        margin-right: -5rem;
    }

    /* .swiper-slide a img {
        display: block;
        width: 85%;
        margin: 0 auto;
        margin-bottom: 1rem;
    } */

    .top_slide h2 {
        padding: 1rem 2rem;
    }

    .banner_2_img {
        flex-direction: column;
    }

    .banner_2_img .box {
        width: 100%;
    }

    .banner_3_img {
        flex-direction: column;
        gap: 1rem;
    }

    .banner_3_img a {
        width: 100% !important;
        margin: 0 auto;
    }

    .banner_3_img a {
        margin-bottom: 1rem;
    }

    .swiper-slide a img {
        width: 90%;
    }
}

@media (max-width: 500px) {
    html {
        font-size: 40%;
    }

    .search_box input {
        margin-right: -8rem;
    }

    .nav .nav_links {
        width: 100%;
        left: -100%;
    }

    .cart {
        width: 100%;
        right: -100%;
    }

    .item_cart .content {
        margin-right: auto;
    }
}

/* /////////////////// */

.checkout {
    margin: 5rem 0;
}

.checkout .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ordersummsry {
    width: 45%;
    padding: 0 2rem;
    border: 2px solid var(--border_color);
    border-radius: 5px;
    box-shadow: 0 8px 10px #c0bfbf44;
}

.ordersummsry h1{
    border-bottom: 1px solid var(--border_color);
    padding: 2rem 0;
    margin-bottom: 2rem;
    color: var(--main_color);
}

.ordersummsry .items {
    height: 35rem;
    overflow: auto;
}

.ordersummsry .items .item_cart {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 2rem;
    /* gap: 2rem; */
    height: 12.5rem;
}

.ordersummsry .items .item_cart:not(:last-child) {
    border-bottom: 1px solid var(--border_color);

}

.ordersummsry .items .item_cart .image_name {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.ordersummsry .items .item_cart .image_name img {
    width: 8rem;
}

.ordersummsry .items .item_cart .image_name h4 {
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 1.4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ordersummsry .delete_item {
    all: unset;
    cursor: pointer;
}

.ordersummsry .delete_item i {
    font-size: 2.2rem;
    transition: .3s;
}

.ordersummsry .delete_item i:hover {
    color: #e51a1a;
    scale: 1.1;
}

.ordersummsry .quantity_control {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .5rem;
}

.ordersummsry .quantity_control span {
    min-width: 4rem;
    height: 2.7rem;
    display: grid;
    place-content: center;
    font-size: 1.8rem;
    text-align: center;
    background: var(--bg_color);
}

.ordersummsry .quantity_control button {
    width: 2.7rem;
    height: 2.7rem;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 2px;
    border: 1px solid var(--border_color);
}

.bottom_summary {
    border-top: 1px solid var(--border_color);
}

.shop_table {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.shop_table p {
    color: var(--color_heading);
    text-transform: capitalize;
}

.shop_table span {
    font-weight: bold;
}

.button_div {
    border-top: 1px solid var(--border_color);
    padding: 3rem 0;
}

.bottom_summary .button_div button {
    width: 100%;
    background: var(--main_color);
    padding: 1.5rem;
    text-align: center;
    color: var(--white_color);
    border-radius: 3px;
    border: 2px solid var(--main_color);
    cursor: pointer;
    transition: .3s ease-in-out;
    font-size: 2rem;
}

.bottom_summary .button_div button:hover {
    background: transparent;
    color: var(--main_color);
}