/**
 * صفحات المنتجات — ألوان متوافقة مع home-v3 (كحلي #2b6bff + سماوي #00c2ff)
 * مناسبة للحملات الإعلانية: هيرو قوي، أقسام واضحة، CTAs بارزة
 */
.home-v3.page-product,
.page-product {
  --ph-p: #2b6bff;
  --ph-cyan: #00c2ff;
  --ph-dark: #0f172a;
}

.product-hero {
  position: relative;
  padding: 8.5rem 0 3.5rem;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(155deg, #0f172a 0%, #132447 28%, #1e4a9e 55%, #152a52 100%);
}

.product-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 15% 25%, rgba(0, 194, 255, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 50% at 92% 18%, rgba(43, 107, 255, 0.32), transparent 50%),
    radial-gradient(ellipse 50% 40% at 70% 88%, rgba(43, 107, 255, 0.15), transparent 45%);
  pointer-events: none;
}

.product-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.4;
  transform: translateZ(0);
}

.product-hero__inner {
  position: relative;
  max-width: 56rem;
  z-index: 1;
}

.product-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 194, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.product-hero__title {
  margin-top: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  font-size: clamp(2rem, 3.9vw, 3.35rem);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.2);
}

.product-hero__subtitle {
  margin-top: 0.95rem;
  font-size: 1.08rem;
  opacity: 0.94;
  line-height: 1.85;
  max-width: 36rem;
}

