/* e-man.gr — Custom Homepage v1.3.0 */
body.route-common-home,
body[class*="route-common-home"] {
  background: #171b1f !important;
}

.eman-home {
  --eh-bg: #171b1f;
  --eh-surface: #20262b;
  --eh-surface-2: #252c32;
  --eh-line: rgba(255,255,255,.10);
  --eh-text: #f5f2ec;
  --eh-muted: #aab1b7;
  --eh-accent: #86a9ff;
  --eh-gold: #c9aa6a;
  color: var(--eh-text);
  background: var(--eh-bg);
  overflow: hidden;
}

.eman-home * { box-sizing: border-box; }
.eman-home a { color: inherit; text-decoration: none; }
.eman-home-container { width: min(1320px, calc(100% - 56px)); margin: 0 auto; }

.eman-home-hero {
  position: relative;
  min-height: 660px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--eh-line);
  background:
    radial-gradient(circle at 76% 34%, rgba(96,124,205,.24), transparent 32%),
    radial-gradient(circle at 22% 72%, rgba(201,170,106,.10), transparent 30%),
    linear-gradient(135deg, #14181c 0%, #1b2025 58%, #171b1f 100%);
}

.eman-home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(430px, .95fr);
  align-items: center;
  gap: 84px;
  padding: 88px 0;
}

.eman-home-eyebrow,
.eman-home-section-heading > div > span,
.eman-offers-intro > span {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--eh-accent);
  margin-bottom: 18px;
}

.eman-home-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(54px, 6.2vw, 96px);
  line-height: .98;
  letter-spacing: -.055em;
  color: var(--eh-text);
}

