/* ══════════════════════════════════════════════
   DEMO LIFESTYLE — Booking Page
   ══════════════════════════════════════════════ */

/* ── Layout ── */
.booking-layout {
  display: grid; grid-template-columns: 300px 1fr; gap: var(--space-xl);
  margin-top: var(--space-lg);
}

/* ── Summary sidebar ── */
.booking-summary {
  background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--grey-border);
  padding: 20px; align-self: start; min-width: 0;
  box-shadow: var(--shadow-soft);
}
.booking-summary__image { border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 16px; }
.booking-summary__image img { width: 100%; height: 160px; object-fit: cover; display: block; }
.booking-summary__title { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.booking-summary__detail { font-size: 13px; color: var(--grey); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.booking-summary__price { font-size: 20px; font-weight: 800; color: var(--charcoal); margin-top: 12px; }
.booking-summary__badge { margin-top: 12px; }

/* ── Form container ── */
.booking-form {
  background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--grey-border);
  padding: var(--space-xl); min-width: 0; box-shadow: var(--shadow-soft);
}
.booking-form__title { margin-bottom: var(--space-lg); }
.booking-step {}
.booking-step .steps { justify-content: flex-start; }

/* ── Experience Reminder Strip (mobile only) ── */
.booking-reminder {
  display: none; /* hidden on desktop */
  align-items: center; gap: 14px;
  background: var(--light); border-radius: var(--radius);
  padding: 12px 16px; margin-bottom: var(--space-lg);
  border: 1px solid var(--grey-border);
}
.booking-reminder__img {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  object-fit: cover; flex-shrink: 0;
}
.booking-reminder__info { flex: 1; min-width: 0; }
.booking-reminder__title {
  font-size: 14px; font-weight: 700; color: var(--charcoal);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.booking-reminder__meta { font-size: 12px; color: var(--grey); margin-top: 2px; }

/* ── Card info ── */
.booking-card-info {
  background: var(--light); border-radius: var(--radius); padding: 16px;
  display: flex; align-items: center; gap: 12px; margin: 20px 0;
}
.booking-card-info__icon { font-size: 28px; }
.booking-card-info .icon { color: var(--accent); }

/* ── Reassurance line ── */
.booking-reassurance {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 12px; color: var(--grey); margin-bottom: 16px;
  padding: 10px 0;
}
.booking-reassurance .icon { color: var(--success); flex-shrink: 0; }

/* ── Request chips ── */
.request-chips {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;
}
.request-chip {
  padding: 6px 14px; border-radius: var(--radius-full);
  border: 1px solid var(--grey-border); background: var(--white);
  font-family: var(--font-body); font-size: 13px; color: var(--charcoal);
  cursor: pointer; transition: all var(--ease);
}
.request-chip:hover { border-color: var(--accent); color: var(--accent); }
.request-chip--selected {
  background: var(--accent); border-color: var(--accent); color: var(--white);
}
.request-chip--selected:hover { color: var(--white); }

/* ── Confirmation details ── */
.booking-confirm-details {
  background: var(--light); border-radius: var(--radius); padding: 20px;
  margin-bottom: var(--space-lg);
}
.booking-confirm-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--grey-border);
}
.booking-confirm-row:last-child { border-bottom: none; }

/* ── Success ── */
.booking-success { text-align: center; padding: 40px 20px; }
.booking-success__icon { margin-bottom: 16px; }
.booking-success__icon .icon { color: var(--success); }
.booking-success__title { margin-bottom: 8px; }
.booking-success__text { font-size: 14px; color: var(--grey); margin-bottom: 20px; }

