/* EDME homepage — brand colours from the logo (#1D97D0) */
:root {
  --edme-ink: #0f1b2d;
  --edme-ink-soft: #4a5568;
  --edme-bg: #ffffff;
  --edme-bg-alt: #f2f7fb;
  --edme-accent: #1479AA;       /* buttons & links: brand blue, darkened for readable white text */
  --edme-accent-dark: #0f5f86;
  --edme-accent-light: #1D97D0; /* exact logo blue: highlights on dark backgrounds */
  --edme-hero-from: #0b1626;
  --edme-hero-to: #123a5c;
  --edme-radius: 14px;
  --edme-gap: clamp(16px, 3vw, 28px);
}

.home .site-content > .ast-container,
.home #primary { max-width: 100%; padding: 0; margin: 0; }
.home .entry-content > * { margin-block-end: 0; }

.edme-home { color: var(--edme-ink); }
.edme-home a { text-decoration: none !important; }
.edme-hero__price { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 800; color: #fff; margin: -12px 0 24px; }
.edme-hero__price .woocommerce-Price-amount { color: #fff; }
.edme-hero__price del { opacity: .6; font-weight: 500; margin-inline-end: 8px; }
.edme-hero__price ins { text-decoration: none; }
.edme-home h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.2; margin: 0; }

/* ---------- Buttons ---------- */
.edme-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; text-decoration: none; transition: background .2s, color .2s, transform .2s;
}
.edme-btn:hover { transform: translateY(-1px); }
.edme-btn--primary { background: var(--edme-accent); color: #fff; }
.edme-btn--primary:hover { background: var(--edme-accent-dark); color: #fff; }
.edme-btn--ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.edme-btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Hero slider ---------- */
.edme-hero {
  position: relative;
  background: linear-gradient(135deg, var(--edme-hero-from), var(--edme-hero-to));
  color: #fff; overflow: hidden;
}
.edme-hero__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none; outline: none;
}
.edme-hero__track::-webkit-scrollbar { display: none; }
.edme-hero__slide {
  flex: 0 0 100%; scroll-snap-align: start;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  gap: var(--edme-gap);
  max-width: 1240px; margin-inline: auto; box-sizing: border-box;
  padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 64px) clamp(64px, 7vw, 88px);
  min-height: clamp(460px, 62vh, 620px);
}
/* keep each slide full width while content stays centred */
.edme-hero__slide { max-width: none; padding-inline: max(clamp(20px, 5vw, 64px), calc((100% - 1240px) / 2)); }

.edme-hero__kicker {
  font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--edme-accent-light); margin: 0 0 12px; line-height: 1.4;
}
.edme-hero__title { color: #fff; font-size: clamp(2rem, 5vw, 3.6rem) !important; line-height: 1.05 !important; margin: 0 0 14px !important; }
.edme-hero__sub { font-size: clamp(1rem, 1.6vw, 1.2rem); color: rgba(255,255,255,.82); margin: 0 0 28px; max-width: 34em; }
.edme-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.edme-hero__media {
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(closest-side, rgba(255,255,255,.18), transparent);
  border-radius: var(--edme-radius); height: 100%;
}
.edme-hero__img {
  width: auto !important; max-width: 100%; height: auto;
  max-height: clamp(260px, 50vh, 500px); object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,.35));
  border-radius: 10px;
}

.edme-hero__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; font-size: 30px; line-height: 1;
  display: grid; place-items: center; padding: 0 0 4px; backdrop-filter: blur(4px);
  transition: background .2s;
}
.edme-hero__nav:hover, .edme-hero__nav:focus-visible { background: var(--edme-accent-light); }
.edme-hero__nav--prev { inset-inline-start: 14px; }
.edme-hero__nav--next { inset-inline-end: 14px; }
[dir="rtl"] .edme-hero__nav { transform: translateY(-50%) scaleX(-1); }

.edme-hero__dots {
  position: absolute; inset-inline: 0; bottom: 22px;
  display: flex; justify-content: center; gap: 8px;
}
.edme-hero__dots button {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.4); transition: width .3s, background .3s;
}
.edme-hero__dots button[aria-selected="true"] { width: 28px; background: var(--edme-accent-light); }

/* ---------- Trust bar ---------- */
.edme-trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: #e3e8f0; border-bottom: 1px solid #e3e8f0;
}
.edme-trust__item {
  display: flex; gap: 12px; align-items: center; justify-content: center;
  background: var(--edme-bg); padding: 18px 14px;
}
.edme-trust__item strong { display: block; font-size: .98rem; }
.edme-trust__item span { color: var(--edme-ink-soft); font-size: .85rem; }
.edme-ico { font-size: 1.6rem; }

