/* ============================== CART PILL =============================== */
/* Sticky pill at the bottom. Visible whenever cart has items.             */

.cart-pill {
  position: fixed;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--accent-amber);
  color: var(--bg-night);
  font-family: var(--f-label);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow: 0 18px 38px rgba(30, 14, 6, .28), 0 2px 0 rgba(255,255,255,.18) inset;
  border: 1px solid rgba(30, 14, 6, .12);
  cursor: pointer;
  transition: transform 320ms cubic-bezier(.2, .8, .2, 1), opacity 200ms;
  opacity: 0;
  pointer-events: none;
}

.cart-pill.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cart-pill__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--bg-night);
  color: var(--ink-inverse);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

.cart-pill__total {
  font-family: var(--f-display);
  font-size: 17px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.cart-pill__arrow {
  font-size: 16px;
  opacity: .7;
}

@media (max-width: 480px) {
  .cart-pill { width: calc(100% - 28px); justify-content: space-between; padding: 12px 18px; }
  .cart-pill__total { font-size: 16px; }
}

/* ============================== ADD BUTTONS ============================= */

.luggage__buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.luggage__buttons .btn {
  width: 100%;
  min-width: 0;
  letter-spacing: .08em;
  padding-inline: 18px;
}

.luggage__buttons .btn:not(.is-added)::before {
  content: "+";
  margin-right: 8px;
  font-weight: 600;
  opacity: .55;
}

@media (min-width: 640px) {
  .luggage__buttons { flex-direction: row; }
  .luggage__buttons .btn { width: auto; flex: 1 1 0; white-space: nowrap; }
}

button.btn.is-added {
  background: var(--bg-night);
  color: var(--ink-inverse);
  pointer-events: none;
}

/* ============================== TICKET WHATSAPP ========================= */

.ticket__whatsapp {
  display: inline-block;
  margin-left: 14px;
  font-family: var(--f-label);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  opacity: .75;
  border-bottom: 1px dotted currentColor;
  text-decoration: none;
  align-self: center;
}

.ticket__whatsapp:hover { opacity: 1; }

@media (max-width: 540px) {
  .ticket__whatsapp { display: block; margin: 10px 0 0; }
}

/* ============================== CART DRAWER ============================= */

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  pointer-events: none;
}

.cart-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 14, 6, 0);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 240ms ease;
}

.cart-drawer.is-open .cart-drawer__backdrop {
  background: rgba(30, 14, 6, .42);
}

.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100%);
  background: var(--bg-paper);
  display: flex;
  flex-direction: column;
  box-shadow: -24px 0 60px rgba(30, 14, 6, .25);
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(.2, .8, .2, 1);
  overflow: hidden;
}

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

.cart-drawer__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  padding: 24px 28px 18px;
  border-bottom: 1px solid rgba(30, 14, 6, .12);
  position: relative;
}

.cart-drawer__eyebrow {
  grid-column: 1;
  font-family: var(--f-label);
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.cart-drawer__title {
  grid-column: 1;
  margin: 4px 0 0;
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 500;
  color: var(--ink-primary);
}

.cart-drawer__close {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(30, 14, 6, .18);
  border-radius: 999px;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
  color: var(--ink-primary);
}

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

.cart-drawer__foot {
  border-top: 1px solid rgba(30, 14, 6, .12);
  padding: 18px 28px max(24px, env(safe-area-inset-bottom));
  background: rgba(255, 244, 220, .65);
}

.cart-drawer__totalrow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}

.cart-drawer__totallabel {
  font-family: var(--f-label);
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.cart-drawer__totalvalue {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--ink-primary);
}

.cart-drawer__cta { width: 100%; }
.cart-drawer__cta:disabled { opacity: .45; cursor: not-allowed; }

.cart-drawer__fine {
  margin: 12px 0 0;
  font-family: var(--f-label);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--ink-muted);
  opacity: .75;
  text-align: center;
}

/* mobile: full-screen sheet sliding from bottom */
@media (max-width: 640px) {
  .cart-drawer__panel {
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 88vh;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
  }
  .cart-drawer.is-open .cart-drawer__panel { transform: translateY(0); }
}

