/* 🔴🔴🔴🔴 ألوان الهيدر 🔴🔴🔴🔴 */
.header.header--1,
.header.header--mobile,
.ps-header,
.ps-header__top,
.header__top,
.navigation--top{
  background:#101826!important;
}

.header .navigation,
.ps-header .navigation,
.menu--product-categories,
.header__center+.navigation,
.navigation--list,
.ps-main-menu{
  background:#2b3848!important;
}

/* ===== الهيدراخفاء بلوك الميزات ===== */
.ps-home-features,
.ps-site-features,
.section--features {
    display: none !important;
}

/*  هوم رفع السلايدر للأعلى */
.ps-top-categories {
    margin-top: -80px !important;
}

/* 🔴🔴🔴🔴 روابط الفوتر 🔴🔴🔴🔴 */
#footer-links{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  background:#2b3848;
}
#footer-links>div{flex:1;min-width:180px}
#footer-links .panel-content,
#footer-links .panel-content *{display:block!important}
#footer-links .panel-content p *{margin-bottom:6px}

/* 🔴🔴🔴🔴 تأثير الروابط 🔴🔴🔴🔴 */
.ps-footer a:hover{transform:translateX(4px)}

/* 🔴🔴🔴🔴 زر Start Selling 🔴🔴🔴🔴 */
.start-selling-btn{
  display:block;
  width:100%;
  background:#e96d00;
  color:#fff;
  padding:12px 24px;
  border-radius:3px;
  font-weight:600;
  transition:.3s;
}
.start-selling-btn:hover{
  background:#101e34;
  color:#ff7a00;
  transform:scale(1.05);
}

/* 🔴🔴🔴🔴 المميزات 🔴🔴🔴🔴 */
.widget_features {
    background: #101826; /* لون الخلفية */
}
.widget.widget_product.widget_features p {
    color: #ffff !important;
}

.widget.widget_product.widget_features p i,
.widget.widget_product.widget_features i {
    color: #ff7a00 !important;
    font-size: 16px !important;
}

.widget.widget_product.widget_features {
    padding-bottom: 0 !important;
}

/* العناصر */
.footer-features .feature-item{
    font-size: 11px !important; /* تصغير الخط */
    line-height: 1.4 !important;
    margin-bottom: 6px !important;
}

/* الايقونات */
.footer-features .feature-icon{
    font-size: 13px !important;
}

/* 🔴🔴🔴🔴 السوشيال 🔴🔴🔴🔴 */
.custom-footer-right .social-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;height:40px;
  background:#101826;
  color:#fff;
  border-radius:50%;
  font-size:18px;
  transition:.3s;
}
.custom-footer-right .social-link:hover{
  background:#ff7a00;
  color:#101826;
  transform:scale(1.2);
}

/* 🔴🔴🔴🔴 النشرة 🔴🔴🔴🔴 */
.custom-footer-right,
.footer-newsletter-custom,
#jvl-subscribe-placeholder{width:100%}

.footer-newsletter-custom{
  margin-top:8px;
  background:transparent!important;
  box-shadow:none!important;
}

#jvl-subscribe-placeholder .jvl-newsletter-row{
  display:flex;
  width:100%;
  max-width:320px;
  height:30px;
  border:1px solid #ff7a00;
  overflow:hidden;
  background:#fff;
}
#jvl-subscribe-placeholder .newsletter-input,
#jvl-subscribe-placeholder .newsletter-btn{
  width:50%;
  height:30px;
  border:0;
  outline:0;
  font-size:11px;
}
#jvl-subscribe-placeholder .newsletter-input{
  padding:0 8px;
  color:#222;
}
#jvl-subscribe-placeholder .newsletter-btn{
  background:#ff7a00;
  color:#fff;
  font-weight:700;
  cursor:pointer;
}

@media(max-width:768px){
  #jvl-subscribe-placeholder .jvl-newsletter-row{
    max-width:100%;
  }
}

/* 🔴🔴🔴🔴 التطبيقات 🔴🔴🔴🔴 */
.feature-apps{display:flex;gap:8px;margin-top:10px}
.feature-apps img{width:110px}
.ps-footer .footer-apps h4{color:#fff!important}

/* 🔴🔴🔴🔴 4 بلوك هوم 🔴🔴🔴🔴 */
.home-deals-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
  padding-block:20px;
  background:#eaeded;
}

