
/* =========================================================
   HOMEPAGE — PRODUCTOS RANDOM v1
   ========================================================= */
#productos.home-section{
  padding-top:64px;
  padding-bottom:72px;
}

#productos .section-heading{
  margin-bottom:25px;
}

#productos .section-heading h2{
  font-size:34px;
  font-weight:950;
  letter-spacing:-.035em;
}

#productos .product-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}

#productos .public-product-card{
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}

@media (hover:hover) and (pointer:fine){
  #productos .public-product-card:hover{
    transform:translateY(-3px);
    border-color:#d1dbe5;
    box-shadow:0 12px 28px rgba(11,31,58,.08);
  }
}

.home-store-action{
  display:flex;
  align-items:center;
  justify-content:center;
  margin-top:34px;
}

.home-store-button{
  min-height:52px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:0 28px;
  border-radius:11px;
  background:var(--brand-primary,#ff6413);
  color:#fff !important;
  font-size:11px;
  font-weight:950;
  letter-spacing:.06em;
  box-shadow:0 8px 20px color-mix(in srgb,var(--brand-primary,#ff6413) 22%,transparent);
  transition:transform .16s ease,box-shadow .16s ease;
}

.home-store-button span{
  font-size:17px;
  line-height:1;
}

@media (hover:hover) and (pointer:fine){
  .home-store-button:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 26px color-mix(in srgb,var(--brand-primary,#ff6413) 30%,transparent);
  }
}

@media(max-width:980px){
  #productos .product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:560px){
  #productos.home-section{
    padding-top:42px;
    padding-bottom:52px;
  }

  #productos .product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }

  #productos .public-product-info{
    padding:12px;
  }

  #productos .public-product-info h3{
    font-size:12px;
  }

  .home-store-button{
    width:100%;
    min-height:50px;
  }
}


/* =========================================================
   HOMEPAGE — PRODUCTOS IMAGEN COMPLETA v2
   ========================================================= */
#productos .public-product-image{
  aspect-ratio:1 / 1 !important;
  width:100%;
  overflow:hidden !important;
  display:grid !important;
  place-items:center !important;
  padding:0 !important;
  background:#fff !important;
}

#productos .public-product-image img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  object-position:center center !important;
  display:block !important;
}

/* Evita que estilos anteriores vuelvan a recortar */
#productos .public-product-card .public-product-image img{
  max-width:100% !important;
  max-height:100% !important;
  transform:none !important;
}


/* =========================================================
   PRODUCT CARDS v3 — estética StickerBike
   ========================================================= */
#productos .public-product-card{
  overflow:hidden;
  background:#fff !important;
  border:1px solid #dfe4e9 !important;
  border-radius:14px !important;
  box-shadow:0 3px 12px rgba(11,31,58,.035);
}

#productos .public-product-image{
  background:#eceff2 !important;
  border-bottom:1px solid #e1e5e9;
}

/* La fotografía sigue viéndose completa, sin crop */
#productos .public-product-image img{
  object-fit:contain !important;
}

#productos .public-product-info{
  background:#fff !important;
  padding:15px 16px 17px !important;
}

#productos .public-product-info h3{
  color:#0b1f3a;
  font-weight:900;
}

@media (hover:hover) and (pointer:fine){
  #productos .public-product-card:hover{
    transform:translateY(-4px);
    border-color:var(--brand-primary,#ff6413) !important;
    box-shadow:0 15px 32px rgba(11,31,58,.10);
  }
}

@media(max-width:560px){
  #productos .public-product-card{
    border-radius:11px !important;
  }

  #productos .public-product-info{
    padding:11px 12px 13px !important;
  }
}


/* =========================================================
   PRODUCTOS v4 — LÍNEA EDITORIAL / RIDER
   ========================================================= */

/* Quitar aspecto de "caja ecommerce" */
#productos .public-product-card{
  overflow:visible !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  transition:none !important;
}

