/* ==========================================================================
   PRODUCT GRID, DUAL-ANGLE FLIP CARDS & HOVER INTERACTIONS
   High-Contrast Dark & Light Theme Support
   Redesigned with Manrope Solid & Outline Rounded Pills
   ========================================================================== */

.product-feed-section {
  padding: 0.25rem 0 4rem;
}

.section-header-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.25rem;
}

.section-title-box h2 {
  font-size: 2.3rem;
  margin-bottom: 0.35rem;
  letter-spacing: -0.03em;
}

.section-title-box p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-family: var(--font-pill);
  font-weight: 600;
  letter-spacing: 0.04em;
}

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

/* Individual Product Card */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  box-shadow: var(--shadow-sm);
  contain: paint layout;
  content-visibility: auto;
  contain-intrinsic-size: 0 340px;
  touch-action: manipulation;
}

.product-card:hover {
  border-color: var(--text-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Image Container & Dual-Angle Flip */
.card-media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg-card-hover);
  overflow: hidden;
  cursor: pointer;
}

.card-img-front,
.card-img-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-img-front {
  opacity: 1;
  z-index: 2;
}

.card-img-back {
  opacity: 0;
  z-index: 1;
  transform: scale(1.04);
}

/* Desktop Hover Flip */
.product-card:hover .card-img-front {
  opacity: 0;
}

.product-card:hover .card-img-back {
  opacity: 1;
  transform: scale(1);
}

/* Angle Indicator Overlay */
.angle-indicator {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-pill);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
  pointer-events: none;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.product-card:hover .angle-indicator {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

/* Card Floating Badges */
.card-badges-top {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  pointer-events: none;
}

.card-wishlist-btn {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 6;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.card-wishlist-btn:hover {
  background: #ffffff;
  color: #ef4444;
  transform: scale(1.1);
  border-color: #ef4444;
}

.card-wishlist-btn.active {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
}

/* Quick View Hover Button */
.card-quick-actions {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 7;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-normal);
  display: flex;
  gap: 0.5rem;
}

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

.quick-view-btn {
  flex: 1;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-full);
  font-family: var(--font-pill);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.quick-view-btn:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

/* Product Info Section — Minimal Clean E-commerce Layout */
.card-info {
  padding: 0.75rem 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.2rem;
  cursor: pointer;
}

.card-meta-line-single {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-title-compact {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0.1rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.card-price-row-compact {
  display: flex;
  align-items: flex-start;
  margin-top: 0.15rem;
}

.price-stacked-box {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.price-line-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.price-current {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.1;
}

.discount-tag-small {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  color: #16a34a;
  background: rgba(22, 163, 74, 0.12);
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-full);
  line-height: 1.1;
}

.price-mrp {
  font-family: var(--font-heading);
  font-size: 0.76rem;
  color: var(--text-muted);
  text-decoration: line-through;
  line-height: 1.1;
}

.price-discount {
  font-family: var(--font-pill);
  font-size: 0.75rem;
  font-weight: 800;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
}

/* Card Action Button */
.card-cta-btn {
  width: 100%;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem;
  border-radius: var(--radius-full);
  background: var(--pill-bg-solid);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-family: var(--font-pill);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: all var(--transition-fast);
}

.card-cta-btn:hover {
  background: #25D366;
  color: #032d12;
  border-color: #25D366;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}

/* Demand Meter Bar */
.card-demand-meter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-pill);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.demand-bar-track {
  flex: 1;
  height: 4px;
  background: var(--bg-card-hover);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.demand-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #3b82f6 100%);
  border-radius: var(--radius-full);
}

/* Responsive Grid */
@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 860px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }
  .product-card {
    border-radius: 14px;
  }
  .card-media-wrapper {
    border-radius: 14px 14px 0 0;
  }
  .card-info {
    padding: 0.65rem 0.55rem;
    gap: 0.3rem;
  }
  .card-title {
    font-size: 0.82rem;
    height: auto;
    max-height: 2.2rem;
    -webkit-line-clamp: 2;
    margin-bottom: 0.1rem;
  }
  .card-meta-line {
    font-size: 0.68rem;
  }
  .card-price-row {
    margin-top: 0.1rem;
    gap: 0.35rem;
  }
  .price-current {
    font-size: 1.05rem;
  }
  .price-mrp {
    font-size: 0.75rem;
  }
  .card-wishlist-btn {
    top: 0.45rem;
    right: 0.45rem;
    width: 30px;
    height: 30px;
  }
  .angle-indicator {
    font-size: 0.6rem;
    padding: 0.16rem 0.45rem;
    bottom: 0.4rem;
  }
  .price-discount {
    font-size: 0.65rem;
    padding: 0.1rem 0.35rem;
  }
  .card-cta-btn {
    padding: 0.45rem 0.55rem;
    font-size: 0.72rem;
    margin-top: 0.25rem;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.6rem !important;
  }
}

/* ==========================================================================
   PRODUCTION: Color Dots, Add to Bag, Coming Soon, Size Pills
   ========================================================================== */

/* Color dots on card */
.card-color-dots {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}

.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--border-medium);
  cursor: default;
  transition: transform 0.15s;
}

.color-dot.selected {
  border-color: var(--text-primary);
  transform: scale(1.15);
  box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 3.5px var(--text-primary);
}

.color-more-count {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Card badge tag (emoji badge) */
.card-badge-tag {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 5;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.65rem;
  font-family: var(--font-pill);
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 50px;
  letter-spacing: 0.03em;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Coming soon overlay */
.card-coming-soon-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}

.card-coming-soon-overlay span {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.1em;
  background: rgba(0,0,0,0.7);
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.2);
}