.deal-card{min-height:420px;padding:20px;background:#fff}

.deal-title{margin-bottom:15px;font-size:18px;font-weight:700}

.deal-products{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:18px 14px;
}

.deal-product{display:block;color:inherit;text-decoration:none}

.deal-product-image{
  display:flex;
  align-items:center;
  justify-content:center;
  aspect-ratio:1;
  overflow:hidden;
}
.deal-product-image img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.deal-product-name{
  height:40px;
  margin-top:8px;
  overflow:hidden;
  font-size:14px;
  line-height:1.4;
}

@media(max-width:1199px){
  .home-deals-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:767px){
  .home-deals-grid{grid-template-columns:1fr}
}

/* اخفاء الشريط العلوي لصفحة المنتج */
.header--product { 
  display: none !important; 
}

/* 🔴🔴🔴🔴 العد التنازلي 🔴🔴🔴🔴 */
.top-fullwidth-countdown{
  width:100%;
  margin:0!important;
  padding:0!important;
  position:relative;
  z-index:5;
}

.top-fullwidth-countdown .top-fullwidth-inner{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:30px;
}

.top-fullwidth-countdown .ps-product__countdown{
  margin:0!important;
  padding:0!important;
  position:static!important;
}

.top-fullwidth-countdown .ps-product__countdown--timer-only{order:1}
.top-fullwidth-countdown .ps-product__countdown--sold-only{order:2}

.top-fullwidth-countdown figure{text-align:center;margin:0!important}

.top-fullwidth-countdown figcaption{
  margin:0 0 4px!important;
  font-size:12px;
  color:#000;
}

.top-fullwidth-countdown ul{
  display:flex!important;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin:0!important;
  padding:0!important;
}
.top-fullwidth-countdown li{
  list-style:none;
  text-align:center;
}

.top-fullwidth-countdown li span{
  display:block;
  font-size:16px;
  font-weight:700;
  color:#e60023;
}
.top-fullwidth-countdown li p{
  margin:2px 0 0;
  font-size:14px;
  color:#000;
}

.top-fullwidth-countdown .ps-product__progress-bar{
  width:180px;
  margin:6px auto 0!important;
  display:flex;
  align-items:center;
  gap:6px;
}
.top-fullwidth-countdown .ps-progress__value{
  flex:1;
  height:6px;
  background:#eee;
  border-radius:10px;
  overflow:hidden;
}
.top-fullwidth-countdown .ps-progress__value span{
  height:100%!important;
  border-radius:10px;
  background:linear-gradient(90deg,#ff4d4f,#ff9900)!important;
}
.top-fullwidth-countdown .ps-product__progress-bar p{
  margin:0!important;
  font-size:14px;
  color:#15a82d;
}
.top-fullwidth-countdown .ps-product__progress-bar b{
  color:#e60023;
}

@media(min-width:769px){
  .top-fullwidth-countdown{
    transform:translateY(-70px);
    margin-bottom:-70px!important;
  }
  .top-fullwidth-countdown .top-fullwidth-inner{
    justify-content:flex-start;
    margin-left:70px;
  }
}

@media(max-width:768px){
  .top-fullwidth-countdown{
    transform:translateY(-70px);
    margin-bottom:-70px!important;
  }

  .top-fullwidth-countdown .top-fullwidth-inner{
    justify-content:flex-start;
    gap:10px;
  }

  .top-fullwidth-countdown .ps-product__countdown--timer-only,
  .top-fullwidth-countdown .ps-product__countdown--sold-only{flex:1}

  .top-fullwidth-countdown .ps-product__countdown--sold-only{
    display:flex;
    justify-content:flex-end;
  }

  .top-fullwidth-countdown ul{gap:8px}

  .top-fullwidth-countdown li span{font-size:13px}
  .top-fullwidth-countdown li p,
  .top-fullwidth-countdown figcaption{font-size:9px}

  .top-fullwidth-countdown .ps-product__progress-bar{
    width:140px;
    gap:4px;
  }
  .top-fullwidth-countdown .ps-product__progress-bar p{font-size:9px}
}

/* عدل الرقم  */
.ps-product__meta p:has(span[data-bb-value="product-sku"]){
  position: relative;
  right: -12px;
}
/* 🔴🔴🔴🔴 عدد المنتجات جنب السعر 🔴🔴🔴🔴 */
.ps-product__price{
  display:inline-flex!important;
  align-items:center;
  gap:10px;
}

.number-items-available{
  display:inline-block!important;
  margin-right:30px;
  position:relative;
  top:-2px;
  white-space:nowrap;
}

@media(max-width:767px){
  .number-items-available{
    font-size:12px;
    margin-right:8px;
  }
}

/* 🔴🔴🔴🔴 اختصار وصف المنتج 🔴🔴🔴🔴 */
.ps-product__desc,
.ps-product__description,
.product-short-desc{
  display:-webkit-box;
  -webkit-line-clamp:5;
  -webkit-box-orient:vertical;
  overflow:hidden;
  position:relative;
  transition:.3s;
}

.ps-product__desc:hover,
.ps-product__description:hover,
.product-short-desc:hover{
  -webkit-line-clamp:unset;
  max-height:none;
}

.ps-product__desc::after,
.ps-product__description::after,
.product-short-desc::after{
  content:"see more";
  position:absolute;
  bottom:0;
  right:0;
  background:#fff;
  color:#007bff;
  padding-left:6px;
  font-size:13px;
}

/* الون وقياس المنتج */
.pr_switch_wrap > div,
.pr_switch_wrap .bb-product-attribute-swatch,
.pr_switch_wrap .product-attributes > div {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
    flex-wrap: wrap !important;
}

.ps-product__progress-bar span {
    height: 4px !important;
}


    }

    .ec-upsell-price-sale,
    .ec-upsell-total-price {
        font-size: 22px !important;
      }
}

  /* إسلايد 3 */
