/* D'LORENS — shop-partials.css 

(Header / Nav + Scrollbar) */

/* =========================
   Scroll progress bar
   ========================= */
.scrollbar{
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  z-index: 9999;
  background: rgba(0,0,0,.06);
}
.scrollbar span{
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
}

/* =========================
   Header / Nav
   ========================= */
.header{
  position: fixed;
  inset: 0 0 auto 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10,10,10,.20);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(10px);
  transition:
    background .35s var(--ease),
    box-shadow .35s var(--ease),
    border-color .35s var(--ease);
}
.header__inner{
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Scrolled state */
.header.is-scrolled{
  background: rgba(250,248,244,.92);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

/* Brand */
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}
.brand__logo{
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 14px;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.22));
  transition: transform .2s var(--ease), filter .2s var(--ease);
}
.brand__name{
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 700;
  line-height: .92;
  letter-spacing: 0;
  white-space: nowrap;
  color: rgba(255,255,255,.96);
  text-shadow: 0 12px 24px rgba(0,0,0,.44);
  transition: color .2s var(--ease), text-shadow .2s var(--ease);
}
.brand:hover .brand__logo{
  transform: translateY(-1px);
  filter: drop-shadow(0 14px 22px rgba(0,0,0,.22));
}
.header.is-scrolled .brand__name{
  color: rgba(29,29,29,.9);
  text-shadow: none;
}

/* Nav */
.nav{ position: relative; }

.nav__toggle{
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition:
    transform .15s var(--ease),
    background .2s var(--ease),
    border-color .2s var(--ease);
}
.nav__toggle:hover{ transform: translateY(-1px); }
.nav__toggle span{
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  opacity: .92;
}

/* Toggle colors by header state */
.header:not(.is-scrolled) .nav__toggle{
  background: rgba(0,0,0,.26);
  border: 1px solid rgba(255,255,255,.22);
}
.header:not(.is-scrolled) .nav__toggle span{ background: rgba(255,255,255,.92); }

.header.is-scrolled .nav__toggle{
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
}
.header.is-scrolled .nav__toggle span{ background: rgba(29,29,29,.86); }

.nav__panel{
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav__link{
  position: relative;
  padding: 10px 8px;
  font-weight: 600;
  transition: color .2s var(--ease);
}
.nav__link::after{
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 6px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,139,77,.95), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s var(--ease);
}
.nav__link:hover::after{ transform: scaleX(1); }