/* ---------- Sections ---------- */
.edme-section {
  max-width: 1240px; margin: 0 auto; box-sizing: border-box;
  padding: clamp(40px, 6vw, 72px) clamp(16px, 4vw, 32px) 0;
}
.edme-section__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.edme-section__head a { color: var(--edme-accent-dark); font-weight: 700; text-decoration: none; }

/* ---------- Category tiles ---------- */
.edme-cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.edme-cat {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--edme-bg-alt); border-radius: var(--edme-radius);
  padding: 18px 12px 16px; text-decoration: none; color: var(--edme-ink);
  transition: transform .2s, box-shadow .2s;
}
.edme-cat:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(15,27,45,.12); color: var(--edme-ink); }
.edme-cat__img { width: 100%; aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 12px; }
.edme-cat__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; border-radius: 8px; }
.edme-cat__name { font-weight: 700; line-height: 1.25; }
.edme-cat__count { font-size: .82rem; color: var(--edme-ink-soft); margin-top: 4px; }

/* ---------- Product rows (WooCommerce grid) ---------- */
.edme-home .woocommerce ul.products { margin: 0; }
.edme-home .woocommerce ul.products li.product {
  background: #fff; border: 1px solid #e6eaf1; border-radius: var(--edme-radius);
  padding: 14px; text-align: center; transition: box-shadow .2s, transform .2s;
}
.edme-home .woocommerce ul.products li.product:hover { box-shadow: 0 12px 28px rgba(15,27,45,.10); transform: translateY(-3px); }
.edme-home .woocommerce ul.products li.product img { aspect-ratio: 1; object-fit: contain; border-radius: 8px; }
.edme-home .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: .98rem; line-height: 1.35; min-height: 2.7em; }
.edme-home .woocommerce ul.products li.product .price { color: var(--edme-ink); font-weight: 700; }
.edme-home .woocommerce ul.products li.product .button {
  background: var(--edme-accent); color: #fff; border-radius: 999px; padding: 10px 18px;
}
.edme-home .woocommerce ul.products li.product .button:hover { background: var(--edme-accent-dark); }

/* ---------- About ---------- */
.edme-about { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--edme-gap); align-items: start; }
.edme-about p { color: var(--edme-ink-soft); line-height: 1.75; margin: 14px 0 0; }
.edme-about__list {
  list-style: none; margin: 0; padding: 22px; background: var(--edme-bg-alt);
  border-radius: var(--edme-radius); display: grid; gap: 10px;
}
.edme-about__list a { color: var(--edme-ink); font-weight: 600; text-decoration: none; }
.edme-about__list a::before { content: "→ "; color: var(--edme-accent); }
[dir="rtl"] .edme-about__list a::before { content: "← "; }

/* ---------- FAQ ---------- */
.edme-faq { padding-bottom: clamp(48px, 7vw, 88px); max-width: 900px; }
.edme-faq h2 { margin-bottom: 20px; }
.edme-faq details {
  border: 1px solid #e3e8f0; border-radius: 12px; margin-bottom: 10px; background: #fff;
}
.edme-faq summary {
  cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none;
  display: flex; justify-content: space-between; gap: 16px;
}
.edme-faq summary::-webkit-details-marker { display: none; }
.edme-faq summary::after { content: "+"; color: var(--edme-accent); font-size: 1.3rem; line-height: 1; }
.edme-faq details[open] summary::after { content: "–"; }
.edme-faq details p { padding: 0 20px 18px; margin: 0; color: var(--edme-ink-soft); line-height: 1.7; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .edme-cats { grid-template-columns: repeat(3, 1fr); }
  .edme-trust { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .edme-hero__slide {
    grid-template-columns: 1fr; text-align: center; min-height: 0;
    padding: 28px 20px 64px; gap: 18px;
  }
  .edme-hero__media { order: -1; background: radial-gradient(closest-side, rgba(255,255,255,.16), transparent); }
  .edme-hero__img { max-height: 260px; }
  .edme-hero__sub { margin-inline: auto; margin-bottom: 20px; }
  .edme-hero__cta { justify-content: center; }
  .edme-hero__cta .edme-btn { flex: 1 1 100%; }
  .edme-hero__nav { display: none; }
  .edme-trust__item { justify-content: flex-start; padding: 14px; }
  .edme-cats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .edme-about { grid-template-columns: 1fr; }
  /* the theme lays products out as a 2-column grid on phones: let each card fill its cell */
  .edme-home .woocommerce ul.products[class*="columns-"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
  .edme-home .woocommerce ul.products[class*="columns-"] li.product { width: 100% !important; margin: 0 !important; float: none; padding: 10px; }
  .edme-home .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: .9rem; min-height: 3.6em; }
  .edme-home .woocommerce ul.products li.product .button { padding: 9px 14px; font-size: .85rem; }
}
@media (max-width: 420px) {
  .edme-trust { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .edme-hero__track { scroll-behavior: auto; }
  .edme-btn, .edme-cat, .edme-hero__dots button { transition: none; }
}