.single-product-products-grid{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:16px !important;
}

.single-product-grid-item{
  width:100% !important;
}

.single-product-hidden-item{
  display:none !important;
}

@media (min-width:768px){
  .single-product-products-grid{
    grid-template-columns:repeat(2,1fr) !important;
  }
}

@media (min-width:1200px){
  .single-product-products-grid{
    grid-template-columns:repeat(8,1fr) !important;
  }
}
/* تخصيص زر Submit داخل review فقط */
.product-review-container .image-upload__viewer {
    display: inline-block;
}

.product-review-container .image-upload__viewer + button[type="submit"] {
    display: inline-block;
    vertical-align: middle;
    margin-top: -120px; /* عدل الرقم */
    margin-left: 150px;
}
/* رفع بلوك "reviews for product" للأعلى */
.product-review-container .review-list-container {
    margin-top: -50px; /* عدل الرقم */
}

/* تقليل المسافات + تصغير مربع الكتابة (فقط داخل الريفيو) */
.product-review-container h4,
.product-review-container p,
.product-review-container label {
    margin-bottom: 5px !important;
    line-height: 1.3;
}

/* تصغير textarea */
.product-review-container textarea {
    height: 120px !important; /* عدل الحجم */
    padding: 8px;
}

/* تقليل المسافات بين البلوكات */
.product-review-container .mb-3 {
    margin-bottom: 10px !important;
}

 /* إخفاء التقييمات بعد الخامس */
.review-item:nth-child(n+3) {
    display: none;
}

#toggle-reviews:checked ~ .review-list .review-item {
    display: block;
}

.see-more-btn {
    cursor: pointer;
    color: #007bff;
}

/* ✅ سكرول عمودي */
.ec-cross-sale-carousel .slick-track {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    transform: none !important;
}

.ec-cross-sale-carousel .slick-slide {
    width: 100% !important;
    height: auto !important;
    float: none !important;
}

.ec-cross-sale-slide {
    width: 100% !important;
}

/* 🔴🔴🔴🔴 بلوك كروس 🔴🔴🔴🔴 */
.ec-cross-sale-carousel {
    max-height: 1500px;
    overflow-y: auto;
    overflow-x: hidden;
}

.ec-cross-sale-carousel .slick-list {
    height: auto !important;
    overflow: visible !important;
}

.ec-cross-sale-arrows {
    display: none !important;
}

/* ✅ الكمبيوتر */
@media (min-width: 992px) {
    .ec-cross-sale-slider {
        width: 100%;
        max-width: 100%;
    }
}

/* ✅ التابلت */
@media (min-width: 768px) and (max-width: 991px) {
    .ec-cross-sale-slider {
        width: 90%;
        max-width: 90%;
    }
}

/* ✅ الجوال */
@media (max-width: 767px) {
    .ec-cross-sale-slider {
        width: 100%;
        max-width: 100%;
    }

    .ec-cross-sale-carousel {
        max-height: none;
        overflow-y: visible;
    }

    .ec-cross-sale-slide {
        margin-bottom: 15px;
    }
}