/* ═══════════════════════════════════════════════════
   SHRIMPONI — Cart & Modal Styles
   WhatsApp checkout + customization modal
   ═══════════════════════════════════════════════════ */

/* ── Cart Drawer ──────────────────────────────────── */
.cart-drawer {
  position: fixed; inset: 0; z-index: 9000;
  pointer-events: none; visibility: hidden;
}
.cart-drawer--open { pointer-events: auto; visibility: visible; }

.cart-overlay-bg {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  opacity: 0; transition: opacity 0.3s ease;
}
.cart-drawer--open .cart-overlay-bg { opacity: 1; }

.cart-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 420px; max-width: 100vw;
  background: #0E1C3D;
  display: flex; flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -12px 0 60px rgba(0,0,0,0.5);
  border-left: 2px solid rgba(212,163,14,0.2);
}
.cart-drawer--open .cart-panel { transform: translateX(0); }

.cart-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(212,163,14,0.2);
  background: linear-gradient(135deg, rgba(27,46,94,0.9), rgba(14,28,61,0.95));
  flex-shrink: 0;
}
.cart-panel-title {
  font-family: 'Bebas Neue', 'Titan One', Impact, sans-serif;
  font-size: 1.5rem; color: #D4A30E; letter-spacing: 0.08em;
}
.cart-panel-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: none;
  color: #fff; font-size: 1.3rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.cart-panel-close:hover { background: rgba(232,101,44,0.3); transform: rotate(90deg); }

.cart-panel-content {
  flex: 1; overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(212,163,14,0.25) transparent;
}
.cart-panel-content::-webkit-scrollbar { width: 5px; }
.cart-panel-content::-webkit-scrollbar-thumb { background: rgba(212,163,14,0.25); border-radius: 3px; }

