@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Inter:wght@400;500&display=swap");

/* =========================
   BASE
========================= */
*{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
  font-family: "Inter", sans-serif;
}

html{
  scroll-behavior: smooth !important;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: black; }
::-webkit-scrollbar-thumb { background: red; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #fff; }

:root{
  --main_color : #ef1b1f; 
  --p_color : #7b7b7b;
  --bg_color : #f3f3f3;
  --white_color : #fff;
  --color_heading : #302e2f;
  --border_color : #c7c5c5b6;
  --Sale_color : #E51A1A;
}

body[dir="rtl"]{
  direction: rtl;
  text-align: right;
}

body{
  padding-top: 116px;
}

img{ width: 100%; }

input,select,button{
  outline: none;
  border: none;
}

select{ color: var(--color_heading); }

p{ color: var(--p_color); }

h1,h2,h3,h4,h5,h6{
  color: var(--color_heading);
  font-family: "DM Sans", sans-serif;
}

.container{
  width: 90%;
  margin: auto;
  max-width: 1350px;
}

@media (max-width: 1350px){
  .container{ width: 90%; }
}

.slider-products{ margin-bottom: 80px; }

/* =========================
   HEADER (KEEP SAFE)
========================= */
header{
  background-color: var(--white_color);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 15px 25px,
              rgba(0, 0, 0, 0.05) 0px 5px 10px;
  z-index: 1000;
}

/* top-header (إذا ما عم تستخدميه ما بيضر وجوده) */
header .top-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

header .top-header .logo{ width: 180px; }

header .top-header form{
  width: 610px;
  display: flex;
  align-items: center;
  border-radius: 2px;
  background-color: var(--bg_color);
}

header .top-header .search-box input{
  width: 400px;
  height: 55px;
  padding: 5px 15px 5px 10px;
  background-color: transparent;
}

header .top-header .search-box .select-box{
  position: relative;
}

header .top-header .search-box select{
  width: 190px;
  height: 55px;
  background-color: transparent;
  font-size: 16px;
  cursor: pointer;
  padding-left: 10px;
  margin-right: 10px;
}

header .top-header .search-box select option{ font-size: 14px; }

header .top-header .search-box .select-box::after{
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  width: 1px;
  height: 50%;
  background-color: #b9b9b9;
}

header .top-header .search-box button{
  height: 55px;
  width: 60px;
  background-color: var(--main_color);
  color: var(--white_color);
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
  border: 1px solid var(--main_color);
}

header .top-header .search-box button:hover{
  background-color: transparent;
  color: var(--main_color);
  border-radius: 50%;
}

header .top-header .header-icons{
  display: flex;
  gap: 30px;
}

header .top-header .header-icons .icon{
  position: relative;
  cursor: pointer;
}

header .top-header .header-icons .icon a{ color: var(--color_heading); }

header .top-header .header-icons .icon i{ font-size: 24px; }

header .top-header .header-icons .icon .count{
  position: absolute;
  top: -10px;
  right: -10px;
  width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--main_color);
  color: var(--white_color);
  font-size: 11px;
  border-radius: 100%;
}

/* =========================
   SLIDER
========================= */
.slider{ position: relative; }

.slider .container{
  display: flex;
  justify-content: space-between;
}

.slider .banner-2{
  width: 23%;
  height: 100%;
  object-fit: cover;
}

.slider .banner-2 img{ height: 395px; }

.slider .banner-2 a{
  height: 100%;
  width: 100%;
}

.slider .container .slide-swp{
  width: 75%;
  overflow: hidden;
  position: relative;
}

.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,
.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{
  background-color: var(--main_color);
  width: 35px;
  height: 8px;
  border-radius: 30px;
}

/* =========================
   BANNERS 4
========================= */
.banner-4{
  margin: 40px 0;
}

.banner-4 .container{
  display: flex;
  justify-content: space-between;
}

.banner-4 .container .box{
  width: 24%;
  background-position: center;
  background-size: cover;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 10px;
  position: relative;
}

.banner-4 .container .box img{
  width: 100px;
  transition: 0.3s;
  border-radius: 50%;
}

.banner-4 .container .box:hover img{ transform: scale(1.1); }

