/* ==========================================================================
   Astra Jordan - Catalog Dual-Axis Hubs, Product Specs Strip & Filters
   Supports EN (LTR) & AR (RTL), Desktop, Tablet, and Mobile
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Product Specs Strip (Injected into every product section on dosage pages)
   -------------------------------------------------------------------------- */
.astra-specs-outer {
  width: 997px;
  max-width: calc(100% - 24px);
  margin: -26px auto 38px auto;
  padding: 0;
  box-sizing: border-box;
  position: relative;
  z-index: 5;
  font-family: 'Open Sans', 'Cairo', system-ui, sans-serif;
}

.astra-specs-strip {
  background: #ffffff;
  border: 1px solid rgba(1, 114, 178, 0.22);
  border-top: 3px solid #0172b2;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 8px 24px rgba(15, 37, 55, 0.08);
  box-sizing: border-box;
  text-align: left;
}

[dir="rtl"] .astra-specs-strip,
html[lang="ar"] .astra-specs-strip {
  text-align: right;
  direction: rtl;
  font-family: 'Cairo', 'Open Sans', system-ui, sans-serif;
}

.astra-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.astra-spec-item {
  background: #f8fafc;
  border: 1px solid rgba(128, 157, 176, 0.18);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}

.astra-spec-label {
  font-family: 'Montserrat', 'Cairo', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  line-height: 1.2;
}

[dir="rtl"] .astra-spec-label,
html[lang="ar"] .astra-spec-label {
  letter-spacing: 0;
  text-transform: none;
  font-size: 11px;
}

.astra-spec-value {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f2537;
  line-height: 1.35;
  word-break: break-word;
}

.astra-spec-cat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.astra-spec-cat-link.is-vh {
  background: rgba(16, 185, 129, 0.12);
  color: #047857 !important;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.astra-spec-cat-link.is-fs {
  background: rgba(1, 114, 178, 0.12);
  color: #014fa3 !important;
  border: 1px solid rgba(1, 114, 178, 0.3);
}

.astra-spec-cat-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(15, 37, 55, 0.12);
}

.astra-spec-composition {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(128, 157, 176, 0.3);
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
}

.astra-spec-composition strong {
  color: #0f2537;
  font-weight: 700;
}

@media (max-width: 1199px) {
  .astra-specs-outer {
    width: 860px;
  }
}

@media (max-width: 991px) {
  .astra-specs-outer {
    width: 682px;
  }
  .astra-specs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .astra-specs-outer {
    width: calc(100% - 24px);
    margin: 10px auto 28px auto;
  }
  .astra-specs-strip {
    padding: 14px;
  }
  .astra-specs-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* --------------------------------------------------------------------------
   2. Dosage-Page Category Filter Bar
   -------------------------------------------------------------------------- */
.astra-category-filter-bar {
  max-width: 997px;
  margin: -14px auto 26px auto;
  padding: 14px 18px;
  background: #f8fafc;
  border: 1px solid rgba(128, 157, 176, 0.25);
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  font-family: 'Montserrat', 'Cairo', system-ui, sans-serif;
}

[dir="rtl"] .astra-category-filter-bar,
html[lang="ar"] .astra-category-filter-bar {
  direction: rtl;
}

.astra-filter-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.astra-filter-label {
  font-size: 12px;
  font-weight: 700;
  color: #405d70;
  text-transform: uppercase;
  margin-inline-end: 4px;
}

[dir="rtl"] .astra-filter-label,
html[lang="ar"] .astra-filter-label {
  text-transform: none;
  font-size: 13px;
}

.astra-filter-btn {
  appearance: none;
  border: 1px solid rgba(1, 114, 178, 0.28);
  background: #ffffff;
  color: #0f2537;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.astra-filter-btn:hover {
  border-color: #0172b2;
  color: #0172b2;
  background: #f0f8ff;
}

.astra-filter-btn.is-active {
  background: linear-gradient(135deg, #014fa3 0%, #0172b2 100%);
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(1, 114, 178, 0.25);
}

.astra-filter-count-badge {
  background: rgba(15, 37, 55, 0.08);
  color: inherit;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 700;
}

.astra-filter-btn.is-active .astra-filter-count-badge {
  background: rgba(255, 255, 255, 0.22);
}

.astra-filter-status {
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  font-family: 'Open Sans', 'Cairo', sans-serif;
}

@media (max-width: 767px) {
  .astra-category-filter-bar {
    margin: 0 12px 20px 12px;
    padding: 12px 14px;
  }
}

/* --------------------------------------------------------------------------
   3. Category Hub Pages (Food Supplements / Vitamins & Herbal)
   -------------------------------------------------------------------------- */
.astra-hub-body {
  margin: 0;
  padding: 0;
  background: #f4f7fa;
  color: #1e293b;
  font-family: 'Open Sans', 'Cairo', system-ui, -apple-system, sans-serif;
}

.astra-hub-hero {
  background: linear-gradient(135deg, #0f2537 0%, #153652 55%, #014fa3 100%);
  color: #ffffff;
  padding: 56px 20px 48px 20px;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid #f6b26b;
}

.astra-hub-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.astra-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 18px;
}

.astra-breadcrumb a {
  color: #f6b26b;
  text-decoration: none;
  font-weight: 600;
}

.astra-breadcrumb a:hover {
  text-decoration: underline;
}

.astra-hub-hero-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.astra-hub-hero-copy {
  flex: 1.4;
  min-width: 280px;
}

.astra-hub-kicker {
  display: inline-block;
  background: rgba(246, 178, 107, 0.16);
  border: 1px solid rgba(246, 178, 107, 0.45);
  color: #f6b26b;
  font-family: 'Montserrat', 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

[dir="rtl"] .astra-hub-kicker {
  letter-spacing: 0;
  text-transform: none;
}

.astra-hub-title {
  font-family: 'Montserrat', 'Cairo', sans-serif;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 800;
  margin: 0 0 14px 0;
  line-height: 1.18;
  color: #ffffff;
}

.astra-hub-subtitle {
  font-size: 15.5px;
  line-height: 1.75;
  color: #e2e8f0;
  margin: 0 0 22px 0;
  max-width: 720px;
}

.astra-hub-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.astra-hub-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  background: #f6b26b;
  color: #0f2537 !important;
  font-family: 'Montserrat', 'Cairo', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.2s ease, background 0.2s ease;
}

.astra-hub-btn-primary:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.astra-hub-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff !important;
  font-family: 'Montserrat', 'Cairo', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease;
}

.astra-hub-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.astra-hub-stats-box {
  flex: 0.9;
  min-width: 260px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.astra-stat-cell {
  background: rgba(15, 37, 55, 0.45);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
}

.astra-stat-num {
  font-family: 'Montserrat', 'Cairo', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #f6b26b;
  line-height: 1.1;
}

.astra-stat-lbl {
  font-size: 12px;
  color: #cbd5e1;
  margin-top: 5px;
}

/* Hub Main Container */
.astra-hub-main {
  max-width: 1220px;
  margin: 0 auto;
  padding: 32px 20px 64px 20px;
  box-sizing: border-box;
}

.astra-hub-controls {
  background: #ffffff;
  border: 1px solid rgba(128, 157, 176, 0.22);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 6px 24px rgba(15, 37, 55, 0.05);
  margin-bottom: 28px;
}

.astra-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.astra-filter-row:last-of-type {
  margin-bottom: 0;
}

.astra-hub-results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
  font-size: 13.5px;
  color: #475569;
  font-weight: 600;
}

.astra-reset-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.astra-reset-btn:hover {
  background: #e2e8f0;
  color: #0f2537;
}

/* Hub Product Grid */
.astra-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 1024px) {
  .astra-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .astra-hub-grid {
    grid-template-columns: 1fr;
  }
}

