/* ===========================
   SYNK FOOD — list.css
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
  --black:      #111111;
  --white:      #ffffff;
  --light-gray: #f0f0f0;
  --mid-gray:   #d4d4d4;
  --text-gray:  #888888;
  --radius:     14px;
  --font:       'DM Sans', sans-serif;
}

body {
  font-family: var(--font) !important;
  background: var(--white);
  color: var(--black);
}

/* ===========================
   HERO BANNER
   =========================== */
.hero-banner {
  background: var(--black);
  color: var(--white);
  padding: 72px 0 68px;
}

.hero-title {
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.35;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: clamp(12px, 1.5vw, 14px);
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0;
  line-height: 1.9;
}

/* ===========================
   CATEGORÍAS — PILLS
   =========================== */
.categories-section {
  background: var(--white);
  border-bottom: 1px solid var(--mid-gray);
}

.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  border: 1.5px solid var(--mid-gray);
  background: var(--white);
  color: var(--black);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.cat-pill:hover {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
  transform: translateY(-2px);
}

.cat-pill--active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.cat-pill__img-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--mid-gray);
  transition: border-color 0.2s;
}

.cat-pill__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cat-pill--active .cat-pill__img-wrap,
.cat-pill:hover .cat-pill__img-wrap {
  border-color: var(--white);
}

@media (max-width: 480px) {
  .cat-pill { padding: 7px 14px; font-size: 11px; gap: 7px; }
  .cat-pill__img-wrap { width: 26px; height: 26px; }
}

/* ===========================
   SECCIÓN DE PRODUCTOS
   =========================== */
.products-section {
  border-top: 1px solid var(--mid-gray);
}

.category-section-title {
  font-size: clamp(26px, 4.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  color: var(--black);
  line-height: 1;
}

/* ===========================
   TARJETA DE PRODUCTO
   =========================== */
.prod-card {
  cursor: pointer;
  transition: transform 0.2s;
}

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

.prod-img-wrapper {
  background: var(--light-gray);
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.prod-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.prod-card:hover .prod-img {
  transform: scale(1.06);
}

.prod-card__link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.prod-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 17, 17, 0.42);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.prod-img-wrapper:hover .prod-overlay {
  opacity: 1;
}

.prod-overlay-label {
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  line-height: 1;
  padding: 8px 14px;
  text-transform: uppercase;
}

/* Botón flotante: corazón (top-right) */
.prod-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.25s, transform 0.25s;
  z-index: 2;
}

/* Botón flotante: carrito (bottom-right) */
.prod-cart-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.25s, transform 0.25s;
  z-index: 2;
}

.prod-img-wrapper:hover .prod-actions,
.prod-img-wrapper:hover .prod-cart-btn {
  opacity: 1;
  transform: translateX(0);
}

.prod-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.14);
  transition: background 0.2s, color 0.2s, transform 0.15s;
  padding: 0;
}

.prod-action-btn:hover {
  background: var(--black);
  color: var(--white);
  transform: scale(1.1);
}

.prod-info {
  padding: 10px 2px 0;
  display: flex;
  flex-direction: column;
}

.prod-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--black);
  line-height: 1.45;
  margin-bottom: 3px;
  text-transform: none;
}

.prod-weight {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-gray);
  margin-bottom: 3px;
  text-transform: none;
}

.prod-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0;
}

.prod-info__link {
  display: block;
}

.prod-action-btn.is-active {
  color: #e0245e;
}

.prod-action-btn.is-active svg {
  fill: #e0245e;
  stroke: #e0245e;
}

.prod-action-btn.is-active:hover {
  background: #e0245e;
  color: var(--white);
}

.prod-action-btn.is-active:hover svg {
  fill: var(--white);
  stroke: var(--white);
}

.prod-action-btn.is-added {
  background: #2e7d32;
  color: var(--white);
}

/* ===========================
   RESPONSIVE — TABLET
   =========================== */
/* Tablet */
@media (max-width: 991px) {
  .hero-banner { padding: 52px 0 48px; }
  .category-section-title { font-size: clamp(22px, 4vw, 36px); }
}

/* Mobile */
@media (max-width: 768px) {
  .hero-banner { padding: 36px 0 32px; }
  .hero-title { font-size: clamp(18px, 5vw, 28px); }
  .hero-subtitle { font-size: 11px; letter-spacing: 1.5px; }

  .category-card { aspect-ratio: 1 / 1; }
  .category-section-title { font-size: 22px; }

  .prod-img-wrapper { border-radius: 12px; }
  .prod-name { font-size: 13px; }
  .prod-price { font-size: 13px; }
  .prod-info { padding: 8px 0 0; }
  .prod-overlay-label { font-size: 9px; padding: 6px 12px; }
}

/* Teléfono pequeño */
@media (max-width: 480px) {
  .hero-banner { padding: 28px 0 24px; }
  .prod-name { font-size: 12px; }
  .prod-weight { font-size: 11px; }
  .prod-price { font-size: 12px; }
  .prod-info { padding: 6px 0 0; }
}
