/* Enhanced Styles for House of Elleora */

/* Search Bar */
.search-container {
  max-width: 600px;
  margin: 0 auto 40px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 15px 50px 15px 20px;
  border: 2px solid var(--primary);
  border-radius: 50px;
  font-size: 1em;
  transition: all 0.3s;
}

.search-input:focus {
  outline: none;
  box-shadow: 0 5px 20px var(--shadow-lg);
  border-color: var(--primary-dark);
}

.search-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.3em;
}

/* Sort Dropdown */
.sort-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.sort-select {
  padding: 10px 15px;
  border: 2px solid var(--primary);
  border-radius: 25px;
  font-size: 0.95em;
  cursor: pointer;
  background: white;
  transition: all 0.3s;
}

.sort-select:focus {
  outline: none;
  border-color: var(--primary-dark);
}

/* Category Count */
.category-count {
  font-size: 0.85em;
  opacity: 0.7;
  margin-left: 5px;
}

/* Loading Skeleton */
.skeleton {
  animation: skeleton-loading 1s linear infinite alternate;
}

@keyframes skeleton-loading {
  0% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}

.skeleton-image {
  width: 100%;
  height: 350px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 20px 20px 0 0;
}

.skeleton-content {
  padding: 25px;
}

.skeleton-text {
  height: 20px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 10px;
}

.skeleton-title {
  width: 80%;
  height: 24px;
}

.skeleton-category {
  width: 40%;
}

.skeleton-price {
  width: 30%;
}

/* Product Image Hover Effect */
.product-image-wrapper {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 20px 20px 0 0;
}

.product-image {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image {
  transform: scale(1.1);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(217, 115, 152, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.btn-quick-view {
  background: white;
  color: var(--primary);
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.product-card:hover .btn-quick-view {
  transform: translateY(0);
}

/* Badges */
.badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 10;
  animation: fadeIn 0.5s;
}

.badge-new {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.badge-low-stock {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
  top: 50px;
}

/* Quick View Modal */
#quickViewModal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2000;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
}

#quickViewModal.active {
  display: block;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -45%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.quick-view-content {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.quick-view-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quick-view-details {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quick-view-details h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2em;
  margin-bottom: 10px;
  color: var(--secondary);
}

.quick-view-details .product-category {
  color: var(--primary);
  font-size: 0.9em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.quick-view-details .product-price {
  font-size: 2em;
  color: var(--primary);
  font-weight: 700;
  margin: 15px 0;
}

.quick-view-details .product-description {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}

.quick-view-details .product-stock {
  margin-bottom: 20px;
  font-weight: 600;
}

.quick-view-details button {
  width: 100%;
  padding: 15px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.quick-view-details button:hover {
  background: var(--primary-dark);
  transform: scale(1.02);
}

.quick-view-details button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1.5em;
  box-shadow: 0 4px 20px var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
}

#backToTop:hover {
  background: var(--primary-dark);
  transform: translateY(-5px);
}

/* No Results State */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
}

.no-results-icon {
  font-size: 5em;
  margin-bottom: 20px;
  opacity: 0.5;
}

.no-results h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2em;
  color: var(--secondary);
  margin-bottom: 10px;
}

.no-results p {
  color: var(--text-light);
  font-size: 1.1em;
}

/* Improved Product Grid Spacing */
.products-grid {
  gap: 40px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .quick-view-content {
    grid-template-columns: 1fr;
  }
  
  .quick-view-details {
    padding: 30px 20px;
  }
  
  #backToTop {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
  
  .products-grid {
    gap: 25px;
  }
  
  .badge {
    font-size: 0.7em;
    padding: 5px 10px;
  }
}


/* ============================================
   WISHLIST FEATURE STYLES
   ============================================ */

.wishlist-btn {
  position: relative;
  background: var(--white);
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-right: 10px;
}

.wishlist-btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--shadow-lg);
}

.wishlist-count {
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75em;
  font-weight: 600;
}

.wishlist-btn:hover .wishlist-count {
  background: var(--white);
  color: var(--primary);
}

.wishlist-sidebar {
  position: fixed;
  right: -400px;
  top: 0;
  width: 400px;
  height: 100vh;
  background: var(--white);
  box-shadow: -5px 0 20px var(--shadow-lg);
  z-index: 1000;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.wishlist-sidebar.active {
  right: 0;
}

.wishlist-header {
  padding: 25px;
  background: var(--primary);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wishlist-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5em;
  margin: 0;
}

.close-wishlist {
  background: none;
  border: none;
  color: var(--white);
  font-size: 2em;
  cursor: pointer;
  line-height: 1;
}

.wishlist-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.wishlist-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  border-bottom: 1px solid #eee;
  position: relative;
  transition: background 0.3s;
}

.wishlist-item:hover {
  background: var(--accent);
}

.wishlist-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
}

.wishlist-item-details {
  flex: 1;
}

.wishlist-item-name {
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--secondary);
}

.wishlist-item-price {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.2em;
}

.wishlist-item-category {
  font-size: 0.85em;
  color: var(--text-light);
  margin-bottom: 5px;
}

.remove-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #dc3545;
  color: var(--white);
  border: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.remove-wishlist:hover {
  background: #c82333;
  transform: scale(1.1);
}

