/* variables */
:root {
    --logo: url(../img/logo/logo.png);
    --white: hsl(0, 0%, 100%);
    --WHITE: hsl(0, 0%, 100%);
    --BLACK: hsl(0, 0%, 0%);
    --black-90: hsl(0, 0%, 10%);
    --black-70: hsl(0, 0%, 30%);
    --black-alpha-40: hsla(0, 0%, 0%, 0.4);
    --pink-light: #fff7ef;
    --burgendee: #9c5876;
    --grey: #e2dedc;
    --turquosie-dark: #046276;
    --border-color: hsl(0, 0%, 90%);
    --shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}


/* base */

@font-face {
    font-family: Tajawal;
    src: url('../fonts/Tajawal.ttf')
}

body {
    background-color: var(--pink-light);
    font-family: Tajawal, sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: var(--black-70);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--main-color);
    text-decoration: none;
}

a:hover {
    color:  var(--black-70);
}

img {
    max-width: 100%;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--black-90);
    line-height: 1.3;
}

.box {
    background-color: var(--white);
    border-radius: 5px;
    box-shadow: var(--shadow);
    padding: 30px;
}

.section-padding {
    padding: 60px 0;
}

.section-title {
    margin-top: 40px;
    margin-bottom: 20px;
}

.section-title .title {
    font-size: 30px;
    font-weight: 600;
    color: var(--turquosie-dark);
    text-align: center;

}

::selection {
    color: var(--WHITE);
    background-color: var(--main-color);
}

/* header */
.header-main .logo {
    background-image: var(--logo);
    background-repeat: no-repeat;
    background-size: contain;
    width: 70px;
    height: 70px;
    display: inline-block;
    position: relative;
}

.header {
    transition: top .4s ease-in-out;
    background-color: var(--pink-light);
}

.header .menu-item {
    display: inline-block;
    margin-left: 40px;
    position: relative;
}

.header .menu-item>a {
    display: block;
    padding: 24px 0;
    font-weight: 600;
    color: var(--burgendee);
    transition: color 0.3s ease;
}

.header .menu-item:hover>a {
    color: var(--main-color)
}

.header-backdrop,
.header-close-btn,
.header-hamburger-btn {
    display: none;
}

.float-icon {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 100
}

.float-icon i {
    font-size: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 0 1px 1px #0bdf0b;
    color: #fff;
    background-color: #1ac81a;
    padding: 7px 0;
    text-align: center
}

/* slides section */
.slides-section {
    width: 100%;
    height: auto;
    margin: 0;

}

.slides-section .carousel-inner {
    margin-right: 50px;
}

/* products section*/
.carousel-container {
    display: flex;
    align-items: center;
    width: 90%;
    margin: auto;
    max-width: 1200px;
}

.carousel {
    width: 90%;
    margin: auto;
    overflow: hidden;
    flex-grow: 1;
}

.carousel-inner-2 {
    display: flex;
    width: max-content;
    animation: slide 15s linear infinite;
}

@keyframes slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.carousel-inner-2 .product-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    width: 200px;
    margin: 10px;
}

.carousel-inner-2 .product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* partner-section */
.partners-section .section-title {
    width: 180px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.partners-section .img-box {
    height: 130px;
    width: 130px;
    border-radius: 50%;
    position: relative;
    margin: 30px auto 50px;
}

.partners-section .img-box img {
    height: 130px;
    width: 130px;
    border-radius: 50%;
    margin: 10px auto 20px;
    background-color: var(--turquosie-dark);
}

.partners-section .img-box::before,
.partners-section .img-box::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--burgendee);
    animation: spin 15s linear infinite;
}

.partners-section .img-box::before {
    height: 145px;
    width: 145px;
    left: -7px;
    top: 2px;
    border-left: 1px solid transparent;
}

.partners-section .img-box::after {
    height: 170px;
    width: 170px;
    left: -19px;
    top: -12px;
    border-right: 1px solid transparent;
}

.partners-section .decoration-circles-item {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
}

.partners-section .decoration-circles-item:nth-last-child(1) {
    left: 10%;
    top: 75%;
    height: 30px;
    width: 30px;
    background-color: var(--burgendee);
}

.partners-section .decoration-circles-item:nth-last-child(2) {
    left: 40%;
    top: 40%;
    height: 40px;
    width: 40px;
    background-color: var(--grey);
}

.partners-section .decoration-circles-item:nth-last-child(3) {
    left: 70%;
    top: 70%;
    height: 30px;
    width: 30px;
    background-color: var(--turquosie-dark);
}

.partners-section .decoration-circles-item:nth-last-child(4) {
    left: 90%;
    top: 50%;
    height: 50px;
    width: 50px;
    background-color: var(--burgendee);
}

/* anemation keyframes */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes bubble {
    0% {
        transform: translateY(0vh);
        opacity: 0;
    }

    5%,
    95% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh);
        opacity: 0;
    }
}