/* Link colors by header state */
.header:not(.is-scrolled) .nav__link{
  color: rgba(255,255,255,.92);
  text-shadow: 0 10px 24px rgba(0,0,0,.55);
}
.header:not(.is-scrolled) .nav__link:hover{ color: #fff; }

.header.is-scrolled .nav__link{
  color: rgba(29,29,29,.86);
  text-shadow: none;
}
.header.is-scrolled .nav__link:hover{ color: var(--ink); }

/* CTA link */
.nav__link--cta{
  padding: 10px 14px;
  border-radius: 999px;
}
.header:not(.is-scrolled) .nav__link--cta{
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(201,139,77,.22);
}
.header.is-scrolled .nav__link--cta{
  border: 1px solid rgba(139,90,43,.28);
  background: rgba(201,139,77,.14);
}

/* Mobile Nav */
@media (max-width: 720px){
  .header{
    background: rgba(12,12,12,.86);
    backdrop-filter: none;
  }
  .header__inner{ height: 78px; }
  .brand__logo{
    width: 54px;
    height: 54px;
  }
  .brand{
    min-width: 150px;
    gap: 8px;
  }
  .brand__name{
    font-size: 26px;
  }
  .nav__toggle{ display: inline-flex; }

  .nav__panel{
    position: fixed;
    top: 78px;
    left: 12px;
    right: 12px;
    width: auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-radius: 18px;
    overflow: hidden;
    padding: 8px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    box-shadow: 0 18px 40px rgba(0,0,0,.14);
    z-index: 2000; /* asegura que quede por encima del hero */
  }

  .nav__panel.is-open{
    display: flex;
    animation: pop .18s var(--ease) both;
  }

  .nav__link{
    padding: 12px 12px;
    border-radius: 14px;
  }
  .nav__link::after{ display: none; }
  .nav__link--cta{ text-align: center; }

  /* Panel colors by header state */
  .header:not(.is-scrolled) .nav__panel{
    background: rgba(16,16,16,.92);
    border: 1px solid rgba(255,255,255,.14);
  }
  .header:not(.is-scrolled) .nav__panel .nav__link{
    color: rgba(255,255,255,.92);
    text-shadow: none;
  }
  .header:not(.is-scrolled) .nav__panel .nav__link--cta{
    border-color: rgba(255,255,255,.18);
    background: rgba(201,139,77,.22);
  }

  .header.is-scrolled .nav__panel{
    background: rgba(255,255,255,.94);
    border: 1px solid var(--line);
  }
  .header.is-scrolled .nav__panel .nav__link{
    color: rgba(29,29,29,.88);
  }
}


/* (Footer + Modals) */

/* =========================
   Footer
   ========================= */
.footer{
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.75));
  border-top: 1px solid var(--line);
  padding: 52px 0 24px;
}
.footer__grid{
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) repeat(3, minmax(120px, .72fr)) minmax(220px, 1.15fr);
  gap: clamp(22px, 3vw, 44px);
}
.footer__brand{
  display: flex;
  gap: 12px;
  align-items: center;
}
.footer__brand img{
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 14px;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.12));
}
.footer__name{
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  letter-spacing: .2px;
}
.footer__tag{
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  margin-top: 2px;
}
.footer__h{
  font-weight: 900;
  letter-spacing: .2px;
  margin-bottom: 10px;
}
.footer__a{
  display: block;
  color: rgba(29,29,29,.86);
  padding: 6px 0;
  font-weight: 700;
  font-size: 13px;
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.footer__a:hover{
  color: var(--brand);
  transform: translateX(2px);
}
.footer__p{
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 600;
  font-size: 13px;
}
.footer__bottom{
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(29,29,29,.78);
  font-weight: 700;
  font-size: 13px;
}

/* Social */
.social{
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.social__btn{
  width: 42px;
  height: 42px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.70);
  cursor: pointer;
  font-weight: 900;
  display: inline-flex;            /* unificado (antes estaba repetido) */
  align-items: center;
  justify-content: center;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.social__btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(0,0,0,.08);
}

/* =========================
   Modal (Gallery)
   ========================= */
.modal{
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal.show{ display: flex; }

.modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(10px);
  animation: fadeIn .25s var(--ease) both;
}
.modal__panel{
  position: relative;
  width: min(92vw, 86vh);         /* el panel se calcula por viewport */
  max-width: 760px;              /* límite opcional */
  aspect-ratio: 1 / 1;           /* CUADRADO */
  max-height: calc(100vh - 40px);
  background: rgba(20,20,20,.88);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  animation: pop .25s var(--ease) both;
}
.modal__close{
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.modal__media{
  position: relative;
  height: 100%;                  /* llena el panel cuadrado */
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.22);
}
.modal__media img{
  width: 100%;
  height: 100%;
  object-fit: contain;             /* recorta para 1:1 (si quieres sin recorte: contain) */
  transition: opacity .2s var(--ease);
}
.modal__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 64px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  cursor: pointer;
  font-size: 30px;
  display: grid;
  place-items: center;
  transition: transform .18s var(--ease), background .18s var(--ease);
  z-index: 2;
}
.modal__nav:hover{
  transform: translateY(-50%) scale(1.03);
  background: rgba(255,255,255,.16);
}
.modal__nav--prev{ left: 12px; }
.modal__nav--next{ right: 12px; }

.modal__meta{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  border-top: 0;
  color: rgba(255,255,255,.84);
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0));
}
.modal__label{
  font-weight: 900;
  letter-spacing: .2px;
}
.modal__hint{
  color: rgba(255,255,255,.66);
  font-weight: 700;
  font-size: 12px;
}

/* =========================
   Sheet (Contact)
   ========================= */
