/* ── Overlay backdrop ── */
.store-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.store-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ── Drawer panel ── */
.store-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 450px;
  height: 100%;
  background: #fff;
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.store-drawer.active {
  transform: translateX(0);
}

/* ── Close button ── */
.store-drawer__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding: 0;
}

.store-drawer__close svg {
  width: 24px;
  height: 24px;
  stroke: #1a1a1a;
  stroke-width: 2;
}

/* ── Header / content area ── */
.store-drawer__header {
  padding: 52px 28px 16px;
  flex-shrink: 0;
}

/* ── Title ── */
.store-drawer__title {
  font-style: italic;
  font-weight: 600;
  font-size: 30px;
  color: #1D1D1F;
  text-align: center;
  margin-bottom: 19px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-family: "Playfair Display", serif;
  margin-top: 10px;
}

/* ── Search box ── */
.store-search {
  position: relative;
  margin-bottom: 10px;
}

.store-search__icon {
  position: absolute;
  left: 21px;
  top: 29px;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  stroke: #111;
  stroke-width: 2;
  pointer-events: none;
}

.store-search__input {
  width: 100%;
  height: 60px;
  padding: 0 48px 0 50px;
  border: 1.5px solid #C1C1C1;
  border-radius: 30px;
  font-size: 16px;
  line-height: 24px;
  line-height: 24px;
  color: #000000;
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
  font-family: Archivo;
  box-sizing: border-box;
}

.store-search__input::placeholder {
  color: #676767;
}

.store-search__input:focus {
  border-color: #C1C1C1;
}

.store-search__clear {
  position: absolute;
  right: 16px;
  top: 26px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  border: 1px solid #8C8E90;
}

.store-search__clear.visible {
  display: flex;
}

.store-search__clear svg {
  width: 9px;
  height: 9px;
  stroke: #8C8E90;
  stroke-width: 2.5;
}

/* ── Use my location ── */
.store-location {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 4px 4px 0;
  margin-top: 5px;
}

.store-location__btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #000000;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
  line-height: 100%;
  font-family: Archivo;
  font-weight: 600;
  text-underline-offset: 2px;
  text-decoration-color: rgba(26, 26, 26, 0.4);
}

.store-location__btn svg {
  fill: none;
  stroke: #1a1a1a;
  stroke-width: 1.5;
}

/* ── Suggestions list ── */
.store-suggestions {
  list-style: none;
  background: #fff;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 51px;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  border: none;
  border-radius: 0 0 30px 30px;
  z-index: 10;
}

.store-suggestions.open {
  max-height: 300px;
  overflow-y: auto;
  padding: 0;
  border-style: solid;
  border-width: 0 1.5px 1.5px 1.5px;
  border-color: #ddd;
  padding-bottom: 5px;
}

/* When suggestions are open, flatten input bottom and match border */
.store-search.open .store-search__input {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
  border-color: #C1C1C1;
}

.store-search__input::placeholder {
  font-size: 16px;
}

.store-search.open .store-suggestions {
  border-color: #C1C1C1;
}

.store-suggestions__item {
  padding: 5px 50px;
  font-size: 12px;
  font-weight: 400;
  color: #000000;
  cursor: pointer;
  line-height: 30px;
  font-family: Archivo;
}

.store-suggestions__item:hover,
.store-suggestions__item:focus {
  color: #C1C1C1;
  outline: none;
}

.store-suggestions__item strong {
  font-weight: 700;
  color: #1a1a1a;
}

/* ── Scrollable middle area ── */
.store-drawer__body {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 20px 25px;

}

/* ── Bottom promo image ── */
.store-promo {
  margin-top: auto;
  position: relative;
  flex-shrink: 0;
  height: 422px;
  overflow: hidden;
}

.store-promo__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  height: 422px;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.store-promo__img:hover {
  transform: scale(1.1);
}
.store-promo__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 24px 28px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0) 100%);
  color: #fff;
  border-radius: 0 0 10px 10px;
}

.store-promo__title {
   font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 28px;
  font-weight: 400;
  line-height: 101%;
  margin-bottom: 6px;
}

.store-promo__sub {
  font-size: 16px;
  opacity: 1;
  font-family: Archivo;
  letter-spacing: 0.02em;
  font-weight: 300;
  line-height: 101%;
}

/* ── Mobile full-width ── */
@media (max-width: 480px) {
  .store-drawer {
    max-width: 100%;
  }

  .store-drawer__header {
    padding: 52px 20px 16px;
  }

  .store-suggestions {
    padding: 0 20px;
  }
}