@keyframes loader {
    0% {
        transform: rotate(0deg);
    }

    25%,
    50% {
        transform: rotate(180deg);
    }

    75%,
    100% {
        transform: rotate(360deg);
    }
}

@keyframes loaderIn {

    0%,
    25%,
    100% {
        height: 0%;
    }

    50%,
    75% {
        height: 100%;
    }
}

/* services section  */
div.category {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

div.category-item {
    margin: 5px;
    border: 1px solid #ccc;
    width: 40%;
}

div.category-item img {
    width: 100%;
    height: auto;
}

div.category-item div.desc {
    padding: 15px;
    text-align: center;
}

/* contact section */
.map {
    float: right;
    width: 350px;
    height: 230px;
}

.map iframe {
    border: 1px solid var(--white);
    border-radius: 5px;

}

.mobile-map {
    visibility: hidden;
}

.contact-item {
    text-align: right;
    position: relative;
    padding-right: 55px;
    margin-bottom: 40px;
}

.contact-item .icon-box {
    position: absolute;
    height: 40px;
    width: 40px;
    background-color: var(--burgendee);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    right: 0;
    top: 0;
    color: var(--WHITE);
}

.contact-form {
    background-color: var(--pink-light);
}

.form-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 30px;
    color: var(--turquosie-dark);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-control::placeholder {
    text-align: right;
    color: var(--black-70);
}

.form-control {
    height: 48px;
    border-color: var(--turquosie-dark);
    color: var(--black-90);
    background-color: transparent;
}

.form-control:focus {
    background-color: transparent;
    border-color: var(--black-70);
    color: var(--black-90);
    box-shadow: none;
}

.select-icon {
    position: absolute;
    right: 15px;
    top: 50px;
    transform: translateY(-50);
    pointer-events: none;
    font-size: 13px;
}

select.form-control:focus option {
    background-color: var(--black-70);
}

textarea.form-control {
    height: 120px;
    resize: none
}

/* about-section */

.about-section .img-box img {
    height: 380px;
    width: 680px;
}

.about-section .text-box {
    direction: rtl;
    text-align: right;
    padding-top: 60px;
}
.about-section .text-box p{
    margin: 0 10px 20px 10px;
}
.about-section .text-box  .title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--turquosie-dark);
}

/* products section */
.products-section {
    margin-bottom: 30px;
    position: relative;
    text-align: center;
}

.products-section .container {
    display: block;
}

/* تنسيق قسم الفلاتر */

.filters-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    z-index: 1100;
    overflow: auto;
    padding: 20px;
    background-color: white;
    box-shadow: var(--shadow);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.filters-sidebar.open {
    transform: translateX(0);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 15px;
    background: none;
    border: none;
    cursor: pointer;
}

.filter-group {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.filters-sidebar label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
    direction: rtl;
    float: right;
}

.filters-sidebar h2 {
    margin-top: 20px;
    margin-bottom: 25px;
}

.filters-sidebar input[type="text"],
.filters-sidebar select {
    width: 100%;
    padding:8px 5px ;
    margin-top: 5px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    direction: rtl;
}
.filters-sidebar input[type="range"] {
    width: 100%;
    padding: 0;
    margin-top: 5px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    direction: rtl;
}
.filters-sidebar button {
    width: 100%;
    padding: 10px;
    background-color: var(--turquosie-dark);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    font-weight: bold;
}

.filter-toggle-btn {
    background-color: var(--turquosie-dark);
    color: white;
    border: none;
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    float: right;
}

/* تنسيق قائمة المنتجات */
.product-list {
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 20px;
    padding: 0 20px;
}

.product-list .product-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    margin: 10px 0;
}



.product-card h4 {
    font-size: 1.1em;
    line-height: 26px;
    color: var(--burgendee);
    font-weight: bold;
    margin: 5px 0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.product-list .product-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.product-card .price-and-cart {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
}

.price-and-cart .price {
    font-size: 18px;
    font-weight: bold;
    color: var(--turquosie-dark);
}

.price-and-cart .add-cart {
    padding: 8px;
    font-size: 18px;
    color: var(--black-70);
    cursor: pointer;
}

#cart-icon {
    position: relative;
    display: flex;
    font-size: 30px;
    cursor: pointer;
    color: var(--black-70);
}

#cart-icon .cart-item-count {
    position: absolute;
    top: -10px;
    right: -12px;
    width: 15px;
    height: 15px;
    background: rgba(238, 218, 218, 0.958);
    border-radius: 50%;
    font-size: 18px;
    color: #0c0909;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
}

.cart {
    position: fixed;
    top: 0;
    right: -100%;
    width: 360px;
    height: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 65px 20px 40px;
    z-index: 1100;
    overflow: auto;
    transition: 0.5s;
}

.cart.active {
    right: 0;
}

.cart-title {
    text-align: center;
    font-size: 30px;
    color: var(--burgendee);
}