.sheet{
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.sheet.show{ display: flex; }

.sheet__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.40);
  backdrop-filter: blur(10px);
  animation: fadeIn .25s var(--ease) both;
}
.sheet__panel{
  position: relative;
  width: min(820px, 100%);
  max-height: min(92vh, 760px);
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.22);
  animation: slideUp .28s var(--ease) both;
}
.sheet__head{
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(201,139,77,.10), rgba(255,255,255,.88));
}
.sheet__t{
  font-weight: 900;
  letter-spacing: .2px;
  font-size: 18px;
}
.sheet__d{
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  margin-top: 2px;
}
.sheet__x{
  width: 42px;
  height: 42px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.72);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

/* Form */
.form{ padding: 16px 16px 18px; }
.sheet__panel .form{
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
}
.sheet__panel .pQuoteProgress{
  padding: 0 16px 6px;
  margin: 0;
}
.sheet__panel .field span{
  font-size: 13px;
}
.sheet__panel .field input,
.sheet__panel .field select,
.sheet__panel .field textarea{
  font-size: 15px;
}
.form__row{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.field{
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.field span{
  font-weight: 900;
  font-size: 12px;
  color: rgba(29,29,29,.82);
}
.field input,
.field select,
.field textarea{
  border: 1px solid rgba(22,18,15,.16);
  background: rgba(255,255,255,.85);
  padding: 12px;
  border-radius: 16px;
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus{
  border-color: rgba(139,90,43,.45);
  box-shadow: 0 0 0 4px rgba(201,139,77,.18);
}
.form__actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* =========================
   WhatsApp flotante
   ========================= */
.waFloat{
  position: fixed;
  right: calc(20px + env(safe-area-inset-right));
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 1900;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}
.waFloat__bubble{
  max-width: min(220px, calc(100vw - 108px));
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(22,18,15,.10);
  background: rgba(255,255,255,.94);
  color: rgba(29,29,29,.86);
  box-shadow: 0 14px 34px rgba(0,0,0,.14);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
  animation: waHelpPop .42s var(--ease) both .45s;
}
.waFloat__button{
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 18px 38px rgba(18,140,126,.34);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.waFloat__button svg{
  width: 31px;
  height: 31px;
}
.waFloat:hover .waFloat__button{
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 22px 46px rgba(18,140,126,.42);
}
.waFloat:focus-visible{
  outline: none;
}
.waFloat:focus-visible .waFloat__button{
  box-shadow: 0 0 0 4px rgba(37,211,102,.22), 0 18px 38px rgba(18,140,126,.34);
}

@keyframes waHelpPop{
  from{ opacity: 0; transform: translateX(8px) scale(.96); }
  to{ opacity: 1; transform: translateX(0) scale(1); }
}

@media (max-width: 640px){
  .sheet{
    padding: 12px;
  }
  .sheet__panel{
    max-height: calc(100vh - 24px);
  }
  .sheet__head{
    padding: 12px 14px;
  }
  .sheet__t{
    font-size: 16px;
  }
  .sheet__d{
    font-size: 13px;
  }
  .sheet__panel .form{
    padding: 12px 14px 16px;
  }
  .form__row{
    grid-template-columns: minmax(0, 1fr);
  }
  .form__actions{
    justify-content: stretch;
  }
  .form__actions .btn{
    flex: 1 1 auto;
  }
  .waFloat{
    right: calc(14px + env(safe-area-inset-right));
    bottom: calc(14px + env(safe-area-inset-bottom));
  }
  .waFloat__bubble{
    display: none;
  }
  .waFloat__button{
    width: 54px;
    height: 54px;
  }
}

/* =========================
   Footer Modals (FB / IG / TT / GM)
   - Unifica estilos compartidos con .m-modal*
   ========================= */

/* Common modal overlay pattern */
.m-modal{
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0,0,0,.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.m-modal.open{
  opacity: 1;
  pointer-events: auto;
}
.m-modal__backdrop{
  position: absolute;
  inset: 0;
}
.m-modal__panel{
  position: relative;
  z-index: 1;
  background: var(--card, #fff);
  color: var(--ink, #111);
  border: 1px solid var(--line, rgba(0,0,0,.10));
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
}
.m-modal__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line, rgba(0,0,0,.10));
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.6));
}
.m-modal__head h3{
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.icon-btn{
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0,0,0,.15);
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
}

/* Facebook */
.modal-fb{ z-index: 12000; }
.modal-fb{ composes: m-modal; } /* (solo referencia conceptual; no CSS real) */
.modal-fb{
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0,0,0,.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.modal-fb.open{ opacity: 1; pointer-events: auto; }
.modal-fb .mf-backdrop{ position: absolute; inset: 0; }
.modal-fb .mf-panel{
  position: relative;
  z-index: 1;
  width: min(460px, calc(100vw - 32px));
  max-height: min(82vh, 760px);
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
}
.modal-fb .mf-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.6));
}
.modal-fb .mf-head h3{
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.modal-fb .icon-btn{ width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(0,0,0,.15); background: transparent; border-radius: 8px; cursor: pointer; }
.modal-fb .mf-body{ padding: 0; display: flex; justify-content: center; }
.modal-fb .mf-body iframe{
  width: min(420px, 100%);
  height: min(660px, 70vh);
  border: 0;
  display: block;
  background: #fff;
}

/* Instagram */
.modal-ig{
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0,0,0,.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.modal-ig.open{ opacity: 1; pointer-events: auto; }
.modal-ig .mi-backdrop{ position: absolute; inset: 0; }
.modal-ig .mi-panel{
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 32px));
  max-height: min(82vh, 780px);
  background: var(--card, #fff);
  color: var(--ink, #111);
  border: 1px solid var(--line, rgba(0,0,0,.10));
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
}
.modal-ig .mi-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line, rgba(0,0,0,.10));
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.6));
}
.modal-ig .mi-head h3{ margin: 0; font-size: 16px; font-weight: 700; }
.modal-ig .icon-btn{ width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(0,0,0,.15); background: transparent; border-radius: 8px; cursor: pointer; }

