:root {
  --elbwal-chrome-text: #222222;
  --elbwal-chrome-muted: #6b6762;
  --elbwal-chrome-accent: #c29d77;
  --elbwal-chrome-accent-dark: #a9805d;
  --elbwal-chrome-border: #ded7ce;
  --elbwal-chrome-header-bg: #f4f2ee;
  --elbwal-chrome-footer: #332c27;
  --elbwal-chrome-footer-text: #f4f2ee;
  --elbwal-chrome-footer-muted: #bdb6ae;
}

/* Hide the old Elementor Theme Builder chrome while this plugin is active. */
.elbwal-site-chrome-active header.elementor-location-header,
.elbwal-site-chrome-active footer.elementor-location-footer {
  display: none !important;
}

.elbwal-chrome-header,
.elbwal-chrome-footer,
.elbwal-chrome-header *,
.elbwal-chrome-footer * {
  box-sizing: border-box;
}

.elbwal-chrome-header {
  position: sticky;
  top: 0;
  z-index: 9998;
  width: 100%;
  background: var(--elbwal-chrome-header-bg);
  border-bottom: 1px solid var(--elbwal-chrome-border);
}

.admin-bar .elbwal-chrome-header { top: 32px; }

.elbwal-chrome-header__inner {
  width: calc(100% - 48px);
  max-width: 1600px;
  min-height: 84px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 180px minmax(0,1fr) 180px;
  align-items: center;
  gap: 24px;
}

.elbwal-chrome-brand,
.elbwal-chrome-footer__wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: .02em;
  text-decoration: none !important;
}

.elbwal-chrome-brand {
  justify-self: start;
  color: var(--elbwal-chrome-text) !important;
  font-size: 30px;
  line-height: 1;
}

.elbwal-chrome-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 2.4vw, 44px);
}

.elbwal-chrome-nav a,
.elbwal-chrome-cart {
  position: relative;
  color: #35312d !important;
  font-family: "Gudea", Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
}

.elbwal-chrome-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -9px;
  height: 1px;
  background: var(--elbwal-chrome-accent);
  transition: right .2s ease;
}
.elbwal-chrome-nav a:hover::after { right: 0; }
.elbwal-chrome-nav a:hover,
.elbwal-chrome-cart:hover { color: var(--elbwal-chrome-accent-dark) !important; }

.elbwal-chrome-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.elbwal-chrome-search,
.elbwal-chrome-mobile { position: relative; }
.elbwal-chrome-search summary,
.elbwal-chrome-mobile summary {
  list-style: none;
  cursor: pointer;
}
.elbwal-chrome-search summary::-webkit-details-marker,
.elbwal-chrome-mobile summary::-webkit-details-marker { display: none; }

.elbwal-chrome-search summary {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
}
.elbwal-chrome-search svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #383430;
  stroke-width: 1.5;
  stroke-linecap: round;
}
.elbwal-chrome-search__panel {
  position: absolute;
  top: calc(100% + 22px);
  right: 0;
  width: min(390px, calc(100vw - 32px));
  padding: 14px;
  background: var(--elbwal-chrome-header-bg);
  border: 1px solid var(--elbwal-chrome-border);
  box-shadow: 0 16px 44px rgba(34,30,26,.12);
}
.elbwal-chrome-search__panel form,
.elbwal-chrome-mobile__panel form {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 8px;
}
.elbwal-chrome-search input,
.elbwal-chrome-mobile input {
  width: 100%;
  min-width: 0;
  height: 43px;
  padding: 0 12px;
  border: 1px solid #dcd5cc;
  border-radius: 0;
  background: #fff;
  color: #222;
  font: 14px/1 "Gudea", Arial, sans-serif;
}
.elbwal-chrome-search button,
.elbwal-chrome-mobile button {
  min-height: 43px;
  padding: 0 17px;
  border: 1px solid var(--elbwal-chrome-accent);
  border-radius: 0;
  background: var(--elbwal-chrome-accent);
  color: #fff;
  font: 600 13px/1 "Gudea", Arial, sans-serif;
  cursor: pointer;
}

