﻿/* Megaelain — header and footer chrome for pages that keep their own content. */
:root {
  --me-ink: #132018;
  --me-ink-soft: #2a3d30;
  --me-muted: #5c6f60;
  --me-leaf: #6f8f3a;
  --me-mint: #95ad5f;
  --me-lime: #b8cf7c;
  --me-fog: #eef5e6;
  --me-paper: #f7faf3;
  --me-white: #ffffff;
  --me-line: rgba(111, 143, 58, 0.28);
  --me-shadow: 0 18px 48px rgba(19, 32, 24, 0.1);
  --me-radius: 1.25rem;
  --me-font-display: "Sora", system-ui, sans-serif;
  --me-font-body: "Sora", system-ui, sans-serif;
  --me-max: 72rem;
  --me-header-h: 4.25rem;
}

/* Header, drawer, footer only — no global resets, so the shop stays unchanged. */
.me-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--me-ink);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.me-skip:focus {
  left: 1rem;
  top: 1rem;
}

.me-wrap {
  width: min(100% - 2rem, var(--me-max));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.me-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--me-header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(247, 250, 243, 0.82);
  border-bottom: 1px solid rgba(111, 143, 58, 0.15);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.me-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 28px rgba(19, 32, 24, 0.06);
}

.me-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--me-max));
  margin-inline: auto;
}

.me-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--me-font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--me-ink);
}

.me-logo img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.me-nav {
  display: none;
  align-items: center;
  gap: 0.35rem;
}

.me-nav__link {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: var(--me-ink-soft);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease;
}

.me-nav__link:hover,
.me-nav__link:focus-visible {
  background: rgba(149, 173, 95, 0.18);
  color: var(--me-ink);
  outline: none;
}

.me-nav__cta {
  background: linear-gradient(135deg, var(--me-leaf), var(--me-mint)) !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(111, 143, 58, 0.28);
}

.me-nav__cta:hover {
  filter: brightness(1.05);
}

.me-nav__drop {
  position: relative;
}

.me-nav__drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.me-nav__drop-caret {
  font-size: 0.65rem;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.me-nav__drop.is-open .me-nav__drop-caret,
.me-nav__drop:hover .me-nav__drop-caret {
  transform: rotate(180deg);
}

.me-nav__menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 13.5rem;
  /* Padding creates hover bridge â€” no gap that closes the menu */
  padding: 0.55rem 0 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 60;
}

.me-nav__menu-inner {
  padding: 0.4rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.06),
    0 18px 40px rgba(15, 23, 42, 0.1);
}

.me-nav__drop.is-open .me-nav__menu,
.me-nav__drop:focus-within .me-nav__menu:not([hidden]) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.me-nav__menu a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease,
    padding-left 0.18s ease;
}

