/* ==========================================================================
   CHAUDHARY PERFUMES (chaudharyperfumes.pk)
   PREMIUM LUXURY PRODUCT CARD & CATALOG STYLES (LIGHT/DARK ADAPTIVE)
   ========================================================================== */

/* Product Grid Layout */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 32px;
}

.product-grid.list-view {
  grid-template-columns: 1fr;
}

/* Luxury Product Card - Tom Ford & Creed Style */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 300ms ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-gold);
  box-shadow: 0 0 20px var(--brand-gold-glow);
}

/* Picture Background Wrapper */
.product-img-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
  background: var(--img-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.product-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 300ms ease;
}

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

/* Badges Overlay */
.product-badge-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.product-actions {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
  opacity: 0.85;
  transition: opacity 300ms ease;
}

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

/* Info Details */
.product-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.25;
}

.product-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 300ms ease;
}

.product-title a:hover {
  color: var(--brand-gold);
}

.product-notes {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.4;
}

.product-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
}

.add-cart-btn {
  background: var(--brand-gold);
  color: #0F0F0F;
  border: none;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 300ms ease;
  box-shadow: 0 4px 12px var(--brand-gold-glow);
}

.add-cart-btn:hover {
  background: var(--brand-gold-hover);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.35);
  transform: translateY(-1px);
}

/* Quick View Modal */
.quick-view-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 820px;
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--brand-gold);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 300ms ease;
  overflow: hidden;
}

.quick-view-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.quick-view-body {
  padding: 36px;
}

.quick-view-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.quick-view-img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  background: var(--img-bg);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

/* Ultra Clean Mobile Optimization for Explore Fragrances & Catalog Page */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .product-card {
    border-radius: 12px !important;
    padding: 0 !important;
  }

  .product-img-wrapper {
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    padding: 12px !important;
  }

  .product-badge-overlay {
    top: 8px !important;
    left: 8px !important;
  }

  .product-actions {
    top: 8px !important;
    right: 8px !important;
    gap: 4px !important;
  }

  .product-info {
    padding: 12px !important;
  }

  .product-category {
    font-size: 0.68rem !important;
    margin-bottom: 3px !important;
  }

  .product-title {
    font-size: 0.92rem !important;
    margin-bottom: 4px !important;
    line-height: 1.2 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-notes {
    font-size: 0.76rem !important;
    margin-bottom: 8px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding-top: 8px !important;
  }

  .product-price {
    font-size: 1rem !important;
    text-align: center;
  }

  .add-cart-btn {
    width: 100% !important;
    padding: 8px 10px !important;
    font-size: 0.78rem !important;
    min-height: 38px;
    border-radius: 8px !important;
    text-align: center;
  }

  .quick-view-grid {
    grid-template-columns: 1fr;
  }

  .quick-view-body {
    padding: 20px 16px !important;
    max-height: 85vh;
    overflow-y: auto;
  }

  .quick-view-img {
    max-height: 220px !important;
    padding: 12px !important;
  }
}
