/**
 * LUXURY SHOE & FASHION PRODUCT CARD (Lütvelizade + Erbilden hybrid)
 * Tall 3:4 aspect ratio, secondary image fade, sleek floating badges & wishlist, refined boutique typography
 */

/* ═══════════════════════════════════════
   PRODUCT GRID
   ═══════════════════════════════════════ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1400px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }
}

/* ═══════════════════════════════════════
   PRODUCT CARD COMPONENT
   ═══════════════════════════════════════ */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 4px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-3px);
}

/* ═══════════════════════════════════════
   IMAGE CONTAINER (Tall 3:4 Luxury Ratio)
   ═══════════════════════════════════════ */
.product-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background-color: #f7f7f8;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}

.product-card-image a.image-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  display: block;
}

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

/* Secondary image hover & mobile swipe transition */
.product-card-image img.img-secondary {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-card-image img.img-secondary,
.product-card.show-secondary .product-card-image img.img-secondary {
  opacity: 1;
  transform: scale(1.04);
}

.product-card.show-secondary .product-card-image img.img-primary {
  opacity: 0;
}

/* Mobile Image Indicator Dots */
.card-mobile-dots {
  display: none;
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  gap: 4px;
  z-index: 12;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: auto;
  cursor: pointer;
}

@media (max-width: 1023px) {
  .card-mobile-dots {
    display: inline-flex;
    align-items: center;
  }
}

.cmd-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.cmd-dot:first-child {
  width: 12px;
  border-radius: 4px;
  background: #111111;
}

.product-card.show-secondary .card-mobile-dots .cmd-dot:first-child {
  width: 5px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
}

.product-card.show-secondary .card-mobile-dots .cmd-dot:last-child {
  width: 12px;
  border-radius: 4px;
  background: #111111;
}

/* ═══════════════════════════════════════
   FLOATING BADGES (Erbilden + Lütvelizade)
   ═══════════════════════════════════════ */
.product-badges-wrap {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 10;
  pointer-events: none;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  line-height: 1.2;
}

/* Deal Pill (Erbilden style) */
.product-badge.deal {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

/* Sale Discount Pill */
.product-badge.sale {
  background: #111111;
  color: #ffffff;
}

/* New Season Pill */
.product-badge.new {
  background: #047857;
  color: #ffffff;
}

/* Featured / Vitrin */
.product-badge.featured {
  background: #4f46e5;
  color: #ffffff;
}

/* Sold Out Pill */
.product-badge.soldout {
  background: #6b7280;
  color: #ffffff;
}

/* ═══════════════════════════════════════
   WISHLIST / FAVORITE BUTTON
   ═══════════════════════════════════════ */
.product-favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555555;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.product-favorite-btn:hover {
  background: #ffffff;
  color: #dc2626;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.product-favorite-btn.active {
  color: #dc2626;
  background: #ffffff;
}

.product-favorite-btn.active svg,
.product-favorite-btn.active i {
  fill: #dc2626;
}

/* ═══════════════════════════════════════
   VIDEO INDICATOR (Icon Only - Luxury Boutique Style)
   ═══════════════════════════════════════ */
.product-video-indicator {
  position: absolute;
  top: 52px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  z-index: 12;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
}

.product-video-indicator svg,
.product-video-indicator i {
  color: #ffffff;
  fill: #ffffff;
  margin-left: 1px;
}

.product-card:hover .product-video-indicator {
  transform: scale(1.08);
  background: #000000;
}

/* ═══════════════════════════════════════
   QUICK ACTION BUTTON (Slide up on hover)
   ═══════════════════════════════════════ */
.product-quick-action {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 10;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-quick-action {
  opacity: 1;
  transform: translateY(0);
}

.btn-quick-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.btn-quick-add:hover {
  background: #000000;
  color: #ffffff;
  transform: scale(1.02);
}

/* ═══════════════════════════════════════
   PRODUCT META & INFO (Below Image)
   ═══════════════════════════════════════ */
.product-info {
  display: flex;
  flex-direction: column;
  padding: 4px 2px 8px;
}

.product-category-tag {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #888888;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-title {
  font-family: 'Jost', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  color: #1f2937;
  margin: 0 0 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.product-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.product-title a:hover {
  color: #000000;
}

/* Color Variant Swatches (Erbilden style) */
.product-swatches {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.swatch-dots {
  display: flex;
  align-items: center;
  gap: 3px;
}

.swatch-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: inline-block;
}

.swatch-count-text {
  font-size: 11px;
  color: #777777;
  font-weight: 500;
}

/* Price Display Area */
.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}

.product-price-current {
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
}

.product-price-current.has-discount {
  color: #111827;
}

.product-price-original {
  font-size: 12px;
  font-weight: 400;
  color: #9ca3af;
  text-decoration: line-through;
}

.product-discount-pill {
  font-size: 10px;
  font-weight: 700;
  color: #dc2626;
  background: #fef2f2;
  padding: 1px 5px;
  border-radius: 2px;
}

/* Promo Banner below price (Erbilden 1 Alana 1 Bedava) */
.product-deal-banner {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Jost', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  color: #dc2626;
  background: #fef2f2;
  padding: 3px 8px;
  border-radius: 2px;
  letter-spacing: 0.04em;
  width: fit-content;
}

/* ═══════════════════════════════════════
   SOLD OUT OVERLAY
   ═══════════════════════════════════════ */
.product-soldout-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
  pointer-events: none;
}

.product-soldout-badge {
  background: #111111;
  color: #ffffff;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 2px;
}

/* ═══════════════════════════════════════
   CAROUSEL VIEW SUPPORT
   ═══════════════════════════════════════ */
.product-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 12px;
}

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

.product-carousel .product-card {
  flex-shrink: 0;
  width: 240px;
  scroll-snap-align: start;
}

@media (min-width: 640px) {
  .product-carousel .product-card {
    width: 270px;
  }
}

@media (min-width: 1024px) {
  .product-carousel .product-card {
    width: 290px;
  }
}

/* ═══════════════════════════════════════
   SKELETON LOADING PLACEHOLDERS
   ═══════════════════════════════════════ */
.product-card.skeleton {
  pointer-events: none;
}

.skeleton-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 3px;
  margin-bottom: 10px;
}