/* Empty */
.cart-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 80px 20px; text-align: center; gap: 12px;
}
.cart-empty-icon { font-size: 4rem; opacity: 0.3; }
.cart-empty-text {
  font-family: 'Bebas Neue', 'Titan One', Impact, sans-serif;
  font-size: 1.2rem; color: rgba(255,255,255,0.4); letter-spacing: 0.05em;
}
.cart-empty-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 24px; border-radius: 9999px;
  background: #E8652C; color: #fff;
  font-weight: 800; font-size: 0.85rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: all 0.2s ease;
}
.cart-empty-btn:hover { background: #c9531e; transform: translateY(-2px); }

/* Items */
.cart-items-list { padding: 12px 20px; }
.cart-item {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  animation: ci-slide-in 0.2s ease;
}
@keyframes ci-slide-in { from { opacity:0; transform:translateX(12px); } to { opacity:1; transform:none; } }
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 58px; height: 58px; border-radius: 10px;
  object-fit: cover; flex-shrink: 0;
  border: 1.5px solid rgba(212,163,14,0.2);
  background: rgba(255,255,255,0.05);
}
.cart-item-img--empty {
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-weight: 800; font-size: 0.92rem; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px;
}
.cart-item-cust { font-size: 0.74rem; color: rgba(255,255,255,0.38); margin-bottom: 7px; line-height: 1.4; }
.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; }
.cart-item-price {
  font-family: 'Bebas Neue', 'Titan One', Impact, sans-serif;
  font-size: 0.98rem; color: #D4A30E; letter-spacing: 0.03em;
}
.cart-qty-controls {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.07); border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}
.cart-qty-btn {
  width: 30px; height: 30px;
  background: rgba(232,101,44,0.75); color: #fff; border: none;
  cursor: pointer; font-size: 0.95rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.cart-qty-btn:hover { background: #E8652C; }
.cart-qty-val { min-width: 26px; text-align: center; font-weight: 800; font-size: 0.88rem; color: #fff; }

/* Total bar */
.cart-total-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.cart-total-bar span { font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.08em; }
.cart-total-bar strong {
  font-family: 'Bebas Neue', 'Titan One', Impact, sans-serif;
  font-size: 1.4rem; color: #D4A30E; letter-spacing: 0.05em;
}

/* Form */
.cart-form { padding: 18px 20px 28px; }
.cart-form-title {
  font-family: 'Bebas Neue', 'Titan One', Impact, sans-serif;
  font-size: 1.1rem; color: rgba(255,255,255,0.7);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cart-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.cart-field label { font-size: 0.72rem; font-weight: 800; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.1em; }
.cart-field input,
.cart-field select,
.cart-field textarea {
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff; font-family: inherit; font-size: 0.9rem;
  transition: border-color 0.2s ease;
}
.cart-field input::placeholder,
.cart-field textarea::placeholder { color: rgba(255,255,255,0.25); }
.cart-field input:focus,
.cart-field select:focus,
.cart-field textarea:focus { outline: none; border-color: rgba(232,101,44,0.5); }
.cart-field select option { background: #1B2E5E; color: #fff; }

.cart-location-btn {
  width: 100%; padding: 10px; margin-bottom: 4px;
  border: 2px dashed rgba(232,101,44,0.35); border-radius: 10px;
  background: rgba(232,101,44,0.06); color: rgba(255,255,255,0.55);
  font-size: 0.84rem; font-weight: 700; cursor: pointer;
  transition: all 0.2s ease;
}
.cart-location-btn:hover { background: rgba(232,101,44,0.12); border-color: rgba(232,101,44,0.5); }
.cart-location-status { font-size: 0.74rem; color: rgba(255,255,255,0.4); min-height: 16px; margin-bottom: 10px; }
.cart-location-status.cart-location-ok { color: #4ade80; }

.cart-wa-btn {
  width: 100%; padding: 16px; border: none; border-radius: 14px;
  background: #25D366; color: #fff;
  font-size: 1rem; font-weight: 800; letter-spacing: 0.03em;
  cursor: pointer; margin-top: 8px; margin-bottom: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 18px rgba(37,211,102,0.3);
}
.cart-wa-btn:hover { background: #1ea952; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,211,102,0.4); }

.cart-clear-link {
  width: 100%; padding: 10px; background: transparent; border: none;
  color: rgba(255,255,255,0.25); font-size: 0.78rem; font-weight: 700;
  cursor: pointer; text-transform: uppercase; letter-spacing: 0.06em;
  transition: color 0.2s ease;
}
.cart-clear-link:hover { color: #dc2626; }

/* ── Branch Picker Modal ─────────────────────────── */
.bp-modal {
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(6px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.bp-modal--open { opacity: 1; visibility: visible; }
.bp-panel {
  background: #1B2E5E;
  border-radius: 24px 24px 0 0;
  width: 100%; max-width: 520px;
  padding: 0 0 24px;
  border-top: 3px solid rgba(212,163,14,0.3);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.bp-modal--open .bp-panel { transform: translateY(0); }
.bp-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.bp-title { font-family: 'Bebas Neue', 'Titan One', Impact, sans-serif; font-size: 1.3rem; color: #D4A30E; letter-spacing: 0.06em; }
.bp-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: none; color: #fff;
  font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.bp-close:hover { background: rgba(232,101,44,0.3); }
.bp-hint { padding: 12px 24px 4px; font-size: 0.85rem; color: rgba(255,255,255,0.45); }
.bp-list { display: flex; flex-direction: column; gap: 6px; padding: 8px 20px; }
.bp-branch {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.08);
  transition: all 0.2s ease;
}
.bp-branch:hover { background: rgba(37,211,102,0.1); border-color: rgba(37,211,102,0.3); }
.bp-branch-icon { font-size: 1.2rem; flex-shrink: 0; }
.bp-branch-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.bp-branch-info strong { font-size: 0.92rem; font-weight: 800; color: #fff; }
.bp-branch-info span { font-size: 0.78rem; color: rgba(255,255,255,0.4); }
.bp-arrow { color: #25D366; font-size: 1rem; flex-shrink: 0; }

/* ── Customization Modal ─────────────────────────── */
.cm-overlay {
  position: fixed; inset: 0; z-index: 9200;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(6px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.cm-overlay--open { opacity: 1; visibility: visible; }
.cm-modal {
  background: #1B2E5E; border-radius: 24px 24px 0 0;
  width: 100%; max-width: 560px;
  max-height: 90dvh; display: flex; flex-direction: column;
  border-top: 3px solid rgba(212,163,14,0.3);
  box-shadow: 0 -20px 60px rgba(0,0,0,0.5);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  overflow: hidden;
}
.cm-overlay--open .cm-modal { transform: translateY(0); }
.cm-header {
  padding: 22px 24px 16px; flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(135deg, rgba(27,46,94,0.9), rgba(14,28,61,0.95));
  position: relative;
}
.cm-item-name { font-family: 'Bebas Neue','Titan One',Impact,sans-serif; font-size: 1.5rem; color: #fff; letter-spacing: 0.04em; padding-right: 40px; }
.cm-item-price { font-family: 'Bebas Neue','Titan One',Impact,sans-serif; font-size: 1rem; color: #D4A30E; margin-top: 2px; }
.cm-close {
  position: absolute; top: 18px; right: 20px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: none; color: #fff;
  font-size: 1.3rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.cm-close:hover { background: rgba(232,101,44,0.3); transform: rotate(90deg); }
.cm-body {
  flex: 1; overflow-y: auto; padding: 18px 22px;
  display: flex; flex-direction: column; gap: 18px;
  scrollbar-width: thin; scrollbar-color: rgba(212,163,14,0.2) transparent;
}
.cm-group { display: flex; flex-direction: column; gap: 8px; }
.cm-group-name {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.76rem; font-weight: 800; color: rgba(255,255,255,0.55);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.cm-group-hint { font-size: 0.7rem; font-weight: 600; color: rgba(255,255,255,0.28); text-transform: none; letter-spacing: 0; }
.cm-option {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 10px;
  background: rgba(255,255,255,0.04); border: 1.5px solid rgba(255,255,255,0.08);
  cursor: pointer; transition: all 0.18s ease;
}
.cm-option:hover { background: rgba(232,101,44,0.08); border-color: rgba(232,101,44,0.25); }
.cm-option:has(input:checked) { background: rgba(232,101,44,0.14); border-color: rgba(232,101,44,0.45); }
.cm-option input { accent-color: #E8652C; width: 17px; height: 17px; flex-shrink: 0; }
.cm-opt-label { flex: 1; font-size: 0.88rem; font-weight: 600; color: rgba(255,255,255,0.8); }
.cm-opt-price { font-size: 0.78rem; font-weight: 700; color: #D4A30E; background: rgba(212,163,14,0.1); padding: 2px 8px; border-radius: 20px; }
.cm-notes {
  width: 100%; padding: 10px 14px; border-radius: 10px;
  background: rgba(255,255,255,0.05); border: 1.5px solid rgba(255,255,255,0.1);
  color: #fff; font-family: inherit; font-size: 0.88rem;
  resize: vertical; min-height: 72px;
}
.cm-notes::placeholder { color: rgba(255,255,255,0.25); }
.cm-notes:focus { outline: none; border-color: rgba(232,101,44,0.45); }
.cm-footer {
  padding: 16px 22px 22px; flex-shrink: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(14,28,61,0.85);
  display: flex; gap: 12px; align-items: center;
}
.cm-qty-row { display: flex; align-items: center; background: rgba(255,255,255,0.07); border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); flex-shrink: 0; }
.cm-qty-btn { width: 36px; height: 44px; background: rgba(232,101,44,0.8); border: none; color: #fff; font-size: 1.05rem; font-weight: 800; cursor: pointer; transition: background 0.15s; display: flex; align-items: center; justify-content: center; }
.cm-qty-btn:hover { background: #E8652C; }
.cm-qty-val { min-width: 32px; text-align: center; font-weight: 800; font-size: 0.95rem; color: #fff; }
.cm-add-btn {
  flex: 1; height: 52px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, #E8652C, #C9531E);
  color: #fff;
  font-family: 'Bebas Neue','Titan One',Impact,sans-serif;
  font-size: 1.1rem; letter-spacing: 0.06em; cursor: pointer;
  transition: all 0.25s ease; box-shadow: 0 4px 16px rgba(232,101,44,0.4);
}
.cm-add-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,101,44,0.5); }

/* ── Cart badge ──────────────────────────────────── */
.cart-badge {
  position: absolute; top: 0; right: 0;
  min-width: 18px; height: 18px; border-radius: 9999px;
  background: #E8652C; color: #fff;
  font-size: 0.6rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  opacity: 0; transform: scale(0.5);
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  border: 2px solid #0E1C3D;
}
.cart-badge.has-items { opacity: 1; transform: scale(1); }
