/* SLOWWW — Tea Site (pre-launch) */

:root {
  --ivory: #f2ede4;
  --ivory-soft: #f6f1e7;
  --ink: #2a2a24;
  --ink-soft: #4a4438;
  --taupe: #6b6455;
  --border: rgba(42, 42, 36, 0.14);
  --border-strong: rgba(42, 42, 36, 0.2);
  --accent: #c98a4b;
  --accent-dark: #a86f38;
  --sage: #3e4a35;
  --rust: #6b4226;
  --error: #a0522d;
  --gold: #e9c48f;
  --serif: 'Newsreader', serif;
  --sans: 'Work Sans', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--ivory);
}

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
::selection { background: var(--sage); color: var(--ivory); }

button { font-family: var(--sans); }

img { max-width: 100%; display: block; }

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  background: rgba(242, 237, 228, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(42, 42, 36, 0.12);
}

.site-nav__logo {
  width: 140px;
  height: auto;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.2s;
}
.site-nav__logo:hover { opacity: 0.6; }

.site-nav__links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.site-nav__link {
  font-size: 13px;
  letter-spacing: 0.14em;
  font-weight: 500;
  cursor: pointer;
}

.site-nav__link--dark {
  color: var(--ink);
}

.site-nav__cart {
  position: relative;
}

.site-nav__badge {
  margin-left: 6px;
  color: var(--accent);
  display: inline-block;
}

@keyframes badgeBump {
  0% { transform: scale(1); }
  45% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.site-nav__badge--bump {
  animation: badgeBump 0.45s ease;
}

/* ---------- Back link (standardized across all non-home pages) ---------- */

.back-link {
  display: inline-block;
  font-size: 13px;
  color: var(--taupe);
  cursor: pointer;
  margin-bottom: 56px;
}

/* ---------- Shared page shell ---------- */

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 96px 48px 160px;
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  height: 88vh;
  min-height: 600px;
  overflow: hidden;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}
.hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20, 18, 12, 0.45), rgba(20, 18, 12, 0.1) 55%);
  pointer-events: none;
}

.hero__content {
  position: absolute;
  left: 0;
  right: 237px;
  bottom: 58px;
  padding: 0 48px 96px;
  max-width: 1120px;
  margin: 0 auto;
  pointer-events: none;
}

.hero__tag {
  font-size: 13px;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 300px;
  margin-right: 100px;
  text-align: left;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 88px;
  line-height: 1.05;
  margin: 0 0 44px;
  max-width: 780px;
  letter-spacing: -0.01em;
  color: var(--ivory-soft);
}

.hero__cta {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.14em;
  font-weight: 500;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 6px;
  cursor: pointer;
  color: var(--ivory-soft);
  pointer-events: auto;
}

.hero__dots {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(246, 241, 231, 0.4);
  cursor: pointer;
  border: none;
  padding: 0;
}
.dot.is-active { background: var(--ivory-soft); }

/* ---------- Find your pace (home) ---------- */

.pace {
  max-width: 1120px;
  margin: 0 auto;
  padding: 140px 48px 160px;
}

.pace__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
}

.pace__heading {
  font-family: var(--serif);
  font-size: 32px;
  margin-bottom: 56px;
}

.pace__cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pace-card {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.pace-card__tag {
  font-size: 12px;
  letter-spacing: 0.2em;
  font-weight: 600;
  margin-bottom: 14px;
}

.pace-card__name {
  font-family: var(--serif);
  font-size: 24px;
}

.pace__image {
  width: 100%;
  height: 380px;
  position: relative;
}
.pace__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  position: relative;
  top: 44px;
}

/* ---------- Collection ---------- */

.collection {
  max-width: 1120px;
  margin: 0 auto;
  padding: 96px 0 160px;
  overflow: hidden;
}

.collection__header {
  padding: 0 48px;
}

.collection__tag {
  font-size: 13px;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--rust);
  margin-bottom: 20px;
}

.collection__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 52px;
  margin: 0 0 56px;
}

.collection__track-wrap {
  position: relative;
}

.collection__track {
  display: flex;
  /* No `gap` here — it would add spacing between the leading/trailing
     spacers and the cards too, throwing off the exact inset below. Inter-card
     spacing is handled with margin-right on .product-card instead. */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 0 12px;
  scrollbar-width: none;
}
.collection__track::-webkit-scrollbar { display: none; }

/* Real spacer elements instead of container padding — padding on a
   horizontally-scrollable flex container is ignored at its leading edge
   in Chrome/Safari, so the gutter has to be actual flex children. */
.collection__spacer {
  flex: 0 0 48px;
  scroll-snap-align: start;
}

.collection__track > .product-card {
  flex: 0 0 42%;
  margin-right: 32px;
}
.collection__track > .product-card:last-of-type {
  margin-right: 0;
}
@media (max-width: 640px) {
  .collection__track > .product-card {
    flex: 0 0 82%;
  }
  .collection__spacer {
    flex: 0 0 24px;
  }
}

.product-card {
  cursor: pointer;
  scroll-snap-align: start;
  min-width: 240px;
}

.product-card__image {
  height: 340px;
  margin-bottom: 24px;
}
.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

