/* ========================================================
   CART DRAWER & QUOTE MODAL STYLES
   ======================================================== */

/* Cart Overlay */
.cart-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background-color: #ffffff;
  z-index: 1001;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-close-btn {
  font-size: 1.5rem;
  color: #64748b;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-close-btn:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

/* Cart Items Body */
.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-empty {
  margin: auto;
  text-align: center;
  color: #64748b;
  padding: 40px 20px;
}

.cart-empty svg {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  color: #94a3b8;
}

.cart-empty p {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.cart-item-img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  background-color: #f8fafc;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
}

.cart-item-option {
  font-size: 0.8rem;
  color: #64748b;
  background-color: #f1f5f9;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 4px;
  width: fit-content;
}

.cart-item-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 4px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

/* Stepper Quantity */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background-color: #ffffff;
  overflow: hidden;
}

.qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #475569;
  background-color: #f8fafc;
}

.qty-btn:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

.qty-val {
  width: 32px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
}

.cart-remove-btn {
  color: #94a3b8;
  font-size: 1.1rem;
  padding: 4px;
  transition: color 0.2s;
}

.cart-remove-btn:hover {
  color: #ef4444;
}

/* Cart Footer */
.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid #e2e8f0;
  background-color: #f8fafc;
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 6px;
}

.cart-subtotal-amount {
  color: var(--primary);
  font-size: 1.3rem;
}

.cart-discount-tip {
  font-size: 0.8rem;
  color: #15803d;
  font-weight: 600;
  margin-bottom: 16px;
}

.btn-whatsapp-checkout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #25d366;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 14px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  transition: all 0.2s ease;
}

.btn-whatsapp-checkout:hover {
  background-color: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  color: #ffffff;
}

/* Quick Variation Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background-color: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal-dialog {
  transform: scale(1);
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
}

.modal-close-btn {
  font-size: 1.4rem;
  color: #64748b;
  cursor: pointer;
}

.modal-body {
  padding: 24px;
}

.modal-product-summary {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.modal-prod-thumb {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
}

.modal-options-group {
  margin-bottom: 20px;
}

.modal-options-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
  display: block;
}

.modal-option-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-option-pill:hover {
  border-color: #94a3b8;
  background-color: #f8fafc;
}

.modal-option-pill.selected {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.modal-option-name {
  font-weight: 700;
  color: #1e293b;
}

.modal-option-price {
  font-weight: 800;
  color: var(--primary);
}

/* Toast Notifications */
.toast-notice {
  position: fixed;
  bottom: 90px;
  right: 24px;
  background-color: #1e293b;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-notice.success {
  background-color: #065f46;
  border-left: 4px solid var(--accent);
}

/* ----------------------------------------------------
   MOBILE RESPONSIVE STYLES FOR CART & MODAL
   ---------------------------------------------------- */
@media (max-width: 480px) {
  .cart-drawer {
    max-width: 100%;
  }
  .cart-header {
    padding: 16px 18px;
  }
  .cart-body {
    padding: 16px 18px;
    gap: 12px;
  }
  .cart-item {
    padding: 12px;
    gap: 12px;
  }
  .cart-item-thumb {
    width: 56px;
    height: 56px;
  }
  .cart-item-name {
    font-size: 0.92rem;
  }
  .cart-item-attr {
    font-size: 0.8rem;
  }
  .cart-item-price {
    font-size: 0.88rem;
  }
  .cart-footer {
    padding: 16px 18px;
  }
  .btn-whatsapp-checkout {
    padding: 13px 18px;
    font-size: 0.96rem;
  }
  .modal-overlay {
    padding: 12px;
  }
  .modal-dialog {
    max-width: 100%;
  }
  .modal-header {
    padding: 14px 18px;
  }
  .modal-body {
    padding: 16px 18px 20px;
  }
  .modal-prod-thumb {
    width: 65px;
    height: 65px;
  }
  .toast-notice {
    bottom: 80px;
    right: 16px;
    left: 16px;
    font-size: 0.86rem;
    justify-content: center;
  }
}

