/* ── Branch Picker Dropdown ──────────────────────────────────────────── */
.branch-picker-dropdown {
  position: fixed;
  z-index: 10000;
  background: white;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.05);
  width: 280px;
  max-height: 360px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.branch-picker-dropdown.bpd-open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.bpd-header {
  padding: 14px 16px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b7280;
  border-bottom: 1.5px solid #f3f4f6;
}
.bpd-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  text-decoration: none;
  transition: background 0.15s;
  border-bottom: 1px solid #f3f4f6;
}
.bpd-item:last-child { border-bottom: none; }
.bpd-item:hover { background: #f0f7ff; }
.bpd-name { font-size: 0.9rem; font-weight: 600; color: #0a1830; }
.bpd-hours { font-size: 0.75rem; color: #6b7280; }

/* ── Customization Modal ────────────────────────────────────────────── */
.cust-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.cust-modal-overlay--open { opacity: 1; pointer-events: all; }

.cust-modal {
  background: white;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(30px);
  transition: transform 0.25s ease;
  position: relative;
}
.cust-modal-overlay--open .cust-modal { transform: translateY(0); }

@media (min-width: 640px) {
  .cust-modal-overlay { align-items: center; }
  .cust-modal { border-radius: 20px; }
}

.cust-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  transition: background 0.15s;
}
.cust-modal__close:hover { background: rgba(0,0,0,0.12); }

.cust-modal__img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}
.cust-modal__img { width: 100%; height: 100%; object-fit: cover; }

.cust-modal__body { padding: 20px 22px 28px; }
.cust-modal__name { font-size: 1.3rem; font-weight: 800; color: #0a1830; margin-bottom: 4px; }
.cust-modal__desc { font-size: 0.88rem; color: #6b7280; line-height: 1.5; margin-bottom: 8px; }
.cust-modal__price { font-size: 1.1rem; font-weight: 700; color: #0077BE; margin-bottom: 20px; }

/* Groups */
.cust-group { margin-bottom: 20px; }
.cust-group__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0a1830;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cust-required {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fee2e2;
  color: #dc2626;
  font-weight: 600;
}
.cust-optional {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
  font-weight: 600;
}

.cust-choices { display: flex; flex-direction: column; gap: 6px; }

.cust-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.cust-choice:hover { border-color: #93c5fd; background: #f0f7ff; }
.cust-choice:has(input:checked) { border-color: #0077BE; background: #eff6ff; }

.cust-choice input { accent-color: #0077BE; width: 18px; height: 18px; flex-shrink: 0; }
.cust-choice__label { flex: 1; font-size: 0.88rem; font-weight: 500; color: #0a1830; }
.cust-choice__price { font-size: 0.82rem; font-weight: 600; color: #0077BE; flex-shrink: 0; }

.cust-choice--remove:has(input:checked) { border-color: #ef4444; background: #fef2f2; }
.cust-choice--remove:has(input:checked) .cust-choice__label { text-decoration: line-through; color: #6b7280; }

/* Qty */
.cust-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1.5px solid #f3f4f6;
  border-bottom: 1.5px solid #f3f4f6;
  margin-bottom: 16px;
}
.cust-qty-label { font-size: 0.9rem; font-weight: 600; color: #0a1830; }
.cust-qty-ctrl { display: flex; align-items: center; gap: 4px; }
.cust-qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 2px solid #e5e7eb;
  background: white;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  color: #0a1830;
}
.cust-qty-btn:hover { border-color: #0077BE; color: #0077BE; }
.cust-qty-val { width: 40px; text-align: center; font-size: 1.1rem; font-weight: 700; color: #0a1830; }

.cust-add-btn {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  background: #F5C200;
  color: #0a1830;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(245,194,0,0.3);
}
.cust-add-btn:hover { background: #e0b000; transform: translateY(-1px); }

/* ── Cart Drawer ────────────────────────────────────────────────────── */
.cart-drawer { position: fixed; inset: 0; z-index: 10002; pointer-events: none; }
.cart-drawer--open { pointer-events: all; }

.cart-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.25s;
}
.cart-drawer--open .cart-drawer__overlay { opacity: 1; }

.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100vw;
  height: 100%;
  background: white;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);
}
.cart-drawer--open .cart-drawer__panel { transform: translateX(0); }

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 2px solid #f3f4f6;
  flex-shrink: 0;
}
.cart-drawer__title { font-size: 1.2rem; font-weight: 800; color: #0a1830; }
.cart-drawer__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f3f4f6;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  transition: background 0.15s;
}
.cart-drawer__close:hover { background: #e5e7eb; }

.cart-drawer__content {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* Cart empty */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 60px 20px;
  flex: 1;
}
.cart-empty__icon { font-size: 3rem; opacity: 0.4; }
.cart-empty__text { font-size: 1rem; color: #6b7280; font-weight: 500; }
.cart-empty__btn { display: inline-flex; }

/* Cart items */
.cart-items {
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
}
.cart-item__info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.cart-item__name { font-size: 0.9rem; font-weight: 700; color: #0a1830; }
.cart-item__custom { font-size: 0.75rem; color: #0077BE; }
.cart-item__removals { font-size: 0.75rem; color: #ef4444; }
.cart-item__price { font-size: 0.85rem; font-weight: 700; color: #0077BE; }

.cart-item__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.cart-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1.5px solid #d1d5db;
  background: white;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a1830;
  transition: all 0.12s;
}
.cart-qty-btn:hover { border-color: #0077BE; color: #0077BE; }
.cart-qty-val { width: 24px; text-align: center; font-size: 0.85rem; font-weight: 700; }
.cart-remove-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: #fee2e2;
  color: #dc2626;
  font-size: 0.75rem;
  cursor: pointer;
  margin-left: 4px;
  transition: background 0.12s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-remove-btn:hover { background: #fecaca; }

/* Total */
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-top: 2px solid #f3f4f6;
  font-size: 1.05rem;
  color: #0a1830;
}
.cart-total-row strong { font-size: 1.15rem; font-weight: 800; color: #0077BE; }

/* Checkout form */
.cart-checkout { padding: 16px 20px 28px; }
.cart-checkout__title { font-size: 1rem; font-weight: 700; color: #0a1830; margin-bottom: 14px; }

.cart-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}
.cart-field span {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cart-field input,
.cart-field select,
.cart-field textarea {
  padding: 10px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #0a1830;
  transition: border-color 0.15s;
  background: white;
}
.cart-field input:focus,
.cart-field select:focus,
.cart-field textarea:focus {
  outline: none;
  border-color: #0077BE;
}

.cart-location-btn {
  width: 100%;
  padding: 10px;
  border: 2px dashed #93c5fd;
  border-radius: 10px;
  background: #eff6ff;
  color: #0077BE;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 4px;
  transition: all 0.15s;
}
.cart-location-btn:hover { background: #dbeafe; }
.cart-location-status { font-size: 0.78rem; color: #6b7280; min-height: 18px; margin-bottom: 12px; }
.cart-location-status.cart-location-ok { color: #16a34a; }

.cart-submit-btn {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  background: #25D366;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
  margin-bottom: 10px;
}
.cart-submit-btn:hover { background: #1fb855; transform: translateY(-1px); }

.cart-clear-btn {
  width: 100%;
  padding: 10px;
  border: none;
  background: none;
  color: #ef4444;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.cart-clear-btn:hover { text-decoration: underline; }

/* ── Cart badge ─────────────────────────────────────────────────────── */
.cart-badge {
  display: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ef4444;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  position: absolute;
  top: -6px;
  right: -6px;
  pointer-events: none;
  line-height: 1;
}

/* ── Cart button in header ──────────────────────────────────────────── */
.header__cart-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: white;
}
.header__cart-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}
.header--scrolled .header__cart-btn {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #0a1830;
}
.header--scrolled .header__cart-btn:hover {
  background: #e5e7eb;
}

/* ── Add to cart button (on item cards) ─────────────────────────────── */
.item-card__add-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  border-radius: 999px;
  background: #F5C200;
  color: #0a1830;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(245,194,0,0.2);
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.item-card__add-btn:hover {
  background: #e0b000;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(245,194,0,0.3);
}

@media (max-width: 600px) {
  .cart-drawer__panel { width: 100vw; }
}