.cart-box {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.cart-box img {
    width: 100px;
    height: 100px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 20px;
}

.cart-detail {
    display: grid;
    gap: 8px;
    margin-right: auto;
}

.cart-product-title {
    font-size: 16px;
    line-height: 1;
}

.cart-price {
    font-weight: 500;
}

.cart-quantity {
    display: flex;
    width: 100px;
    border: 1px solid #999;
    border-radius: 6px;
}

.cart-quantity button {
    background: transparent;
    width: 30px;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.cart-quantity #decrement {
    color: #999;
}

.cart-quantity .number {
    display: flex;
    justify-content: center;
    width: 40px;
    border-left: 1px solid #999;
    border-right: 1px solid #999;
    cursor: default;
}

.cart-remove {
    font-size: 20px;
    cursor: pointer;
}

.total {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-top: 1px solid #999;
    margin-top: 20px;
    font-size: 18px;
}

.total-price {
    margin-left: 10px;
    font-weight: 600;
}

.btn-buy {
    display: block;
    padding: 10px 30px;
    background: var(--turquosie-dark);
    border: none;
    border-radius: 6px;
    font-size: 16px;
    color: #fff;
    margin: 20px auto 0;
    cursor: pointer;
}

#cart-close {
    position: absolute;
    top: 20px;
    right: 15px;
    font-size: 15px;
    cursor: pointer;
}

.product-card.sold-out img,
.product-card.sold-out h4,
.product-card.sold-out .price-and-cart {
    opacity: 0.5;
    filter: grayscale(100%);
    pointer-events: none;
}

.product-card.sold-out .add-cart {
    pointer-events: none;
    background-color: #888;
    cursor: not-allowed;
    border: none;
}

/*pagination*/

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    padding: 10px;
}

.pagination-container button,
.page-number {
    padding: 8px 15px;
    margin: 0 5px;
    cursor: pointer;
    border: 1px solid #333;
    background-color: var(--turquosie-dark);
    border-radius: 4px;
    font-size: 16px;
    color: var(--WHITE);
}

.pagination-container button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.page-number.active {
    background-color: var(--WHITE);
    color: var(--turquosie-dark);
    border-color: var(--turquosie-dark);
}

#page-numbers {
    display: flex;
}

/* footer */
footer {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid var(--border-color-2);
}

.footer-item p {
    font-size: 14px;
}

.footer-item .social-icon {
    margin: 10px;
    font-size: 18px;

}

.footer-item .social-icon:hover {
    color: var(--main-color);
}

/* buttons */

.btn-form {
    height: 48px;
}

/* bubble animation */
.bubble-animation-item {
    position: absolute;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    border: 2px solid transparent;
    z-index: -1;
}

.bubble-animation-item:nth-child(1) {
    border-color: var(--yellow-light);
    top: 55%;
    left: 12%;
    animation: bubble 30s linear infinite;
}

.bubble-animation-item:nth-child(2) {
    border-color: var(--green-light);
    top: 60%;
    left: 50%;
    animation: bubble 40s linear infinite;
}

.bubble-animation-item:nth-child(3) {
    border-color: var(--red-light);
    top: 90%;
    left: 90%;
    animation: bubble 50s linear infinite;
}

.bubble-animation-item:nth-child(4) {
    border-color: var(--yellow-light);
    top: 120%;
    left: 45%;
    animation: bubble 60s linear infinite;
}

.bubble-animation-item:nth-child(5) {
    border-color: var(--green-light);
    top: 30%;
    left: 10%;
    animation: bubble 70s linear infinite;
}

.bubble-animation-item:nth-child(6) {
    border-color: var(--red-light);
    top: 120%;
    right: 30%;
    animation: bubble 80s linear infinite;
}

.bubble-animation-item:nth-child(7) {
    border-color: var(--red-light);
    top: 40%;
    left: 5%;
    animation: bubble 60s linear infinite;
}

.bubble-animation-item:nth-child(8) {
    border-color: var(--green-light);
    top: 90%;
    right: 33%;
    animation: bubble 70s linear infinite;
}

.bubble-animation-item:nth-child(9) {
    border-color: var(--yellow-light);
    top: 85%;
    left: 55%;
    animation: bubble 80s linear infinite;
}

/* page loader */
.page-loader {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    z-index: 1001;
    display: flex;
    background-color: var(--white);
}

.page-loader.fade-out {
    opacity: 0;
    transition: all 0.6s ease;
}

.page-loader div {
    margin: auto;
    height: 32px;
    width: 32px;
    border: 4px solid var(--main-color);
    position: relative;
    animation: loader 2s linear infinite;
}

.page-loader div::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: var(--main-color);
    left: 0;
    top: 0;
    animation: loaderIn 2s linear infinite;
}
.product-card.hidden-by-js {
    display: none !important; /* نستخدم !important هنا فقط لضمان الإخفاء */
}