.add-to-cart-from-wishlist {
  width: 100%;
  padding: 8px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9em;
  margin-top: 8px;
  transition: all 0.3s;
}

.add-to-cart-from-wishlist:hover {
  background: var(--primary-dark);
}

.wishlist-footer {
  padding: 20px;
  border-top: 2px solid #eee;
  background: var(--accent);
}

.wishlist-note {
  text-align: center;
  color: var(--text-light);
  font-size: 0.9em;
  margin: 0;
}

.empty-wishlist {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.empty-wishlist-icon {
  font-size: 4em;
  margin-bottom: 15px;
  opacity: 0.5;
}

.wishlist-heart-btn {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3em;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wishlist-heart-btn:hover {
  transform: scale(1.1);
  background: var(--white);
}

.wishlist-heart-btn.active {
  color: #dc3545;
  animation: heartbeat 0.6s ease-in-out;
}

/* ============================================
   REVIEWS & RATINGS STYLES
   ============================================ */

.product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.stars {
  color: #ffc107;
  font-size: 1.1em;
  letter-spacing: 2px;
}

.rating-count {
  color: var(--text-light);
  font-size: 0.9em;
}

.reviews-section {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 2px solid #eee;
}

.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.reviews-header h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5em;
  color: var(--secondary);
}

.write-review-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.write-review-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.review-item {
  background: var(--accent);
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 15px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.reviewer-name {
  font-weight: 600;
  color: var(--secondary);
}

.review-date {
  font-size: 0.85em;
  color: var(--text-light);
}

.review-stars {
  color: #ffc107;
  font-size: 1em;
  margin-bottom: 10px;
}

.review-text {
  color: var(--text);
  line-height: 1.6;
}

.verified-badge {
  display: inline-block;
  background: #28a745;
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75em;
  margin-left: 8px;
}

.review-modal-content {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 10px 50px var(--shadow-lg);
  max-width: 500px;
  width: 90%;
}

.review-form {
  padding: 30px;
}

.star-rating {
  display: flex;
  gap: 5px;
  font-size: 2em;
  margin-bottom: 10px;
}

.star-rating .star {
  cursor: pointer;
  color: #ddd;
  transition: all 0.2s;
}

.star-rating .star:hover,
.star-rating .star.active {
  color: #ffc107;
  transform: scale(1.2);
}

.no-reviews {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
}

.rating-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--accent);
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 20px;
}

.average-rating {
  text-align: center;
}

.average-rating-number {
  font-size: 3em;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Playfair Display', serif;
}

.average-rating-stars {
  color: #ffc107;
  font-size: 1.2em;
}

.rating-breakdown {
  flex: 1;
}

.rating-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.rating-bar-label {
  font-size: 0.9em;
  color: var(--text-light);
  width: 60px;
}

.rating-bar-fill {
  flex: 1;
  height: 8px;
  background: #eee;
  border-radius: 10px;
  overflow: hidden;
}

.rating-bar-progress {
  height: 100%;
  background: #ffc107;
  transition: width 0.3s;
}

.rating-bar-count {
  font-size: 0.85em;
  color: var(--text-light);
  width: 40px;
  text-align: right;
}

/* ============================================
   EMAIL NOTIFICATION TOAST
   ============================================ */

.email-toast {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary);
  color: var(--white);
  padding: 15px 30px;
  border-radius: 50px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  z-index: 9999;
  transition: bottom 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.email-toast.show {
  bottom: 30px;
}

.email-toast.success {
  background: #28a745;
}

.email-toast.error {
  background: #dc3545;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 768px) {
  .wishlist-sidebar {
    width: 100%;
    right: -100%;
  }
  
  .wishlist-btn {
    padding: 8px 15px;
    font-size: 0.9em;
  }
  
  .rating-summary {
    flex-direction: column;
  }
  
  .review-modal-content {
    width: 95%;
  }
  
  .star-rating {
    font-size: 1.5em;
  }
}

/* ============================================
   PRODUCT CARD ENHANCEMENTS
   ============================================ */

.product-card {
  position: relative;
}

.product-actions-overlay {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  display: flex;
  justify-content: space-between;
  z-index: 10;
}



/* ============================================
   QUICK VIEW MODAL - NAVIGATION ARROWS
   ============================================ */

.quick-view-content {
  position: relative;
}

/* Close button inside modal */
.qv-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(0,0,0,0.08);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  z-index: 10;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.qv-close:hover { background: rgba(0,0,0,0.15); }

/* Prev / Next arrows */
.qv-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  color: #d97398;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.qv-nav:hover:not(:disabled) {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 18px rgba(217,115,152,0.35);
}
.qv-nav:disabled { cursor: default; }

.qv-prev { left: -22px; }
.qv-next { right: -22px; }

/* Image column */
.qv-image-col {
  flex-shrink: 0;
}

/* Bottom close button */
.qv-close-btn {
  background: #e0e0e0 !important;
  color: #555 !important;
  margin-top: 10px;
}
.qv-close-btn:hover {
  background: #ccc !important;
}

/* Mobile: arrows move inside the modal */
@media (max-width: 640px) {
  .qv-prev { left: 6px; top: 30%; }
  .qv-next { right: 6px; top: 30%; }
  .qv-nav { width: 36px; height: 36px; font-size: 22px; }
}
