body.theme-pro {
  background: #fff;
  color: var(--text);
}
body.has-cta {
  padding-bottom: 92px;
}

/* Intro block */
.content-block.container .h2 {
  color: #0069c8;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-align: center;
}
.content-block.container .lead {
  color: #344256;
  line-height: 1.9;
  background: #f8fafc;
  border: 1px solid #e6eef5;
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 8px;
}

.categories {
  padding-top: 48px !important;
}
.categories .categories-title {
  margin-bottom: 20px;
}

/* FAQ */
.faq-item {
  background: #f8fafc;
  border: 1px solid #e6eef5;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 10px 0;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.faq-item:hover {
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.06);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  color: #0069c8;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "\f107";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-inline-start: auto;
  color: #117bc7;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  transform: rotate(180deg);
}
.faq-item .answer {
  color: #334155;
  line-height: 1.9;
  padding-top: 8px;
  border-top: 1px solid #e6eef5;
  margin-top: 8px;
}

/* Read More panel*/
.readmore-section.container {
  margin-bottom: 10px;
}
.readmore-bar {
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 8px 22px rgba(0, 105, 200, 0.18);
}
.readmore-content {
  background: #fff;
  border: 1px solid #e6eef5;
  border-radius: 12px;
  padding: 0 16px;
  color: #344256;
}
.readmore-content p {
  margin: 0 0 12px;
}
.readmore-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease, padding 0.3s ease;
  padding: 0 16px;
}
.readmore-content.open {
  max-height: 2200px;
  padding: 16px;
}

/* Breadcrumbs*/
.breadcrumbs a {
  border-bottom: 1px dashed rgba(56, 189, 248, 0.35);
}

/* Buttons/links consistency */
.cat-link {
  border-bottom-width: 2px;
  font-weight: 800;
}

/* Small spacing polish */
.content-block.container {
  padding-top: 20px;
}
.cta-bar {
  position: fixed;
  inset-inline: 16px;
  inset-block-end: 16px;
  z-index: 60;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid #e6eef5;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}
.cta-bar__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, #0069c8, #004a8f);
  text-decoration: none;
}
.cta-bar__btn.cta-alt {
  background: #13b07b;
}
@media (max-width: 520px) {
  .cta-bar {
    inset-inline: 10px;
  }
}
.specs {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  background: #fff;
  border: 1px solid #e6eef5;
  border-radius: 12px;
  padding: 12px;
}
.specs > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px dashed #e6eef5;
  border-radius: 10px;
  background: #f9fbfd;
}
.specs span {
  color: #617486;
}
.specs strong {
  color: #1d2b36;
}
@media (max-width: 640px) {
  .specs {
    grid-template-columns: 1fr;
  }
}
.swatches {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px 0 8px;
}
.swatch {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e6eef5;
  padding: 8px 10px;
  border-radius: 10px;
  color: #334155;
}
.dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--c);
}
.packs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.pack {
  background: #fff;
  border: 1px solid #e6eef5;
  border-radius: 10px;
  padding: 8px 10px;
  color: #334155;
  font-weight: 700;
}
.swatch .dot {
  flex: 0 0 18px;
}
.swatch {
  align-items: center;
}

.product-details {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.product-details .section-title {
  margin-bottom: 20px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: #0069c8;
  text-align: center;
}

.product-details .seg-col {
  background: #fff;
  border: 1px solid #e6eef5;
  border-radius: 12px;
  padding: 18px;
}
.product-details .seg-col .h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1d2b36;
}
/* Center page header title */
/* .page-header__inner {
  display: flex;
  justify-content: center;
} */

.page-header__inner {
  display: flex;
  flex-direction: column;
  justify-content: center; /* يوسّط المحتوى عموديًا */
  align-items: center;     /* يوسّط المحتوى أفقيًا */
  height: 100%;            /* يضمن أن يأخذ ارتفاع العنصر الأب */
}

.page-header__text {
  text-align: center;
  margin-inline: auto;
  max-width: 900px;
}
.page-header__text h1 {
  margin: 0 0 8px;
}
.page-header .breadcrumbs {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}
/* Gradient background for Page Header */
.page-header {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),url('../img/image.webp');
  color: #fff;
  padding: 60px 20px;
  border-radius: 0px 0px 0px 0px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  min-height: 550px;
  background-position: center calc(100% + 35px);
  background-size: cover;
   display: flex;           /* مهم عشان يسمح بالتوسيط العمودي */
  justify-content: center;
  align-items: center;
}