/* La foto pasa a ser el elemento visual protagonista */
#productos .public-product-image{
  position:relative;
  display:block !important;
  width:100%;
  aspect-ratio:1/1 !important;
  overflow:hidden !important;
  padding:0 !important;
  border:1px solid rgba(11,31,58,.08) !important;
  border-radius:14px !important;
  background:#e9ecef !important;
  box-shadow:0 3px 12px rgba(11,31,58,.04);
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease;
}

/* Imagen completa, sin crop */
#productos .public-product-image img{
  width:100% !important;
  height:100% !important;
  display:block !important;
  object-fit:contain !important;
  object-position:center center !important;
  transform:scale(1) !important;
  transition:transform .35s ease;
}

/* Información sin caja: respira bajo la fotografía */
#productos .public-product-info{
  padding:13px 3px 0 !important;
  background:transparent !important;
}

#productos .public-product-info>small{
  display:block;
  margin-bottom:5px;
  color:var(--brand-primary,#ff6413) !important;
  font-size:8.5px !important;
  font-weight:950 !important;
  letter-spacing:.09em;
  text-transform:uppercase;
}

#productos .public-product-info h3{
  margin:0 !important;
  min-height:34px;
  color:var(--brand-secondary,#0b1f3a) !important;
  font-size:13px !important;
  line-height:1.25;
  font-weight:900 !important;
  letter-spacing:-.015em;
}

#productos .public-product-price{
  display:flex;
  align-items:baseline;
  gap:7px;
  margin-top:8px;
}

#productos .public-product-price strong{
  color:var(--brand-secondary,#0b1f3a);
  font-size:15px !important;
  font-weight:950;
}

#productos .public-product-price del{
  color:#98a2ae !important;
  font-size:9px !important;
}

/* Link discreto, no botón gordo */
.home-product-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:10px;
  padding-bottom:3px;
  border-bottom:1px solid transparent;
  color:#6b7888;
  font-size:8.5px;
  font-weight:950;
  letter-spacing:.055em;
  transition:color .16s ease,border-color .16s ease,gap .16s ease;
}

.home-product-link span{
  font-size:12px;
  line-height:1;
}

@media (hover:hover) and (pointer:fine){
  #productos .public-product-card:hover{
    transform:none !important;
    box-shadow:none !important;
  }

  #productos .public-product-card:hover .public-product-image{
    transform:translateY(-3px);
    border-color:color-mix(in srgb,var(--brand-primary,#ff6413) 45%,#dbe2e8);
    box-shadow:0 14px 30px rgba(11,31,58,.10);
  }

  #productos .public-product-card:hover .public-product-image img{
    transform:scale(1.025) !important;
  }

  #productos .public-product-card:hover .home-product-link{
    color:var(--brand-primary,#ff6413);
    border-color:var(--brand-primary,#ff6413);
    gap:9px;
  }
}

/* CTA tienda más editorial */
.home-store-action{
  margin-top:42px !important;
}

.home-store-button{
  min-width:190px;
  border-radius:999px !important;
}

@media(max-width:560px){
  #productos .public-product-image{
    border-radius:10px !important;
  }

  #productos .public-product-info{
    padding:10px 2px 0 !important;
  }

  #productos .public-product-info h3{
    min-height:30px;
    font-size:11px !important;
  }

  #productos .public-product-price strong{
    font-size:13px !important;
  }

  .home-product-link{
    font-size:8px;
  }
}


/* =========================================================
   PRODUCTOS v5 — INFORMACIÓN MÁS PROTAGÓNICA
   ========================================================= */

#productos .public-product-info{
  padding:15px 4px 0 !important;
}

#productos .public-product-info>small{
  margin-bottom:7px !important;
  color:var(--brand-primary,#ff6413) !important;
  font-size:8.5px !important;
  font-weight:950 !important;
  letter-spacing:.12em !important;
}

