/* ==========================================================================
   KOPUZ PAZARLAMA - MODALS, DRAWERS & INQUIRY INTERACTION STYLES
   ========================================================================== */

/* Slide-Over Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 420px;
  max-width: 90vw;
  height: 100vh;
  background-color: #FFFFFF;
  box-shadow: var(--shadow-drawer);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.open {
  right: 0;
}

.cart-drawer-header {
  padding: 16px 20px;
  border-bottom: 1.5px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-close-btn {
  font-size: 1.3rem;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
}

.cart-close-btn:hover {
  background: #F1F5F9;
  color: var(--navy-900);
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F1F5F9;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  object-fit: contain;
  flex-shrink: 0;
  padding: 2px;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--turquoise-600);
  margin-bottom: 6px;
}

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

.cart-qty-picker {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.cart-qty-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #F8FAFC;
  font-size: 0.85rem;
  font-weight: 800;
}

.cart-qty-btn:hover {
  background-color: var(--turquoise-100);
}

.cart-qty-val {
  width: 28px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
}

.cart-item-remove {
  color: var(--text-muted);
  font-size: 0.76rem;
  cursor: pointer;
}

.cart-item-remove:hover {
  color: var(--color-danger);
}

.cart-drawer-footer {
  padding: 16px 20px;
  border-top: 1.5px solid var(--border-subtle);
  background-color: #FFFFFF;
}

/* Modals Core */
.modal-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  z-index: 1060;
  width: 580px;
  max-width: 92vw;
  max-height: 90vh;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s ease;
}

.modal-container.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--surface-white);
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  font-size: 1.3rem;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
}

.modal-close-btn:hover {
  background-color: #F1F5F9;
  color: var(--navy-900);
}

.modal-body {
  padding: 22px;
}

/* Price Quote Inquiry Modal Details */
.quote-product-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background-color: var(--turquoise-50);
  border: 1.5px solid var(--border-turquoise);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 18px;
}

.quote-product-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 2px;
}

.quote-product-info h4 {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.3;
}

.quote-product-info span {
  font-size: 0.78rem;
  color: var(--turquoise-700);
  font-weight: 700;
}

/* Floating WhatsApp Button */
.float-whatsapp-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 54px;
  height: 54px;
  background-color: var(--whatsapp-green);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 900;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.float-whatsapp-btn:hover {
  transform: scale(1.1);
}