/* Card hover */
.cat-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cat-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 18px 28px rgba(0, 105, 200, 0.25);
}

/* FAQ smooth expand */
.faq-item {
  transition: all 0.3s ease;
}
.faq-item[open] {
  background: #eef6fc;
  border-color: #b3dcff;
}

/* Shine animation */
.cat-media img {
  position: relative;
  overflow: hidden;
}
.cat-media img::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: skewX(-25deg);
}
.cat-card:hover .cat-media img::after {
  left: 125%;
  transition: left 0.75s ease;
}

/* Product Details */
.product-details .section-title {
  position: relative;
  padding-top: 2px;
}
.product-details .section-title::before {
  content: "\f0ca"; 
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #0069c8;
  margin-inline-end: 10px;
}
.product-details .section-title::after {
  content: "";
  display: block;
  width: min(180px, 50%);
  height: 3px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #0069c8 0%,
    rgba(0, 105, 200, 0.65) 55%,
    rgba(0, 105, 200, 0) 100%
  );
}

/* FAQ */
.seg-faq .h2 {
  position: relative;
  padding-top: 2px;
}
.seg-faq .h2::before {
  content: "\f059"; 
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #0069c8;
  margin-inline-end: 10px;
}
.seg-faq .h2::after {
  content: "";
  display: block;
  width: min(180px, 50%);
  height: 3px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #0069c8 0%,
    rgba(0, 105, 200, 0.65) 55%,
    rgba(0, 105, 200, 0) 100%
  );
}
/* ===== CTA Pulse/Glow ===== */
.cta-bar__btn {
  transition: transform 0.18s ease, box-shadow 0.25s ease, filter 0.25s ease;
  box-shadow: 0 8px 18px rgba(0, 105, 200, 0.22);
}
.cta-bar__btn:hover {
  transform: translateY(-1px);
  animation: cta-pulse 1.2s ease-out 1;
  box-shadow: 0 12px 28px rgba(0, 105, 200, 0.32);
  filter: saturate(1.05);
}
@keyframes cta-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 105, 200, 0.35);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(0, 105, 200, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 105, 200, 0);
  }
}

.cta-bar__btn.cta-alt {
  box-shadow: 0 8px 18px rgba(19, 176, 123, 0.22);
}
.cta-bar__btn.cta-alt:hover {
  animation: cta-pulse-green 1.2s ease-out 1;
  box-shadow: 0 12px 28px rgba(19, 176, 123, 0.32);
}
@keyframes cta-pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(19, 176, 123, 0.35);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(19, 176, 123, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(19, 176, 123, 0);
  }
}

.cta-bar__btn:focus-visible {
  outline: 3px solid rgba(0, 105, 200, 0.5);
  outline-offset: 2px;
}

:root {
  --grad-en: linear-gradient(135deg, #0288d1 0%, #005fa3 100%);
  --grad-ar: linear-gradient(135deg, #003970 0%, #0a4f95 100%);
  --text: #0b1220;
  --bg: #fff;
  --muted: #dfe6ee;
  --ring: #3b82f6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #e6edf6;
    --bg: #0b1220;
    --muted: #2c3545;
    --grad-en: linear-gradient(135deg, #2d7ef0 0%, #1153c6 100%);
    --grad-ar: linear-gradient(135deg, #1a4f8f 0%, #0e3566 100%);
  }
}

.readmore-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--muted);
  border-radius: 12px;
  background: #f7fafc;
  cursor: pointer;
  user-select: none;
}
.readmore-bar .fa-chevron-down {
  margin-inline-start: 8px;
}

/*(Pills) */
.lang-toggle.skin--insection {
  display: flex;
  gap: 8px;
}
.lang-toggle.skin--insection .lang-btn {
  min-height: 40px;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--muted);
  background: color-mix(in oklab, #000 3%, var(--bg));
  color: var(--text);
  font: 600 13.5px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.06s;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.lang-toggle.skin--insection .lang-btn:hover {
  background: color-mix(in oklab, #000 6%, var(--bg));
  border-color: color-mix(in oklab, var(--muted) 70%, #0288d1);
}
.lang-toggle.skin--insection .lang-btn:active {
  transform: translateY(1px);
}

.lang-toggle.skin--insection .lang-btn.is-active[data-lang="en"] {
  background: var(--grad-en);
  border-color: transparent;
  color: #fff;
}
.lang-toggle.skin--insection .lang-btn.is-active[data-lang="ar"] {
  background: var(--grad-ar);
  border-color: transparent;
  color: #fff;
}

.lang-toggle.skin--insection .lang-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 35%, transparent);
}
.lang-toggle.skin--insection .lang-btn.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0) 30%
  );
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity 0.2s;
}
.lang-toggle.skin--insection .lang-btn.is-active:hover::after,
.lang-toggle.skin--insection .lang-btn.is-active:focus-visible::after {
  opacity: 0.25;
}