.product-card__tag {
  font-size: 12px;
  letter-spacing: 0.2em;
  font-weight: 600;
  margin-bottom: 10px;
}

.product-card__name {
  font-family: var(--serif);
  font-size: 26px;
  margin-bottom: 8px;
}

.product-card__price {
  font-size: 14px;
  color: var(--taupe);
}

.collection__arrow {
  position: absolute;
  top: 130px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(242, 237, 228, 0.92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.collection__arrow--prev { left: 12px; }
.collection__arrow--next { right: 12px; }

/* ---------- Product detail ---------- */

.product-detail__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 88px;
  align-items: center;
}

.product-gallery {
  position: relative;
  height: 560px;
  border-radius: 2px;
  overflow: hidden;
}

.product-gallery__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.6s ease;
}
.product-gallery__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.product-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(246, 241, 231, 0.75);
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.product-gallery__arrow--prev { left: 14px; }
.product-gallery__arrow--next { right: 14px; }

.product-gallery__dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 2;
}

.product-info__tag {
  font-size: 13px;
  letter-spacing: 0.3em;
  font-weight: 600;
  margin-bottom: 28px;
}

.product-info__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 56px;
  margin: 0 0 28px;
}

.product-info__desc {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 420px;
  margin: 0 0 40px;
}

.product-info__price {
  font-size: 20px;
  margin-bottom: 40px;
}

.btn-reserve {
  border: 1px solid var(--ink);
  background: transparent;
  padding: 18px 40px;
  font-size: 13px;
  letter-spacing: 0.1px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  height: 65px;
  text-align: center;
  width: 231px;
  transition: background 0.2s, color 0.2s;
}
.btn-reserve:hover {
  background: var(--ink);
  color: var(--ivory);
}

.reserve-toast {
  margin-top: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.reserve-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.reserve-toast__line {
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--sage);
  margin-bottom: 12px;
}

.reserve-toast__links {
  display: flex;
  gap: 24px;
}
.reserve-toast__links a {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #8a7a5f;
  cursor: pointer;
}

/* ---------- Reservation (cart) ---------- */

.reservation__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.reservation__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 44px;
  margin: 0 0 72px;
}

.reservation__list {
  text-align: left;
}

.reservation-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.reservation-row__name {
  font-family: var(--serif);
  font-size: 26px;
}

.stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
}

.stepper__btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stepper__btn:hover { background: rgba(42, 42, 36, 0.06); }

.stepper__qty {
  width: 32px;
  text-align: center;
  font-size: 14px;
}

.btn-primary {
  background: var(--ink);
  color: var(--ivory-soft);
  border: none;
  padding: 20px 56px;
  font-size: 13px;
  letter-spacing: 0.22em;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--sage); }

.btn-primary--block {
  width: 100%;
  padding: 20px;
}

.reservation__cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.reservation__continue {
  margin-top: 48px;
}

.link-underline {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.14em;
  font-weight: 500;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 6px;
  cursor: pointer;
}

/* ---------- Reservation form ---------- */

.reserve-form__inner {
  max-width: 560px;
  margin: 0 auto;
}

.reserve-form__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 40px;
  margin: 0 0 20px;
}

.reserve-form__intro {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 48px;
  max-width: 440px;
}

.reserve-form__fields {
  display: grid;
  gap: 22px;
}

.form-field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--taupe);
  margin-bottom: 8px;
}

.form-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 14px;
  background: transparent;
  color: var(--ink);
  outline: none;
}

.form-field__error {
  font-size: 12px;
  color: var(--error);
  margin-top: 6px;
}

.reserve-form__submit {
  margin-top: 40px;
}

.reserve-form__error {
  font-size: 13px;
  color: var(--error);
  margin-bottom: 18px;
}

/* ---------- Confirmation ---------- */

.confirmation__inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.confirmation__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 44px;
  margin: 0 0 28px;
}

.confirmation__text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 auto 48px;
  max-width: 460px;
}

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

.site-footer {
  max-width: 1253px;
  margin: 0 auto;
  padding: 180px 48px 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-footer__logo {
  height: 46px;
  width: 111px;
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-footer__social a {
  color: var(--ink);
  display: flex;
  opacity: 1;
  transition: opacity 0.2s;
}
.site-footer__social a:hover { opacity: 0.5; }

.site-footer__ig svg {
  width: 47px;
  height: 41px;
}

.site-footer__xhs img {
  height: 52px;
  width: 57px;
  border-radius: 5px;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero__content { right: 0; }
  .hero__title { font-size: 56px; }
  .hero__tag { margin-bottom: 140px; margin-right: 0; }

  .pace__grid,
  .product-detail__grid {
    grid-template-columns: 1fr;
  }
  .pace__image { height: 280px; margin-top: 40px; }
  .pace__image img { top: 0; }

  .product-gallery { height: 420px; }

  .site-footer { padding: 100px 24px 56px; }
}

@media (max-width: 640px) {
  .page,
  .collection__header,
  .product-detail__grid,
  .site-nav {
    padding-left: 24px;
    padding-right: 24px;
  }
  .site-nav { padding-top: 18px; padding-bottom: 18px; }
  .page { padding-top: 72px; }
  .hero__title { font-size: 40px; }
  .collection__header { padding-left: 24px; padding-right: 24px; }
}
