/* Sticky navbar (no button) */

/* اخفِ الـ summary والتبويبات فقط عندما البلجن مفعّل */
body.cdl-landing-enabled .single-product div.product .entry-summary { display: none !important; }
body.cdl-landing-enabled .single-product div.product .woocommerce-tabs { display: none !important; }


.cdl-stickbar{
  position: sticky; top: 0; z-index: 9999;

  /* الشكل العام */
  display: block; align-items: center; gap: 12px;
  background: #9d261b; color: #fff;
  padding: 10px 14px; border-bottom: 2px solid #000;

  /* full-bleed بدون ما نكسر الـ sticky */
  width: 100vw;                 /* نفس عرض الشاشة */
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;       /* عشان الـ padding ما يعمل سكرول أفقي */
}
.cdl-stickbar__left{
  background:#111; padding:6px 12px; font-weight:800; border-radius:10px; font-size:14px;
}

.cdl-stickbar__left .blink{animation:blink 1.3s linear infinite}
@keyframes blink { 0%,100% { opacity:1 } 50% { opacity:.25 } }
.cdl-stickbar__prices{
  margin-inline-start:auto; display:flex; align-items:center; gap:10px;
  font-size:17px; font-weight:800;
}
.cdl-old{ text-decoration:line-through; opacity:.7; }
.cdl-new{ font-weight:800; }
.cdl-arrow-inline{ opacity:.8; }

/* Headings - centered */
.cdl-head{font-size:24px; font-weight:800; margin:0 0 8px; text-align:center}
.cdl-subhead{font-size:16px; opacity:.85; margin:0 0 14px; text-align:center}

/* Sections */
.cdl-section{margin:28px 0}
.cdl-center{text-align:center}