.skeleton-title {
  height: 14px;
  width: 80%;
  background: #f0f0f0;
  border-radius: 2px;
  margin-bottom: 8px;
}

.skeleton-price {
  height: 16px;
  width: 45%;
  background: #f0f0f0;
  border-radius: 2px;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Mobile Adjustments */
@media (max-width: 639px) {
  .product-card-image {
    margin-bottom: 8px;
  }

  .product-title {
    font-size: 12.5px;
    min-height: 2.6em;
  }

  .product-price-current {
    font-size: 14.5px;
  }

  .product-favorite-btn {
    width: 32px;
    height: 32px;
    top: 8px;
    right: 8px;
  }

  .product-quick-action {
    display: none;
  }
}

/* ═══════════════════════════════════════
   VIDEO INDICATOR (Icon Only)
   ═══════════════════════════════════════ */
.product-video-indicator {
  position: absolute;
  top: 10px;
  right: 50px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 12;
  pointer-events: none;
  transition: transform 0.2s ease;
}

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

@media (max-width: 639px) {
  .product-video-indicator {
    top: 8px;
    right: 44px;
    width: 28px;
    height: 28px;
  }
}

/* ═══════════════════════════════════════
   MULTI-IMAGE CARD SLIDER & ACTIVE ARROWS
   ═══════════════════════════════════════ */
.card-slider-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.card-slider {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.card-slider::-webkit-scrollbar {
  display: none;
}

.card-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: block;
  scroll-snap-align: start;
}

.card-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Card Slider Arrows (Left / Right) */
.card-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.product-card:hover .card-arrow {
  opacity: 0.92;
}

.card-arrow:hover {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
  transform: translateY(-50%) scale(1.1);
  opacity: 1 !important;
}

.card-arrow-left {
  left: 8px;
}

.card-arrow-right {
  right: 8px;
}

/* Dots Indicator */
.card-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 15;
  pointer-events: none;
}

.card-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  border: none;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.2s ease;
}

.card-dot.active {
  width: 14px;
  border-radius: 999px;
  background: #111111;
}

