/* ============================================
   VIBHUSHA PRODUCT CARD
   ============================================ */

/* ─── PRODUCT GRID ─── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.product-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ─── PRODUCT CARD ─── */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.product-card-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--ivory-dark);
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-default),
              opacity var(--duration-normal);
  position: absolute;
  inset: 0;
}

.product-card-img.secondary {
  opacity: 0;
  z-index: 1;
}

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

.product-card:hover .product-card-img.secondary {
  opacity: 1;
}

.product-card:hover .product-card-img.primary {
  opacity: 0;
}

/* ─── PRODUCT BADGES ─── */
.product-badges {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

/* ─── WISHLIST BUTTON ─── */
.wishlist-btn {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: all var(--duration-fast) var(--ease-spring);
  transform: scale(0.85);
  opacity: 0;
}

.product-card:hover .wishlist-btn {
  transform: scale(1);
  opacity: 1;
}

.wishlist-btn.wishlisted {
  opacity: 1;
  transform: scale(1);
  background: var(--magenta-pale);
}

.wishlist-btn svg {
  width: 17px;
  height: 17px;
  stroke: var(--charcoal-mid);
  fill: none;
  transition: all var(--duration-fast);
}

.wishlist-btn.wishlisted svg {
  stroke: var(--magenta);
  fill: var(--magenta);
}

.wishlist-btn:hover { transform: scale(1.1); }
.wishlist-btn:hover svg { stroke: var(--magenta); }

/* ─── QUICK ADD BUTTON ─── */
.quick-add-btn {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background: var(--navy);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px var(--space-4);
  border: none;
  cursor: pointer;
  transform: translateY(100%);
  transition: transform var(--duration-normal) var(--ease-default),
              background var(--duration-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

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

.quick-add-btn:hover { background: var(--navy-deep); }

/* ─── PRODUCT CARD INFO ─── */
.product-card-info {
  padding: var(--space-4) 0 var(--space-3);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.product-card-category {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.product-card-name {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.25;
  transition: color var(--duration-fast);
}

.product-card:hover .product-card-name {
  color: var(--gold-dark);
}

.product-card-fabric {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.03em;
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.product-card-stars {
  display: inline-flex;
  gap: 1px;
  font-size: 11px;
}

.product-card-stars .filled { color: var(--gold); }
.product-card-stars .empty { color: var(--ivory-mid); }

.product-card-review-count {
  font-size: 11px;
  color: var(--color-text-faint);
}

/* ─── PRODUCT PRICING ─── */
.product-card-price {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
}

.price-current {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--navy);
}

.price-original {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  text-decoration: line-through;
}

.price-discount {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--magenta);
}

/* ─── CARD ACTIONS ─── */
.product-card-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

.product-card-btn-add {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--ivory-dark);
  border: 1px solid var(--color-border);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-default);
  text-align: center;
}

.product-card-btn-add:hover {
  background: var(--navy);
  color: var(--ivory);
  border-color: var(--navy);
}

.product-card-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: #1da851;
  background: #e8f8ee;
  border: 1px solid #b7ebc9;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-default);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.product-card-whatsapp:hover {
  background: #25d366;
  color: white;
  border-color: #25d366;
}

.product-card-whatsapp svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ─── CAROUSEL ─── */
.product-carousel-wrap {
  position: relative;
}

.product-carousel {
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.product-carousel::-webkit-scrollbar { display: none; }

.product-carousel .product-card {
  flex: 0 0 calc(25% - 18px);
  scroll-snap-align: start;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
  justify-content: center;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--white);
  color: var(--navy);
  transition: all var(--duration-fast);
}

.carousel-btn:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--ivory);
}

.carousel-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ─── COLLECTION CARDS ─── */
.collection-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.collection-card-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-default);
}

.collection-card:hover .collection-card-image {
  transform: scale(1.04);
}

.collection-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(26,39,68,0.75) 0%,
    rgba(26,39,68,0.2) 50%,
    transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-6);
  transition: background var(--duration-normal);
}

.collection-card:hover .collection-card-overlay {
  background: linear-gradient(to top,
    rgba(26,39,68,0.85) 0%,
    rgba(26,39,68,0.3) 60%,
    transparent 100%);
}

.collection-card-label {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--space-1);
}

.collection-card-title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--ivory);
  line-height: 1.2;
  margin-bottom: var(--space-2);
}

.collection-card-desc {
  font-size: var(--text-xs);
  color: rgba(250,247,242,0.75);
  line-height: 1.5;
  max-width: 200px;
}

.collection-card-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: var(--space-4);
  transition: gap var(--duration-fast);
}

.collection-card:hover .collection-card-link {
  gap: var(--space-3);
}

.collection-card-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
}

/* ─── FILTER SIDEBAR ─── */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-10);
  align-items: start;
}

.filter-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.filter-section {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-5);
  margin-bottom: var(--space-5);
}

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

.filter-section-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: var(--space-4);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 5px 0;
  cursor: pointer;
}

.filter-checkbox {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--duration-fast);
}

.filter-option.checked .filter-checkbox {
  background: var(--navy);
  border-color: var(--navy);
}

.filter-option.checked .filter-checkbox::after {
  content: '';
  width: 8px;
  height: 5px;
  border-left: 1.5px solid white;
  border-bottom: 1.5px solid white;
  transform: rotate(-45deg) translateY(-1px);
}

.filter-label {
  font-size: var(--text-sm);
  color: var(--charcoal);
  flex: 1;
  transition: color var(--duration-fast);
}

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

.filter-count {
  font-size: 11px;
  color: var(--color-text-faint);
}

/* Color filter swatches */
.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--duration-fast), transform var(--duration-fast);
  position: relative;
}

.color-swatch:hover, .color-swatch.selected {
  border-color: var(--gold);
  transform: scale(1.15);
}

/* Price range slider */
.price-range {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.price-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: var(--charcoal-mid);
}

.price-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 2px;
  background: var(--gold);
  outline: none;
  border-radius: 1px;
}

.price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  background: var(--navy);
  cursor: pointer;
  border: 2px solid var(--ivory);
  box-shadow: 0 0 0 1px var(--navy);
}

/* Sort bar */
.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-8);
}

.sort-count {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.sort-select {
  font-size: var(--text-sm);
  color: var(--navy);
  font-weight: 500;
  border: 1.5px solid var(--color-border);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  outline: none;
}

.sort-select:focus { border-color: var(--gold); }

/* Active filters */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.active-filter-tag {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 5px 12px;
  background: var(--ivory-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--navy);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.active-filter-tag:hover {
  background: var(--navy);
  color: var(--ivory);
  border-color: var(--navy);
}

.active-filter-tag svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
}
