/* ===== AZIZ TECH - RAED THEME PRO CLEAN FINAL ===== */

:root{
  --aziz-light:#5BAEA8;
  --aziz-main:#238AA3;
  --aziz-dark:#166F8E;
  --aziz-deep:#12343D;
  --aziz-bg:#ffffff;

  --primary:190 65% 38% !important;
  --primary-500:190 65% 38% !important;
  --secondary:176 32% 52% !important;
  --secondary-500:176 32% 52% !important;
}

/* خلفية بيضاء */
html,
body,
#app,
.app,
main,
.page,
.page-wrapper,
.salla-theme,
.s-block,
section{
  background:#ffffff !important;
  background-color:#ffffff !important;
  background-image:none !important;
}

/* الهيدر */
header,
.store-header,
.main-nav-container{
  background:rgba(255,255,255,.88) !important;
  backdrop-filter:blur(18px) !important;
  border-bottom:1px solid rgba(91,174,168,.20) !important;
  box-shadow:0 12px 35px rgba(18,52,61,.07) !important;
}

a{
  transition:.25s ease !important;
}

a:hover{
  color:var(--aziz-main) !important;
}

/* العناوين العامة */
.s-block__title,
.s-slider-block__title,
.section-title{
  margin-bottom:18px !important;
}

.s-block__title h2,
.s-slider-block__title h2,
.section-title,
h2{
  color:var(--aziz-deep) !important;
  font-weight:900 !important;
  letter-spacing:-.3px !important;
}

.s-block__title h2::after,
.s-slider-block__title h2::after,
.section-title::after,
h2::after{
  content:"";
  display:block;
  width:82px;
  height:5px;
  margin-top:10px;
  border-radius:30px;
  background:linear-gradient(90deg,var(--aziz-light),var(--aziz-main));
}

/* ===== المنتجات ===== */

.s-product-card-entry,
.s-product-card-vertical,
.product-entry,
.product-card{
  position:relative !important;
  background:rgba(255,255,255,.96) !important;
  border:1px solid rgba(91,174,168,.24) !important;
  border-radius:30px !important;
  overflow:hidden !important;
  box-shadow:0 14px 40px rgba(22,111,142,.10) !important;
  transition:.35s ease !important;
}

.s-product-card-entry:hover,
.s-product-card-vertical:hover,
.product-entry:hover,
.product-card:hover{
  transform:translateY(-9px) !important;
  border-color:rgba(35,138,163,.42) !important;
  box-shadow:0 24px 60px rgba(22,111,142,.18) !important;
}

.s-product-card-image{
  position:relative !important;
  overflow:hidden !important;
  border-radius:24px !important;
  background:#f4fbfa !important;
}

.s-product-card-image::after{
  content:"";
  position:absolute;
  top:-60%;
  left:-130%;
  width:75%;
  height:230%;
  background:linear-gradient(120deg,transparent 0%,rgba(255,255,255,.12) 35%,rgba(255,255,255,.98) 50%,rgba(255,255,255,.12) 65%,transparent 100%);
  transform:rotate(25deg);
  transition:1s ease;
  z-index:5;
  pointer-events:none;
}

.s-product-card-entry:hover .s-product-card-image::after,
.s-product-card-vertical:hover .s-product-card-image::after,
.product-card:hover .s-product-card-image::after{
  left:170%;
}

.s-product-card-image img,
.s-product-card-image-contain,
.product-image img{
  border-radius:24px !important;
  transition:.45s ease !important;
}

.s-product-card-entry:hover img,
.s-product-card-vertical:hover img,
.product-card:hover img{
  transform:scale(1.07) !important;
}

.s-product-card-content{
  position:relative !important;
  z-index:2 !important;
  padding:14px !important;
}

.s-product-card-content-title,
.s-product-card-content-title a,
.product-title{
  color:#12343D !important;
  font-size:16px !important;
  font-weight:900 !important;
  line-height:1.8 !important;
}

.s-product-card-price,
.product-price,
.money{
  color:var(--aziz-main) !important;
  font-size:20px !important;
  font-weight:900 !important;
}