.astra-hub-card {
  background: #ffffff;
  border: 1px solid rgba(128, 157, 176, 0.22);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(15, 37, 55, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.astra-hub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(1, 114, 178, 0.14);
  border-color: rgba(1, 114, 178, 0.45);
}

.astra-hub-card-media {
  position: relative;
  background: linear-gradient(180deg, #f8fafc 0%, #eef4f8 100%);
  padding: 18px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(128, 157, 176, 0.14);
}

.astra-hub-card-media img {
  max-height: 185px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.astra-hub-dosage-badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  background: #0f2537;
  color: #ffffff;
  font-family: 'Montserrat', 'Cairo', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

.astra-hub-card-body {
  padding: 18px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.astra-hub-card-title {
  font-family: 'Montserrat', 'Cairo', sans-serif;
  font-size: 17.5px;
  font-weight: 700;
  color: #0f2537;
  margin: 0;
  line-height: 1.3;
}

.astra-hub-card-sub {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
  margin-top: -6px;
}

.astra-hub-comp-box {
  background: #f8fafc;
  border-inline-start: 3px solid #0172b2;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #334155;
}

.astra-hub-comp-box strong {
  color: #0f2537;
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}

[dir="rtl"] .astra-hub-comp-box strong {
  text-transform: none;
  letter-spacing: 0;
  font-size: 11.5px;
}

.astra-hub-pack-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.astra-hub-pack-pill {
  background: #f0f7fc;
  border: 1px solid rgba(1, 114, 178, 0.2);
  border-radius: 8px;
  padding: 7px 10px;
}

.astra-hub-pack-pill span {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: #405d70;
  text-transform: uppercase;
}

[dir="rtl"] .astra-hub-pack-pill span {
  text-transform: none;
  font-size: 11px;
}

.astra-hub-pack-pill strong {
  display: block;
  font-size: 12.5px;
  color: #0f2537;
  margin-top: 2px;
  line-height: 1.35;
}

.astra-hub-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #014fa3 0%, #0172b2 100%);
  color: #ffffff !important;
  font-family: 'Montserrat', 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.astra-hub-cta:hover {
  background: linear-gradient(135deg, #0f2537 0%, #014fa3 100%);
  transform: translateY(-1px);
}

.astra-hub-empty {
  text-align: center;
  padding: 48px 20px;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  color: #475569;
  font-size: 15px;
  display: none;
}

/* Hub FAQ Section */
.astra-hub-faq {
  margin-top: 56px;
  background: #ffffff;
  border: 1px solid rgba(128, 157, 176, 0.2);
  border-radius: 18px;
  padding: 36px 28px;
  box-shadow: 0 8px 28px rgba(15, 37, 55, 0.04);
}

.astra-hub-faq-title {
  font-family: 'Montserrat', 'Cairo', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #0f2537;
  text-align: center;
  margin: 0 0 24px 0;
}

.astra-hub-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.astra-hub-faq-item {
  border: 1px solid rgba(128, 157, 176, 0.25);
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
}

.astra-hub-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-family: 'Montserrat', 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #0f2537;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.astra-hub-faq-item summary::-webkit-details-marker {
  display: none;
}

.astra-hub-faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: #0172b2;
  flex-shrink: 0;
}

.astra-hub-faq-item[open] summary::after {
  content: '−';
}

.astra-hub-faq-answer {
  padding: 0 20px 18px 20px;
  font-size: 14px;
  line-height: 1.75;
  color: #475569;
  border-top: 1px solid rgba(128, 157, 176, 0.15);
  background: #ffffff;
  padding-top: 14px;
}