.eman-home-hero h1 span { color: #9fb8f7; }
.eman-home-hero p {
  max-width: 650px;
  margin: 30px 0 0;
  font-size: 18px;
  line-height: 1.75;
  color: var(--eh-muted);
}

.eman-home-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.eman-home-btn {
  min-height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: .2s ease;
}
.eman-home-btn:hover { transform: translateY(-2px); }
.eman-home-btn-primary { color: #11161b !important; background: #f5f2ec; }
.eman-home-btn-secondary { border: 1px solid var(--eh-line); background: rgba(255,255,255,.035); color: var(--eh-text) !important; }

.eman-home-hero-art {
  position: relative;
  height: 500px;
  min-width: 0;
}
.eman-home-orbit { position: absolute; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; }
.eman-home-orbit.orbit-one { width: 420px; height: 420px; top: 35px; left: 35px; }
.eman-home-orbit.orbit-two { width: 290px; height: 290px; top: 100px; left: 100px; border-color: rgba(134,169,255,.28); }
.eman-home-art-card {
  position: absolute;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(32,38,43,.82);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 70px rgba(0,0,0,.32);
}
.eman-home-art-card.art-main {
  width: 280px;
  height: 330px;
  left: 106px;
  top: 82px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-4deg);
}
.eman-home-art-card.art-main::before {
  content: "";
  width: 96px;
  height: 120px;
  border: 1px solid rgba(201,170,106,.55);
  border-radius: 50% 50% 42% 42%;
  margin-bottom: 28px;
  background: radial-gradient(circle at 50% 28%, rgba(201,170,106,.18), transparent 48%);
}
.eman-home-art-card.art-main strong { font-family: Georgia, serif; font-size: 42px; font-weight: 400; color: #e4d1a6; }
.eman-home-art-card.art-main span { margin-top: 10px; color: var(--eh-muted); font-size: 10px; letter-spacing: .28em; text-transform: uppercase; }
.eman-home-art-card.art-small {
  width: 104px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 11px;
  letter-spacing: .18em;
  font-weight: 800;
  color: #dce5ff;
}
.eman-home-art-card.art-one { right: 4px; top: 58px; transform: rotate(7deg); }
.eman-home-art-card.art-two { left: 4px; bottom: 65px; transform: rotate(-8deg); }
.eman-home-art-card.art-three { right: 15px; bottom: 32px; transform: rotate(5deg); }

.eman-home-section { padding: 96px 0; border-bottom: 1px solid var(--eh-line); }
.eman-home-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.eman-home-section-heading h2,
.eman-offers-intro h2 { margin: 0; color: var(--eh-text); font-size: clamp(32px, 4vw, 54px); line-height: 1.05; letter-spacing: -.035em; }
.eman-home-section-heading > a { color: #cdd5dc; font-weight: 700; white-space: nowrap; }
.eman-home-section-heading > a b { color: var(--eh-accent); margin-left: 8px; }

.eman-category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.eman-category-card {
  min-width: 0;
  border: 1px solid var(--eh-line);
  background: var(--eh-surface);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.eman-category-card:hover { transform: translateY(-4px); border-color: rgba(134,169,255,.45); }
.eman-category-media { height: 190px; background: #f1f0ec; overflow: hidden; }
.eman-category-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.eman-category-card:hover img { transform: scale(1.035); }
.eman-category-media.is-empty {
  background:
    linear-gradient(135deg, transparent 0 45%, rgba(134,169,255,.08) 45% 55%, transparent 55%),
    radial-gradient(circle at 70% 30%, rgba(201,170,106,.25), transparent 30%),
    #242b31;
}
.eman-category-copy { min-height: 68px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.eman-category-copy span { font-size: 16px; font-weight: 700; line-height: 1.25; }
.eman-category-copy b { color: var(--eh-accent); font-size: 20px; }

.eman-home-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.eman-home-product-card { min-width: 0; border: 1px solid var(--eh-line); background: var(--eh-surface); border-radius: 18px; overflow: hidden; }
.eman-home-product-image { display: block; aspect-ratio: 1 / 1; padding: 14px; background: #f3f2ee; }
.eman-home-product-image img { width: 100%; height: 100%; object-fit: contain; }
.eman-home-product-body { padding: 18px; }
.eman-home-product-brand { display: block; color: #89939b; font-size: 12px; margin-bottom: 8px; }
.eman-home-product-card h3 { margin: 0; min-height: 46px; font-size: 15px; line-height: 1.45; color: var(--eh-text); }
.eman-home-product-card h3 a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.eman-home-product-bottom { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--eh-line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.eman-home-price strong { display: block; color: #fff; font-size: 18px; }
.eman-home-price del { color: #8c959c; font-size: 12px; }
.eman-home-product-link { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(134,169,255,.14); color: #b7c9ff !important; font-size: 20px; }

.eman-home-offers { background: #1d2227; }
.eman-offers-shell { display: grid; grid-template-columns: .72fr 1.28fr; gap: 50px; align-items: center; }
.eman-offers-intro p { max-width: 480px; color: var(--eh-muted); font-size: 16px; line-height: 1.7; margin: 22px 0 28px; }
.eman-offers-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.eman-offer-card { min-width: 0; display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 16px; align-items: center; padding: 12px; border: 1px solid var(--eh-line); background: var(--eh-surface-2); border-radius: 15px; }
.eman-offer-card img { width: 110px; height: 110px; object-fit: contain; border-radius: 10px; background: #f2f1ed; }
.eman-offer-card span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; line-height: 1.35; }
.eman-offer-card strong { display: block; margin-top: 10px; font-size: 18px; }
.eman-offer-card del { display: block; color: #8d959c; font-size: 12px; }

.eman-trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.eman-trust-grid > div { min-height: 210px; padding: 28px; border: 1px solid var(--eh-line); border-radius: 18px; background: rgba(255,255,255,.02); }
.eman-trust-grid b { color: var(--eh-accent); font-size: 13px; letter-spacing: .12em; }
.eman-trust-grid h3 { margin: 36px 0 10px; color: var(--eh-text); font-size: 19px; }
.eman-trust-grid p { margin: 0; color: var(--eh-muted); line-height: 1.6; }

.eman-brand-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 12px; }
.eman-brand-grid a { min-height: 68px; padding: 12px; border: 1px solid var(--eh-line); border-radius: 14px; display: grid; place-items: center; text-align: center; color: #dce1e5; font-weight: 700; background: var(--eh-surface); transition: .2s ease; }
.eman-brand-grid a:hover { border-color: rgba(134,169,255,.45); color: #fff; transform: translateY(-2px); }

@media (max-width: 1100px) {
  .eman-home-hero-grid { grid-template-columns: 1fr 420px; gap: 36px; }
  .eman-home-product-grid, .eman-category-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .eman-brand-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .eman-home-container { width: min(100% - 32px, 720px); }
  .eman-home-hero { min-height: 0; }
  .eman-home-hero-grid { grid-template-columns: 1fr; padding: 70px 0 54px; }
  .eman-home-hero-art { height: 390px; max-width: 480px; width: 100%; margin: 0 auto; }
  .eman-home-orbit.orbit-one { width: 340px; height: 340px; left: calc(50% - 170px); }
  .eman-home-orbit.orbit-two { width: 230px; height: 230px; left: calc(50% - 115px); }
  .eman-home-art-card.art-main { width: 230px; height: 280px; left: calc(50% - 115px); top: 66px; }
  .eman-home-section { padding: 72px 0; }
  .eman-home-product-grid, .eman-category-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .eman-offers-shell { grid-template-columns: 1fr; }
  .eman-trust-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .eman-brand-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 560px) {
  .eman-home-container { width: calc(100% - 24px); }
  .eman-home-hero-grid { padding-top: 52px; }
  .eman-home-hero h1 { font-size: 48px; }
  .eman-home-hero p { font-size: 16px; line-height: 1.65; }
  .eman-home-actions { display: grid; grid-template-columns: 1fr; }
  .eman-home-btn { width: 100%; }
  .eman-home-section { padding: 58px 0; }
  .eman-home-section-heading { align-items: flex-start; margin-bottom: 26px; }
  .eman-home-section-heading > a { display: none; }
  .eman-home-section-heading h2, .eman-offers-intro h2 { font-size: 34px; }
  .eman-category-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
  .eman-category-card { flex: 0 0 78%; scroll-snap-align: start; }
  .eman-home-product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .eman-home-product-image { padding: 8px; }
  .eman-home-product-body { padding: 12px; }
  .eman-home-product-card h3 { font-size: 13px; min-height: 39px; }
  .eman-home-product-brand { font-size: 10px; }
  .eman-home-price strong { font-size: 15px; }
  .eman-home-product-link { width: 32px; height: 32px; flex-basis: 32px; }
  .eman-offers-products { grid-template-columns: 1fr; }
  .eman-offer-card { grid-template-columns: 90px minmax(0,1fr); }
  .eman-offer-card img { width: 90px; height: 90px; }
  .eman-trust-grid { grid-template-columns: 1fr; }
  .eman-trust-grid > div { min-height: 0; }
  .eman-trust-grid h3 { margin-top: 22px; }
  .eman-brand-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
