/* ============================================
   MODERN E-COMMERCE COMPONENTS
   ============================================ */

/* Product Card Enhanced */
.product-card {
  position: relative;
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.product-card-image {
  position: relative;
  overflow: hidden;
  background: #f8f9fa;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.5s ease;
}

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

.product-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}

.product-card-actions {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transform: translateX(1rem);
  transition: all 0.3s ease;
  z-index: 2;
}

.product-card:hover .product-card-actions {
  opacity: 1;
  transform: translateX(0);
}

.product-card-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
}

.product-card-action-btn:hover {
  background: var(--gold);
  color: white;
  transform: scale(1.1);
}

.product-card-content {
  padding: 1.5rem;
}

.product-card-brand {
  font-size: 0.875rem;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.product-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
}

.product-card-price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.product-card-price-current {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.product-card-price-old {
  font-size: 1rem;
  color: var(--text-gray);
  text-decoration: line-through;
}

.product-card-footer {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  gap: 0.5rem;
}

/* Quick View Modal */
.quick-view-modal .modal-content {
  border-radius: 1.5rem;
  border: none;
  overflow: hidden;
}

.quick-view-gallery {
  display: grid;
  gap: 1rem;
}

.quick-view-main-image {
  border-radius: 1rem;
  overflow: hidden;
  background: #f8f9fa;
  aspect-ratio: 1;
}

.quick-view-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.quick-view-thumbnail {
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.quick-view-thumbnail:hover,
.quick-view-thumbnail.active {
  border-color: var(--gold);
}

/* Filter Chips */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--gold-10);
  border: 1px solid var(--gold-40);
  border-radius: 2rem;
  font-size: 0.875rem;
  color: var(--gold-dark);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-chip:hover {
  background: var(--gold-20);
  border-color: var(--gold);
}

.filter-chip-remove {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  border: none;
  cursor: pointer;
}

/* Product Details Section */
.product-detail-section {
  padding: 3rem 0;
}

.product-detail-gallery {
  position: sticky;
  top: 100px;
}

.product-detail-main-image {
  border-radius: 1rem;
  overflow: hidden;
  background: #f8f9fa;
  margin-bottom: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.product-detail-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.product-detail-info {
  padding-left: 2rem;
}

.product-detail-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.product-detail-subtitle {
  font-size: 1.25rem;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
}

.product-detail-price-section {
  background: var(--gold-10);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.product-detail-attributes {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.attribute-group {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 1rem;
}

.attribute-label {
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-gray);
  margin-bottom: 0.5rem;
}

.attribute-value {
  font-size: 1rem;
  color: var(--text-dark);
}

/* Fragrance Notes Display */
.fragrance-notes {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.fragrance-note-group {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.fragrance-note-type {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fragrance-note-type i {
  color: var(--gold);
}

.fragrance-note-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fragrance-note-tag {
  padding: 0.5rem 1rem;
  background: var(--gold-10);
  border-radius: 2rem;
  font-size: 0.875rem;
  color: var(--gold-dark);
}

/* Review Card */
.review-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
}

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

.review-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-20);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--gold-dark);
}

.review-author-info h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.review-author-info p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-gray);
}

.review-rating {
  display: flex;
  gap: 0.25rem;
}

.review-content {
  margin-bottom: 1rem;
}

.review-title {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

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

.review-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

.review-image {
  aspect-ratio: 1;
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
}

.review-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.review-image:hover img {
  transform: scale(1.1);
}

.review-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}

.review-helpful {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-gray);
}