.product-hero__cta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.product-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.product-hero__btn--primary {
  background: linear-gradient(90deg, var(--ph-p, #2b6bff), var(--ph-cyan, #00c2ff));
  color: #fff;
  box-shadow: 0 8px 32px rgba(43, 107, 255, 0.45);
}

.product-hero__btn--primary:hover {
  color: #fff;
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(43, 107, 255, 0.5);
}

.product-hero__btn--outline {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.product-hero__btn--outline:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* شريط ثقة تحت الهيرو */
.product-cta-strip {
  position: relative;
  z-index: 2;
  margin-top: 2rem;
  padding: 1.15rem 1.35rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.product-cta-strip p {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.5;
}

.product-cta-strip .product-hero__btn--primary {
  padding: 0.65rem 1.2rem;
  font-size: 0.92rem;
}

.product-section {
  padding: 4.5rem 0;
  background: var(--v3-bg, #f8fafc);
}

.product-section--dark {
  background: linear-gradient(180deg, #0f172a 0%, #132447 50%, #0f172a 100%);
  color: #fff;
  position: relative;
}

.product-section--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(43, 107, 255, 0.12), transparent 60%);
  pointer-events: none;
}

.product-section--dark > .container {
  position: relative;
  z-index: 1;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.1rem;
}

.feature-card {
  grid-column: span 12;
  padding: 1.35rem 1.25rem 1.25rem;
  border-radius: 1.15rem;
  background: #fff;
  border: 1px solid rgba(30, 41, 156, 0.08);
  box-shadow: 0 12px 40px rgba(30, 41, 156, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(43, 107, 255, 0.12);
}

.product-section--dark .feature-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.25);
}

.product-section--dark .feature-card:hover {
  background: rgba(255, 255, 255, 0.09);
}

.feature-card h3 {
  margin: 0 0 0.45rem;
  font-weight: 800;
  font-size: 1.06rem;
  color: var(--v3-text, #0f172a);
}

.product-section--dark .feature-card h3 {
  color: #fff;
}

.feature-card p {
  margin: 0;
  opacity: 0.88;
  line-height: 1.8;
  color: var(--v3-muted, #475569);
  font-size: 0.96rem;
}

.product-section--dark .feature-card p {
  color: rgba(255, 255, 255, 0.88);
}

@media (min-width: 768px) {
  .feature-card {
    grid-column: span 6;
  }
}

@media (min-width: 992px) {
  .feature-card {
    grid-column: span 4;
  }
}

.mini-faq details {
  background: #fff;
  border: 1px solid rgba(30, 41, 156, 0.1);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
}

.mini-faq summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--v3-text, #0f172a);
}

.mini-faq p {
  margin: 0.75rem 0 0;
  line-height: 1.85;
  color: var(--v3-muted, #475569);
}

.product-hero__row {
  position: relative;
  z-index: 1;
}

.product-hero__visual {
  position: relative;
  margin-top: 1.5rem;
}

@media (min-width: 992px) {
  .product-hero__visual {
    margin-top: 0;
  }
}

.product-hero__visual-ring {
  position: absolute;
  inset: -7% -5%;
  border-radius: 1.35rem;
  background: linear-gradient(135deg, rgba(0, 194, 255, 0.45), rgba(43, 107, 255, 0.25));
  filter: blur(5px);
  z-index: 0;
  pointer-events: none;
}

.product-hero__visual-card {
  position: relative;
  z-index: 1;
  border-radius: 1.35rem;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.product-hero__visual-card img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  object-fit: cover;
  filter: contrast(1.08) saturate(1.12) brightness(1.04);
}

/* فيديو توضيحي تفاعلي (تشغيل/إيقاف/ملء الشاشة من المتصفح) */
.product-section--video {
  background: linear-gradient(180deg, #f1f5f9 0%, var(--v3-bg, #f8fafc) 45%, #fff 100%);
}

.product-video__head {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}

.product-video-shell {
  max-width: 920px;
  margin-inline: auto;
}

.product-video__frame {
  border: 3px solid rgba(43, 107, 255, 0.2);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  background: #0f172a;
}

.product-video__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.product-video__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.product-video__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid rgba(43, 107, 255, 0.35);
  background: #fff;
  color: var(--ph-p, #2b6bff);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.product-video__btn:hover {
  background: var(--ph-p, #2b6bff);
  color: #fff;
  transform: translateY(-1px);
}

html[dir='ltr'] .product-hero__row .ms-lg-auto {
  margin-inline-start: auto !important;
  margin-inline-end: 0 !important;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-top: 2.25rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .product-gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2.75rem;
  }
}

.product-gallery__item {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25);
  aspect-ratio: 4 / 3;
  background: rgba(255, 255, 255, 0.06);
}

.product-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.06) saturate(1.08) brightness(1.03);
  transform: scale(1.01);
}

.product-hero .product-gallery__item {
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.product-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 576px) {
  .product-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-stat {
  padding: 1.15rem 1.1rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(0, 194, 255, 0.25);
  text-align: center;
}

.product-stat__num {
  display: block;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: #7dd3fc;
}

.product-stat__label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.87rem;
  opacity: 0.92;
  line-height: 1.45;
}

.feature-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.7rem;
  background: linear-gradient(135deg, rgba(43, 107, 255, 0.15), rgba(0, 194, 255, 0.12));
  border: 1px solid rgba(43, 107, 255, 0.22);
  color: var(--ph-p, #2b6bff);
}

.feature-card__icon svg {
  width: 22px;
  height: 22px;
}

.product-section--dark .feature-card__icon {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 194, 255, 0.3);
  color: #7dd3fc;
}

.product-split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 992px) {
  .product-split {
    grid-template-columns: 1fr 1.05fr;
    gap: 3rem;
  }
}

.product-split__media {
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(30, 41, 156, 0.1);
  box-shadow: 0 22px 56px rgba(43, 107, 255, 0.12);
}

.product-split__media img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.product-rich h2 {
  font-weight: 800;
  color: var(--v3-text, #0f172a);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
}

.product-rich p {
  color: var(--v3-muted, #475569);
  line-height: 1.85;
}

.product-rich ul {
  padding-inline-start: 1.25rem;
  margin: 0.75rem 0 0;
  color: var(--v3-muted, #475569);
}

.product-rich li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

.product-section--dark .mini-faq details {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}

.product-section--dark .mini-faq summary {
  color: #fff;
}

.product-section--dark .mini-faq p {
  color: rgba(255, 255, 255, 0.88);
}

.product-hero .product-gallery {
  max-width: 100%;
}

/* تمييز بسيط حسب المنتج (حملات) */
.page-product--menu .product-hero__badge {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.12);
}

.page-product--orders .product-hero__badge {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.1);
}

.page-product--logistics .product-hero__badge {
  border-color: rgba(125, 211, 252, 0.5);
  background: rgba(125, 211, 252, 0.1);
}

/* محاذاة نص الهيرو حسب اتجاه الصفحة (عربي يمين / إنجليزي يسار) مع بلوك في منتصف العمود */
.home-v3.page-product .product-hero__inner--page {
  margin-inline: auto;
  max-width: 42rem;
  text-align: start;
}

.home-v3.page-product .product-hero__subtitle {
  max-width: none;
  margin-inline: 0;
}

.home-v3.page-product .product-hero__cta {
  justify-content: flex-start;
}

.home-v3.page-product .feature-card {
  text-align: start;
}

.home-v3.page-product .product-rich {
  text-align: start;
}
