/* Mudi 7 (GL-E5800) — standalone product story page (AFI WIRELESS) */

.page-gl-e5800 {
  --e5800-cyan: #22d3ee;
  --e5800-teal: #14b8a6;
  --e5800-deep: #0c1220;
  --e5800-card: rgba(22, 30, 46, 0.85);
  --e5800-border: rgba(255, 255, 255, 0.1);
  --e5800-max: 1180px;
}

.page-gl-e5800 .site-header {
  border-bottom-color: var(--e5800-border);
}

/* —— Hero —— */
.e5800-hero {
  position: relative;
  min-height: min(78vh, 900px);
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
  overflow: hidden;
}

.e5800-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.e5800-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}

.e5800-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(6, 10, 18, 0.45) 0%,
    rgba(6, 10, 18, 0.75) 45%,
    rgba(6, 10, 18, 0.94) 100%
  );
}

.e5800-hero__inner {
  position: relative;
  z-index: 2;
  width: min(100% - 40px, var(--e5800-max));
  margin-inline: auto;
}

.e5800-breadcrumb {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.e5800-breadcrumb a {
  color: var(--e5800-cyan);
}

.e5800-breadcrumb a:hover {
  color: #fff;
}

.e5800-hero__title {
  margin: 0 0 0.5rem;
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: linear-gradient(120deg, #fff 0%, #a5f3fc 55%, var(--e5800-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.e5800-hero__subtitle {
  margin: 0 0 1rem;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: #c7d7ea;
  font-weight: 500;
}

.e5800-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.e5800-notice {
  margin: 1.5rem 0 0;
  max-width: 52rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(250, 204, 21, 0.35);
  background: rgba(66, 32, 6, 0.45);
  color: #fde68a;
  font-size: 0.92rem;
  line-height: 1.5;
}

/* —— Sections —— */
.e5800-section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--e5800-border);
}

.e5800-section--tight {
  padding-top: 2.5rem;
}

.e5800-section__head {
  max-width: 48rem;
  margin-bottom: 2rem;
}

.e5800-section__head h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
}

.e5800-section__head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.e5800-lede {
  font-size: 1.12rem;
  color: #cbd5e1;
  line-height: 1.65;
  max-width: 52rem;
}

.e5800-lede strong {
  color: #e2e8f0;
}

/* Highlight list */
.e5800-highlights {
  margin: 2rem 0 0;
  display: grid;
  gap: 0.65rem;
  max-width: 52rem;
}

.e5800-highlights li {
  position: relative;
  padding-left: 1.35rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.e5800-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--e5800-cyan), var(--e5800-teal));
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.5);
}

/* Gallery */
.e5800-split {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 420px);
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .e5800-split {
    grid-template-columns: 1fr;
  }
}

.e5800-gallery {
  border: 1px solid var(--e5800-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--e5800-card);
  box-shadow: var(--shadow);
}

.e5800-gallery__main {
  margin: 0;
  line-height: 0;
  background: #0a0e16;
}

.e5800-gallery__main img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-height: 420px;
  object-position: center;
}

.e5800-gallery__thumbs {
  display: flex;
  gap: 0.45rem;
  padding: 0.75rem;
  overflow-x: auto;
  scrollbar-width: thin;
  border-top: 1px solid var(--e5800-border);
}

.e5800-gallery__thumb {
  flex: 0 0 64px;
  padding: 0.2rem;
  border: 1px solid var(--e5800-border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  line-height: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.e5800-gallery__thumb.is-active {
  border-color: var(--e5800-teal);
  box-shadow: 0 0 0 1px var(--e5800-teal);
}

.e5800-gallery__thumb img {
  width: 100%;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
}

/* Wi-Fi speed strip */
.e5800-wifi-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (max-width: 640px) {
  .e5800-wifi-strip {
    grid-template-columns: 1fr;
  }
}

.e5800-wifi-card {
  padding: 1.25rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--e5800-border);
  background: linear-gradient(160deg, rgba(20, 184, 166, 0.12), rgba(12, 18, 32, 0.9));
  text-align: center;
}

.e5800-wifi-card__label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.e5800-wifi-card__speed {
  font-size: 1.65rem;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.e5800-wifi-card__band {
  font-size: 0.88rem;
  color: var(--e5800-cyan);
  margin-top: 0.25rem;
}

/* Feature grid */
.e5800-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.e5800-feature {
  padding: 1.25rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--e5800-border);
  background: var(--e5800-card);
}

.e5800-feature h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: #fff;
}

.e5800-feature p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Stat row (reference-style KPIs) */
.e5800-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 2rem 0 0;
}

.e5800-kpi {
  padding: 1rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--e5800-border);
  background: rgba(8, 12, 22, 0.65);
  text-align: center;
}

.e5800-kpi__val {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--e5800-cyan);
}

.e5800-kpi__lab {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.35rem;
  line-height: 1.35;
}

/* Story blocks (alternating) */
.e5800-story {
  display: grid;
  gap: 2.5rem;
}

.e5800-story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 800px) {
  .e5800-story-block {
    grid-template-columns: 1fr;
  }
}

.e5800-story-block:nth-child(even) .e5800-story-block__text {
  order: 2;
}

.e5800-story-block:nth-child(even) .e5800-story-block__media {
  order: 1;
}

.e5800-story-block__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--e5800-border);
  background: #0a0e16;
}

.e5800-story-block__media img {
  width: 100%;
  height: auto;
  display: block;
}

.e5800-story-block__text h3 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  color: #fff;
}

.e5800-story-block__text p {
  margin: 0 0 0.75rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.e5800-mini-list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.e5800-mini-list li {
  padding: 0.35rem 0 0.35rem 1.1rem;
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
}

.e5800-mini-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--e5800-teal);
}

/* Quotes */
.e5800-quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.e5800-quote {
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--e5800-border);
  background: rgba(12, 18, 30, 0.75);
}

.e5800-quote p {
  margin: 0;
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.55;
  font-style: italic;
}

.e5800-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--e5800-cyan);
}

/* Tables */
.e5800-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--e5800-border);
}

.e5800-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.e5800-table th,
.e5800-table td {
  border: 1px solid var(--e5800-border);
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.e5800-table thead th {
  background: rgba(20, 184, 166, 0.15);
  color: #e2e8f0;
  font-weight: 600;
}

.e5800-table tbody th {
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  width: 200px;
}

.e5800-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.e5800-spec-table th,
.e5800-spec-table td {
  border-bottom: 1px solid var(--e5800-border);
  padding: 0.6rem 0.5rem;
  text-align: left;
  vertical-align: top;
}

.e5800-spec-table th {
  color: #94a3b8;
  font-weight: 500;
  width: 38%;
}

.e5800-spec-table td {
  color: #e2e8f0;
}

.e5800-footnote {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.e5800-cta-bar {
  margin-top: 3rem;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(34, 211, 238, 0.25);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(12, 18, 32, 0.95));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.e5800-cta-bar p {
  margin: 0;
  max-width: 36rem;
  color: #cbd5e1;
  font-size: 0.98rem;
}