/* ============================== CART ITEMS ============================== */

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  padding: 16px 0;
  border-bottom: 1px dashed rgba(30, 14, 6, .15);
}

.cart-item:last-child { border-bottom: 0; }

.cart-item__label {
  grid-column: 1;
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-primary);
  margin: 0;
}

.cart-item__note {
  grid-column: 1;
  font-family: var(--f-label);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink-muted);
  margin: 0;
}

.cart-item__subtotal {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--f-display);
  font-size: 17px;
  color: var(--ink-primary);
  text-align: right;
  white-space: nowrap;
}

.cart-item__controls {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.cart-item__stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(30, 14, 6, .2);
  border-radius: 999px;
  overflow: hidden;
}

.cart-item__stepper button {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
  color: var(--ink-primary);
}

.cart-item__stepper button:hover { background: rgba(30, 14, 6, .06); }

.cart-item__qty {
  min-width: 28px;
  text-align: center;
  font-family: var(--f-label);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-primary);
}

.cart-item__remove {
  margin-left: auto;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--f-label);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: underline;
  padding: 4px 0;
}

.cart-item__remove:hover { color: var(--accent-coral); }

.cart-empty {
  text-align: center;
  padding: 56px 16px;
  color: var(--ink-muted);
}

.cart-empty__title {
  font-family: var(--f-display);
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--ink-primary);
}

.cart-empty__sub {
  font-family: var(--f-label);
  font-size: 13px;
  letter-spacing: .04em;
  margin: 0;
}

/* ============================== AUTH MODAL ============================== */

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  visibility: hidden;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-modal.is-open { visibility: visible; pointer-events: auto; }

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(30, 14, 6, 0);
  cursor: pointer;
  transition: background 240ms ease;
}

.auth-modal.is-open .auth-modal__backdrop { background: rgba(30, 14, 6, .55); }

.auth-modal__panel {
  position: relative;
  width: min(440px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 28px 28px 24px;
  background: var(--bg-paper);
  border-radius: 16px;
  box-shadow: 0 40px 80px rgba(30, 14, 6, .35);
  transform: translateY(20px) scale(.98);
  opacity: 0;
  transition: transform 260ms cubic-bezier(.2, .8, .2, 1), opacity 200ms;
}

.auth-modal.is-open .auth-modal__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.auth-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(30, 14, 6, .18);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  color: var(--ink-primary);
}

.auth-modal__logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
}

.auth-modal__title {
  margin: 0;
  text-align: center;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 26px;
  color: var(--ink-primary);
}

.auth-modal__sub {
  margin: 6px 0 18px;
  text-align: center;
  font-family: var(--f-label);
  font-size: 13px;
  color: var(--ink-muted);
}

.auth-modal__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(30, 14, 6, .08);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 18px;
}

.auth-modal__tab {
  border: 0;
  background: transparent;
  padding: 9px 14px;
  border-radius: 999px;
  font-family: var(--f-label);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink-muted);
  transition: background 160ms, color 160ms;
}

.auth-modal__tab.is-active {
  background: var(--bg-paper);
  color: var(--ink-primary);
  box-shadow: 0 2px 6px rgba(30, 14, 6, .12);
}

.auth-modal__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-modal__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-modal__field span {
  font-family: var(--f-label);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.auth-modal__field input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(30, 14, 6, .22);
  border-radius: 10px;
  background: rgba(255, 244, 220, .55);
  font-family: var(--f-label);
  font-size: 15px;
  color: var(--ink-primary);
}

.auth-modal__field input:focus {
  outline: 2px solid var(--accent-amber);
  outline-offset: 1px;
}

/* Hide the signup-only field when in login mode */
.auth-modal[data-mode="login"] .auth-modal__field--signup { display: none; }

.auth-modal__error {
  margin: 0;
  padding: 10px 12px;
  background: rgba(230, 50, 36, .08);
  border-left: 3px solid var(--accent-coral);
  color: var(--accent-coral);
  font-family: var(--f-label);
  font-size: 13px;
}

.auth-modal__submit:disabled { opacity: .6; cursor: not-allowed; }
