/* ESMÉRA — Storefront shell recovery
 * Authoritative layer for Header, mobile navigation, search, cart and Footer.
 * It intentionally loads after the historical visual layers so the shell has
 * one coherent responsive contract instead of competing partial overrides.
 */

/* -------------------------------------------------------------------------- */
/* Document flow and scroll stability                                         */
/* -------------------------------------------------------------------------- */

html {
  min-height: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
  overscroll-behavior-y: none;
}

/* Scrollbar gutter is reserved from tablet up only — see esmera-master.css. On
 * mobile the product modal is a full-screen takeover that must span the full
 * viewport width, so no gutter is reserved there. */

body {
  min-height: 100dvh;
  overscroll-behavior-y: none;
}

html.esv-overlay-active,
body.esv-overlay-open {
  overscroll-behavior: none;
}

body.esv-overlay-open {
  touch-action: none;
}

#main-content,
main {
  display: block;
}

#main-content {
  min-height: calc(100dvh - var(--header-h));
}

.esv-footer {
  position: relative;
  z-index: 1;
  overflow-anchor: none;
}



























@media (hover: hover) and (pointer: fine) {

}

/* -------------------------------------------------------------------------- */
/* Overlay foundation                                                         */
/* -------------------------------------------------------------------------- */

.esv-header-overlay,
.esv-object-modal-backdrop {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: flex;
  height: 100dvh;
  overflow: hidden;
  background: rgba(17, 18, 16, .58);
  overscroll-behavior: contain;
  backdrop-filter: blur(4px);
  animation: esv-overlay-in 180ms ease both;
}

.esv-header-overlay {
  justify-content: flex-end;
}



.esv-header-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 600px);
  height: 100dvh;
  padding:
    max(18px, env(safe-area-inset-top))
    clamp(28px, 4.6vw, 64px)
    max(28px, env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  color: var(--ink);
  box-shadow: -24px 0 70px rgba(17, 18, 16, .12);
  animation: esv-panel-in-right 320ms var(--ease-esmera) both;
}



.esv-panel-header {
  position: relative;
  z-index: 4;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  margin-bottom: clamp(38px, 7vh, 72px);
}

.esv-panel-wordmark {
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-decoration: none;
}

