/**
 * Product Showcase - Modern Compact Design
 * Clean, minimal, and responsive
 */

/* ============================================================
   BASE STYLES
============================================================ */

.fg-product-showcase {
  width: 100%;
  padding: 2rem 0;
}

.fg-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* ============================================================
   PRODUCT CARD - DESKTOP
============================================================ */

.fg-product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  border: 1px solid #f1f5f9;
}

.fg-product-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
  border-color: #e2e8f0;
}

/* Header with gradient */
.fg-product-header {
  background: linear-gradient(135deg, var(--product-color, #E30613) 0%, var(--product-color, #bb0a07) 100%);
  padding: 1.25rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.fg-product-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
  pointer-events: none;
}

.fg-product-logo {
  max-width: 80px;
  height: auto;
  margin: 0 auto 0.5rem;
  display: block;
  filter: brightness(0) invert(1);
}

.fg-product-title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

/* Image Gallery */
.fg-product-gallery {
  position: relative;
  padding: 2rem 1.5rem;
  background: #fafafa;
}

.fg-product-images {
  position: relative;
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fg-product-image-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fg-product-image-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fg-product-image-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Image dots */
.fg-product-image-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 1rem;
}

.fg-product-image-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.fg-product-image-dot.active {
  background: #E30613;
  width: 24px;
  border-radius: 4px;
}

/* Content */
.fg-product-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}

.fg-product-body .fg-product-title {
  display: none;
}

.fg-product-subtitle {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* Badges */
.fg-product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fg-product-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  background: #f1f5f9;
  color: #475569;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}

/* Actions */
.fg-product-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
}

.fg-product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.fg-product-btn-primary {
  background: #E30613;
  color: #fff;
}

.fg-product-btn-primary:hover {
  background: #bb0a07;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(227, 6, 19, 0.3);
}

.fg-product-btn-secondary {
  background: transparent;
  color: #E30613;
  border: 1.5px solid #E30613;
}

.fg-product-btn-secondary:hover {
  background: #E30613;
  color: #fff;
}

.fg-product-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.fg-product-btn:hover svg {
  transform: translateX(2px);
}

/* ============================================================
   MOBILE STYLES - 2x2 GRID
============================================================ */

@media (max-width: 768px) {
  .fg-product-showcase {
    padding: 1rem 0;
  }

  .fg-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: #e5e7eb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
  }

  .fg-product-card {
    border-radius: 0;
    border: none;
    box-shadow: none;
    padding: 0.75rem 0.625rem;
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .fg-product-card:hover {
    transform: none;
    box-shadow: none;
    background: #f9fafb;
  }

  /* Hide header on mobile */
  .fg-product-header {
    display: none;
  }

  /* Compact gallery */
  .fg-product-gallery {
    padding: 0;
    background: transparent;
    order: 1;
    width: 100%;
    flex-shrink: 0;
  }

  .fg-product-images {
    height: 120px;
    width: 100%;
    margin-bottom: 0;
  }

  .fg-product-image-track {
    width: 100% !important;
    height: 100% !important;
  }

  .fg-product-image-slide {
    width: 100% !important;
    height: 100% !important;
  }

  .fg-product-image-slide img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: block !important;
  }

  .fg-product-image-dots {
    display: none;
  }

  /* Compact body */
  .fg-product-body {
    padding: 0;
    gap: 0.5rem;
    order: 2;
    flex-grow: 0;
  }

  .fg-product-body .fg-product-title {
    display: block;
    color: #1f2937;
    font-size: 0.875rem;
    text-align: center;
    order: 1;
    margin: 0;
    line-height: 1.2;
  }

  .fg-product-subtitle {
    display: none;
  }

  .fg-product-badges {
    display: none;
  }

  .fg-product-actions {
    gap: 0;
    order: 3;
    margin-top: 0;
  }

  .fg-product-btn {
    padding: 0.625rem 0.875rem;
    font-size: 0.75rem;
  }

  .fg-product-btn-primary {
    display: none;
  }

  .fg-product-btn-secondary {
    background: #E30613;
    color: #fff;
    border: none;
  }

  .fg-product-btn svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 480px) {
  .fg-product-card {
    padding: 0.875rem 0.625rem;
    min-height: 220px;
  }

  .fg-product-images {
    height: 64px;
    margin-bottom: 0.625rem;
  }

  .fg-product-title {
    font-size: 0.8125rem;
  }

  .fg-product-btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.6875rem;
  }
}

/* ============================================================
   MOBILE ONLY CARDS
============================================================ */

.fg-mobile-only-cards {
  display: none;
}

@media (max-width: 768px) {
  .fg-mobile-only-cards {
    display: block;
    margin-top: 1.5rem;
  }

  .fg-mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: #e5e7eb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
  }

  .fg-mobile-grid-item {
    background: #fff;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.625rem;
    min-height: 220px;
  }

  .fg-mobile-grid-item:hover {
    background: #f9fafb;
  }

  .fg-mobile-grid-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E30613;
  }

  .fg-mobile-grid-icon svg {
    width: 48px;
    height: 48px;
  }

  .fg-mobile-grid-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .fg-mobile-grid-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
  }

  .fg-mobile-grid-description {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
    flex-grow: 1;
  }

  .fg-mobile-grid-button {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: #E30613;
    color: #fff;
    padding: 0.625rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
  }

  .fg-mobile-grid-button:hover {
    background: #bb0a07;
  }

  .fg-mobile-grid-button svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 480px) {
  .fg-product-card {
    padding: 0.625rem 0.5rem;
    gap: 0.375rem;
  }

  .fg-product-images {
    height: 110px;
  }

  .fg-product-body .fg-product-title {
    font-size: 0.8125rem;
  }

  .fg-product-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.6875rem;
  }
}