.banner-4 .container .box h5{ font-size: 16px; }

.banner-4 .container .box .sale{
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 7px 0;
}

.banner-4 .container .box .sale span{
  font-size: 25px;
  font-weight: bold;
}

.banner-4 .container .box h6{
  font-size: 14px;
  font-weight: bold;
}

.banner-4 .container .box .link-btn{
  position: absolute;
  width: 100%;
  height: 100%;
}

/* =========================
   SLIDE TITLE
========================= */
.side{ margin-bottom: 70px; }

.top-slide{
  position: relative;
  margin-bottom: 20px;
  border-bottom: 3px solid var(--main_color);
}

.top-slide h2{
  position: relative;
  text-transform: uppercase;
  background-color: var(--main_color);
  color: var(--white_color);
  font-size: 18px;
  padding: 10px 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
}

.top-slide h2::before{
  content: '';
  position: absolute;
  top: 0;
  width: 0;
  height: 0;
  z-index: 9;
  border-left: 20px solid transparent;
  background-color: var(--white_color);
  left: 0;
  border-bottom: 20px solid #ef1b1f9c;
}

.slide .container{ position: relative; }

.slide .container .mySwiper{ padding: 10px 0; }

.slide .container .mySwiper .btn_swip{
  position: absolute;
  top: 30px;
  right: 0;
  background-color: var(--main_color);
  color: var(--white_color);
  font-weight: bold;
  border-radius: 5px;
  height: 35px;
  width: 35px;
  transition: 0.3s;
  border: 2px solid var(--main_color);
}

.slide .container .mySwiper .btn_swip:hover{
  background-color: var(--bg_color);
  color: var(--color_heading);
}

.slide .container .mySwiper .btn_swip::after{ font-size: 12px; }

.slide .container .mySwiper .btn_swip.swiper-button-prev{
  left: calc(100% - 80px);
}

/* =========================
   PRODUCT CARD
========================= */
.mySwiper{ overflow: hidden; }

.product{
  background-color: #fff;
  padding: 20px 20px;
  box-shadow: rgba(0, 0, 0, 0.12) 0px 12px 20px,
              rgba(0, 0, 0, 0.03) 0px 3px 6px;
  border: 1px solid var(--border_color);
  border-radius: 5px;
  position: relative;
  transition: 0.5s;
}

.product:hover{
  box-shadow: rgba(0, 0, 0, 0.20) 0px 25px 35px,
              rgba(0, 0, 0, 0.07) 0px 10px 15px;
  transition: 0.5s;
}

.product .sale-present{
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background-color: var(--color_heading);
  color: var(--white_color);
  padding: 4px 10px;
  font-size: 13px;
}

