/* Essenciagua storefront theme — matches essenciagua.fr
   Deep navy + teal on white, Assistant font, four-petal accent palette.
   Brand colours pulled from the live Shopify theme:
     navy    #002B4B   teal   #108474
     petals  cyan #29b6e7 · purple #ac7fb6 · green #24a57e · olive #a2ba47 */

.theme-eg {
  --brand: #002b4b;        /* navy — primary */
  --brand-dark: #001b30;
  --eg-teal: #108474;
  --eg-cyan: #29b6e7;
  --eg-purple: #ac7fb6;
  --eg-green: #24a57e;
  --eg-olive: #a2ba47;
  --eg-ink: #002b4b;
  --eg-line: #e6ebf0;
  --accent: #108474;       /* teal — product-card accents */
}

.theme-eg {
  background: #ffffff;
  color: var(--eg-ink);
  font-family: "Assistant", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.theme-eg h1, .theme-eg h2, .theme-eg h3 {
  font-family: "Assistant", sans-serif; font-weight: 700; color: var(--brand);
  letter-spacing: -.01em;
}
.theme-eg a { color: var(--eg-teal); }
.theme-eg .price { color: var(--eg-teal); }
/* Keep button label legible: the .theme-eg a rule above would otherwise tint
   <a class="btn"> teal, giving green-on-navy. Force white on the solid button. */
.theme-eg .btn { font-weight: 600; border-radius: 6px; color: #fff; }
.theme-eg .btn:hover { color: #fff; }
.theme-eg .btn.secondary { background: #eef2f5; color: var(--brand); }

/* Four-petal mark (echoes the logo icon) */
.eg-petals { display: grid; grid-template-columns: 14px 14px; gap: 4px; margin-bottom: 14px; }
.eg-petals span { width: 14px; height: 14px; border-radius: 60% 0 60% 60%; }
.eg-petals span:nth-child(1) { background: var(--eg-cyan); }
.eg-petals span:nth-child(2) { background: var(--eg-purple); transform: rotate(90deg); }
.eg-petals span:nth-child(3) { background: var(--eg-green); transform: rotate(270deg); }
.eg-petals span:nth-child(4) { background: var(--eg-olive); transform: rotate(180deg); }

/* Header */
.eg-topbar { background: var(--brand); color: #cfe0ee; font-size: 12.5px;
  letter-spacing: .06em; }
.eg-topbar .container { padding-top: 8px; padding-bottom: 8px; text-align: center; }
.eg-header { background: #fff; border-bottom: 1px solid var(--eg-line); }
/* Two-line header: line 1 = logo · search · account, line 2 = the menu. */
.eg-bar { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.eg-logo img { height: 46px; display: block; }
.eg-bar .header-search { flex: 0 1 340px; margin-left: auto; }
.eg-menubar { border-top: 1px solid var(--eg-line); }
.eg-nav { display: flex; align-items: center; min-height: 48px; }
.eg-nav-primary, .eg-nav-account { display: flex; align-items: center; gap: 24px; }
.eg-nav-account { margin-left: 0; flex: 0 0 auto; }
.eg-nav a { color: var(--brand); font-size: 15px; font-weight: 600; }
.eg-nav a:hover { color: var(--eg-teal); text-decoration: none; }
.eg-badge { background: var(--eg-teal); color: #fff; border-radius: 999px;
  padding: 1px 8px; font-size: 12px; }
.eg-cta { background: var(--eg-teal); color: #fff !important; padding: 9px 18px;
  border-radius: 6px; }
.eg-cta:hover { background: #0c6c5f; }

/* L1/L2 dropdown menu (configurable header menu) */
.eg-nav-item { position: relative; }
.eg-nav-item > a { display: inline-flex; align-items: center; gap: 4px; color: var(--brand);
  font-size: 15px; font-weight: 600; cursor: pointer; }
.eg-nav-item > a:hover { color: var(--eg-teal); text-decoration: none; }
.eg-caret { font-size: 10px; transition: transform 0.15s ease; }
.eg-nav-item.open > a .eg-caret { transform: rotate(180deg); }
.eg-submenu { position: absolute; top: 100%; left: 0; min-width: 210px; z-index: 40;
  background: #fff; border: 1px solid var(--eg-line); border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 43, 75, 0.14); padding: 6px;
  display: none; flex-direction: column; gap: 2px; }
.eg-nav-item:hover > .eg-submenu, .eg-nav-item.open > .eg-submenu { display: flex; }
.eg-submenu a { display: block; padding: 8px 12px; border-radius: 6px; font-size: 14px;
  font-weight: 500; white-space: nowrap; }
.eg-submenu a:hover { background: #f2f7fa; color: var(--eg-teal); text-decoration: none; }
@media (max-width: 760px) {
  .eg-nav-item { width: 100%; }
  .eg-submenu { position: static; box-shadow: none; border: none; padding: 4px 0 4px 14px;
    min-width: 0; }
  .eg-nav-item:hover > .eg-submenu { display: none; }
  .eg-nav-item.open > .eg-submenu { display: flex; }
}

/* Hero */
.eg-hero { background:
    radial-gradient(circle at 88% 12%, rgba(41,182,231,.10), transparent 42%),
    radial-gradient(circle at 96% 80%, rgba(162,186,71,.12), transparent 38%),
    #f4f8fb;
  border: 1px solid var(--eg-line); border-radius: 14px;
  margin: 10px 0 30px; padding: 56px 46px; }
.eg-hero-inner { max-width: 660px; }
.eg-eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 12px;
  color: var(--eg-teal); font-weight: 700; margin: 0 0 10px; }
.eg-hero h1 { font-size: 50px; line-height: 1.05; margin: 0 0 16px; font-weight: 800; }
.eg-lede { font-size: 17px; color: #44586a; max-width: 580px; }
.eg-hero-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Value strip — each card keyed to a petal colour */
.eg-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 38px; }
.eg-value { background: #fff; border: 1px solid var(--eg-line); border-radius: 12px;
  padding: 20px; border-top: 4px solid var(--eg-teal); }
.eg-value.eg-c1 { border-top-color: var(--eg-cyan); }
.eg-value.eg-c2 { border-top-color: var(--eg-purple); }
.eg-value.eg-c3 { border-top-color: var(--eg-green); }
.eg-value.eg-c4 { border-top-color: var(--eg-olive); }
.eg-value h3 { margin: 0 0 6px; font-size: 19px; }
.eg-value p { margin: 0; color: #5a6b78; font-size: 14px; }

/* Sections */
.eg-section { margin-bottom: 42px; }
.eg-h2 { font-size: 30px; margin: 0 0 18px; padding-bottom: 10px; position: relative; }
.eg-h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px;
  height: 3px; background: var(--eg-teal); border-radius: 3px; }
.eg-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.eg-pill { background: #fff; border: 1px solid var(--eg-line); color: var(--brand);
  padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.eg-pill:hover { background: var(--brand); color: #fff; border-color: var(--brand);
  text-decoration: none; }

.storefront-grid { display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.eg-card { background: #fff; border: 1px solid var(--eg-line); border-radius: 12px;
  padding: 22px; display: block; transition: box-shadow .15s, transform .15s, border-color .15s; }
.eg-card:hover { text-decoration: none; box-shadow: 0 12px 28px rgba(0,43,75,.10);
  transform: translateY(-2px); border-color: #cfe0ee; }
.eg-card-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--eg-teal); font-weight: 700; }
.eg-card h3 { margin: 8px 0 14px; font-size: 20px; }
.eg-card-link { color: var(--eg-teal); font-weight: 600; font-size: 14px; }

/* Footer */
.eg-footer { background: var(--brand); color: #b9cad8; margin-top: 44px; padding: 42px 0; }
.eg-footer .eg-petals span { width: 12px; height: 12px; }
.eg-foot-brand { font-size: 26px; color: #fff; font-weight: 800; }
.eg-foot-tag { color: var(--eg-olive); font-size: 14px; margin: 2px 0 12px;
  letter-spacing: .02em; }
.eg-footer p { max-width: 580px; color: #9fb3c4; font-size: 14px; }
.eg-foot-mini { color: #6f8597 !important; font-size: 12.5px; margin-top: 14px; }

@media (max-width: 860px) { .eg-values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .eg-hero { padding: 38px 24px; }
  .eg-hero h1 { font-size: 36px; }
  /* Header wraps instead of overflowing: logo on top, nav below, links wrap. */
  .eg-bar { flex-wrap: wrap; gap: 10px 16px; min-height: 0; padding: 12px 0; }
  .eg-nav { margin-left: 0; width: 100%; flex-wrap: wrap; gap: 12px 16px; }
  .eg-nav-primary, .eg-nav-account { flex-wrap: wrap; gap: 12px 16px; }
  .eg-nav-account { margin-left: 0; }
}

/* Menu entry without URL: plain header text, same weight as the links. */
.eg-nav-text { color: var(--brand); font-size: 15px; font-weight: 600; cursor: default; }