#productos .public-product-info h3{
  margin:0 !important;
  min-height:42px !important;
  color:var(--brand-secondary,#0b1f3a) !important;
  font-size:15px !important;
  line-height:1.18 !important;
  font-weight:950 !important;
  letter-spacing:-.025em !important;
}

#productos .public-product-price{
  margin-top:9px !important;
}

#productos .public-product-price strong{
  font-size:17px !important;
  font-weight:950 !important;
}

.home-product-link{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  min-height:38px !important;
  margin-top:12px !important;
  padding:0 13px !important;
  border:1px solid color-mix(in srgb,var(--brand-primary,#ff6413) 35%,#d9e1e8) !important;
  border-radius:9px !important;
  background:color-mix(in srgb,var(--brand-primary,#ff6413) 7%,white) !important;
  color:var(--brand-primary,#ff6413) !important;
  font-size:8.8px !important;
  font-weight:950 !important;
  letter-spacing:.06em !important;
  transition:
    background .16s ease,
    color .16s ease,
    border-color .16s ease,
    transform .16s ease,
    box-shadow .16s ease !important;
}

.home-product-link span{
  font-size:13px !important;
  transition:transform .16s ease;
}

@media (hover:hover) and (pointer:fine){
  #productos .public-product-card:hover .home-product-link{
    background:var(--brand-primary,#ff6413) !important;
    border-color:var(--brand-primary,#ff6413) !important;
    color:#fff !important;
    box-shadow:0 7px 16px color-mix(in srgb,var(--brand-primary,#ff6413) 22%,transparent);
    transform:translateY(-1px);
  }

  #productos .public-product-card:hover .home-product-link span{
    transform:translateX(2px);
  }
}

@media(max-width:560px){
  #productos .public-product-info{
    padding:11px 2px 0 !important;
  }

  #productos .public-product-info h3{
    min-height:35px !important;
    font-size:12.5px !important;
  }

  #productos .public-product-price strong{
    font-size:14.5px !important;
  }

  .home-product-link{
    width:100%;
    min-height:38px !important;
    padding:0 10px !important;
    font-size:8px !important;
  }
}


/* =========================================================
   PRODUCTOS v6 — TARJETA TOTALMENTE INTEGRADA
   Foto + información + CTA = un solo producto
   ========================================================= */

#productos .public-product-card{
  position:relative !important;
  overflow:hidden !important;
  border:1px solid rgba(11,31,58,.12) !important;
  border-radius:15px !important;
  background:#161b21 !important;
  box-shadow:0 5px 18px rgba(11,31,58,.08) !important;
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease !important;
}

.product-card-link{
  position:relative;
  display:block;
  width:100%;
  aspect-ratio:1 / 1;
  overflow:hidden;
  color:#fff;
}

#productos .public-product-image{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  aspect-ratio:auto !important;
  display:grid !important;
  place-items:center !important;
  overflow:hidden !important;
  border:0 !important;
  border-radius:0 !important;
  background:#e9ecef !important;
  box-shadow:none !important;
  transform:none !important;
}

#productos .public-product-image img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  object-position:center center !important;
  display:block !important;
  transform:scale(1) !important;
  transition:transform .38s ease !important;
}

/* Degradado que integra texto con la fotografía */
.public-product-overlay{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  z-index:2;
  min-height:128px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  padding:44px 15px 15px;
  background:
    linear-gradient(
      to top,
      rgba(7,13,20,.96) 0%,
      rgba(7,13,20,.86) 46%,
      rgba(7,13,20,.42) 76%,
      rgba(7,13,20,0) 100%
    );
}

.public-product-main{
  min-width:0;
  flex:1 1 auto;
}

.public-product-main>small{
  display:block;
  margin-bottom:5px;
  color:var(--brand-primary,#ff6413);
  font-size:8.5px;
  font-weight:950;
  letter-spacing:.11em;
  text-transform:uppercase;
}

.public-product-main h3{
  margin:0;
  color:#fff !important;
  font-size:14px !important;
  line-height:1.12 !important;
  font-weight:950 !important;
  letter-spacing:-.02em !important;
  text-shadow:0 1px 3px rgba(0,0,0,.22);
}

.public-product-price{
  display:flex !important;
  align-items:baseline !important;
  gap:7px !important;
  margin-top:8px !important;
}

.public-product-price strong{
  color:#fff !important;
  font-size:16px !important;
  font-weight:950 !important;
}

.public-product-price del{
  color:rgba(255,255,255,.56) !important;
  font-size:9px !important;
}

.home-product-link{
  flex:0 0 auto;
  min-height:36px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:7px !important;
  margin:0 !important;
  padding:0 11px !important;
  border:0 !important;
  border-radius:9px !important;
  background:var(--brand-primary,#ff6413) !important;
  color:#fff !important;
  font-size:8.2px !important;
  font-weight:950 !important;
  letter-spacing:.045em !important;
  white-space:nowrap;
  box-shadow:0 5px 14px rgba(0,0,0,.18);
  transition:
    transform .18s ease,
    filter .18s ease,
    box-shadow .18s ease !important;
}

.home-product-link b{
  font-size:13px;
  line-height:1;
  transition:transform .18s ease;
}

@media (hover:hover) and (pointer:fine){
  #productos .public-product-card:hover{
    transform:translateY(-5px) !important;
    border-color:color-mix(in srgb,var(--brand-primary,#ff6413) 48%,transparent) !important;
    box-shadow:0 17px 34px rgba(11,31,58,.15) !important;
  }

  #productos .public-product-card:hover .public-product-image{
    transform:none !important;
  }

  #productos .public-product-card:hover .public-product-image img{
    transform:scale(1.028) !important;
  }

  #productos .public-product-card:hover .home-product-link{
    transform:translateY(-1px);
    filter:brightness(1.06);
    box-shadow:0 8px 17px rgba(0,0,0,.24);
  }

  #productos .public-product-card:hover .home-product-link b{
    transform:translateX(2px);
  }
}