/* شارة المنتجات */
.aziz-badge{
  position:absolute;
  top:14px;
  right:14px;
  z-index:5;
  background:linear-gradient(135deg,#5BAEA8,#238AA3);
  color:#fff;
  padding:7px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  box-shadow:0 8px 18px rgba(35,138,163,.25);
}

/* انيميشن المنتجات */
.aziz-hidden{
  opacity:0 !important;
  transform:translateY(28px) !important;
}

.aziz-show{
  opacity:1 !important;
  transform:translateY(0) !important;
  transition:.7s ease !important;
}

/* ===== الأزرار والبحث ===== */

button,
.s-button-element,
.s-button-primary,
.btn-primary,
.s-product-card-content-footer button{
  background:linear-gradient(135deg,var(--aziz-light),var(--aziz-main)) !important;
  color:#fff !important;
  border:0 !important;
  border-radius:18px !important;
  font-weight:900 !important;
  box-shadow:0 12px 28px rgba(35,138,163,.28) !important;
  transition:.3s ease !important;
}

button:hover,
.s-button-element:hover,
.s-button-primary:hover,
.btn-primary:hover,
.s-product-card-content-footer button:hover{
  transform:translateY(-3px) !important;
  filter:brightness(1.06) !important;
}

input,
.s-search-input,
.search-input{
  border:1px solid rgba(91,174,168,.25) !important;
  border-radius:18px !important;
  background:#fff !important;
  box-shadow:0 8px 22px rgba(18,52,61,.05) !important;
}

.s-cart-summary-wrapper,
.header-btn,
button[aria-label],
.s-search-input{
  border-radius:16px !important;
}

.s-block__display-all,
.s-slider-block__display-all{
  color:var(--aziz-main) !important;
  font-weight:900 !important;
}

/* ===== الأقسام - إصلاح نهائي ===== */

/* إلغاء شكل المربع الأبيض */
.slide--cat-entry,
.s-categories .swiper-slide,
.s-categories-slider-wrapper .swiper-slide{
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
  padding:0 !important;
  min-height:auto !important;
  overflow:visible !important;
}

/* رابط القسم */
.slide--cat-entry{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:flex-start !important;
  text-align:center !important;
  width:190px !important;
  min-width:190px !important;
  max-width:190px !important;
}

/* غلاف اللمعة */
.aziz-cat-shine{
  position:relative !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
  border-radius:999px !important;
  width:105px !important;
  height:105px !important;
  min-width:105px !important;
  min-height:105px !important;
  max-width:105px !important;
  max-height:105px !important;
  flex-shrink:0 !important;
  animation:azizFloat 3.8s ease-in-out infinite !important;
}

/* صورة القسم */
.slide--cat-entry img,
.aziz-cat-shine img,
img.w-16.h-16.object-cover.rounded-full{
  width:105px !important;
  height:105px !important;
  min-width:105px !important;
  min-height:105px !important;
  max-width:105px !important;
  max-height:105px !important;
  object-fit:cover !important;
  object-position:center center !important;
  border-radius:999px !important;
  padding:0 !important;
  margin:0 !important;
  display:block !important;
  flex-shrink:0 !important;
}

/* لمعة الأقسام */
.aziz-cat-shine::after{
  content:"";
  position:absolute;
  top:-60%;
  left:-130%;
  width:75%;
  height:230%;
  background:linear-gradient(120deg,transparent 0%,rgba(255,255,255,.15) 35%,rgba(255,255,255,.98) 50%,rgba(255,255,255,.15) 65%,transparent 100%);
  transform:rotate(25deg);
  transition:1s ease;
  z-index:3;
  pointer-events:none;
}

.aziz-cat-shine:hover::after{
  left:170%;
}

/* اسم القسم */
.slide--cat-entry h2{
  display:block !important;
  width:180px !important;
  max-width:180px !important;
  min-width:180px !important;
  color:#12343D !important;
  font-size:17px !important;
  font-weight:900 !important;
  line-height:1.6 !important;
  text-align:center !important;
  margin:14px auto 0 !important;
  white-space:normal !important;
  word-break:normal !important;
  overflow-wrap:normal !important;
}

/* إزالة خط h2 من اسم القسم */
.slide--cat-entry h2::after{
  display:none !important;
  content:none !important;
}

/* حركة Hover للأقسام */
.slide--cat-entry:hover .aziz-cat-shine{
  transform:scale(1.06) !important;
}

/* حركة الصعود والنزول */
@keyframes azizFloat{
  0%,100%{
    transform:translateY(0);
  }
  50%{
    transform:translateY(-6px);
  }
}

/* ===== آراء العملاء ===== */

.s-testimonials,
.testimonials,
.s-reviews,
.s-comments{
  padding:10px 0 !important;
  background:transparent !important;
}

.s-testimonial-card,
.testimonial-card,
.s-review-card,
.s-comment-card,
.s-testimonials .swiper-slide,
.testimonials .swiper-slide{
  background:transparent !important;
  box-shadow:none !important;
  border:none !important;
  padding:6px !important;
  border-radius:0 !important;
  transform:none !important;
}

.s-testimonial-card::before,
.testimonial-card::before,
.s-review-card::before,
.s-comment-card::before{
  display:none !important;
}

.s-testimonial-card:hover,
.testimonial-card:hover,
.s-review-card:hover,
.s-comment-card:hover{
  transform:none !important;
  box-shadow:none !important;
  border:none !important;
}

.s-testimonial-card img,
.testimonial-card img,
.s-review-card img,
.s-comment-card img{
  width:48px !important;
  height:48px !important;
  border-radius:999px !important;
  border:2px solid rgba(91,174,168,.18) !important;
  box-shadow:none !important;
}

.s-testimonial-card h3,
.testimonial-card h3,
.s-review-card h3,
.s-comment-card h3{
  color:#12343D !important;
  font-size:14px !important;
  font-weight:800 !important;
  margin-bottom:4px !important;
}

.s-testimonial-card p,
.testimonial-card p,
.s-review-card p,
.s-comment-card p{
  color:#5f777c !important;
  line-height:1.8 !important;
  font-size:13px !important;
  margin:0 !important;
}

/* النجوم صفراء */
.star-rating,
.s-rating-stars,
.s-rating-stars i,
.s-reviews .star-rating,
.s-testimonials .star-rating{
  color:#FFD43B !important;
}

path[d*="29.714"]{
  fill:#FFD43B !important;
}

.s-product-reviews svg path,
.s-product-review-rating svg path,
.star-rating svg path,
.s-rating-stars svg path{
  fill:#FFD43B !important;
}

/* ===== الفوتر ===== */

footer,
.store-footer{
  background:linear-gradient(135deg,#12343D,#166F8E) !important;
  color:#fff !important;
}

footer a,
.store-footer a{
  color:#B9F1EA !important;
}

/* ===== الجوال ===== */

@media(max-width:768px){

  .s-product-card-entry,
  .s-product-card-vertical,
  .product-entry,
  .product-card{
    border-radius:22px !important;
  }

  .s-product-card-content-title,
  .s-product-card-content-title a{
    font-size:14px !important;
  }

  .s-product-card-price{
    font-size:17px !important;
  }

  h2,
  .s-block__title h2,
  .s-slider-block__title h2{
    font-size:21px !important;
  }

  /* شبكة الأقسام بالجوال */
  .s-categories .swiper-wrapper{
    display:grid !important;
    grid-template-columns:repeat(2, 150px) !important;
    justify-content:center !important;
    gap:44px 28px !important;
    padding:0 !important;
    width:100% !important;
    box-sizing:border-box !important;
  }

  .s-categories .swiper-slide{
    width:150px !important;
    min-width:150px !important;
    max-width:150px !important;
    overflow:visible !important;
  }

  .slide--cat-entry{
    width:150px !important;
    min-width:150px !important;
    max-width:150px !important;
  }

  .slide--cat-entry h2{
    width:150px !important;
    max-width:150px !important;
    min-width:150px !important;
    font-size:15px !important;
    line-height:1.55 !important;
    margin-top:14px !important;
  }

  .slide--cat-entry .aziz-cat-shine,
  .slide--cat-entry img,
  .aziz-cat-shine img{
    width:105px !important;
    height:105px !important;
    min-width:105px !important;
    min-height:105px !important;
    max-width:105px !important;
    max-height:105px !important;
  }
}
/* إصلاح قص صور الأقسام أثناء الحركة */
.slide--cat-entry{
  overflow:visible !important;
  padding-top:10px !important;
}

.slide--cat-entry .aziz-cat-shine{
  overflow:visible !important;
  border-radius:0 !important;
}

.slide--cat-entry .aziz-cat-shine img{
  border-radius:999px !important;
  overflow:hidden !important;
}

/* خلي اللمعة داخل دائرة الصورة */
.slide--cat-entry .aziz-cat-shine::after{
  border-radius:999px !important;
}
/* إصلاح نهائي لقص نص الأقسام */
.slide--cat-entry{
  overflow:visible !important;
  height:auto !important;
  min-height:160px !important;
  padding-bottom:25px !important;
}

.slide--cat-entry h2{
  display:block !important;
  height:auto !important;
  min-height:unset !important;
  max-height:none !important;
  overflow:visible !important;

  width:190px !important;
  min-width:190px !important;
  max-width:190px !important;

  white-space:normal !important;
  word-break:normal !important;
  overflow-wrap:break-word !important;

  line-height:1.7 !important;
  margin-top:16px !important;
  padding-bottom:10px !important;
}

@media(max-width:768px){
  .slide--cat-entry h2{
    width:165px !important;
    min-width:165px !important;
    max-width:165px !important;
  }
}
/* ===== تثبيت أقسام الجوال: صورتين بالنص ===== */
@media(max-width:768px){

  .swiper-wrapper:has(.slide--cat-entry){
    display:flex !important;
    flex-wrap:wrap !important;
    justify-content:center !important;
    align-items:flex-start !important;
    gap:42px 18px !important;
    transform:none !important;
    width:100% !important;
    padding:0 !important;
  }

  .swiper-slide:has(.slide--cat-entry){
    width:150px !important;
    min-width:150px !important;
    max-width:150px !important;
    flex:0 0 150px !important;
    margin:0 !important;
    overflow:visible !important;
  }

  .slide--cat-entry{
    width:150px !important;
    min-width:150px !important;
    max-width:150px !important;
    margin:0 auto !important;
  }

  .slide--cat-entry h2{
    width:165px !important;
    min-width:165px !important;
    max-width:165px !important;
  }
}
/* ===== فاصل فاخر بين البانرات ===== */

.s-block + .s-block,
section + section{

  position:relative !important;

  margin-top:42px !important;
}

/* الخط */
.s-block + .s-block::before,
section + section::before{

  content:"";

  position:absolute;

  top:-22px;

  left:50%;

  transform:translateX(-50%);

  width:78%;

  height:2px;

  border-radius:999px;

  background:
  linear-gradient(
    90deg,
    transparent,
    rgba(91,174,168,.18),
    #5BAEA8,
    #238AA3,
    rgba(91,174,168,.18),
    transparent
  );

  box-shadow:
  0 0 18px rgba(35,138,163,.18);

  opacity:.9;
}

/* لمعة متحركة */
.s-block + .s-block::after,
section + section::after{

  content:"";

  position:absolute;

  top:-25px;

  left:50%;

  transform:translateX(-50%);

  width:120px;

  height:8px;

  border-radius:999px;

  background:
  radial-gradient(
    circle,
    rgba(91,174,168,.35),
    transparent 70%
  );

  filter:blur(10px);

  opacity:.8;
}
/* ===== إصلاح آراء العملاء بعد التخريب ===== */

@media(min-width:769px){

  /* لا نلمس كل الأقسام، فقط سلايدر الآراء */
  .s-reviews,
  .s-testimonials,
  .testimonials{
    max-width:760px !important;
    margin:0 auto !important;
    padding:10px 0 20px !important;
  }

  .s-reviews .swiper-wrapper,
  .s-testimonials .swiper-wrapper,
  .testimonials .swiper-wrapper{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:20px !important;
  }

  .s-reviews .swiper-slide,
  .s-testimonials .swiper-slide,
  .testimonials .swiper-slide{
    width:180px !important;
    max-width:180px !important;
    flex:0 0 180px !important;
    padding:4px !important;
    text-align:center !important;
  }

  .s-reviews img,
  .s-testimonials img,
  .testimonials img{
    width:42px !important;
    height:42px !important;
    max-width:42px !important;
    max-height:42px !important;
  }

  .s-reviews h3,
  .s-testimonials h3,
  .testimonials h3,
  .s-reviews p,
  .s-testimonials p,
  .testimonials p{
    font-size:12px !important;
    line-height:1.5 !important;
  }
}