/* Essbé Boutique first-visit popup — shared include, do not inline per page */
.eb-pop{
  display:none;
  position:fixed;
  inset:0;
  z-index:10000;
  align-items:center;
  justify-content:center;
  padding:20px 16px;
  box-sizing:border-box;
}
.eb-pop.is-open{display:flex;}
.eb-pop *,.eb-pop *::before,.eb-pop *::after{box-sizing:border-box;}

.eb-pop__backdrop{
  position:absolute;
  inset:0;
  background:rgba(36,24,17,0.62);
  border:0;
  padding:0;
  margin:0;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}

.eb-pop__panel{
  position:relative;
  z-index:1;
  width:min(400px, calc(100vw - 32px));
  max-height:calc(100vh - 40px);
  display:flex;
  flex-direction:column;
  filter:drop-shadow(0 18px 40px rgba(0,0,0,0.35));
}

.eb-pop__banner{
  position:relative;
  z-index:2;
  background:#231816;
  color:#F3EEE5;
  text-align:center;
  padding:22px 44px 18px 20px;
  flex:0 0 auto;
}
.eb-pop.is-post-sale .eb-pop__banner{display:none;}

.eb-pop__banner-title{
  margin:0;
  font-family:'Cormorant Garamond', Georgia, serif;
  font-weight:400;
  font-size:clamp(17px, 4.4vw, 20px);
  line-height:1.28;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:#F3EEE5;
  font-variant-numeric:lining-nums;
  font-feature-settings:"lnum";
}
.eb-pop__banner-note{
  margin:8px 0 0;
  font-family:'Inter', system-ui, sans-serif;
  font-weight:400;
  font-size:11px;
  letter-spacing:0.04em;
  line-height:1.4;
  color:rgba(243,238,229,0.78);
}

.eb-pop__close{
  position:absolute;
  top:8px;
  right:8px;
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:0;
  background:transparent;
  color:#F3EEE5;
  cursor:pointer;
  padding:0;
  z-index:3;
  -webkit-tap-highlight-color:transparent;
}
.eb-pop__close-mark{
  display:flex;
  align-items:center;
  justify-content:center;
  width:26px;
  height:26px;
  border:1px solid rgba(243,238,229,0.7);
}
.eb-pop__close svg{
  display:block;
  width:12px;
  height:12px;
}
.eb-pop__close:focus-visible{
  outline:none;
}
.eb-pop__close:focus-visible .eb-pop__close-mark{
  border-color:#F3EEE5;
  box-shadow:0 0 0 1px #F3EEE5;
}
.eb-pop.is-post-sale .eb-pop__close{
  color:#fff;
  top:14px;
  right:14px;
  width:36px;
  height:36px;
}
.eb-pop.is-post-sale .eb-pop__close-mark{
  width:36px;
  height:36px;
  border:0;
  border-radius:50%;
  background:rgba(35,24,22,0.35);
}
.eb-pop.is-post-sale .eb-pop__close:focus-visible{
  outline-color:#fff;
  outline-offset:2px;
}

.eb-pop__card{
  position:relative;
  z-index:1;
  margin-top:-14px;
  overflow:hidden;
  background:#c4b6a8;
  flex:1 1 auto;
  min-height:0;
}
.eb-pop.is-post-sale .eb-pop__card{margin-top:0;}

.eb-pop__photo{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:1400 / 1251;
  max-height:min(520px, calc(100vh - 210px));
  object-fit:cover;
  object-position:center 30%;
}
.eb-pop.is-post-sale .eb-pop__photo{
  max-height:min(560px, calc(100vh - 80px));
}

.eb-pop__shade{
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg, rgba(54,54,54,0.06) 0%, rgba(4,4,4,0.42) 100%);
}

.eb-pop__inset{
  position:absolute;
  inset:14px;
  border:1px solid rgba(255,255,255,0.92);
  pointer-events:none;
}

.eb-pop__copy{
  position:absolute;
  left:28px;
  right:28px;
  bottom:36px;
  text-align:center;
  color:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
}

.eb-pop__eyebrow{
  margin:0 0 10px;
  font-family:'Cormorant Garamond', Georgia, serif;
  font-weight:400;
  font-size:11px;
  letter-spacing:0.28em;
  text-transform:uppercase;
  color:#fff;
}

.eb-pop__headline{
  margin:0 0 18px;
  font-family:'Cormorant Garamond', Georgia, serif;
  font-weight:400;
  font-size:clamp(28px, 8vw, 40px);
  line-height:1.05;
  letter-spacing:0.02em;
  text-transform:uppercase;
  color:#fff;
}

.eb-pop__cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 26px;
  background:#fff;
  color:#000;
  font-family:'Inter', system-ui, sans-serif;
  font-weight:500;
  font-size:11px;
  letter-spacing:0.22em;
  text-transform:uppercase;
  text-decoration:none;
  border:1px solid #fff;
  line-height:1;
}
.eb-pop__cta:hover{background:#F3EEE5; border-color:#F3EEE5;}
.eb-pop__cta:focus-visible{
  outline:2px solid #fff;
  outline-offset:3px;
}

body.eb-pop-open{overflow:hidden;}

@media (max-width:400px){
  .eb-pop{padding:16px 12px;}
  .eb-pop__panel{width:min(400px, calc(100vw - 24px));}
  .eb-pop__banner{padding:18px 42px 16px 16px;}
  .eb-pop__copy{left:22px; right:22px; bottom:28px;}
  .eb-pop__inset{inset:12px;}
  .eb-pop__photo{max-height:min(460px, calc(100vh - 200px));}
}

@media (prefers-reduced-motion:no-preference){
  .eb-pop.is-open .eb-pop__backdrop{animation:eb-pop-fade .28s ease both;}
  .eb-pop.is-open .eb-pop__panel{animation:eb-pop-rise .32s ease both;}
}
@keyframes eb-pop-fade{from{opacity:0}to{opacity:1}}
@keyframes eb-pop-rise{from{opacity:0; transform:translateY(10px)}to{opacity:1; transform:none}}
