/* ==========================================================================
   FOTOX PRO - PHOTO PRODUCT CARDS (100% MOBILE-FIRST ADAPTIVE)
   ========================================================================== */

.home-page .product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.home-page .fotox-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  overflow: hidden;
  transition: all 0.2s ease;
  position: relative;
}

.home-page .fotox-card:hover {
  border-color: var(--brand-orange);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.6), 0 0 10px var(--brand-orange-glow);
}

.home-page .fotox-card-media {
  position: relative;
  display: block;
  height: 165px;
  background: #000;
  overflow: hidden;
}

.home-page .fotox-card-media .product-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.home-page .fotox-card-media .product-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.home-page .fotox-card-media .product-slider img.active {
  opacity: 1;
  transform: scale(1);
}

.home-page .fotox-card:hover .product-slider img.active {
  transform: scale(1.03);
}

/* Watermark */
.home-page .fotox-card-media .wm {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.18);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  font-style: italic;
  letter-spacing: 0.15em;
  transform: rotate(-15deg);
  pointer-events: none;
  user-select: none;
}

/* Top Badges (Square & Compact) */
.home-page .card-bib-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(6, 6, 8, 0.92);
  border: 1px solid var(--brand-orange);
  color: var(--brand-orange);
  padding: 2px 5px;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.05em;
  z-index: 3;
}

.home-page .card-count-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 2px 5px;
  font-size: 8.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 3px;
  z-index: 3;
}

/* Card Body */
.home-page .fotox-card-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: var(--bg-card);
}

.home-page .card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  gap: 6px;
}

.home-page .card-event-tag {
  color: var(--brand-orange);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-page .card-price-tag {
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}

.home-page .card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14.5px;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.home-page .card-actions-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.home-page .btn-view-photos {
  flex: 1;
  height: 32px;
  background: var(--brand-orange);
  color: #000 !important;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  transition: all 0.2s ease;
  white-space: nowrap;
  padding: 0 8px;
}

.home-page .btn-view-photos:hover {
  background: var(--brand-orange-light);
}

.home-page .quick-set-form {
  margin: 0;
  padding: 0;
  display: inline-flex;
}

.home-page .btn-quick-set {
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  color: #fff;
  padding: 0 8px;
  font-size: 9.5px;
  font-weight: 800;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.home-page .btn-quick-set:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   RESPONSIVE (CELULARES & TABLETS)
   ========================================================================== */
@media (max-width: 1080px) {
  .home-page .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .home-page .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .home-page .fotox-card-media {
    height: 135px;
  }
  .home-page .fotox-card-body {
    padding: 10px;
  }
  .home-page .card-title {
    font-size: 13px;
    margin-bottom: 8px;
  }
  .home-page .btn-view-photos {
    height: 30px;
    font-size: 9px;
  }
  .home-page .btn-quick-set {
    height: 30px;
    font-size: 9px;
    padding: 0 6px;
  }
}

@media (max-width: 420px) {
  .home-page .fotox-card-media {
    height: 120px;
  }
  .home-page .card-actions-row {
    flex-direction: column;
    gap: 4px;
  }
  .home-page .btn-view-photos, .home-page .quick-set-form, .home-page .btn-quick-set {
    width: 100%;
  }
}
