/* ---------- Promo banner ---------- */
.promo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--brand-tint);
  color: var(--brand-dark);
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
}

.promo-banner[hidden] {
  display: none;
}

.promo-banner button {
  flex-shrink: 0;
  border: none;
  background: rgba(197, 111, 138, 0.15);
  color: var(--brand-dark);
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1;
}

.promo-banner button:hover {
  background: rgba(197, 111, 138, 0.28);
}

/* ---------- Simplified nav (no menu links on the order funnel) ---------- */
.order-navbar .nav-container {
  justify-content: space-between;
}

/* ---------- Step indicator ---------- */
.step-indicator {
  position: sticky;
  top: 0;
  z-index: 39;
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0.5rem;
  overflow-x: auto;
}

.step-dot {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.7rem 0.3rem 0.55rem;
  white-space: nowrap;
}

.step-dot em {
  font-style: normal;
  font-weight: 500;
}

.step-dot.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.step-dot.done {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

/* ---------- Steps ---------- */
.order-main {
  padding-bottom: 3rem;
}

.order-step {
  padding-top: 2rem;
}

.order-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.order-hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.order-hero p {
  color: var(--ink-muted);
}

.order-step-subtitle {
  color: var(--ink-muted);
  margin: 0.25rem 0 1.5rem;
}

.order-step-description {
  color: var(--ink-muted);
  max-width: 42rem;
  margin: -0.75rem 0 1.5rem;
  line-height: 1.6;
}

.order-step-description:empty {
  display: none;
}

.order-grid {
  margin-top: 1rem;
}

.order-grid .card {
  cursor: pointer;
  text-align: left;
  position: relative;
}

.card-from-price {
  font-weight: 700;
  color: var(--brand);
  font-size: 0.88rem;
}

.card-description {
  color: var(--ink-muted);
  font-size: 0.85rem;
  margin: 0.15rem 0 0.4rem;
  line-height: 1.4;
}

.card-select-btn {
  margin-top: 0.75rem;
  width: 100%;
}

/* ---------- Filters bar ---------- */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 0.5rem;
}

.filter-chip {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-muted);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 2.4rem;
}

.filter-chip:hover {
  border-color: var(--brand);
}

.filter-chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.filter-chip-sort {
  margin-left: auto;
}

/* ---------- Card badge + wishlist ---------- */
.card-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
}

.card-badge.badge-new {
  background: var(--brand);
  color: #fff;
}

.card-wishlist {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.card-wishlist.active {
  color: var(--brand-dark);
}

.card-zoom {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.back-link {
  display: inline-block;
  background: none;
  border: none;
  color: var(--ink-muted);
  font-size: 0.88rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 1rem;
}

.back-link:hover {
  color: var(--brand);
}

/* ---------- Persistent order summary shell (visible steps 1-4) ---------- */
.order-shell {
  display: grid;
  grid-template-columns: 1fr 20rem;
  align-items: start;
  gap: 2rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.order-shell .order-main {
  min-width: 0;
}

.order-shell .container {
  max-width: none;
  padding: 0;
}

@media (max-width: 900px) {
  .order-shell {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
}

/* ---------- Customize / Delivery steps ---------- */
#step-customize h1,
#step-delivery h1 {
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.configure-gallery {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  margin-bottom: 1.5rem;
}

.configure-gallery img {
  cursor: pointer;
}

.form-fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 0.25rem;
  margin: 0 0 1.5rem;
}

.form-fieldset legend {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0 0.4rem;
  color: var(--ink-heading);
}

.form-fieldset .optional {
  font-weight: 400;
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  margin-bottom: 1.25rem;
}

.checkbox-row-inline {
  margin: 0;
  font-size: 0.92rem;
  justify-content: flex-start;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}

.form-group .optional {
  font-weight: 400;
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

input[type="text"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  min-height: 2.9rem;
}

textarea {
  min-height: unset;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 2.75rem;
}

.pill:hover {
  border-color: var(--brand);
}

.pill.selected {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.info-note {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}

.field-hint {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 0.4rem;
}

.info-note a,
.field-hint a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.info-note a:hover,
.field-hint a:hover {
  color: var(--brand-dark);
}

.field-error {
  background: rgba(217, 83, 107, 0.1);
  border: 1px solid var(--brand);
  color: var(--brand);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
  border: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

@media (max-width: 900px) {
  #to-review-btn,
  #to-payment-btn,
  #whatsapp-confirm-btn {
    position: sticky;
    bottom: 0.75rem;
    box-shadow: 0 8px 20px var(--shadow);
  }
}

/* ---------- Price panel ---------- */
.price-panel {
  position: sticky;
  top: 4.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.price-panel h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.price-panel-empty {
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.price-panel-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.price-panel-item img {
  width: 3rem;
  height: 3rem;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.price-panel-item strong {
  display: block;
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  /* On mobile the summary sits as a normal card below the step content instead of a
     floating sticky panel, so it never fights with each step's sticky CTA button. */
  .price-panel {
    position: static;
    margin-top: 1.5rem;
  }
}

.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 0.4rem 0;
  color: var(--ink-muted);
}

.price-row.total {
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-weight: 700;
  color: var(--ink);
  font-size: 1.05rem;
}

.price-strike {
  text-decoration: line-through;
  color: var(--ink-muted);
  margin-right: 0.5rem;
}

.price-discounted {
  color: var(--brand);
  font-weight: 700;
}

.discount-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  margin-left: 0.4rem;
}

/* ---------- Review ---------- */
.review-layout {
  max-width: 640px;
  margin: 0 auto;
}

.review-layout h1 {
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.review-layout .btn-block {
  margin-top: 1.5rem;
}

#review-summary dl {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.6rem 1rem;
  font-size: 0.92rem;
}

#review-summary dt {
  color: var(--ink-muted);
}

#review-summary dd {
  font-weight: 600;
}

#review-summary .review-total {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
}

/* ---------- Payment ---------- */
.payment-layout {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.payment-layout h1 {
  font-size: 1.6rem;
}

.qr-card {
  margin: 1.25rem 0;
}

.amount-due {
  margin-top: 0.75rem;
  font-size: 1.1rem;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: center;
  font-size: 0.92rem;
  margin: 1.25rem 0 0.75rem;
  cursor: pointer;
}

.checkbox-row input {
  width: 1.2rem;
  height: 1.2rem;
}

/* ---------- Delivery map ---------- */
.map-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.map-controls .btn {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  min-height: 2.75rem;
}

#delivery-map {
  height: 16rem;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-alt);
}

.map-fee-readout {
  background: var(--brand-tint);
  color: var(--brand-dark);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  font-weight: 600;
  margin-top: 0.75rem;
}

@media (max-width: 600px) {
  .map-controls .btn {
    width: 100%;
    min-height: 3rem;
    font-size: 0.92rem;
  }

  #delivery-map {
    height: 20rem;
  }
}

/* ---------- Payment steps ---------- */
.payment-steps {
  text-align: left;
  list-style: decimal;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.payment-steps strong {
  color: var(--ink);
}

/* ---------- IBAN box ---------- */
.iban-box {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.25rem 0;
}

.iban-label {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}

.iban-value-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.iban-value-row code {
  font-size: 1rem;
  font-weight: 700;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  letter-spacing: 0.02em;
}

.iban-value-row .icon-btn {
  flex-shrink: 0;
}