.modal-ig .mi-body{
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.modal-ig .mi-body iframe{
  width: 100%;
  height: min(560px, 70vh);
  border: 0;
  display: block;
  background: #fff;
}
/* Instagram embed width fixes */
.modal-ig .mi-body :where(blockquote, .instagram-media, .ig-embed){
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}
.modal-ig .mi-fallback{
  margin: 10px 16px 14px;
  font-size: 13px;
  opacity: .85;
  text-align: center;
}

/* TikTok */
.modal-tt{
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0,0,0,.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.modal-tt.open{ opacity: 1; pointer-events: auto; }
.modal-tt .mt-backdrop{ position: absolute; inset: 0; }
.modal-tt .mt-panel{
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 32px));
  max-height: min(82vh, 780px);
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
}
.modal-tt .mt-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.6));
}
.modal-tt .mt-head h3{ margin: 0; font-size: 16px; font-weight: 700; }
.modal-tt .icon-btn{ width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(0,0,0,.15); background: transparent; border-radius: 8px; cursor: pointer; }

.modal-tt .mt-body{
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.modal-tt .mt-body iframe{
  width: 100%;
  height: min(560px, 70vh);
  border: 0;
  display: block;
  background: #fff;
}
.modal-tt .mt-fallback{
  margin: 10px 16px 14px;
  font-size: 13px;
  opacity: .85;
  text-align: center;
}

/* Google Maps (panel tipo TikTok) */
.modal-gm{
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  padding: 24px 16px;
}
.modal-gm.open{
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-gm .mi-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}
.modal-gm .mi-panel{
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: 86vh;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  display: flex;
  flex-direction: column;
}
.modal-gm .mi-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.modal-gm .mi-head h3{
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.modal-gm .icon-btn{
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0,0,0,.15);
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
}
.modal-gm .mi-body{
  flex: 1;
  overflow: auto;
}
.modal-gm .gm-map{ padding: 16px; }
.modal-gm .gm-map iframe{
  width: 100%;
  height: 420px;
  display: block;
  border: 0;
  border-radius: 12px;
}
.modal-gm .gm-actions{
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,.08);
  padding: 12px 16px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

/* Optional helper when any modal open */
html.has-modal{ overflow: hidden; }

/* =========================
   Footer / Modals — Responsive
   ========================= */
@media (max-width: 1100px){
  .footer__grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px){
  .footer__grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px){
  .footer__grid{ grid-template-columns: 1fr; }
}
@media (max-width: 480px){
  .modal-gm{ padding: 14px 10px; }
  .modal-gm .gm-map iframe{ height: 360px; }
}

/* =========================
   Shop cart drawer
   ========================= */
.header__actions{
  display: flex;
  align-items: center;
  gap: 16px;
}

.shop-user-menu{
  position: relative;
}

.shop-user-button{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255,255,255,.16);
  font-weight: 600;
  cursor: pointer;
  transition: transform .18s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}