.review-helpful button {
  background: none;
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.review-helpful button:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.comparison-table th,
.comparison-table td {
  padding: 1.5rem;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
}

.comparison-table th {
  background: var(--gold-10);
  font-weight: 600;
  color: var(--text-dark);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover {
  background: #f8f9fa;
}

.comparison-product-header {
  text-align: center;
  padding: 2rem 1rem;
}

.comparison-product-image {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 1rem;
}

.comparison-feature-label {
  text-align: left;
  font-weight: 600;
  background: #f8f9fa;
}

/* Quiz Container */
.quiz-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.quiz-progress {
  height: 8px;
  background: #e0e0e0;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 2rem;
}

.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  transition: width 0.5s ease;
}

.quiz-question-card {
  background: white;
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  animation: slideIn 0.5s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quiz-question-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.quiz-option {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.quiz-option:hover {
  border-color: var(--gold);
  background: var(--gold-10);
  transform: translateX(8px);
}

.quiz-option input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--gold);
}

.quiz-option-content {
  flex: 1;
}

.quiz-option-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.quiz-option-description {
  font-size: 0.875rem;
  color: var(--text-gray);
}

/* Wishlist Grid */
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.wishlist-empty {
  text-align: center;
  padding: 4rem 2rem;
}

.wishlist-empty-icon {
  font-size: 4rem;
  color: var(--text-gray);
  margin-bottom: 1rem;
}

/* Alert Banners with Icons */
.alert-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.alert-banner-icon {
  font-size: 1.5rem;
}

.alert-banner-content {
  flex: 1;
}

.alert-banner-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.alert-stock {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
}

.alert-price {
  background: #d1ecf1;
  border-left: 4px solid #17a2b8;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .product-card-title {
    font-size: 1rem;
  }
  
  .product-detail-title {
    font-size: 1.75rem;
  }
  
  .product-detail-info {
    padding-left: 0;
    padding-top: 2rem;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 1rem;
    font-size: 0.875rem;
  }
  
  .quiz-question-card {
    padding: 1.5rem;
  }
  
  .wishlist-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }
}

/* ============================================
   PRODUCTS PAGE SPECIFIC STYLES
   ============================================ */

/* Filters Sidebar */
.filter-panel {
  position: sticky;
  top: 100px;
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.filter-header {
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gold-10);
}

.filter-section {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--gold-10);
}

.filter-section:last-child {
  border-bottom: none;
}

.filter-title {
  font-weight: 600;
  color: var(--dp);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
}

.filter-option:hover {
  background-color: var(--gold-10);
}

.filter-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--gold);
}

.filter-option span {
  font-size: 0.9rem;
  color: #333;
}

/* Filter Chips */
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold-20);
  color: var(--dp);
  padding: 0.4rem 0.8rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  margin: 0.25rem;
  transition: all 0.3s ease;
}

.filter-chip-remove {
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.filter-chip-remove:hover {
  transform: scale(1.2);
  color: var(--dp);
}

/* Product Grid Layout */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }
}

/* Product Card Content */
.product-card-content {
  padding: 1.25rem;
}

.product-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card-brand {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.product-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dp);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.product-card-rating .star-rating {
  display: flex;
  gap: 0.15rem;
}

.product-card-rating .star-rating i {
  font-size: 0.9rem;
  color: var(--gold);
}

.product-card-rating .rating-count {
  font-size: 0.85rem;
  color: #6c757d;
}

.product-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 0.75rem;
}

.product-card-meta i {
  color: var(--gold);
}

.product-card-price {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.price-original {
  font-size: 0.95rem;
  color: #999;
  text-decoration: line-through;
}

.price-current {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
}

.product-card-admin {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gold-10);
}

/* Comparison Bar */
.comparison-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--dp) 0%, #1a1a1a 100%);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.comparison-bar-title {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.comparison-bar-title i {
  color: var(--gold);
  font-size: 1.25rem;
}

#comparisonCount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--dp);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Loading Spinner Enhanced */
.loading-spinner {
  padding: 2rem;
}

.loading-spinner .spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.3rem;
}

.text-gold {
  color: var(--gold) !important;
}

.spinner-border.text-gold {
  border-color: var(--gold-20);
  border-right-color: var(--gold);
}

/* Mobile Filters Toggle */
@media (max-width: 991px) {
  #filtersSidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    z-index: 1050;
    background: white;
    transition: left 0.3s ease;
    overflow-y: auto;
  }

  #filtersSidebar.show {
    left: 0;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  }

  .filter-panel {
    position: static;
    max-height: none;
    box-shadow: none;
  }
}

/* Price Range Slider */
.price-range-slider {
  padding: 1rem 0;
}

/* Checkbox Label for Comparison */
.comparison-checkbox-label {
  position: relative;
}

.comparison-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.comparison-checkbox:checked + i {
  color: var(--gold);
}

/* Hover state for product card */
.product-card.hovered {
  z-index: 10;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state i {
  font-size: 4rem;
  color: var(--gold-40);
  margin-bottom: 1.5rem;
}

.empty-state h3 {
  color: var(--dp);
  margin-bottom: 1rem;
}

.empty-state p {
  color: #6c757d;
  margin-bottom: 2rem;
}
