
:root {
    /*colors*/
    --light-grey: #f8f8f8;
    --very-dark-grey: #bbbbbb;
    --dark-grey: #d7d7d7;
    --yellow: #ffee02;
    --dark-green: #81ad03;
    --light-green: #44a220;
    --black-500: #3f4553;
    --red: #f3384c;
    --blue: #366ad2;
    --text-primary: #404553
}


.fav_btn {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    border: none;
    
    cursor: pointer;
}

/*          */


.box_solid{
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}
.card-container_product {
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    height: 405px;
    border-radius: 10px;
    flex-direction: column;
    list-style: none;
}

.content_slid {
    padding: 0px;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
   
}



.img-container_pro {
    overflow: hidden;
}

.img-container_pro .pro_image {
    width: 100%;
    height: 250px;
    object-fit: contain; 
}


.product-top {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
}

.product-bottom {
    padding-top: 0px;
    padding-bottom: 5px;
    width: 100%;
    height: 100%;
    overflow: hidden;
    line-height: 20px;
    display: flex;
    flex-direction: column;
}

.product-text {
    display: flex;
    flex-direction: column;
}

.product-title {
   
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.price-container {
    height: 25px;
    display: flex;
    overflow: hidden;
    text-wrap: nowrap;
    
}

.price {
    font-weight: 700;
    font-size: large;
    overflow: hidden;
}

.feature {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
    height: 20px;
    text-wrap: nowrap;
    text-overflow: ellipsis;
}

.feature-icon img {
    width: 16px;
    height: 16px;
    transform: translateY(4px);
}

.old-price-container {
    display: block;
   
}

.percentage {
    font-size: 15px;
    color: var(--light-green);
    font-weight: 700;
}

.rating-container {
    position: absolute;
    bottom: 8px;
    right: 5px;
    display: flex;
    background-color: white;
    flex-direction: row-reverse;
    gap: 3px;
    padding: 0px 10px;
    border-radius: 50px;
    justify-content: center;
    align-items: center;
}

.number_of_reviews {
    color: var(--very-dark-grey);
}

.old-price {
    color: var(--very-dark-grey);
    text-decoration: line-through;
}

.transportation-type {
    position: absolute;
    bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel_product {
    list-style: none;
    scroll-behavior: smooth; /* حركة سلسة عند الضغط */
}

.wrapper_product {
    max-width: 1100px;
    width: 100%;
    position: relative;
}

.wrapper_product .carousel_product {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% / 5) - 12px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    border-radius: 8px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    justify-content: start;
    gap: 10px;
    scroll-snap-type: x mandatory;

}

.carousel_product .card-container_product {
    list-style: none;
}

.leftt_btn,
.rightt_btn {
  position: absolute; /* تثبيت الأسهم فوق السلايدر */
  top: 50%;            /* نصف السلايدر عمودياً */
  transform: translateY(-50%); /* تحريك للأعلى نصف ارتفاع الزر */
  background: #0056b3; /* لون خلفية السهم (حسب تصميمك) */
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5000; /* يظهر الأسهم فوق الكروت */
  font-size: 30px;
}

.leftt_btn {
  left: 10px; /* مسافة من اليسار */
}

.rightt_btn {
  right: 10px; /* مسافة من اليمين */
}


.wrapper_product .carousel_product {
padding-top: 10px;
padding-bottom: 10px;
}

.waish_pb{
    height: 450px;
}
@media screen and (max-width:947px) {
    .wrapper_product .carousel_product {
        grid-auto-columns: calc((100% / 4) - 12px);
    }
}


@media screen and (max-width: 752px) {
    .wrapper_product .carousel_product {
        grid-auto-columns: calc((100% / 3) - 12px);
    }
}

@media screen and (max-width:500px) {
    .wrapper_product .carousel_product {
        grid-auto-columns: calc((100% / 1.5) - 12px);
        gap: 10px;
    }

    .rightt_btn,
    .leftt_btn {
        display: none;
        visibility: hidden;
    }

  
}


/*for slider*/

.carousel_product :where(.card, .img) {
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel_product.dragging .card-container_product {
    cursor: grab;
    user-select: none;
}

.carousel_product.dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.carousel_product::-webkit-scrollbar {
    display: none;
}

.carousel_product.no-transition {
    scroll-behavior: auto;
}

.wrapper_product {
    width: 100%;
    max-width: 100%;
}

  
  