@media(max-width:700px){
  .public-product-overlay{
    min-height:112px;
    align-items:flex-start;
    flex-direction:column;
    gap:8px;
    padding:35px 11px 11px;
  }

  .public-product-main h3{
    font-size:12px !important;
  }

  .public-product-price{
    margin-top:5px !important;
  }

  .public-product-price strong{
    font-size:14px !important;
  }

  .home-product-link{
    width:auto !important;
    min-height:32px !important;
    padding:0 9px !important;
    font-size:7.5px !important;
  }
}

/* v7: criterio de productos controlado desde Configuración. */


/* =========================================================
   HOME v8 — OVERLAY DE PRODUCTOS MÁS BAJO
   Misma lógica visual que la Tienda.
   ========================================================= */

/*
 * Separamos el degradado del contenido para que en hover
 * sólo se transparente el fondo oscuro.
 */
.public-product-overlay{
  min-height:88px !important;
  padding:30px 13px 11px !important;
  background:none !important;
  isolation:isolate;
}

.public-product-overlay::before{
  content:'';
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    linear-gradient(
      to top,
      rgba(7,13,20,.92) 0%,
      rgba(7,13,20,.70) 48%,
      rgba(7,13,20,.18) 78%,
      rgba(7,13,20,0) 100%
    );
  opacity:1;
  transition:opacity .22s ease;
}

/*
 * Hover desktop:
 * el degradado baja al 10%.
 * El nombre, precio y botón permanecen al 100%.
 */
@media (hover:hover) and (pointer:fine){
  .public-product-card:hover .public-product-overlay::before{
    opacity:.10;
  }
}

/* Móvil: mantener lectura */
@media(max-width:540px){
  .public-product-overlay{
    min-height:82px !important;
    padding:26px 9px 9px !important;
  }

  .public-product-overlay::before{
    opacity:1 !important;
  }
}
