/* ===== PAGE HEADER / BREADCRUMBS ===== */
.page-header {
  margin-top: 0;
  padding: 40px 0;
  background: linear-gradient(135deg, #0a1628 0%, #0d2137 50%, #0a2a4a 100%);
  color: #fff; text-align: center;
}
.page-header h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 8px; color: #fff; }
.page-header p { color: #94a3b8; font-size: 1rem; }
.breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 16px; font-size: 0.85rem; color: #64748b; flex-wrap: wrap;
}
.breadcrumb a { color: #00b4d8; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: #475569; }

/* ===== FILTER BAR ===== */
.filter-bar {
  display: flex; align-items: center; gap: 12px; padding: 16px 0;
  flex-wrap: wrap; border-bottom: 1px solid var(--border); margin-bottom: 32px;
}
.filter-btn {
  padding: 8px 20px; border-radius: var(--radius-full); font-size: 0.85rem;
  font-weight: 600; border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text-secondary); cursor: pointer; transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

/* ===== CATEGORY LANDING PAGE ===== */
.category-landing-page .category-landing-hero {
  max-width: 420px;
  width: 100%;
  margin: 0 auto 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-product-media);
  padding: 0;
  position: relative;
  aspect-ratio: 4 / 3;
}
.category-landing-page .category-landing-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  display: block;
}
.category-landing-actions {
  margin-bottom: 28px;
  text-align: center;
}
.category-landing-content {
  max-width: 900px;
  margin: 0 auto;
}
.category-landing-html {
  line-height: 1.7;
  color: var(--text-primary);
  word-break: break-word;
}
.category-landing-html--ar {
  display: none;
}
[dir="rtl"] .category-landing-html--en {
  display: none;
}
[dir="rtl"] .category-landing-html--ar {
  display: block;
}
.category-landing-html iframe {
  max-width: 100%;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: var(--radius-md);
  margin: 16px 0;
  display: block;
  background: var(--bg-tertiary);
}
.category-landing-html .video-embed-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 16px 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
}
.category-landing-html .video-embed-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
}
.category-landing-html img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* ===== CATEGORY PAGE ===== */
.category-page-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 24px;
}
.category-page-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border);
  transition: all var(--transition); cursor: pointer;
}
.category-page-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.category-page-card .cat-img {
  aspect-ratio: 4 / 3;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-product-media);
  padding: 0;
  overflow: hidden;
}
.category-page-card .cat-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  display: block;
}
.category-page-card .cat-info {
  padding: 14px 16px 16px;
}
.category-page-card .cat-info h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.category-page-card .cat-info p { font-size: 0.85rem; color: var(--text-tertiary); }
.cat-badge {
  position: absolute; top: 12px; right: 12px; background: var(--accent);
  color: #fff; padding: 4px 12px; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 700;
}
[dir="rtl"] .cat-badge { right: auto; left: 12px; }
.subcategory-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.subcategory-chip {
  padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.8rem;
  background: var(--accent-light); color: var(--accent); font-weight: 500;
}
a.subcategory-chip { text-decoration: none; display: inline-block; }
a.subcategory-chip:hover { filter: brightness(0.95); }

/* ===== ABOUT PAGE ===== */
.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 60px 0; }
.about-hero-text h2 { font-size: 2rem; font-weight: 800; color: var(--text-primary); margin-bottom: 16px; }
.about-hero-text p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 48px 0; }
.about-stat { text-align: center; }
.about-stat .num { font-size: 2.5rem; font-weight: 800; color: var(--accent); font-family: var(--font-heading); }
.about-stat .lbl { font-size: 0.9rem; color: var(--text-secondary); margin-top: 4px; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.value-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; text-align: center; transition: all var(--transition);
}
.value-card:hover { border-color: var(--accent); box-shadow: var(--shadow-glow); transform: translateY(-4px); }
.value-card i { font-size: 2rem; color: var(--accent); margin-bottom: 16px; }
.value-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.value-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* ===== BLOG PAGE ===== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.blog-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: all var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.blog-card-img { height: 200px; background: var(--bg-tertiary); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.blog-card-img i { font-size: 3rem; color: var(--text-tertiary); }
.blog-card-body { padding: 24px; }
.blog-card-meta { font-size: 0.8rem; color: var(--text-tertiary); margin-bottom: 8px; display: flex; gap: 16px; }
.blog-card-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; line-height: 1.4; }
.blog-card-body p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-read-more { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 0.85rem; margin-top: 12px; }

/* ===== POLICY PAGE ===== */
.policy-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 48px 0; }
.policy-sidebar { position: sticky; top: 24px; height: fit-content; }
.policy-sidebar h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 16px; color: var(--text-primary); }
.policy-sidebar a {
  display: block; padding: 8px 16px; border-radius: var(--radius-sm); font-size: 0.9rem;
  color: var(--text-secondary); transition: all var(--transition); margin-bottom: 4px;
}
.policy-sidebar a:hover, .policy-sidebar a.active { color: var(--accent); background: var(--accent-light); }
.policy-content { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; }
.policy-content h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; color: var(--text-primary); }
.policy-content h3 { font-size: 1.15rem; font-weight: 600; margin: 24px 0 12px; color: var(--text-primary); }
.policy-content p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; font-size: 0.95rem; }
.policy-content ul { margin-bottom: 16px; padding-inline-start: 24px; }
.policy-content li { color: var(--text-secondary); line-height: 1.8; margin-bottom: 8px; font-size: 0.95rem; list-style: disc; }

/* Shared payment-page containment (no overflow-x:hidden workaround) */
.service-pay,
.payment-result,
.hyperpay-widget-shell,
.checkout-section,
.order-tracking-section,
.mreq-section,
.si-section,
.pm-section {
  max-width: 100%;
  box-sizing: border-box;
}

.service-pay *,
.payment-result *,
.hyperpay-widget-shell *,
.checkout-payment-option,
.checkout-payment-option * {
  min-width: 0;
}

.checkout-payment-option {
  max-width: 100%;
  box-sizing: border-box;
}

.payment-ref,
.payment-result__details dd,
.service-pay__summary-row strong {
  overflow-wrap: anywhere;
  word-break: break-word;
}