/* ── Sticky Mobile CTA ── */
.booking-sticky-cta { display: none; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .booking-layout { grid-template-columns: 1fr; gap: var(--space-md); overflow: hidden; }
  .booking-summary { position: static; box-shadow: none; overflow: hidden; }
  .booking-form { padding: var(--space-md); box-shadow: none; overflow: hidden; }
  .booking-confirm-details { padding: 16px; }
  .booking-confirm-row { gap: 12px; }
  .booking-confirm-row span:last-child { text-align: right; word-break: break-word; min-width: 0; }

  /* Compact progress indicator on mobile — scrollable */
  .booking-step .steps {
    gap: 0; margin-bottom: var(--space-lg);
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  .booking-step .steps::-webkit-scrollbar { display: none; }
  .booking-step .step { flex-shrink: 0; }
  .booking-step .step__circle { width: 28px; height: 28px; min-width: 28px; min-height: 28px; font-size: 12px; }
  .booking-step .step__label { font-size: 10px; letter-spacing: 0.02em; white-space: nowrap; }
  .booking-step .step__line { width: 30px; min-width: 30px; margin: 0 6px; flex-shrink: 0; }

  /* Hide reminder strip on mobile */
  .booking-reminder { display: none; }

  /* Reassurance tighter on mobile */
  .booking-reassurance { font-size: 11px; text-align: center; }

  /* iOS Safari — prevent form input overflow & auto-zoom */
  .booking-form .form-input,
  .booking-form .form-select,
  .booking-form .form-textarea {
    font-size: 16px;
    -webkit-appearance: none;
    appearance: none;
    max-width: 100%;
    min-height: 44px;
    padding: 12px 14px;
  }
  .booking-form .form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%236B6B6B'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
  }
  .booking-form input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    min-height: 44px;
    line-height: 1.2;
  }
  .booking-form .form-group { margin-bottom: 16px; }

  /* Reduce button padding so flex pair doesn't overflow */
  .booking-form .btn--lg { padding: 16px 20px; font-size: 14px; max-width: 100%; }
  .booking-form .flex.gap-md { flex-wrap: nowrap; }
  .booking-form .flex.gap-md .btn { min-width: 0; }

  /* Sticky CTA */
  .booking-sticky-cta {
    display: flex; align-items: center;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    padding: 12px var(--container-pad);
    background: var(--white); border-top: 1px solid var(--grey-border);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    transform: translateY(100%); transition: transform 0.3s ease;
  }
  .booking-sticky-cta--visible { transform: translateY(0); }
  .booking-sticky-cta__btn { flex: 1; }

  .page__main--booking { padding-bottom: 80px; }
}

/* ── Shopping Landing (no border on step 1) ── */
.booking-form--no-border {
  border: none; box-shadow: none; background: transparent; padding: 0;
}

/* Shop browse section */
.shop-browse { padding-top: 8px; }
.booking-form--no-border { margin-top: var(--space-lg); }

/* Shop browse header */
.shop-browse__header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 16px;
}
.shop-browse__title {
  font-size: 22px; font-weight: 700; color: var(--charcoal);
}
.shop-browse__count {
  font-size: 14px; color: var(--grey); font-weight: 500;
}

/* ── Shopping Item-First Flow ── */

/* Category pills */
.booking-cat-pills {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.booking-cat-pills::-webkit-scrollbar { display: none; }
.booking-cat-pill {
  padding: 8px 18px; border-radius: 20px; border: 1.5px solid var(--grey-border);
  background: var(--white); font-size: 13px; font-weight: 500;
  cursor: pointer; white-space: nowrap; transition: all 0.2s;
  font-family: var(--font-body); color: var(--charcoal);
}
.booking-cat-pill:hover { border-color: var(--accent); color: var(--accent); }
.booking-cat-pill.active {
  background: var(--accent); color: var(--white); border-color: var(--accent);
}

/* Item grid */
.booking-items-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 20px;
}
.booking-item-card {
  border-radius: 14px; overflow: hidden; border: 1.5px solid var(--grey-border);
  cursor: pointer; transition: all 0.25s ease; background: var(--white);
}
.booking-item-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1); transform: translateY(-2px);
}
.booking-item-card__img {
  width: 100%; aspect-ratio: 1; object-fit: cover; display: block;
}
.booking-item-card__info { padding: 12px; }
.booking-item-card__name {
  font-weight: 600; font-size: 14px; color: var(--charcoal);
  line-height: 1.3; margin-bottom: 4px;
}
.booking-item-card__price {
  font-size: 13px; color: var(--grey); font-weight: 500;
}