.shop-user-button:hover{ transform: translateY(-1px); }
.shop-user-button__icon,
.shop-cart-toggle__icon{
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}
.shop-user-button__icon svg,
.shop-cart-toggle__icon svg{
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shop-user-menu > summary{ list-style: none; }
.shop-user-menu > summary::-webkit-details-marker{ display: none; }

.shop-user-dropdown{
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 190px;
  padding: 12px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.12);
  box-shadow: 0 16px 32px rgba(15,23,42,.16);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  z-index: 25;
}

.shop-user-menu[open] .shop-user-dropdown{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.shop-user-dropdown__name{
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}

.shop-user-dropdown__link,
.shop-user-dropdown__logout{
  display: flex;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
}

.shop-user-dropdown__link:hover,
.shop-user-dropdown__logout:hover{
  background: rgba(139,90,43,.1);
  border-color: rgba(139,90,43,.2);
}

.shop-user-dropdown__form{
  margin-top: 6px;
}

.shop-cart-toggle{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255,255,255,.16);
  font-weight: 600;
  transition: transform .18s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.shop-cart-toggle:hover{ transform: translateY(-1px); }
.shop-cart-toggle__count{
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.header:not(.is-scrolled) .shop-cart-toggle{
  color: #fff;
  border-color: rgba(255,255,255,.24);
}

.header:not(.is-scrolled) .shop-user-button{
  color: #fff;
  border-color: rgba(255,255,255,.24);
}

.header.is-scrolled .shop-cart-toggle{
  background: rgba(255,255,255,.88);
  border-color: var(--line);
  color: #1f2937;
}

.header.is-scrolled .shop-user-button{
  background: rgba(255,255,255,.88);
  border-color: var(--line);
  color: #1f2937;
}

.shop-cart-overlay{
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease);
  z-index: 1900;
}
.shop-cart-overlay.is-active{
  opacity: 1;
  pointer-events: auto;
}

.shop-cart-drawer{
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100vh;
  height: 100dvh;
  background: #fff;
  box-shadow: -20px 0 50px rgba(15,23,42,.2);
  transform: translateX(105%);
  transition: transform .3s var(--ease);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.shop-cart-drawer.is-open{ transform: translateX(0); }

.shop-cart-drawer__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 22px 12px;
  border-bottom: 1px solid rgba(15,23,42,.08);
}
.shop-cart-drawer__eyebrow{
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: rgba(15,23,42,.6);
  margin-bottom: 6px;
  font-weight: 600;
}
.shop-cart-drawer__title{
  font-size: 22px;
  margin: 0 0 4px;
  font-weight: 700;
}
.shop-cart-drawer__copy{
  font-size: 13px;
  color: rgba(15,23,42,.6);
}
.shop-cart-drawer__close{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.12);
  background: #fff;
  font-size: 20px;
  line-height: 1;
}