#readmore-wp[dir="rtl"] .readmore-bar {
  direction: ltr;
}
#readmore-wp[dir="rtl"] .lang-toggle .lang-btn {
  direction: rtl;
}

@media (max-width: 380px) {
  .lang-toggle.skin--insection .lang-btn {
    min-height: 38px;
    padding: 0.4rem 0.7rem;
    font-size: 12.5px;
  }
}

/* ===== Tighten spacing on the product page ===== */

.page-header{
  padding: 28px 16px;          
  margin-bottom: 10px;         
  border-radius: 0 0 24px 24px;
}

.product-wrap{
  display: grid;
  grid-template-columns: 1.1fr 1fr;  
  gap: 16px;
}
@media (max-width: 992px){
  .product-wrap{
    grid-template-columns: 1fr;      
    gap: 10px;                        
  }
}

.section-gap{ margin-top: 10px !important; }

.card{ margin: 0; }

.card h3{ margin: 0 0 8px !important; line-height: 1.2; }
.nice-list{ margin: 0; }
.nice-list li{ margin: 4px 0; }
#pUses, #pKeyEdge{ margin: 0; }

#pImg{ display: block; }

.reveal{ margin: 0 !important; }

@media (max-width: 992px){
  .card{ padding: 12px !important; }
}

@media (max-width: 992px){
  section.container[style]{
    padding-block: 12px !important;  
  }
}
.product-wrap{
  display: grid;
  grid-template-columns: 1.1fr 1fr;   
  gap: 16px;
}

@media (max-width: 992px){
  .product-wrap{
    grid-template-columns: 1fr !important;  
    gap: 10px;
  }
  .product-wrap > div{ order: 1; }
  .product-wrap > aside{ order: 2; }
}

.page-header{ margin-bottom: 10px; padding: 28px 16px; }
.section-gap{ margin-top: 10px !important; }
.card{ margin: 0; }


@media (max-width: 768px){

.page-header {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),url('../img/image-mob.png');
  color: #fff;
  padding: 60px 20px;
  border-radius: 0px 0px 0px 0px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  min-height: 400px;
  background-position: center calc(100% + 35px);
  background-size: cover;
   display: flex;           /* مهم عشان يسمح بالتوسيط العمودي */
  justify-content: center;
  align-items: center;
}

}
