/* Selected item summary */
.booking-item-selected {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; background: var(--surface); border-radius: 14px;
  margin-bottom: 20px; position: relative;
}
.booking-item-selected__img {
  width: 72px; height: 72px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
}
.booking-item-selected__info { flex: 1; min-width: 0; }
.booking-item-selected__name {
  font-weight: 600; font-size: 15px; color: var(--charcoal);
}
.booking-item-selected__price {
  font-size: 14px; color: var(--accent); font-weight: 600; margin-top: 2px;
}
.booking-item-selected__cat {
  font-size: 12px; color: var(--grey); margin-top: 2px;
}
.booking-item-selected__change {
  background: none; border: none; color: var(--accent); font-size: 13px;
  font-weight: 600; cursor: pointer; padding: 6px 10px; border-radius: 8px;
  transition: background 0.2s; flex-shrink: 0;
}
.booking-item-selected__change:hover { background: rgba(39,101,255,0.08); }

/* Merchant reveal */
.booking-merchant-reveal {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; background: var(--white); border: 1.5px solid var(--grey-border);
  border-radius: 14px; margin-bottom: 24px;
}
.booking-merchant-reveal__img {
  width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
}
.booking-merchant-reveal__info { flex: 1; min-width: 0; }
.booking-merchant-reveal__name {
  font-weight: 600; font-size: 15px; color: var(--charcoal);
}
.booking-merchant-reveal__loc {
  font-size: 13px; color: var(--grey); display: flex; align-items: center; gap: 4px; margin-top: 2px;
}

/* Desktop: wider grid */
@media (min-width: 600px) {
  .booking-items-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
@media (min-width: 900px) {
  .booking-items-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

/* ── Product Detail Page ── */
.product-detail {
  margin-top: 8px;
}
.product-detail__hero {
  border-radius: 16px; overflow: hidden; margin-bottom: 24px;
}
.product-detail__image {
  width: 100%; max-height: 420px; object-fit: cover; display: block;
  border-radius: 16px;
}
.product-detail__body {
  padding: 0 4px;
}
.product-detail__category {
  display: inline-block; font-size: 12px; font-weight: 600;
  color: var(--accent); background: rgba(39,101,255,0.08);
  padding: 4px 12px; border-radius: 20px; margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.product-detail__name {
  font-size: 24px; font-weight: 700; color: var(--charcoal);
  margin-bottom: 8px; line-height: 1.3;
}
.product-detail__price {
  font-size: 22px; font-weight: 700; color: var(--accent);
}

/* Merchant info on product detail */
.product-detail__merchant {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; background: var(--surface); border-radius: 14px;
  margin: 20px 0;
}
.product-detail__merchant-img {
  width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
}
.product-detail__merchant-info { flex: 1; min-width: 0; }
.product-detail__merchant-label {
  font-size: 11px; color: var(--grey); text-transform: uppercase;
  letter-spacing: 0.06em; font-weight: 600; margin-bottom: 2px;
}
.product-detail__merchant-name {
  font-weight: 600; font-size: 15px; color: var(--charcoal);
}
.product-detail__merchant-loc {
  font-size: 13px; color: var(--grey); display: flex; align-items: center; gap: 4px; margin-top: 2px;
}

/* Product features list */
.product-detail__features {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 0; margin: 12px 0 20px;
  border-top: 1px solid var(--grey-border); border-bottom: 1px solid var(--grey-border);
}
.product-detail__feature {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--charcoal);
}
.product-detail__feature .icon { color: var(--success); flex-shrink: 0; }

/* Similar items section */
.product-similar {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--grey-border);
}
.product-similar__title {
  font-size: 18px; font-weight: 700; color: var(--charcoal); margin-bottom: 16px;
}
.product-similar__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.product-similar__card {
  cursor: pointer;
}

/* Desktop: product detail layout */
@media (min-width: 700px) {
  .product-detail {
    display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start;
  }
  .product-detail__hero { margin-bottom: 0; }
  .product-detail__image { max-height: 500px; }
  .product-detail__name { font-size: 28px; }
  .product-detail__price { font-size: 26px; }

  .product-similar__grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
}
