/* ===============================================================
   quick_view.css  — Quick View Modal + Float Buttons
   =============================================================== */

/* ─── Quick View Overlay ─── */
.qv-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.qv-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ─── Quick View Modal ─── */
.qv-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.96);
  z-index: 9999;
  background: #fff;
  border-radius: 24px;
  width: 90%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s cubic-bezier(0.34,1.4,0.64,1), opacity 0.18s ease;
  scrollbar-width: thin;
}
.qv-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

/* ─── Close Button ─── */
.qv-close {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15,23,42,0.07);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 16px;
  color: #1A1510;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s, transform 0.2s;
}
.qv-close:hover {
  background: rgba(15,23,42,0.14);
  transform: rotate(90deg);
}

/* ─── Content Grid ─── */
.qv-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ─── Image Side ─── */
.qv-img {
  position: relative;
  background: #f8f5f0;
  border-radius: 24px 0 0 24px;
  overflow: hidden;
  min-height: 320px;
}
.qv-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.qv-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #e74c3c;
  color: white;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  z-index: 2;
}

/* ─── Info Side ─── */
.qv-info {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.qv-cat {
  font-size: 12px;
  font-weight: 800;
  color: #6B4226;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.qv-title {
  font-size: 20px;
  font-weight: 900;
  color: #1A1510;
  line-height: 1.3;
  margin: 0;
}
.qv-rating { font-size: 13px; color: #555; }

/* ─── Price ─── */
.qv-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 4px 0;
}
.qv-price-current { font-size: 22px; font-weight: 900; color: #6B4226; }
.qv-price-old { font-size: 15px; color: #aaa; text-decoration: line-through; }

/* ─── Colors ─── */
.qv-info .product-colors { display: flex; gap: 8px; flex-wrap: wrap; }
.qv-info .color-swatch {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
  cursor: default;
}

/* ─── Description ─── */
.qv-desc { font-size: 14px; color: #666; line-height: 1.65; margin: 0; flex: 1; }

/* ─── Features ─── */
.qv-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 5px; }
.qv-features li { font-size: 13px; color: #444; padding-right: 16px; position: relative; }
.qv-features li::before { content: '✓'; position: absolute; right: 0; color: #6B4226; font-weight: 700; }

/* ─── Actions ─── */
.qv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.qv-btn-cart {
  flex: 1; min-width: 120px;
  padding: 12px 18px; border-radius: 12px;
  background: #6B4226; color: white;
  font-weight: 800; font-size: 14px;
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: var(--font-arabic), sans-serif;
}
.qv-btn-cart:hover { background: #8a5530; transform: translateY(-1px); }

.qv-btn-whatsapp {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 16px; border-radius: 12px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white; font-weight: 800; font-size: 13px;
  text-decoration: none; transition: all 0.2s; white-space: nowrap;
}
.qv-btn-whatsapp:hover {
  background: linear-gradient(135deg, #2BE574, #1aaf6b);
  transform: translateY(-1px); box-shadow: 0 4px 14px rgba(37,211,102,0.35);
}

.qv-btn-call {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 16px; border-radius: 12px;
  background: linear-gradient(135deg, #C9A96E, #6B4226);
  color: white; font-weight: 800; font-size: 13px;
  text-decoration: none; transition: all 0.2s; white-space: nowrap;
}
.qv-btn-call:hover {
  background: linear-gradient(135deg, #d4b47e, #8a5530);
  transform: translateY(-1px); box-shadow: 0 4px 14px rgba(107,66,38,0.3);
}

.qv-btn-wish {
  width: 42px; height: 42px; border-radius: 10px;
  background: #f8f5f0; border: 1.5px solid #e8e0d5;
  font-size: 18px; cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.qv-btn-wish:hover { background: #fee; border-color: #fcc; }

.qv-btn-detail {
  display: flex; align-items: center;
  padding: 11px 16px; border-radius: 12px;
  background: #f0ebe0; color: #6B4226;
  font-weight: 800; font-size: 13px;
  text-decoration: none; transition: all 0.2s; white-space: nowrap;
}
.qv-btn-detail:hover { background: #e8e0d5; transform: translateY(-1px); }

/* ─── Responsive Quick View ─── */
@media (max-width: 680px) {
  .qv-content { grid-template-columns: 1fr; }
  .qv-img { border-radius: 24px 24px 0 0; min-height: 220px; max-height: 260px; }
  .qv-info { padding: 22px 20px; }
  .qv-title { font-size: 17px; }
  .qv-btn-cart { min-width: 100px; }
}


/* ===============================================================
   Float Action Buttons (WhatsApp + Call)
   =============================================================== */
.float-actions {
  position: fixed;
  bottom: 30px;
  left: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 9990;
}

.float-wa-btn,
.float-call-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  box-shadow: 0 4px 18px rgba(0,0,0,0.28);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s;
  position: relative;
  border: none;
  cursor: pointer;
}

.float-wa-btn:hover,
.float-call-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 28px rgba(0,0,0,0.38);
}

/* واتساب — أخضر */
.float-wa-btn {
  background: linear-gradient(145deg, #25D366, #128C7E);
}

/* اتصال — بني ذهبي */
.float-call-btn {
  background: linear-gradient(145deg, #6B4226, #C9A96E);
}

/* حلقة نبض على واتساب */
.float-wa-btn::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2.5px solid rgba(37,211,102,0.55);
  animation: wa-pulse 2.2s ease-out infinite;
  pointer-events: none;
}

@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

@media (max-width: 480px) {
  .float-actions    { bottom: 22px; left: 14px; gap: 12px; }
  .float-wa-btn,
  .float-call-btn   { width: 50px; height: 50px; }
}