.product .img-product{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.product .img-product a img{
  height: 300px;
  width: 100%;
}

.product:hover .img-product{ scale: 1.01; }

.product .name-product{
  margin-bottom: 10px;
  color: var(--color_heading);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product .name-product a{ color: var(--color_heading); }

.product .name-product:hover{ text-decoration: underline; }

.stars{ margin-bottom: 10px; }

.stars i{
  color: orange;
  font-size: 14px;
}

.price{
  display: flex;
  align-items: center;
  gap: 12px;
}

.price p{
  color: var(--main_color);
  font-weight: bold;
  font-size: 18px;
}

.price .old-price{
  color: var(--p_color);
  text-decoration: line-through;
  font-size: 13px;
  font-weight: normal;
}

.product .icons{
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.product .icons .icon-product{
  width: 40px;
  height: 40px;
  border: 2px solid var(--border_color);
  cursor: pointer;
  display: none; /* مثل كودك */
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.product .icons .icon-product i{
  color: var(--color_heading);
  font-size: 14px;
  transition: 0.3s;
}

.product .icons .icon-product:hover i{ color: var(--white_color); }

.product .icons .icon-product:hover{ background-color: var(--color_heading); }

/* =========================
   PARALLAX / BIG BACKGROUNDS
   (Keep same on desktop, lighter on mobile)
========================= */
.banners{
  background-image: url(img/IMG_20260211_183022_822.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  height: 60vh;
  margin: auto;
  background-attachment: fixed;
}

.big-photo{
  background: url(img/canva.png);
  height: 50vh;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.big-photo .ig{ height: 100%; }

/* ✅ مهم للأداء على الموبايل */
@media (max-width: 992px){
  .banners,
  .big-photo{
    background-attachment: scroll;
  }
}

/* =========================
   ✅ IMPORTANT CLEANUP:
   Old CART CSS removed to avoid conflicts
   (You already have the new cart drawer in navbar.php)
========================= */
/* (تم حذف بلوك START CART القديم بالكامل) */

/* =========================
   RESPONSIVE (keep original logic)
========================= */
.close_menu,
.open_menu,
ul img{
  display: none;
}

@media (max-width: 1281px){
  .products .icons .btn-add-cart{
    font-size: 500px;
    padding: 10px;
  }
}

@media (max-width: 1100px){
  body{ padding-top: 240px; }

  header .top-header .container{ flex-wrap: wrap; }

  header .top-header .search-box{
    order: 3;
    width: 80%;
    margin: 20px auto 0;
  }

  header .top-header .logo{ width: 140px; }

  header .top-header .search-box select{ width: 200px; }

  header .top-header .search-box input{
    width: calc(100% - 200px);
  }

  header .bottom-header .nav-links li{
    font-size: 18px;
    height: auto;
  }

  .close_menu{
    display: block;
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 30px;
  }

  ul img{
    display: flex;
    width: 240px;
  }

  .bottom-header .container nav .nav-links .allmenu{
    display: flex !important;
    justify-content: space-between !important;
    align-items: center;
  }

  .open_menu{
    display: block;
    font-size: 25px;
    height: 40px;
    border: 1px solid var(--main_color);
    width: 40px;
    text-align: center;
    line-height: 40px;
    border-radius: 3px;
  }

  header .bottom-header .nav-links.active{ left: 0; }

  header .bottom-header .category-nav{ width: auto; }

  header .bottom-header .category-nav p{
    font-size: 13px;
    margin: 0 10px;
  }

  header .bottom-header nav{ gap: 20px; }

  .banner-4 .container{ flex-wrap: wrap; }

  .banner-4 .container .box{
    width: 49%;
    margin-bottom: 20px;
    justify-content: space-around;
  }
}

@media (max-width: 1025px){
  .slider .banner-2{ display: none; }
  .slider .container .slide-swp{ width: 100%; }

  .products .icons .btn-add-cart{
    font-size: 14px;
    padding: 10px;
  }

  .slider .container .slide-swp .swiper-wrapper .swiper-slide a img{
    border-radius: 5px;
  }
}

@media (max-width: 800px){
  .top-slide h2{
    font-size: 16px;
    padding: 10px 25px;
  }

  .product .name-product{ font-size: 14px; }

  .price p{ font-size: 16px; }
  .price .old-price{ font-size: 12px; }

  .products .icons .btn-add-cart{
    font-size: 14px;
    padding: 10px 5px;
  }

  .banners .banner-boxs{ flex-wrap: wrap; }

  .banners .banner-boxs .box{
    width: 100%;
    margin-bottom: 20px;
  }

  .banners .banner-boxs.banner_3_img .box{ width: 49%; }

  .checkout .maps h1{ font-size: 35px !important; }
}

@media (max-width: 600px){
  header .bottom-header .category-nav{ display: none; }

  header .top-header .search-box{ width: 100%; }

  header .top-header .search-box select{ width: 140px; }

  header .top-header .search-box input{
    width: calc(100% - 140px);
  }

  header .bottom-header .nav-links{
    width: 100%;
    left: -100%;
  }

  /* كانت مرتبطة بالسلة القديمة، ما عاد إلها قيمة */
  /* .cart{ width: 100%; right: -100%; } */

  .banner-4 .container .box{ width: 100%; }

  .products .icons .btn-add-cart{
    font-size: 13px;
    padding: 10px;
  }

  .banners .banner-boxs.banner_3_img .box{ width: 100%; }
}

.banner-4 .container .box h5,
.banner-4 .container .box .sale p,
.banner-4 .container .box .sale span{
  font-size: 14px;
}

.banner-4 .container .box h6{ font-size: 13px; }

/* =========================
   CHECKOUT PAGE
========================= */
.checkout{ margin: 50px 0; }

.checkout .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout .ordersummary{
  width: 45%;
  padding: 0 20px;
  border: 2px solid var(--border_color);
  border-radius: 5px;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 15px 25px,
              rgba(0, 0, 0, 0.05) 0px 5px 10px;
}

.checkout .ordersummary h1{
  border-bottom: 1px solid var(--border_color);
  padding: 20px 0;
  margin-bottom: 20px;
  color: var(--main_color);
}

.checkout .ordersummary .items{
  height: 350px;
  overflow-y: auto;
}

.checkout .ordersummary .item_cart{
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  height: 125px;
  border-bottom: 1px solid var(--border_color);
  padding-right: 20px;
}

.checkout .ordersummary .item_cart:last-child{ border-bottom: 0; }

.checkout .ordersummary .item_cart .image-name{
  display: flex;
  align-items: center;
  gap: 20px;
}

.checkout .ordersummary .item_cart img{ width: 80px; }

.checkout .ordersummary .item_cart h4{
  margin-bottom: 10px;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.checkout .ordersummary .delete_item i{
  font-size: 22px;
  cursor: pointer;
  transition: 0.3s;
  color: var(--color_heading);
}

.checkout .ordersummary .delete_item i:hover{
  color: var(--Sale_color);
  scale: 1.1;
}

.checkout .ordersummary .quantity_control{
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
}

.checkout .ordersummary .quantity_control span{
  font-size: 18px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg_color);
  padding: 3px 0;
}

.checkout .ordersummary .quantity_control button{
  width: 27px;
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  border-radius: 2px;
  border: 1px solid var(--border_color);
  color: var(--color_heading);
}

.checkout .ordersummary .bottom_summary{
  border-top: 1px solid var(--border_color);
  padding-top: 25px;
}

.checkout .ordersummary .shop_table{
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout .ordersummary .shop_table p{
  font-size: 20px;
  color: var(--color_heading);
  text-transform: capitalize;
}

.checkout .ordersummary .shop_table span{
  font-weight: bold;
  font-size: 20px;
}

.checkout .ordersummary .button_div{
  border-top: 1px solid var(--border_color);
  padding: 30px 0;
}

.checkout .ordersummary .button_div button{
  width: 100%;
  background-color: var(--main_color);
  color: var(--white_color);
  border: 2px solid var(--main_color);
  padding: 15px 0;
  border-radius: 3px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.checkout .ordersummary .button_div button:hover{
  background-color: transparent;
  color: var(--main_color);
}

.checkout .input-info{ width: 45%; }

.checkout .input-info h2{
  padding: 10px 20px;
  background-color: var(--main_color);
  text-transform: capitalize;
  color: var(--white_color);
}

.checkout .input-info .address,
.checkout .input-info .coupon{
  margin-bottom: 25px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--border_color);
  box-shadow: rgba(0, 0, 0, 0.15) 0px 15px 25px,
              rgba(0, 0, 0, 0.05) 0px 5px 10px;
}

.checkout .input-info .coupon .button_coupon{
  text-align: center;
  padding-bottom: 20px;
}

.checkout .input-info .coupon .button_coupon button{
  width: 50%;
  background-color: var(--main_color);
  color: var(--white_color);
  border: 2px solid var(--main_color);
  padding: 12px 0;
  border-radius: 2px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.checkout .input-info .coupon .button_coupon button:hover{
  background-color: transparent;
  color: var(--main_color);
}

.checkout .input-info .inputs{
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
}

.checkout .input-info .inputs label{
  color: var(--color_heading);
  font-size: 14px;
  text-transform: capitalize;
}

.checkout .input-info .inputs input{
  margin: 8px 0 22px;
  padding: 15px 10px;
  border: 1px solid var(--border_color);
  border-radius: 5px;
  transition: 0.3s;
}

.checkout .input-info .inputs input:focus{ border-color: var(--main_color); }

.checkout .maps iframe{
  width: 100%;
  height: 70%;
}

.checkout .maps{
  width: 80%;
  margin: 80px auto;
  height: 400px;
}

.checkout .maps h1{
  margin-bottom: 70px;
  font-size: 50px;
  text-align: center;
  background: -webkit-linear-gradient(50deg, var(--main_color), var(--color_heading));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 1000px){
  .checkout .container{
    flex-direction: column;
    gap: 50px;
  }
  .checkout .ordersummary,
  .checkout .input-info{
    width: 80%;
  }
  .product .img-product a img{
    height: 200px !important;
  }
}

@media (max-width: 500px){
  .checkout .ordersummary,
  .checkout .input-info{
    width: 100%;
  }
  .checkout .input-info h2{ font-size: 18px; }
  .checkout .ordersummary .item_cart h4{ font-size: 13px; }
}

/* =========================
   TOAST (KEEP)
========================= */
.toast-success{
  position: fixed;
  top: 45%;
  right: 45%;
  background: linear-gradient(135deg, #e6f9f0, #d1f2e1);
  color: #0f5132;
  padding: 14px 20px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border: 1px solid #b6e2cd;
  z-index: 9999;
  animation: slideIn 0.4s ease forwards;
}

.toast-icon{
  width: 28px;
  height: 28px;
  background: #198754;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 16px;
  font-weight: bold;
}

@keyframes slideIn{
  from { transform: translateX(40px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* =========================
   SHOP NOW BUTTON (btn2) ✅ KEEP AS IS
========================= */
.container .test{
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
}

.btn2{
  outline: none;
  cursor: pointer;
  border: 2px solid var(--main_color);
  padding: 0.9rem 2rem;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  position: relative;
  display: inline-block;
  letter-spacing: 0.05rem;
  font-weight: 700;
  font-size: 17px;
  border-radius: 500px;
  overflow: hidden;
  background: var(--main_color);
  color: ghostwhite;
}

.btn2 span{
  position: relative;
  z-index: 10;
  transition: color 0.4s;
  color: var(--color_heading);
}

.btn2::before,
.btn2::after{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.btn2::before{
  content: "";
  background: white;
  width: 120%;
  left: -10%;
  transform: skew(30deg);
  transition: transform 0.4s cubic-bezier(0.3, 1, 0.8, 1);
}

.btn2:hover::before{
  transform: translate3d(100%, 0, 0);
}

.btn2:hover span{ color: var(--bg_color); }

/* =========================
   DROPDOWN NAVBAR (KEEP)
========================= */
header .bottom-header .container nav .nav-links .dropdown .btn-women{
  border: none !important;
  color: black !important;
  cursor: pointer;
}

.dropdown-item{ color: black !important; }

.dropdown-item:hover{
  background-color: var(--main_color) !important;
  color: var(--white_color) !important;
}

/* =========================
   UIVERSE CARD (KEEP, but lighter on mobile)
========================= */
.card{
  max-width: fit-content;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  gap: 1rem;
  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.192),
    inset 0 0 5px rgba(255, 255, 255, 0.274),
    0 5px 5px rgba(0, 0, 0, 0.164);
  transition: 0.5s;
  background-color: var(--color_heading) !important;
}

/* backdrop-filter مكلف — خليه بس إذا المتصفح بيدعمه، وخففه بالموبايل */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))){
  .card{ backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); }
  @media (max-width: 768px){
    .card{ backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  }
}

.card:hover{
  animation: ease-out 5s;
  background: rgba(173, 173, 173, 0.05);
}

.card ul{
  padding: 1rem;
  display: flex;
  list-style: none;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
  flex-direction: row;
}

.card ul li{ cursor: pointer; }

.svg{
  transition: all 0.3s;
  padding: 1rem;
  height: 60px;
  width: 60px;
  border-radius: 100%;
  color: var(--main_color);
  fill: currentColor;
  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.3),
    inset 0 0 5px rgba(255, 255, 255, 0.5),
    0 5px 5px rgba(0, 0, 0, 0.164);
}

.social{
  opacity: 0;
  border-radius: 5px;
  padding: 5px;
  transition: all 0.3s;
  color: var(--color_heading);
  background-color: rgba(255, 255, 255, 0.3);
  position: absolute;
  z-index: 9999;
  box-shadow:
    -5px 0 1px rgba(153, 153, 153, 0.2),
    -10px 0 1px rgba(153, 153, 153, 0.2),
    inset 0 0 20px rgba(255, 255, 255, 0.3),
    inset 0 0 5px rgba(255, 255, 255, 0.5),
    0 5px 5px rgba(0, 0, 0, 0.082);
}

.iso-pro{ transition: 0.5s; }

.iso-pro:hover a > .svg{
  transform: translate(15px, -15px);
  border-radius: 100%;
}

.iso-pro:hover .social{
  opacity: 1;
  transform: translate(25px, -2px) skew(-5deg);
}

.iso-pro:hover .svg{ transform: translate(5px, -5px); }

.iso-pro span{
  opacity: 0;
  position: absolute;
  color: #1877f2;
  border-color: #1877f2;
  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.3),
    inset 0 0 5px rgba(255, 255, 255, 0.5),
    0 5px 5px rgba(0, 0, 0, 0.164);
  border-radius: 50%;
  transition: all 0.3s;
  height: 60px;
  width: 60px;
}

.iso-pro:hover span{ opacity: 1; }
.iso-pro:hover span:nth-child(1){ opacity: 0.2; }
.iso-pro:hover span:nth-child(2){ opacity: 0.4; transform: translate(5px, -5px); }
.iso-pro:hover span:nth-child(3){ opacity: 0.6; transform: translate(10px, -10px); }

/* =========================
   LIGHTBOX (KEEP)
========================= */
.lightbox{
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active{
  display: flex;
  opacity: 1;
  visibility: visible;
}

.lightbox-content{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 80%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transform: scale(0.8);
  transition: transform 0.3s ease;
  padding-bottom: 20px; /* دمجنا التكرار تبعك */
}

.lightbox.active .lightbox-content{ transform: scale(1); }

.lightbox-img{
  max-width: 95%;
  max-height: 75vh;
  object-fit: contain;
  margin-bottom: 15px;
  transition: opacity 0.3s ease;
}

.close-lightbox{
  position: absolute;
  top: 10px;
  right: 15px;
  color: #333;
  font-size: 40px;
  cursor: pointer;
  z-index: 10000;
  background-color: #fff;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.close-lightbox:hover{
  color: #fff;
  background-color: #dc3545;
}

.lightbox-prev,
.lightbox-next{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 15px;
  cursor: pointer;
  font-size: 2em;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  width: 60px;
  height: 60px;
  z-index: 1001;
}

.lightbox-prev:hover,
.lightbox-next:hover{
  background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-prev{ left: 20px; }
.lightbox-next{ right: 20px; }

.lightbox-indicators{
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.lightbox-indicator{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}

.lightbox-indicator.active{
  background-color: #007bff;
  opacity: 1;
}

.lightbox-details{
  color: #333;
  text-align: center;
  margin-top: 10px;
  font-size: 1.1em;
}

.lightbox-details p{ margin: 5px 0; }

.lightbox-details .product-price{
  font-weight: bold;
  color: var(--main_color);
  font-size: 1.3em;
}

.lightbox-details .product-size{
  font-style: italic;
  color: #555;
}

.lightbox-add-to-cart-btn{
  background-color: var(--main_color);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1em;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.lightbox-add-to-cart-btn:hover{
  background-color: var(--color_heading);
  transform: translateY(-2px);
}

.lightbox-add-to-cart-btn.active{
  background-color: #6c757d;
  cursor: default;
}

.lightbox-add-to-cart-btn.active:hover{
  background-color: #6c757d;
  transform: translateY(0);
}

@media (max-width: 768px){
  .lightbox-prev,
  .lightbox-next{
    font-size: 1.5em;
    padding: 10px;
    width: 45px;
    height: 45px;
  }
  .lightbox-prev{ left: 10px; }
  .lightbox-next{ right: 10px; }
  .lightbox-img{
    max-width: 90%;
    max-height: 80vh;
  }
  .close-lightbox{
    font-size: 30px;
    width: 40px;
    height: 40px;
    top: 10px;
    right: 10px;
  }
  .lightbox-indicators{ gap: 5px; }
  .lightbox-indicator{ width: 8px; height: 8px; }
  .btns .btn{ padding: 8px 10px; }
  .banner-4 .container .box img{ width: 70px; }
}

/* =========================
   LAST SWIPER (KEEP)
========================= */
.mySwiper2{
  width: 100%;
  padding-top: 50px;
  padding-bottom: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mySwiper2 .swiper-slide{
  background-position: center;
  background-size: cover;
  width: 300px;
  height: 300px;
  margin: auto;
}

.mySwiper2 .swiper-slide img{
  display: block;
  width: 100%;
}

/* ❌ شيلنا force width لأنه بيخرب Swiper */
/* =========================
   CART ITEMS - PRO UI
   (Works with your main.js markup)
========================= */

/* container padding */
.cart .items_in_cart{
  padding: 14px 14px 18px !important;
}

/* each item card */
.cart .items_in_cart .item_cart{
  display: grid !important;
  grid-template-columns: 92px 1fr 42px;
  gap: 12px;
  align-items: start;
  padding: 12px;
  margin: 0 0 12px 0 !important;

  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
}

/* thumbnail */
.cart .items_in_cart .item_cart > img{
  width: 92px !important;
  height: 92px !important;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,.06);
  background: #f6f6f6;
}

/* content block */
.cart .items_in_cart .item_cart .content{
  display: flex !important;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

/* title */
.cart .items_in_cart .item_cart .content h4{
  margin: 0 !important;
  font-size: 14.5px;
  font-weight: 950;
  line-height: 1.25;
  color: #121212;

  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* size label (your inline small) */
.cart .items_in_cart .item_cart .content small{
  font-weight: 800;
  opacity: .8;
}

/* price */
.cart .items_in_cart .item_cart .price_cart{
  margin: 2px 0 2px !important;
  font-weight: 950;
  color: var(--main_color);
  font-size: 14.5px;
}

/* quantity row */
.cart .items_in_cart .item_cart .quantity_control{
  margin-top: 6px !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.03);
}

/* +/- buttons */
.cart .items_in_cart .item_cart .quantity_control button{
  width: 30px !important;
  height: 30px !important;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10) !important;
  background: #fff;
  color: #111;
  font-size: 18px;
  font-weight: 950;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .18s ease;
}

.cart .items_in_cart .item_cart .quantity_control button:hover{
  transform: translateY(-1px);
  border-color: rgba(239,27,31,.35) !important;
  box-shadow: 0 10px 20px rgba(239,27,31,.12);
}

/* quantity number */
.cart .items_in_cart .item_cart .quantity_control .quantity,
.cart .items_in_cart .item_cart .quantity_control span{
  min-width: 26px;
  text-align: center;
  font-weight: 950;
  color: #111;
  font-size: 14px;
}

/* delete button column */
.cart .items_in_cart .item_cart .delete_item{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.03);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .18s ease;
}

.cart .items_in_cart .item_cart .delete_item i{
  font-size: 16px;
  color: #111;
  transition: .18s ease;
}

.cart .items_in_cart .item_cart .delete_item:hover{
  background: rgba(239,27,31,.10);
  border-color: rgba(239,27,31,.25);
  transform: translateY(-1px);
}

.cart .items_in_cart .item_cart .delete_item:hover i{
  color: var(--main_color);
}

/* subtle divider removal (your old css had borders) */
.cart .items_in_cart .item_cart{
  border-bottom: none !important;
}

/* top cart title spacing */
.cart .top-cart{
  padding: 14px 16px 12px !important;
}

.cart .top-cart h3{
  font-size: 14px !important;
  font-weight: 950 !important;
}

/* bottom totals look */
.cart .bottom_cart .total{
  border-radius: 16px;
}

.cart .bottom_cart .button_cart{
  gap: 10px !important;
}

/* Responsive small screens */
@media (max-width: 420px){
  .cart .items_in_cart .item_cart{
    grid-template-columns: 78px 1fr 40px;
    padding: 10px;
  }
  .cart .items_in_cart .item_cart > img{
    width: 78px !important;
    height: 78px !important;
    border-radius: 12px;
  }
}

/* RTL friendly */
body[dir="rtl"] .cart .items_in_cart .item_cart{
  direction: rtl;
}
body[dir="rtl"] .cart .items_in_cart .item_cart .content{
  align-items: flex-end;
}






