/* ==========================================================================
   SESSAIA STUDIO | Bag Drawer (Slide-Over Cart) Styles
   ========================================================================== */

.bag-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(44, 57, 69, 0.5);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) var(--ease-atelier), visibility var(--duration-normal);
}

.bag-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.bag-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 460px;
  background-color: var(--color-chalk);
  box-shadow: var(--shadow-drawer);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--duration-normal) var(--ease-atelier);
  border-left: 1px solid rgba(44, 57, 69, 0.08);
}

.bag-drawer.open {
  transform: translateX(0);
}

/* Header */
.bag-header {
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(44, 57, 69, 0.08);
  background-color: var(--color-chalk);
}

.bag-title {
  font-family: var(--font-serif-brand);
  font-size: 1.25rem;
  color: var(--color-slate-ink);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 400;
}

.bag-count-badge {
  font-family: var(--font-subline);
  font-size: 0.72rem;
  color: var(--color-aegean-blue);
  letter-spacing: 0.1em;
}

/* Free Shipping Meter */
.shipping-meter-box {
  background-color: var(--color-chalk);
  padding: 0.9rem 1.75rem;
  border-bottom: 1px solid var(--color-pebble-grey);
}

.shipping-meter-text {
  font-size: 0.78rem;
  color: var(--color-slate-ink);
  margin-bottom: 0.4rem;
  font-family: var(--font-subline);
  letter-spacing: 0.05em;
  display: flex;
  justify-content: space-between;
}

.shipping-meter-text strong {
  color: var(--color-deep-mole);
}

.shipping-progress-track {
  height: 4px;
  background-color: rgba(44, 57, 69, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.shipping-progress-bar {
  height: 100%;
  background-color: var(--color-aegean-blue);
  border-radius: var(--radius-full);
  transition: width var(--duration-normal) var(--ease-atelier);
}

/* Items List */
.bag-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Item Card */
.bag-item-card {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(44, 57, 69, 0.06);
}

.bag-item-img {
  width: 80px;
  height: 96px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background-color: #FFFFFF;
  border: 1px solid var(--color-pebble-grey);
  padding: 4px;
}

.bag-item-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bag-item-title {
  font-family: var(--font-serif-brand);
  font-size: 0.98rem;
  color: var(--color-slate-ink);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 400;
}

.bag-item-meta {
  font-size: 0.72rem;
  color: var(--color-slate-ink-60);
  font-family: var(--font-subline);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bag-item-price {
  font-family: var(--font-mono-meta);
  font-size: 0.95rem;
  color: var(--color-deep-mole);
  font-weight: 500;
}

.bag-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(44, 57, 69, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--color-slate-ink);
  background-color: var(--color-chalk);
  transition: all var(--duration-fast);
}

.qty-btn:hover {
  background-color: var(--color-deep-mole);
  color: var(--color-chalk);
}

.qty-number {
  font-size: 0.82rem;
  font-family: var(--font-mono-meta);
  min-width: 18px;
  text-align: center;
}

.bag-remove-btn {
  color: var(--color-pebble-grey);
  font-size: 0.75rem;
  padding: 0.4rem;
  transition: color var(--duration-fast);
}

.bag-remove-btn:hover {
  color: #c94a4a;
}

/* Empty State */
.bag-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  flex: 1;
  gap: 1rem;
}

.bag-empty-icon {
  width: 56px;
  height: 56px;
  color: var(--color-pebble-grey);
  opacity: 0.6;
}

.bag-empty-text {
  font-size: 0.95rem;
  color: var(--color-slate-ink-60);
  line-height: 1.6;
  max-width: 280px;
}

/* Footer & Subtotal */
.bag-footer {
  padding: 1.5rem 1.75rem;
  border-top: 1px solid var(--color-pebble-grey);
  background-color: var(--color-chalk);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bag-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bag-subtotal-label {
  font-family: var(--font-subline);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-slate-ink-60);
}

.bag-subtotal-amount {
  font-family: var(--font-mono-meta);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--color-deep-mole);
}

.restringing-promise-note {
  font-size: 0.74rem;
  color: var(--color-aegean-blue);
  background-color: rgba(74, 93, 110, 0.1);
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(74, 93, 110, 0.25);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.45;
  font-weight: 500;
}

.restringing-promise-note svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--color-aegean-blue);
}

.checkout-btn {
  width: 100%;
  padding: 1.18rem 1rem 0.92rem;
  font-family: var(--font-serif-brand);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  text-transform: uppercase;
  background-color: var(--color-deep-mole);
}
