/* Product Modal Styles */
.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .product-modal-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  .product-modal {
    background: white;
    border-radius: 12px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
  }
  
  .product-modal-overlay.active .product-modal {
    transform: scale(1);
  }
  
  .modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f5f5f5;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
  }
  
  .modal-close:hover {
    background: #e0e0e0;
  }
  
  .modal-close i {
    font-size: 18px;
    color: #666;
  }
  
  /* Quick View Modal */
  .quick-view-content {
    display: flex;
    padding: 40px;
    gap: 40px;
  }
  
  .product-images {
    flex: 1;
    background: #f8f4ff;
    border-radius: 12px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .product-images img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
  }
  
  .product-details {
    flex: 1;
    padding: 20px 0;
  }
  
  .product-category {
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
  }
  
  .product-title {
    font-size: 32px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.2;
  }
  
  .product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
  }
  
  .product-rating .star-rating {
    color: #ff6b6b;
  }
  
  .review-count {
    color: #666;
    font-size: 14px;
  }
  
  .product-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
  }
  
  .product-quantity { margin-bottom: 30px; }
  /* Harmonize with global quantity enhancer look, scoped to modal */
  .product-modal .quantity.qty-enhanced {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 6px;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    background: #fff;
  }
  .product-modal .quantity.qty-enhanced .qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #111827;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
  }
  .product-modal .quantity.qty-enhanced .divider {
    width: 1px;
    height: 24px;
    background: #e5e7eb;
  }
  .product-modal .quantity.qty-enhanced .qty {
    width: 56px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
  }
  
  .product-price-cart {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  
  .product-modal .price {
    font-size: 28px;
    font-weight: 600;
    color: #333;
  }
  
  .add-to-cart-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  
  .add-to-cart-btn:hover {
    background: #ff5252;
  }
  
  /* Wishlist & Compare Modal */
  .wishlist-content,
  .compare-content {
    padding: 40px;
    text-align: center;
  }
  
  .success-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-weight: 500;
  }
  
  .success-message i {
    font-size: 20px;
  }
  
  .product-preview {
    background: #f8f4ff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
  }
  
  .product-preview img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
  }
  
  .product-preview h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
  }
  
  .product-preview p {
    color: #666;
    line-height: 1.5;
  }
  
  .compare-actions {
    margin-top: 20px;
  }
  
  .btn-compare-view {
    background: #6c5ce7;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
  }
  
  .btn-compare-view:hover {
    background: #5a4fcf;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .quick-view-content {
      flex-direction: column;
      padding: 20px;
      gap: 20px;
    }
  
    .product-title {
      font-size: 24px;
    }
  
    .product-price-cart {
      flex-direction: column;
      align-items: stretch;
      gap: 15px;
    }
  
    .add-to-cart-btn {
      width: 100%;
    }
  
    .wishlist-content,
    .compare-content {
      padding: 20px;
    }
  }
  
  /* Loading State */
  .modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
  }
  
  .modal-loading::after {
    content: "";
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff6b6b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  