.elbwal-chrome-cart {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.elbwal-chrome-cart__count {
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #eee7df;
  color: #6f5036;
  font-size: 11px;
  line-height: 1;
}

.elbwal-chrome-mobile { display: none; }

/* FOOTER */
.elbwal-chrome-footer {
  width: 100%;
  margin: 0;
  background: var(--elbwal-chrome-footer);
  color: var(--elbwal-chrome-footer-text);
  font-family: "Gudea", Arial, sans-serif;
}
.elbwal-chrome-footer__inner {
  width: calc(100% - 48px);
  max-width: 1600px;
  margin: 0 auto;
  padding: 68px 0 58px;
  display: grid;
  grid-template-columns: minmax(320px,1.75fr) repeat(3,minmax(150px,.7fr));
  gap: clamp(44px, 6vw, 100px);
}
.elbwal-chrome-footer__wordmark {
  display: inline-block;
  margin-bottom: 24px;
  color: #fff !important;
  font-size: 32px;
}
.elbwal-chrome-footer__claim {
  margin: 0 0 20px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 1.16;
  font-weight: 400;
}
.elbwal-chrome-footer__intro {
  max-width: 520px;
  margin: 0;
  color: var(--elbwal-chrome-footer-muted);
  font-size: 15px;
  line-height: 1.7;
}
.elbwal-chrome-footer h2 {
  margin: 4px 0 20px;
  color: #fff;
  font-family: "Gudea", Arial, sans-serif;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.elbwal-chrome-footer nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.elbwal-chrome-footer nav a {
  color: var(--elbwal-chrome-footer-muted) !important;
  font-size: 15px;
  line-height: 1.35;
  text-decoration: none !important;
  transition: color .18s ease;
}
.elbwal-chrome-footer nav a:hover { color: #fff !important; }
.elbwal-chrome-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.11);
}
.elbwal-chrome-footer__bottom > div {
  width: calc(100% - 48px);
  max-width: 1600px;
  min-height: 60px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #928b84;
  font-size: 13px;
}
.elbwal-chrome-footer__bottom span + span::before {
  content: "·";
  margin: 0 10px;
}

@media (max-width: 1100px) {
  .elbwal-chrome-header__inner {
    grid-template-columns: auto 1fr auto;
  }
  .elbwal-chrome-nav { gap: 20px; }
  .elbwal-chrome-nav a { font-size: 14px; }
  .elbwal-chrome-footer__inner {
    grid-template-columns: 1.4fr repeat(3, .7fr);
    gap: 36px;
  }
}

@media (max-width: 860px) {
  .elbwal-chrome-header__inner {
    width: calc(100% - 32px);
    min-height: 72px;
    grid-template-columns: 1fr auto;
  }
  .elbwal-chrome-nav,
  .elbwal-chrome-search,
  .elbwal-chrome-cart { display: none; }
  .elbwal-chrome-mobile { display: block; }
  .elbwal-chrome-mobile > summary {
    width: 34px;
    height: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }
  .elbwal-chrome-mobile > summary span {
    display: block;
    width: 24px;
    height: 1px;
    background: #2f2b27;
  }
  .elbwal-chrome-mobile__panel {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 28px 24px 32px;
    background: var(--elbwal-chrome-header-bg);
    border-top: 1px solid var(--elbwal-chrome-border);
    border-bottom: 1px solid var(--elbwal-chrome-border);
    box-shadow: 0 18px 38px rgba(35,30,26,.09);
  }
  .admin-bar .elbwal-chrome-mobile__panel { top: 118px; }
  .elbwal-chrome-mobile__panel nav {
    display: flex;
    flex-direction: column;
    margin-bottom: 26px;
  }
  .elbwal-chrome-mobile__panel nav a {
    padding: 13px 0;
    border-bottom: 1px solid #eee9e3;
    color: #292521 !important;
    font: 400 21px/1.2 Georgia, "Times New Roman", serif;
    text-decoration: none !important;
  }
  .elbwal-chrome-footer__inner {
    width: calc(100% - 32px);
    padding: 52px 0 42px;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 44px 32px;
  }
  .elbwal-chrome-footer__brand { grid-column: 1 / -1; }
  .elbwal-chrome-footer__bottom > div { width: calc(100% - 32px); }
}

@media (max-width: 540px) {
  .admin-bar .elbwal-chrome-header { top: 46px; }
  .elbwal-chrome-brand { font-size: 27px; }
  .elbwal-chrome-footer__inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .elbwal-chrome-footer__brand { grid-column: auto; }
  .elbwal-chrome-footer__claim { font-size: 24px; }
  .elbwal-chrome-footer__bottom > div {
    min-height: 66px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
  }
  .elbwal-chrome-footer__bottom span + span::before { display: none; }
}