.me-nav__menu a::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: #cbd5e1;
  flex-shrink: 0;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.me-nav__menu a::after {
  content: "";
  margin-left: auto;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid #94a3b8;
  border-top: 2px solid #94a3b8;
  transform: translateX(-4px) rotate(45deg);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.me-nav__menu a:hover,
.me-nav__menu a:focus-visible {
  background: linear-gradient(90deg, #f8fafc 0%, #f1f5f9 100%);
  color: #0f172a;
  transform: translateX(2px);
  box-shadow: inset 3px 0 0 #0f172a;
  outline: none;
}

.me-nav__menu a:hover::before,
.me-nav__menu a:focus-visible::before {
  background: #0f172a;
  transform: scale(1.15);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.me-nav__menu a:hover::after,
.me-nav__menu a:focus-visible::after {
  opacity: 1;
  transform: translateX(0) rotate(45deg);
  border-color: #64748b;
}

@media (prefers-reduced-motion: reduce) {
  .me-nav__menu a,
  .me-nav__menu a::before,
  .me-nav__menu a::after {
    transition: none;
  }

  .me-nav__menu a:hover,
  .me-nav__menu a:focus-visible {
    transform: none;
  }
}

.me-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--me-line);
  border-radius: 0.85rem;
  background: var(--me-white);
  cursor: pointer;
  color: var(--me-ink);
}

@media (min-width: 900px) {
  .me-nav {
    display: flex;
  }

  .me-menu-btn {
    display: none;
  }
}

.me-drawer {
  display: none;
  position: fixed;
  inset: var(--me-header-h) 0 0;
  background: rgba(19, 32, 24, 0.45);
  z-index: 40;
}

.me-drawer.is-open {
  display: block;
}

.me-drawer__panel {
  margin-left: auto;
  width: min(20rem, 100%);
  height: 100%;
  background: var(--me-white);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: -12px 0 40px rgba(19, 32, 24, 0.12);
}

.me-drawer__panel a {
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  font-weight: 600;
  color: var(--me-ink-soft);
}

.me-drawer__panel a:hover {
  background: var(--me-fog);
}

.me-drawer__label {
  margin: 0.65rem 0 0.15rem;
  padding: 0 1rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}

/* ---------- Footer ---------- */
.me-footer {
  margin-top: 2rem;
  background:
    linear-gradient(180deg, #15261b 0%, #0f1a14 100%);
  color: rgba(255, 255, 255, 0.88);
  padding: clamp(3rem, 7vw, 4.5rem) 0 0;
  position: relative;
  overflow: hidden;
}

.me-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--me-leaf), var(--me-lime), var(--me-mint));
}

.me-footer__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .me-footer__grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 1.5rem;
  }
}

.me-footer__brand {
  font-family: var(--me-font-display);
  font-size: 1.85rem;
  color: #fff;
  margin: 0 0 0.75rem;
}

.me-footer p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.me-footer h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--me-lime);
  margin: 0 0 1rem;
}

.me-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.me-footer a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.me-footer a:hover {
  color: #fff;
}

.me-footer__social {
  display: flex;
  gap: 0.55rem;
  margin-top: 1rem;
}

.me-footer__social a {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1rem;
}

.me-footer__social a:hover {
  background: rgba(149, 173, 95, 0.35);
}