.esv-panel-close {
  position: static;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.esv-panel-close svg {
  display: block;
}

.esv-panel-intro {
  flex: 0 0 auto;
}

.esv-panel-intro h2 {
  max-width: 10ch;
  margin: 14px 0 0;
  font-size: clamp(34px, 3.4vw, 52px);
  font-weight: 300;
  line-height: .98;
  letter-spacing: -.04em;
}

@keyframes esv-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes esv-panel-in-right {
  from { opacity: 0; transform: translate3d(24px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes esv-panel-in-left {
  from { opacity: 0; transform: translate3d(-24px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}



























/* -------------------------------------------------------------------------- */
/* Search                                                                     */
/* -------------------------------------------------------------------------- */

.esv-header-search {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  margin: 0;
}

.esv-search-field {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 34px;
  border-bottom: 1px solid var(--ink);
}

.esv-search-field > svg {
  color: var(--muted);
}

.esv-search-field input {
  width: 100%;
  min-width: 0;
  height: 58px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 300;
  outline: none;
}

.esv-search-field input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.esv-search-field button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}

.esv-search-status {
  min-height: 38px;
  padding-top: 12px;
}

.esv-search-status p,
.esv-search-empty {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.esv-search-results {
  flex: 1;
  min-height: 0;
}

.esv-search-results > button {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  width: 100%;
  min-height: 112px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.esv-search-results img {
  width: 72px;
  height: 88px;
  background: var(--bg-alt);
  object-fit: cover;
}

.esv-search-results span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.esv-search-results small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .07em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.esv-search-results strong {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.25;
}

.esv-search-results em {
  color: var(--ink);
  font-size: 11px;
  font-style: normal;
}

.esv-search-results > .esv-search-empty {
  padding-top: 24px;
}

/* -------------------------------------------------------------------------- */
/* Cart                                                                       */
/* -------------------------------------------------------------------------- */

.esv-enquiry-panel.esv-cart-panel {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  margin: 0;
}

.esv-cart-empty {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-bottom: 12vh;
}

.esv-cart-empty p {
  max-width: 30ch;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.esv-cart-empty a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 18px;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-size: 12px;
  text-decoration: none;
}

.esv-cart-list {
  margin-top: 26px;
}

.esv-cart-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.esv-cart-item-media {
  display: block;
  width: 74px;
  height: 90px;
  overflow: hidden;
  background: var(--bg-alt);
}

.esv-cart-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.esv-cart-item-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.esv-cart-item-copy strong {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
}

.esv-cart-item-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .07em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.esv-cart-item-price {
  color: var(--ink);
  font-size: 11px;
  font-style: normal;
  line-height: 1.3;
}

.esv-cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.esv-cart-quantity {
  display: grid;
  grid-template-columns: 30px 28px 30px;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--line);
}

.esv-cart-quantity button {
  appearance: none;
  display: grid;
  place-items: center;
  width: 30px;
  min-height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  cursor: pointer;
}

.esv-cart-quantity button:disabled {
  color: var(--muted);
  cursor: default;
  opacity: .45;
}

.esv-cart-quantity span {
  display: block;
  color: var(--ink);
  font-size: 11px;
  line-height: 1;
  text-align: center;
}

.esv-cart-remove {
  appearance: none;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}

.esv-cart-summary {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.esv-cart-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
}

.esv-cart-summary strong {
  font-weight: 500;
}

.esv-cart-summary p {
  max-width: 42ch;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.esv-cart-checkout {
  margin-top: 20px;
  font-weight: 500;
}

.esv-cart-channel-unavailable {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 11px;
}

/* -------------------------------------------------------------------------- */
/* Product modal                                                              */
/* -------------------------------------------------------------------------- */

.esv-object-modal-backdrop {
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2vw, 32px);
}

.esv-object-modal {
  max-height: calc(100dvh - clamp(24px, 4vw, 64px));
  overscroll-behavior: contain;
}

/* -------------------------------------------------------------------------- */
/* WhatsApp                                                                   */
/* -------------------------------------------------------------------------- */

.esv-whatsapp-sticky {
  position: fixed;
  z-index: 70;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  overflow: visible;
  gap: 0;
  border: 1px solid rgba(243, 240, 232, .2);
  border-radius: 999px;
  background: rgba(17, 18, 16, .94);
  color: var(--ink-inverse);
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: transform 180ms var(--ease-esmera);
}

.esv-whatsapp-label {
  position: absolute;
  right: 54px;
  width: max-content;
  padding: 7px 9px;
  border: 1px solid rgba(243, 240, 232, .14);
  border-radius: 999px;
  background: rgba(17, 18, 16, .92);
  color: var(--ink-inverse);
  opacity: 0;
  transform: translate3d(5px, 0, 0);
  pointer-events: none;
  white-space: nowrap;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .04em;
  transition:
    opacity 160ms var(--ease-esmera),
    transform 180ms var(--ease-esmera);
}

@media (hover: hover) and (pointer: fine) {
  .esv-whatsapp-sticky:hover {
    transform: translateY(-2px);
  }

  .esv-whatsapp-sticky:hover .esv-whatsapp-label {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                     */
/* -------------------------------------------------------------------------- */

.esv-footer {
  min-height: 0;
  padding-block: 48px 22px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.esv-footer-main {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid-gap);
  align-items: end;
}

.esv-footer-wordmark {
  grid-column: 1 / span 2;
  display: block;
  width: clamp(170px, 15vw, 230px);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .18em;
  text-decoration: none;
}

.esv-footer-logo-image {
  display: block;
  width: 100%;
  height: auto;
}

.esv-footer-statement,
.esv-footer-main > p {
  grid-column: 5 / span 4;
  max-width: 28ch;
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.esv-footer-contact {
  grid-column: 11 / -1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.esv-footer-contact a {
  width: fit-content;
  color: var(--ink);
  font-size: 12px;
  text-decoration: none;
}

.esv-footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--grid-gap);
  align-items: center;
  margin-top: 34px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.esv-footer-bottom nav {
  display: flex;
  gap: var(--space-4);
}

.esv-footer-bottom a {
  color: inherit;
  text-decoration: none;
}

.esv-footer-bottom > span:last-child {
  justify-self: end;
}

/* -------------------------------------------------------------------------- */
/* Tablet and mobile                                                          */
/* -------------------------------------------------------------------------- */

@media (max-width: 1023px) {










  .esv-footer-main {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .esv-footer-wordmark { grid-column: 1 / span 2; }
  .esv-footer-statement,
  .esv-footer-main > p { grid-column: 3 / span 3; }
  .esv-footer-contact { grid-column: 7 / -1; }
}

@media (max-width: 767px) {












  .esv-panel-header {
    margin-bottom: clamp(28px, 6vh, 48px);
  }









  .esv-panel-intro h2 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .esv-search-field {
    margin-top: 28px;
  }

  .esv-search-field input {
    font-size: 18px;
  }

  .esv-cart-item {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
  }

  .esv-cart-item-media {
    width: 64px;
    height: 80px;
  }

  .esv-cart-item-actions {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .esv-object-modal-backdrop {
    padding: 0;
  }

  .esv-object-modal {
    width: 100%;
    height: 100dvh;
    max-height: none;
  }

  .esv-whatsapp-sticky {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    width: 44px;
    height: 44px;
  }

  .esv-whatsapp-label {
    display: none;
  }

  .esv-footer {
    padding-block: 36px 20px;
  }

  .esv-footer-main {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px 24px;
    align-items: start;
  }

  .esv-footer-wordmark {
    grid-column: 1;
    width: min(190px, 48vw);
  }

  .esv-footer-contact {
    grid-column: 2;
    align-items: flex-end;
    text-align: right;
  }

  .esv-footer-statement,
  .esv-footer-main > p {
    grid-column: 1 / -1;
    max-width: 24ch;
    margin-top: 4px;
  }

  .esv-footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 18px;
    margin-top: 28px;
    padding-top: 12px;
  }

  .esv-footer-bottom nav {
    grid-column: 1 / -1;
    order: -1;
    gap: 18px;
  }

  .esv-footer-bottom > span:last-child {
    justify-self: end;
  }
}

@media (max-width: 379px) {
  .esv-search-trigger {
    display: none;
  }


}

@media (max-width: 520px) {
  .esv-footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .esv-footer-wordmark,
  .esv-footer-contact,
  .esv-footer-statement,
  .esv-footer-main > p {
    grid-column: 1;
  }

  .esv-footer-wordmark {
    width: min(180px, 58vw);
  }

  .esv-footer-contact {
    align-items: flex-start;
    text-align: left;
  }

  .esv-footer-bottom {
    grid-template-columns: minmax(0, 1fr);
  }

  .esv-footer-bottom nav,
  .esv-footer-bottom > span:last-child {
    grid-column: 1;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .esv-header,
  .esv-header-overlay,
  .esv-header-panel,
  .esv-whatsapp-sticky {
    transition: none;
    animation: none;
  }
}