/* Size pills on card */
.size-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  white-space: nowrap;
}

.size-pill.disabled {
  opacity: 0.4;
  text-decoration: line-through;
}

/* Add to Bag button on card (primary CTA) */
.btn-card-preorder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-full);
  background: var(--text-primary);
  color: var(--bg-primary);
  font-family: var(--font-pill);
  font-size: 0.75rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  flex: 1;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-card-preorder:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* Add to Bag button in modal */
.modal-add-to-bag-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem 1.5rem;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-pill);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.modal-add-to-bag-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0,0,0,0.35);
}

/* Color swatches in modal */
.color-selector-wrap {
  margin-bottom: 0.85rem;
}

.color-swatches-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border-medium);
  cursor: pointer;
  position: relative;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.color-swatch:hover {
  transform: scale(1.12);
  border-color: var(--text-primary);
}

.color-swatch.active {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 4px var(--text-primary);
}

.color-check-icon {
  font-size: 0.65rem;
  color: #fff;
  opacity: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.color-swatch.active .color-check-icon {
  opacity: 1;
}

.selected-color-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Save for later button in cart */
.save-for-later-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  color: var(--accent-blue);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
  padding: 0.1rem 0;
  margin-top: 0.2rem;
  transition: opacity 0.15s;
}

.save-for-later-btn:hover {
  opacity: 0.7;
}

/* Price on mobile inside cart item */
.cart-item-price-mobile {
  display: none;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 0.2rem;
}

/* Shipping progress bar wrapper */
.shipping-progress-wrap {
  padding: 0.75rem;
  background: var(--bg-surface);
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

/* "Add All to Bag" button on saved page */
.add-all-bag-btn {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-pill);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.add-all-bag-btn:hover {
  opacity: 0.85;
}

@media (max-width: 600px) {
  .color-dot { width: 11px; height: 11px; }
  .btn-card-preorder { font-size: 0.68rem; padding: 0.45rem 0.5rem; }
  .cart-item-price-mobile { display: block; }
  .cart-item-price { display: none; }
  .color-swatch { width: 24px; height: 24px; }
}



/* ==========================================================================
   NEW PRODUCT CARD DESIGN (USER REQUESTED "EXACT MATCH")
   ========================================================================== */
.product-card.alt-card-design {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif !important;
  background: #ffffff;
  border: 1px solid #e5e7eb !important; 
  border-radius: 12px !important;
  padding: 6px 6px 0 6px !important; 
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
  transition: box-shadow 0.2s ease;
  contain: none !important; /* override old contain */
  height: auto;
}

[data-theme="dark"] .product-card.alt-card-design {
  background: #ffffff !important; /* Forces it to stay exactly like screenshot */
}

.product-card.alt-card-design:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.08) !important;
  transform: none !important; 
  border-color: #e5e7eb !important;
}

.alt-card-media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5.2;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #f3f4f6;
}

.alt-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Badges on Image */
.alt-badge-top-left {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.95);
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  color: #1e3a8a; 
  letter-spacing: 0.03em;
  z-index: 5;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.alt-badge-bottom-left {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 3px 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  z-index: 5;
}

.alt-badge-bottom-left .alt-sep {
  color: #9ca3af;
  font-weight: 400;
}

.alt-badge-bottom-right {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 3px 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  z-index: 5;
}

.alt-color-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Info Section - Ultra Compact & Sleek */
.alt-card-info {
  padding: 8px 4px 6px 4px !important;
  display: flex;
  flex-direction: column;
  gap: 3px !important;
  cursor: pointer;
  background: #ffffff;
}

.alt-pricing-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: nowrap;
  white-space: nowrap;
  line-height: 1.1;
}

.alt-price-current {
  font-size: 15px !important;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
}

.alt-price-mrp {
  font-size: 11px !important;
  color: #9ca3af;
  text-decoration: line-through;
  font-weight: 500;
}

.alt-discount {
  font-size: 10.5px !important;
  font-weight: 700;
  color: #16a34a;
  white-space: nowrap !important;
  letter-spacing: -0.01em;
}

.alt-best-price-row {
  display: flex;
}

.alt-best-price-pill {
  background: #f0fdf4;
  padding: 3px 6px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #16a34a;
}

.alt-best-price-pill strong {
  font-weight: 800;
}

.alt-card-title {
  font-size: 13px !important;
  color: #6b7280 !important;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif !important;
  font-weight: 500 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  margin-top: 4px;
  letter-spacing: 0 !important;
}

/* Footer Button */
.alt-add-to-cart-btn {
  width: 100%;
  padding: 12px 0;
  background: #ffffff;
  border: none;
  border-top: 1px solid #e5e7eb;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #111827;
  cursor: pointer;
  margin-top: auto;
  transition: background 0.2s;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.alt-add-to-cart-btn:hover {
  background: #f9fafb;
}


/* Heart / Wishlist Icon */
.alt-wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, background 0.2s ease;
}

.alt-wishlist-btn:hover {
  transform: scale(1.1);
  background: #ffffff;
}

.alt-wishlist-btn.active svg {
  fill: #ef4444; /* red fill */
  stroke: #ef4444;
}


/* Single line category + name at the bottom - Compact */
.alt-card-title-bottom {
  font-size: 11.5px !important;
  color: #64748b !important;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif !important;
  font-weight: 500 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 !important;
  margin-top: 1px !important;
  letter-spacing: 0 !important;
  border-top: none !important;
  padding-top: 0 !important;
  line-height: 1.2 !important;
}


/* Clean Single-Line Archive Drops Header */
.archive-drops-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 0.75rem;
}

.archive-drops-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  text-transform: uppercase;
  white-space: nowrap !important;
  flex-shrink: 0;
}