.me-footer__bottom {
  margin-top: 2.5rem;
  padding: 1.15rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.me-footer__bottom a {
  color: rgba(255, 255, 255, 0.7);
}

.me-footer__bottom p {
  margin: 0;
}

.me-footer__bottom p a {
  color: var(--me-lime);
}

.me-header,
.me-footer,
.me-drawer,
.me-skip {
  font-family: "Sora", system-ui, sans-serif;
}

.me-logo,
.me-footer__brand {
  font-family: var(--me-font-display);
  font-weight: 700;
}

.me-header a,
.me-drawer a,
.me-footer a,
.me-header a span,
.me-drawer a span,
.me-footer a span {
  color: inherit;
}

.me-nav__cta,
.me-nav__cta span {
  color: #fff !important;
}

.me-header {
  z-index: 1040;
}

body.front-shop--website .storefront-hero {
  padding-top: 2rem;
}

/* Floating cart — new website look */
body.front-shop--website .float-basket {
  width: 3.55rem;
  height: 3.55rem;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--me-leaf), var(--me-mint));
  color: #fff;
  box-shadow:
    0 12px 28px rgba(111, 143, 58, 0.38),
    0 0 0 4px rgba(247, 250, 243, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

body.front-shop--website .float-basket:hover,
body.front-shop--website .float-basket:focus-visible {
  color: #fff;
  filter: brightness(1.04);
  transform: scale(1.06);
}

body.front-shop--website .float-basket:focus-visible {
  outline: 3px solid var(--me-leaf);
  outline-offset: 3px;
  border-radius: 999px;
}

body.front-shop--website .float-basket i {
  font-size: 1.55rem;
  filter: none;
}

body.front-shop--website .float-basket__badge {
  top: -0.15rem;
  right: -0.15rem;
  min-width: 1.4rem;
  height: 1.4rem;
  line-height: 1.4rem;
  background: #fff;
  color: var(--me-leaf);
  border: 2px solid var(--me-leaf);
  box-shadow: 0 6px 14px rgba(19, 32, 24, 0.12);
}

body.front-shop--website .float-drawer__backdrop {
  background: rgba(19, 32, 24, 0.45);
}

body.front-shop--website .float-drawer__panel {
  box-shadow: -18px 0 48px rgba(19, 32, 24, 0.16);
}

body.front-shop--website .float-drawer__head {
  background: linear-gradient(180deg, #eef5e6 0%, #ffffff 100%);
  border-bottom-color: var(--me-line);
}

body.front-shop--website .float-drawer__icon {
  background: linear-gradient(145deg, var(--me-leaf), var(--me-mint));
  box-shadow: 0 8px 18px rgba(111, 143, 58, 0.28);
  border-radius: 999px;
}

body.front-shop--website .float-drawer__heading h2 {
  font-family: var(--me-font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--me-ink);
}

body.front-shop--website .float-drawer__count {
  border-color: var(--me-line);
  color: var(--me-leaf) !important;
  background: #f7faf3;
}

body.front-shop--website .float-drawer__close:hover {
  background: #f4f8ee;
  border-color: var(--me-leaf);
  color: var(--me-leaf);
}

body.front-shop--website .float-drawer__body {
  background: #f7faf3;
}

body.front-shop--website .float-drawer__empty {
  border-color: var(--me-line);
  color: var(--me-muted);
}

body.front-shop--website .float-drawer__empty-icon {
  background: #eef5e6;
  color: var(--me-leaf);
  border-radius: 999px;
}

body.front-shop--website .float-item {
  border-color: #e5e7eb;
  box-shadow: 0 10px 24px rgba(19, 32, 24, 0.05);
}

body.front-shop--website .float-item img {
  background: #f4f8ee;
  object-fit: contain;
}

body.front-shop--website .float-item__name {
  font-family: var(--me-font-display);
  color: var(--me-ink);
}

body.front-shop--website .float-item__line {
  color: var(--me-leaf);
}

body.front-shop--website .float-drawer__foot .storefront-btn--primary {
  background: linear-gradient(135deg, #85a052, var(--me-mint));
  border: 0;
  box-shadow: 0 10px 28px rgba(111, 143, 58, 0.35);
}

body.front-shop--website .float-drawer__foot .storefront-btn--primary:hover {
  filter: brightness(1.03);
  background: linear-gradient(135deg, #85a052, var(--me-mint));
}

@media (max-width: 991.98px) {
  body.front-shop--website .me-footer {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
  }

  body.front-shop--website .float-basket {
    width: 3.25rem;
    height: 3.25rem;
  }

  body.front-shop--website .float-basket i {
    font-size: 1.4rem;
  }
}

/* Shop card cart — new website look */
body.front-shop--website .storefront-card__cart {
  background: linear-gradient(145deg, var(--me-leaf), var(--me-mint));
  box-shadow: 0 6px 14px rgba(111, 143, 58, 0.28);
  color: #fff;
}

body.front-shop--website .storefront-card__cart:hover:not(:disabled) {
  filter: brightness(1.05);
}

body.front-shop--website .storefront-card.is-soldout .storefront-card__cart:disabled {
  opacity: 0.55;
  filter: grayscale(0.15);
}

/* Shop quick filters — new website look */
body.front-shop--website .storefront-panel--quick,
body.front-shop--website .storefront-panel--scroll {
  border-color: var(--me-line);
  box-shadow: 0 12px 28px rgba(19, 32, 24, 0.05);
}

body.front-shop--website .storefront-panel--quick .storefront-panel__title,
body.front-shop--website .storefront-panel--scroll .storefront-panel__title {
  font-family: var(--me-font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--me-ink);
}

body.front-shop--website .storefront-facet-scroller::before {
  background: linear-gradient(90deg, #fff 20%, transparent);
}

body.front-shop--website .storefront-facet-scroller::after {
  background: linear-gradient(270deg, #fff 20%, transparent);
}

body.front-shop--website .storefront-facet-rail,
body.front-shop--website .storefront-facet-list--scroll {
  scrollbar-color: rgba(111, 143, 58, 0.45) transparent;
}

body.front-shop--website .storefront-facet-rail::-webkit-scrollbar-thumb,
body.front-shop--website .storefront-facet-list--scroll::-webkit-scrollbar-thumb {
  background: rgba(111, 143, 58, 0.4);
}

body.front-shop--website .storefront-facet-rail .storefront-facet:hover,
body.front-shop--website .storefront-facet-list--scroll .storefront-facet:hover {
  border-color: var(--me-leaf);
  color: var(--me-leaf);
}

body.front-shop--website .storefront-facet-list--scroll .storefront-facet.is-active {
  background: #eef5e6;
  border-color: var(--me-leaf);
  color: var(--me-ink);
}

body.front-shop--website .storefront-facet--new.is-active {
  background: linear-gradient(145deg, rgba(111, 143, 58, 0.14), rgba(149, 173, 95, 0.22));
  border-color: var(--me-leaf);
  color: var(--me-ink);
}

body.front-shop--website .storefront-panel--quick .storefront-panel__hint {
  color: var(--me-muted);
}

/* Cookie consent — new website look */
body.front-shop--website .cookies-card.me-cookies {
  left: 50%;
  right: auto;
  bottom: 1.75rem;
  width: min(44rem, calc(100% - 2rem));
  max-width: none;
  padding: 0;
  transform: translateX(-50%);
  border: 1px solid var(--me-line);
  border-top: 0;
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(184, 207, 124, 0.28), transparent 42%),
    #ffffff;
  box-shadow: 0 22px 48px rgba(19, 32, 24, 0.16);
  color: var(--me-ink);
  font-family: var(--me-font-body);
}

body.front-shop--website .cookies-card.me-cookies.hide {
  bottom: -12rem !important;
  opacity: 0;
  pointer-events: none;
}

body.front-shop--website .me-cookies__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.95rem 1.1rem;
  align-items: center;
  padding: 1.1rem 1.2rem;
}

body.front-shop--website .me-cookies__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--me-leaf), var(--me-mint));
  color: #fff;
  box-shadow: 0 10px 22px rgba(111, 143, 58, 0.3);
}

body.front-shop--website .me-cookies__icon i {
  font-size: 1.35rem;
  line-height: 1;
}

body.front-shop--website .me-cookies__copy .section-title {
  margin: 0 0 0.3rem;
  font-family: var(--me-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--me-ink);
}

body.front-shop--website .me-cookies__copy .cookies-card__content {
  margin: 0;
  color: var(--me-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

body.front-shop--website .me-cookies__more {
  color: var(--me-leaf) !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

body.front-shop--website .me-cookies__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  margin: 0 !important;
}

body.front-shop--website .me-cookies__accept,
body.front-shop--website .me-cookies__deny {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none !important;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

body.front-shop--website .me-cookies__accept {
  background: linear-gradient(135deg, #85a052, var(--me-mint));
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(111, 143, 58, 0.32);
  border: 0;
}

body.front-shop--website .me-cookies__deny {
  background: #fff;
  color: var(--me-ink) !important;
  border: 1px solid var(--me-line);
}

body.front-shop--website .me-cookies__accept:hover,
body.front-shop--website .me-cookies__deny:hover {
  transform: translateY(-1px);
}

@media (max-width: 767.98px) {
  body.front-shop--website .cookies-card.me-cookies {
    bottom: calc(1rem + env(safe-area-inset-bottom));
    width: calc(100% - 1.25rem);
    border-radius: 1.2rem;
  }

  body.front-shop--website .me-cookies__inner {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 1rem;
  }

  body.front-shop--website .me-cookies__actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  body.front-shop--website .me-cookies__accept,
  body.front-shop--website .me-cookies__deny {
    flex: 1 1 auto;
  }
}
