.bag-title { margin-top: 26px; }
.bag-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 22px;
}

.bag-empty {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  max-width: 693px;
  padding: 48px 24px 44px;
  text-align: center;
}
.bag-empty svg {
  width: 42px;
  height: 42px;
  color: var(--crimson);
}
.bag-empty h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  color: #241f26;
  margin-top: 14px;
}
.bag-empty p {
  font-size: 13.5px;
  color: #6e6a70;
  margin: 8px 0 20px;
}
.bag-empty__btn {
  display: inline-block;
  background: var(--dark);
  color: #fff;
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 13.5px;
  font-weight: 600;
}
.bag-empty__btn:hover { background: #000; }

.bag-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  max-width: 693px;
  overflow: hidden;
}
.bag-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid #f0ede6;
}
.bag-row:last-child { border-bottom: none; }
.bag-row__link {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.bag-row__img,
.bag-row__link .ph {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 10px;
  object-fit: cover;
  font-size: 9px;
}
.bag-row__info { min-width: 0; }
.bag-row__name {
  font-size: 13px;
  font-weight: 500;
  color: #262229;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bag-row__price {
  display: block;
  margin-top: 3px;
  color: var(--crimson);
  font-size: 13px;
  font-weight: 600;
}
.qty {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 6px;
  flex: none;
}
.qty button {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 15px;
  color: #3a353c;
}
.qty button:hover { background: #f4f1ea; }
.qty__value {
  min-width: 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}
.bag-row__remove {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #9a959d;
}
.bag-row__remove:hover { color: var(--crimson); background: #faeef0; }
.bag-row__remove svg { width: 16px; height: 16px; }

.bag-summary {
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  max-width: 693px;
  padding: 18px;
}
.bag-summary__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.bag-summary__row span { font-size: 13px; color: var(--muted); }
.bag-summary__row strong {
  font-size: 19px;
  font-weight: 600;
  color: var(--crimson);
}
.bag-summary__btn {
  margin-top: 14px;
  width: 100%;
  height: 48px;
  background: var(--dark);
  color: #fff;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}
.bag-summary__btn:hover { background: #000; }
.bag-summary__btn svg { width: 18px; height: 18px; }
.bag-summary__note {
  margin-top: 10px;
  text-align: center;
  font-size: 11.5px;
  color: #8d8890;
}

.extras-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(30, 20, 25, 0.35);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  padding: 18px;
}
.extras-modal {
  background: #fff;
  border-radius: 24px;
  width: min(560px, 100%);
  max-height: min(92vh, 1010px);

  max-height: min(92dvh, 1010px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(20, 10, 15, 0.28);
  animation: added-pop 0.22s ease;
}
.extras-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 0;
}
.extras-modal__head h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  color: #241f26;
  line-height: 1.2;
}
.extras-modal__close {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #55505a;
}
.extras-modal__close:hover { color: var(--ink); background: rgba(0, 0, 0, 0.05); }
.extras-modal__close svg { width: 17px; height: 17px; }

.extras-modal__sub {
  padding: 5px 22px 0;
  font-size: 12.5px;
  color: var(--muted);
}
.extras-modal__sub strong { color: var(--ink); font-weight: 600; }

.extras-tabs {
  display: flex;
  gap: 8px;
  padding: 14px 22px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: none;
}
.extras-tabs::-webkit-scrollbar { display: none; }
.extras-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 500;
  color: #3a353c;
  white-space: nowrap;
  flex: none;
}
.extras-tab svg { width: 15px; height: 15px; }
.extras-tab.is-active {
  background: #121013;
  border-color: #121013;
  color: #fff;
}

.extras-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px 22px 18px;
}
.extras-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.extra-card {
  background: #fff;
  border: 1px solid #eeebe4;
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease;
}
.extra-card.is-selected { border-color: var(--crimson); }
.extra-card__img,
.extra-card .ph {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  background: #f2f1ef;
  font-size: 9px;
}
.extra-card__name {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 500;
  color: #262229;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.extra-card__row {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.extra-card__price {
  font-size: 13.5px;
  font-weight: 600;
  color: #17151a;
}
.extra-card__add {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: #121013;
  color: #fff;
  display: grid;
  place-items: center;
  transition: transform 0.12s ease, background 0.12s ease;
}
.extra-card__add svg { width: 15px; height: 15px; }
.extra-card__add:hover { background: #000; }
.extra-card__add:active { transform: scale(0.92); }
.extra-card.is-selected .extra-card__add { background: var(--crimson); }

.extras-modal__footer {
  flex: none;
  display: flex;
  gap: 12px;
  padding: 14px 22px 18px;
  border-top: 1px solid #f0ede6;
  background: #fff;
}
.extras-skip {
  height: 48px;
  padding: 0 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 15px;
  font-size: 14px;
  font-weight: 500;
}
.extras-skip:hover { border-color: #cfc9bf; }
.extras-continue {
  flex: 1;
  height: 48px;
  background: #121013;
  color: #fff;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
}
.extras-continue:hover { background: #000; }
.extras-continue strong { font-weight: 600; }

@media (max-width: 480px) {
  .bag-row { padding: 12px 14px; gap: 10px; }
  .bag-row__img,
  .bag-row__link .ph { width: 56px; height: 56px; }
  .qty { padding: 2px 4px; }
  .qty button { width: 22px; height: 22px; }
  .extras-grid { grid-template-columns: repeat(2, 1fr); }
  .extras-modal__head h2 { font-size: 19px; }
  .extras-modal { border-radius: 20px; }

  .extras-modal__footer { gap: 8px; padding: 12px 14px 16px; }
  .extras-skip { padding: 0 16px; }
  .extras-continue { font-size: 13px; gap: 8px; }
}