.shop-cart-progress{
  padding: 0 22px 12px;
}
.shop-cart-progress__bar{
  width: 100%;
  height: 6px;
  background: rgba(15,23,42,.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}
.shop-cart-progress__bar span{
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0f3b24, #0c6a3f);
  transition: width .25s var(--ease);
}
.shop-cart-progress__copy{
  font-size: 13px;
  color: rgba(15,23,42,.7);
}

.shop-cart-drawer__content{
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.shop-cart-items{
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.shop-cart-item{
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
}
.shop-cart-item__thumb{
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: rgba(15,23,42,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.shop-cart-item__thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shop-cart-item__title{
  font-weight: 600;
  font-size: 14px;
}
.shop-cart-item__meta{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  gap: 8px;
  flex-wrap: wrap;
}
.shop-cart-item__price{
  font-weight: 600;
  font-size: 13px;
  margin-left: auto;
}
.shop-cart-item__qty{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(15,23,42,.14);
  border-radius: 999px;
  padding: 2px 8px;
}
.shop-cart-item__qty button{
  background: transparent;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-weight: 700;
}
.shop-cart-item__remove{
  border: 1px solid rgba(15,23,42,.14);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  background: #fff;
}

.shop-cart-empty{
  text-align: center;
  padding: 32px 12px;
  color: rgba(15,23,42,.6);
}
.shop-cart-empty__icon{
  font-size: 32px;
  margin-bottom: 12px;
}

.shop-cart-drawer__footer{
  padding: 18px 22px 24px;
  border-top: 1px solid rgba(15,23,42,.08);
  display: grid;
  gap: 16px;
  background: #fff;
}
.shop-cart-totals{
  display: grid;
  gap: 8px;
  font-size: 14px;
}
.shop-cart-totals__row{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.shop-cart-totals__row.is-total{
  font-size: 16px;
  font-weight: 700;
}
.shop-cart-coupon{
  display: grid;
  gap: 8px;
  background: #f8f5f2;
  border-radius: 16px;
  padding: 12px;
}
.shop-cart-coupon__label{
  font-size: 13px;
  font-weight: 600;
}
.shop-cart-coupon__row{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.shop-cart-coupon__row input{
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.18);
  padding: 8px 12px;
  font-size: 13px;
  background: #fff;
}
.shop-cart-coupon__row button{
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.16);
  background: #fff;
  font-weight: 600;
  padding: 8px 12px;
  font-size: 13px;
}
.shop-cart-coupon__clear{
  border: none;
  background: transparent;
  color: #7a4a2b;
  font-size: 12px;
  text-align: left;
}
.shop-cart-coupon__status{
  font-size: 12px;
  color: rgba(15,23,42,.7);
}
.shop-cart-drawer__cta{
  width: 100%;
  border-radius: 999px;
  padding: 10px 16px;
  border: 1px solid rgba(15,23,42,.16);
  background: #fff;
  font-weight: 600;
}
.shop-cart-drawer__cta--primary{
  background: #7a4a2b;
  color: #fff;
  border-color: #7a4a2b;
  width: 100%;
  text-align: center;
}
.shop-cart-drawer__cta--primary:hover,
.shop-cart-drawer__cta--primary:focus{
  background: #5f361f;
  border-color: #5f361f;
}

body.is-cart-open{
  overflow: hidden;
}

@media (max-width: 720px){
  .header__actions{ gap: 7px; }
  .shop-user-button,
  .shop-cart-toggle{
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 8px 10px;
  }
  .shop-cart-toggle__label{ display: none; }
  .shop-user-button__label{ display: none; }
  .shop-cart-drawer{
    width: 100vw;
  }
  .shop-cart-drawer__header,
  .shop-cart-progress,
  .shop-cart-items,
  .shop-cart-drawer__footer{
    padding-left: 16px;
    padding-right: 16px;
  }
  .shop-cart-drawer__copy{
    max-width: 27ch;
  }
  .shop-cart-item{
    grid-template-columns: 56px 1fr;
    gap: 10px;
  }
  .shop-cart-item__thumb{
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }
  .shop-cart-item__meta{
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
  }
  .shop-cart-item__qty{
    width: fit-content;
  }
  .shop-cart-item__price{
    margin-left: 0;
    justify-self: end;
  }
  .shop-cart-item__remove{
    grid-column: 1 / -1;
    justify-self: start;
  }
  .shop-cart-coupon__row{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px){
  .brand{
    min-width: 112px;
    gap: 6px;
  }
  .brand__logo{
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }
  .brand__name{
    font-size: 20px;
  }
}
