/* =========================================
   SLIDE-OUT SHOPPING BAG DRAWER
   ========================================= */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 2100;
}

.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.bag-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 430px;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  z-index: 2101;
}

.bag-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  background: var(--color-black);
  color: var(--color-white);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.drawer-close {
  color: var(--color-white);
  font-size: 22px;
  line-height: 1;
}

/* Free Delivery Progress Strip */
.free-ship-bar {
  background: var(--color-surface);
  padding: 12px 22px;
  border-bottom: 1px solid var(--color-border);
}

.free-ship-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  text-align: center;
}

.progress-track {
  height: 5px;
  background: #dedee3;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--color-crimson);
  width: 0%;
  transition: width 0.3s ease;
}

/* Bag Items List */
.bag-items-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bag-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.bag-item-img {
  width: 74px;
  height: 84px;
  object-fit: cover;
  background: var(--color-card-bg);
}

.bag-item-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.bag-item-meta {
  font-size: 11px;
  color: var(--color-muted);
  margin-bottom: 8px;
}

.bag-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qty-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
}

.qty-box button {
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
}

.qty-box span {
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
}

.remove-item-btn {
  font-size: 11px;
  color: var(--color-muted);
  text-decoration: underline;
}

/* Bag Footer & Delivery Selector */
.bag-footer {
  border-top: 1px solid var(--color-border);
  padding: 16px 22px 22px;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.delivery-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.delivery-select,
.paxi-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  font-family: inherit;
  font-size: 12px;
  background: var(--color-white);
}

.bag-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.bag-summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 6px;
  border-top: 1px solid var(--color-border);
}

.btn-checkout {
  display: block;
  text-align: center;
  background: var(--color-black);
  color: var(--color-white);
  padding: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* =========================================
   FLOATING CONVERSION WIDGETS
   ========================================= */
.floating-vip-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: var(--color-black);
  color: var(--color-white);
  padding: 12px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 1500;
}

.floating-chat-wrap {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1500;
}

.chat-pill-prompt {
  background: var(--color-white);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  padding: 10px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.chat-circle-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-black);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.chat-panel {
  position: fixed;
  bottom: 82px;
  right: 20px;
  width: 330px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
  display: none;
  flex-direction: column;
  z-index: 1501;
}

.chat-panel.open {
  display: flex;
}

.chat-panel-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
  font-size: 12px;
}

.chat-msg {
  background: var(--color-surface);
  padding: 10px 12px;
  line-height: 1.5;
}

.chat-quick-btns {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat-quick-btns button {
  text-align: left;
  border: 1px solid var(--color-border);
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 600;
  transition: all var(--transition);
}

.chat-quick-btns button:hover {
  background: var(--color-black);
  color: var(--color-white);
}