/* Badges under gallery */
.cdl-badges{display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:14px 0}
.cdl-badge{display:flex; align-items:center; gap:10px; background:#111; color:#fff; padding:10px 12px; border-radius:12px}
/* رجّع ألوان أيقونات البادجات لأصلها */
.cdl-badges .cdl-badge img {
  filter: none !important;
  -webkit-filter: none !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important; width:22px; height:22px
}

.cdl-stickbar__row{
  display:flex;
  align-items:center;
  gap:12px;
}

.cdl-safeorder{
  width:100%;
  margin-top:8px;
  color:azure;            /* أخضر */
  text-align:center;
  font-weight:;
  padding:8px 10px;
  border-radius:10px;
  letter-spacing:.2px;
}

.cdl-safeorder::before {
  content: "🛡️ "; /* أو  حسب تفضيلك */
}

.cdl-safeorder::after {
  content: " 🤝"; /* أو 🤝 حسب تفضيلك */
}

/* تجاوب الموبايل */
@media (max-width:768px){
  .cdl-stickbar{ padding:10px 12px; }
  .cdl-stickbar__row{ gap:8px; }
  .cdl-safeorder{ font-size:14px; padding:7px 9px; }
}
/* Testimonials slider */
.cdl-slider-wrap{position:relative; padding:0 44px}
.cdl-slider{display:flex; gap:12px; overflow-x:auto; scroll-snap-type:x mandatory; padding:8px 2px 12px; -webkit-overflow-scrolling:touch}
.cdl-slide{flex:0 0 auto; width:280px; scroll-snap-align:center; border:1px solid #eee; border-radius:12px; overflow:hidden; background:#fff; box-shadow:0 4px 14px rgba(0,0,0,.06)}
.cdl-slide img{width:100%; height:auto; display:block}
.cdl-navbtn{position:absolute; top:50%; transform:translateY(-50%); border:none; background:#111; color:#fff; width:40px; height:40px; border-radius:50%; cursor:pointer; opacity:.95; display:flex; align-items:center; justify-content:center; box-shadow:0 6px 16px rgba(0,0,0,.25); font-size:20px; line-height:1}
.cdl-navbtn.left{left:6px}
.cdl-navbtn.right{right:6px}

/* Lazy video */
.cdl-video{position:relative; background:#000; border-radius:16px; overflow:hidden; box-shadow:0 8px 24px rgba(0,0,0,.08)}
.cdl-video.ratio-16-9{aspect-ratio:16/9}
.cdl-video.ratio-9-16{aspect-ratio:9/16}
.cdl-video.ratio-1-1{aspect-ratio:1/1}
.cdl-video-poster{width:100%; height:100%; object-fit:cover; display:block; filter:brightness(.95)}
.cdl-video-play{position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:72px; height:72px; border:none; border-radius:50%;
  background:radial-gradient(ellipse at center, rgba(255,255,255,.98) 0%, rgba(255,255,255,.9) 60%, rgba(255,255,255,.7) 100%);
  box-shadow:0 8px 24px rgba(0,0,0,.25); cursor:pointer}
.cdl-video-play:after{content:""; position:absolute; left:50%; top:50%; transform:translate(-35%,-50%);
  border-left:18px solid #111; border-top:12px solid transparent; border-bottom:12px solid transparent}

/* Image + CTA (Woo buy button) */
.cdl-imgcta{display:grid; grid-template-columns:1fr; gap:16px; align-items:center}
.cdl-imgcta__img{width:100%; border-radius:16px}
.cdl-imgcta__txt h3.cdl-head{margin-top:0}
.cdl-imgcta__txt p.cdl-subhead{margin-bottom:14px}
.cdl-wcbtn .single_add_to_cart_button{font-size:18px; padding:14px 22px; border-radius:10px; display:inline-block}
@media(min-width:800px){
  .cdl-imgcta{grid-template-columns:1.2fr .8fr}
}
/* يضمن احتفاظ الحاوية بنسبة الأبعاد، Video.js fluid يتولّى الباقي */
.cdl-video.ratio-16-9 { aspect-ratio: 16/9; }
.cdl-video.ratio-9-16 { aspect-ratio: 9/16; }
.cdl-video.ratio-1-1  { aspect-ratio: 1/1;  }

/* fallback/native: */
.cdl-video video,
.video-js { width:100%; height:100%; }


/* CTA areas */
.cdl-video-buy .single_add_to_cart_button{font-size:18px; padding:14px 22px; border-radius:10px}

/* Features */
.cdl-features{background:white !important;color:black;border-radius:16px}

/* Urgency clock under price */
.cdl-urgency{margin:8px 0 16px; background:#fff8e1; border:1px solid #f5d26b; padding:10px 12px; border-radius:10px}
.cdl-urgency__text{font-weight:700; margin-bottom:6px}
.cdl-urgency__clock{font-family:monospace; font-size:18px}
.cdl-urgency__clock b{opacity:.6; padding:0 4px}

/* Stock-left hint */
.cdl-stock-left{margin-top:8px; font-weight:700; background:#fff3f3; border:1px solid #ffd6d6; padding:8px 10px; border-radius:10px}

.cdl-wcbtn a {background:darkblue; color:aqua; text-align: center; }
/* badges/stock styles refreshed */

.cdl-price-under {
  text-align: center;
  justify-content: center;
  display: flex;
  gap: 6px; /* اختياري بين السعر القديم والجديد */
  align-items: center;
    font-size:28px
}

.cdl-urgency__clock {text-align:center}

.product.woocommerce.add_to_cart_inline a.button {
  background: #0057ff !important;    /* أزرق قوي */
  color: #fff !important;             /* نص أبيض */
  font-size: 18px !important;         /* حجم واضح */
  font-weight: 700 !important;        /* قوي */
  padding: 14px 0 !important;         /* ارتفاع ممتاز */
  width: 100% !important;             /* يحتل العرض بالكامل */
  text-align: center !important;
  border-radius: 12px !important;     /* زوايا ناعمة */
  border: none !important;
  display: block !important;
  box-shadow: 0 6px 16px rgba(0, 87, 255, 0.25); /* ضل خفيف مميز */
  transition: 0.25s ease;
}

.product.woocommerce.add_to_cart_inline a.button:hover {
  background: #0047d9 !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 87, 255, 0.35);
}
.cdl-wcbtn .cdl-stock-msg{background-color:transparent; border-radius:0px !important}
/* === CDL badges under gallery (mobile fix) === */
.cdl-badges{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:12px 0 8px;
}

.cdl-badge{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:12px;
  background:#f7f7f7;
  box-shadow:0 1px 0 rgba(0,0,0,.05) inset;
  font-weight:600; color:black
}
@media (max-width: 768px){
  .cdl-badges{ display:grid !important; grid-template-columns:1fr 1fr; gap:10px; }
  .cdl-badge{ font-size:14px; padding:10px; }
}

/* stock message */
.cdl-stock-msg{
  margin:10px 0 0;
  padding:12px 14px;
  border-radius:12px;
  background:#ffecec;
  color:#8a3d3d;
  font-weight:700;
  text-align:center;
  border:1px solid #ffd6d6;
}


/* v1.0.7 badges mobile force */
.woocommerce-product-gallery + .cdl-badges{ display:grid !important; }
.cdl-badges{ display:flex; }
@media (max-width: 768px){
  .cdl-badges{ display:grid !important; grid-template-columns:1fr 1fr; width:100%; }
  .cdl-badge{ display:flex !important; }
}

/* ===== Buy button under gallery ===== */
.cdl-buy-under-gallery{ margin-top:14px; padding:0 12px; margin-bottom:-100px}

/* استهدف كل احتمالات الروابط/الأزرار داخل الغلاف، مع أولوية أعلى */
.cdl-buy-under-gallery a.button.rz-loop_button,
.cdl-buy-under-gallery a.button.add_to_cart_button,
.cdl-buy-under-gallery .button,
.cdl-buy-under-gallery a,
.cdl-buy-under-gallery button {
  width:100% !important;
  display:block !important;
  padding:16px 0 !important;
  background:linear-gradient(90deg,#111,#333) !important;
  color:#fff !important;
  font-size:18px !important;
  font-weight:700 !important;
  border:none !important;
  border-radius:12px !important;
  text-align:center !important;
  cursor:pointer !important;
  filter:none !important;
  opacity:1 !important;
  box-shadow:none !important;
  animation:cdlPulse 2s infinite;
}

@keyframes cdlPulse{
  0%   { box-shadow:0 0 0 0 rgba(255,196,0,.45); }
  70%  { box-shadow:0 0 12px 10px rgba(255,196,0,0); }
  100% { box-shadow:0 0 0 0 rgba(255,196,0,0); }
}

/* سطح المكتب: ضيّق قليلًا */
@media (min-width:768px){
  .cdl-buy-under-gallery a.button.rz-loop_button,
  .cdl-buy-under-gallery a.button.add_to_cart_button,
  .cdl-buy-under-gallery .button,
  .cdl-buy-under-gallery a,
  .cdl-buy-under-gallery button {
    width:70% !important;
    margin:0 auto !important;
  }
}

/* شريط السعر/المخزون/العدّاد */
.cdl-price-under-btn{ text-align:center; font-size:20px; margin-top:10px; font-weight:600; }
.cdl-stock-inline{ text-align:center; margin-top:6px; color:#e53935; font-size:15px; font-weight:600; }
.cdl-urgency-inline{ margin-top:12px; text-align:center; }

.video-js .vjs-big-play-button {
  font-size: 2rem;
  width: 70px;
  height: 70px;
  border-radius: 50%;
}

/* اختياري: تكبير زر التشغيل قليلًا */
.video-js .vjs-big-play-button{
  transform: translate(-50%,-50%) scale(1.05);
}
@media (max-width: 480px){
  .video-js .vjs-big-play-button{
    transform: translate(-50%,-50%) scale(1.15);
  }
}

/* Video.js poster & player sizing */
.video-js, .video-js .vjs-poster { width:100%; height:100%; }
.video-js .vjs-poster { background-size:cover; background-position:center; }

/* Big Play — YouTube style، Responsive */
.video-js .vjs-big-play-button{
  position:absolute; left:50%; top:50%;
  transform:translate(-50%,-50%);
  width:clamp(56px, 14vw, 78px);
  height:clamp(56px, 14vw, 78px);
  border-radius:50%;
  background:#ff0000 !important;
  border:none;
  box-shadow:0 10px 28px rgba(0,0,0,.25);
  opacity:.96;
  z-index:5;
}

/* المثلث الأبيض */
.video-js .vjs-big-play-button .vjs-icon-placeholder:before{
  content:""; position:absolute; left:50%; top:50%;
  transform:translate(-40%,-50%);
  border-left:clamp(18px, 4vw, 22px) solid #fff;
  border-top:clamp(12px, 2.8vw, 14px) solid transparent;
  border-bottom:clamp(12px, 2.8vw, 14px) solid transparent;
  width:0; height:0;
}

/* إخفاء أي زر قديم لو بقي */
.cdl-video-play{ display:none !important; }