/* ===== Flip Card Base ===== */
.prod-flip{
  --w: 280px; 
  height: 280px;           /* عرض الكارت */
  --r: 16px;             /* زوايا */
  --shadow: 0 12px 28px rgba(2,6,23,.12);
  width: var(--w);
  aspect-ratio: 3/4;     /* كارت مستطيل شبه مربع */
  perspective: 1200px;
  margin: 16px;
}
.prod-flip .flip-inner{
  position: relative;
  display: block;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
  border-radius: var(--r);
  text-decoration: none;
  outline: none;
}
.prod-flip .face{
  position: absolute; inset: 0;
  backface-visibility: hidden;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ===== Front (الصورة مع أوفرلاي) ===== */
.prod-flip .front{ background:#0b1220; }
.prod-flip .front .media{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.prod-flip .front .overlay{
  position: absolute; inset: 0;
  display: grid; align-content: end;
  padding: 18px 16px 22px;
  color:#fff; text-align: center;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 40%, rgba(0,0,0,.65) 100%);
}
.prod-flip .front .title{
  margin: 0 0 6px; font: 800 18px/1.2 "Amer LT", system-ui;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
.prod-flip [dir="rtl"] .front .title{ font-family: "KufyanArabic", system-ui; }
.prod-flip .front .sub{
  margin: 0; font: 600 14px/1.5 system-ui; opacity:.95;
}

/* أيقونة صغيرة علو اليسار */
.prod-flip .badge{
  position: absolute; top:12px; left:12px;
  width: 36px; height: 36px; display:grid; place-items:center;
  background:#fff; border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.2);
}
.prod-flip .badge img{ width:22px; height:22px; display:block; }

/* ===== Back (الخلفية البيضاء) ===== */
.prod-flip .back{
  background-image: url("../img/products/repair&poding web.webp");
  background-size: cover;
  background-position: center;
  border:1px solid #e6eef5;
  display: grid; align-content: center; justify-items:center;
  padding: 18px 14px;
  transform: rotateY(180deg);
  text-align: center;
}

/* ✅ طبقة overlay السوداء */
.prod-flip .back::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* اللون الأسود مع الشفافية */
  z-index: 0; /* يخليها تحت النص */
}

/* خلي المحتوى فوق الـoverlay */
.prod-flip .back > * {
  position: relative;
  z-index: 1;
}
.prod-flip .back .title{
  margin: 0 0 10px;
  color:#fdfdfd; font: 800 18px/1.2 "Amer LT", system-ui;
}
.prod-flip [dir="rtl"] .back .title{ font-family: "KufyanArabic", system-ui; }
.prod-flip .back .desc{
  margin: 0 0 12px; color:#ffffff; font: 600 14px/1.7 system-ui;
}
.prod-flip .back .link{
  color:#ffffff; font-weight:800; border-bottom:2px solid rgba(17,123,199,.3);
}

/* ===== Flip on hover / focus ===== */
.prod-flip:hover .flip-inner,
.prod-flip .flip-inner:focus-visible{
  transform: rotateY(180deg);
}

/* لمسة خفيفة للموبايل (لو ما فيش hover) يبقى الكارت ثابت على الوجه */
@media (hover:none){
  .prod-flip:hover .flip-inner{ transform:none; }
}

/* (اختياري) تغيير المقاس للشاشات الصغيرة */
@media (max-width:480px){
  .prod-flip{ --w: 240px; }
}
/* ===== FRONT ===== */
.front {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.front .media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* طبقة الـ overlay اللي فوق الصورة */
.front .overlay {
  position: absolute;
  inset: 0; /* تملى كل المساحة */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 16px;
    align-content: center;
  justify-items: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 40%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 2;                /* 💡 تضمن إنها فوق الصورة */
  opacity: 1;                /* تظهر فورًا (غير مخفية) */
  transition: opacity 0.3s ease;
}

.front .overlay h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
}

.front .overlay p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* الأيقونة */
.front .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3; /* تبقى فوق كل شيء */
  width: 38px;
  height: 38px;
  background: #fff;
  border-radius: 10px;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.front .badge img {
  width: 22px;
  height: 22px;
}
.cat-icon {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: #fff;
  color: #117bc7;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(2, 6, 23, 0.12);
  transform: translateZ(30px);
  animation: floatIcon 3.2s ease-in-out infinite;
}
.cat-icon img {
  font-size: 18px;
}
@keyframes floatIcon {
  0%,
  100% {
    transform: translateZ(30px) translateY(0);
  }
  50% {
    transform: translateZ(30px) translateY(-6px);
  }
}

/* ✅ Flip تلقائي كل 3 ثواني على الموبايل */
@media (max-width: 768px) {
  .prod-flip .flip-inner {
    animation: autoFlip 6s infinite ease-in-out;
    transform-style: preserve-3d;
  }

  @keyframes autoFlip {
    0%, 45% {
      transform: rotateY(0deg);      /* الوجه الأمامي */
    }
    55%, 100% {
      transform: rotateY(180deg);    /* الوجه الخلفي */
    }
  }
}

.about-title {
  text-align: center;
  margin: 35px 0 25px;
}
