/* =============================================
   CANDLE WAVES — SHOP PAGE STYLES
   ============================================= */

/* Hero pills */
.shop-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.shop-pill {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tiffany);
  border: 1px solid rgba(10,186,181,0.35);
  padding: 6px 14px;
  border-radius: 20px;
}

/* ---- Cart Icon Button (fixed) ---- */
.cart-icon-btn {
  position: fixed;
  top: 50%;
  right: 80px;
  transform: translateY(-50%);
  z-index: 1050;
  background: var(--tiffany);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(10,186,181,0.35);
  transition: background 0.25s ease, transform 0.2s ease;
}

.cart-icon-btn:hover {
  background: var(--tiffany-dark);
  transform: scale(1.08);
}

.cart-icon-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--tiffany);
}

/* ---- Cart Overlay ---- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,5,12,0.55);
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  backdrop-filter: blur(2px);
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ---- Cart Drawer ---- */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 92vw);
  height: 100vh;
  background: var(--white);
  z-index: 1300;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.18);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 20px;
  border-bottom: 1px solid rgba(10,186,181,0.12);
  flex-shrink: 0;
}

.cart-drawer__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.01em;
}

.cart-drawer__close {
  background: var(--cream);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.cart-drawer__close:hover { background: rgba(10,186,181,0.15); }

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0;
}

.cart-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-mid);
}

.cart-empty span { font-size: 2.5rem; display: block; margin-bottom: 14px; }
.cart-empty p { font-size: 0.95rem; margin-bottom: 6px; }

/* ---- Cart Item ---- */
.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(10,186,181,0.08);
}

.cart-item__img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.cart-item__info {
  flex: 1;
  min-width: 0;
}

.cart-item__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text);
}

.cart-item__sub {
  display: block;
  font-size: 0.7rem;
  color: var(--text-light);
  margin-bottom: 8px;
  letter-spacing: 0.06em;
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-qty-btn {
  background: var(--cream);
  border: 1px solid rgba(10,186,181,0.2);
  width: 26px;
  height: 26px;
  border-radius: 4px;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.cart-qty-btn:hover { background: rgba(10,186,181,0.1); }

.cart-item__qty span {
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 20px;
  text-align: center;
}

.cart-item__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.cart-item__price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--tiffany);
}

.cart-item__remove {
  background: none;
  border: none;
  font-size: 0.7rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.2s;
}

.cart-item__remove:hover { color: #c0392b; }

/* ---- Cart Footer ---- */
.cart-drawer__foot {
  padding: 20px 24px 28px;
  border-top: 1px solid rgba(10,186,181,0.12);
  flex-shrink: 0;
  background: var(--warm-white);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 1rem;
  color: var(--text);
}

.cart-total-row strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--tiffany);
}

.cart-shipping-note {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.cart-checkout-btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 10px;
}

.cart-clear-btn {
  background: none;
  border: none;
  width: 100%;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  cursor: pointer;
  padding: 6px;
  transition: color 0.2s;
}

.cart-clear-btn:hover { color: #c0392b; }

/* ---- Filter Bar ---- */
.store-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}

.store-filter__btn {
  background: transparent;
  border: 1px solid rgba(10,186,181,0.2);
  padding: 9px 20px;
  border-radius: 24px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.25s ease;
}

.store-filter__btn:hover {
  border-color: var(--tiffany);
  color: var(--tiffany);
}

.store-filter__btn.active {
  background: var(--tiffany);
  border-color: var(--tiffany);
  color: var(--white);
}

/* ---- Product Grid ---- */
.store-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ---- Product Card ---- */
.store-card {
  background: var(--white);
  border: 1px solid rgba(10,186,181,0.1);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.store-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(10,186,181,0.12);
  border-color: rgba(10,186,181,0.3);
}

.store-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--tiffany);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
  z-index: 2;
}

.store-card__img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--cream);
}

.store-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.store-card:hover .store-card__img { transform: scale(1.06); }

.store-card__quick-view {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(10,186,181,0.92);
  color: var(--white);
  text-align: center;
  padding: 12px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.store-card:hover .store-card__quick-view { transform: translateY(0); }

.store-card__body {
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.store-card__tag {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tiffany);
}

.store-card__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.store-card__tagline {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 300;
  line-height: 1.5;
  font-style: italic;
}

.store-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(10,186,181,0.1);
}

.store-card__size {
  font-size: 0.7rem;
  color: var(--text-light);
  letter-spacing: 0.06em;
}

.store-card__price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--tiffany);
}

.store-card__btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  font-size: 0.72rem;
  padding: 13px;
}

/* ---- Modal ---- */
.store-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,5,12,0.75);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  backdrop-filter: blur(4px);
}

.store-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.store-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.97);
  z-index: 1200;
  width: min(920px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.store-modal.active {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.store-modal__inner { padding: 0; position: relative; }

.store-modal__close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--cream);
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.store-modal__close:hover { background: rgba(10,186,181,0.15); }

.store-modal__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.store-modal__img-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--cream);
  border-radius: 8px 0 0 8px;
}

.store-modal__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.store-modal__info {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.store-modal__name {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.store-modal__scent {
  font-size: 0.82rem;
  color: var(--text-mid);
  font-style: italic;
  line-height: 1.5;
}

.store-modal__meta {
  font-size: 0.7rem;
  color: var(--text-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(10,186,181,0.12);
}

.store-modal__desc {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.85;
}

.store-modal__desc p { margin-bottom: 10px; }

.store-modal__desc ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.store-modal__desc ul li::before {
  content: '✦ ';
  color: var(--tiffany);
  font-size: 0.65rem;
}

.store-modal__price-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid rgba(10,186,181,0.12);
}

.store-modal__price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--tiffany);
}

.store-modal__btn { flex: 1; justify-content: center; font-size: 0.72rem; }

.store-modal__shipping {
  font-size: 0.72rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* ---- Why Buy Strip ---- */
.store-why {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  text-align: center;
}

.store-why__item {
  padding: 20px 12px;
  background: var(--white);
  border: 1px solid rgba(10,186,181,0.1);
  border-radius: 6px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.store-why__item:hover {
  border-color: rgba(10,186,181,0.3);
  box-shadow: 0 4px 16px rgba(10,186,181,0.08);
}

.store-why__icon {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.store-why__item h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 6px;
}

.store-why__item p {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .store-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .store-why { grid-template-columns: repeat(3, 1fr); }
  /* center the last 2 items in row 2 */
  .store-why__item:nth-child(4) { grid-column: 1; }
  .store-why__item:nth-child(5) { grid-column: 2; }
}

@media (max-width: 768px) {
  .store-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .store-modal__layout { grid-template-columns: 1fr; }
  .store-modal__img-wrap { border-radius: 8px 8px 0 0; aspect-ratio: 4/3; }
  .store-modal__info { padding: 28px 24px; }
  /* 2x2 grid + 5th centered below */
  .store-why {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 440px;
    margin: 0 auto;
  }
  .store-why__item:nth-child(4) { grid-column: auto; }
  .store-why__item:nth-child(5) {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .store-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .store-card__body { padding: 14px 14px 16px; }
  .store-card__name { font-size: 1.2rem; }
  .store-card__btn { font-size: 0.65rem; padding: 11px; }
  .store-why { max-width: 100%; gap: 10px; }
  .store-why__item { padding: 16px 10px; }
  .store-why__item:nth-child(5) { max-width: 60%; }
  .store-modal { width: 96vw; }
  .store-modal__name { font-size: 1.8rem; }
}
