/* ============================================================
   STL4YOU — Capa de modernización (Negro total + Dorado)
   Este archivo se carga AL FINAL y sobrescribe el look viejo.
   No borra nada del CSS existente. Si quieres revertir,
   solo quita la línea que lo carga en el HTML.
   ============================================================ */

/* ---- Fuentes modernas desde Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Jost:wght@300;400;500;600&display=swap');

/* ---- Variables de color ---- */
:root{
  --s4y-bg:#0a0a0a;
  --s4y-bg2:#151515;
  --s4y-bg3:#1c1c1c;
  --s4y-line:#262626;
  --s4y-gold:#e8b961;
  --s4y-gold-soft:#d9a94e;
  --s4y-text:#ffffff;
  --s4y-text-dim:#cfcfcf;
  --s4y-text-mute:#8a8a8a;
}

/* ---- Fondo general y texto ---- */
body{
  background:var(--s4y-bg) !important;
  color:var(--s4y-text) !important;
  font-family:'Jost',sans-serif !important;
}
.container, .body-content, .container.body-content{
  background:transparent !important;
}
hr.divider{ border-color:var(--s4y-line) !important; }

/* ---- Banner superior de ofertas ---- */
.head-offer{
  background:#000 !important;
}

/* ---- Header / logo zona ---- */
.head, .header-top, .header-button{
  background:var(--s4y-bg) !important;
}
.logo a, .logo{ color:var(--s4y-text) !important; }

/* Título del logo tipo texto si lo hubiera */
.logo b{ color:var(--s4y-gold) !important; }

/* Login / Register y enlaces superiores */
.header-login ul li a{
  color:var(--s4y-text-dim) !important;
  font-family:'Jost',sans-serif !important;
  letter-spacing:.5px;
}
.header-login ul li a:hover{ color:var(--s4y-gold) !important; }

/* ---- Menú principal de navegación ---- */
.navbar, .nav_bottom, .h_menu4{
  background:transparent !important;
}
ul.nav_1 > li > a{
  color:var(--s4y-text-dim) !important;
  font-family:'Jost',sans-serif !important;
  text-transform:uppercase;
  letter-spacing:1.5px;
  font-size:13px !important;
  font-weight:400 !important;
}
ul.nav_1 > li > a:hover{
  color:var(--s4y-gold) !important;
  background:transparent !important;
}
/* Submenús desplegables en oscuro */
.menu-top, .dropdown-menu, .mega-dropdown-menu{
  background:var(--s4y-bg2) !important;
  border:1px solid var(--s4y-line) !important;
}
.col1 ul li a, .h_nav ul li a{
  color:var(--s4y-text-dim) !important;
}
.col1 ul li a:hover, .h_nav ul li a:hover{
  color:var(--s4y-gold) !important;
}
.col1 h4{ color:var(--s4y-gold) !important; }

/* Carrito / search iconos */
.cart, .search-right, #dvQuantityItems, #lnkTrackOrder{
  color:var(--s4y-text-dim) !important;
}
.cart a, .search a{ color:var(--s4y-text-dim) !important; }
.cart a:hover, .search a:hover{ color:var(--s4y-gold) !important; }

/* ---- Títulos de sección (ej. "The best gift") ---- */
.title-category span, .title-category{
  color:var(--s4y-text) !important;
  font-family:'Cormorant Garamond',serif !important;
  font-weight:600 !important;
}

/* ---- Tarjetas de categoría / producto ---- */
.item-category{
  background:var(--s4y-bg2) !important;
  border:1px solid var(--s4y-line) !important;
  border-radius:12px !important;
  padding:16px !important;
  transition:transform .2s ease, border-color .2s ease !important;
}
.item-category:hover{
  transform:translateY(-4px) !important;
  border-color:var(--s4y-gold) !important;
}
.item-category-title p{
  color:var(--s4y-text) !important;
  font-weight:500 !important;
}
.item-category-desc p{ color:var(--s4y-text-mute) !important; }

/* Producto en catálogo */
.product, .product-bottom, .product-at{
  background:var(--s4y-bg2) !important;
  color:var(--s4y-text) !important;
  border-radius:12px !important;
}
.price_single, .price_single a, .price, .product-at{
  color:var(--s4y-gold) !important;
  font-weight:600 !important;
}

/* ---- Botones ---- */
button.btn, .btn, button.btn.btn-lg, button.btn.btn-1,
button.btn.btn-sm, button.btn.btn-xs, input[type="submit"],
.button-subscribe, .loginBtn{
  background:var(--s4y-gold) !important;
  color:#000 !important;
  border:none !important;
  border-radius:40px !important;
  font-family:'Jost',sans-serif !important;
  font-weight:500 !important;
  letter-spacing:1px !important;
  text-transform:uppercase !important;
  transition:background .2s ease, transform .15s ease !important;
}
button.btn:hover, .btn:hover, input[type="submit"]:hover,
.button-subscribe:hover, .loginBtn:hover{
  background:#fff !important;
  color:#000 !important;
  transform:translateY(-1px) !important;
}

/* ---- Campos de formulario (personalización, login) ---- */
input[type="text"], input[type="password"], input[type="email"],
input[type="number"], select, textarea, .form-control{
  background:var(--s4y-bg3) !important;
  color:var(--s4y-text) !important;
  border:1px solid var(--s4y-line) !important;
  border-radius:8px !important;
}
input::placeholder, textarea::placeholder{ color:var(--s4y-text-mute) !important; }
input:focus, select:focus, textarea:focus, .form-control:focus{
  border-color:var(--s4y-gold) !important;
  outline:none !important;
  box-shadow:0 0 0 2px rgba(232,185,97,.2) !important;
}

/* Etiquetas de producto (Top Text, Size, etc.) */
label, .product label{ color:var(--s4y-text-dim) !important; }

/* ---- Modales (login, search) en oscuro ---- */
.modal-content{
  background:var(--s4y-bg2) !important;
  color:var(--s4y-text) !important;
  border:1px solid var(--s4y-line) !important;
}

/* ---- Footer ---- */
.footer, .footer-middle, .footer-bottom{
  background:#000 !important;
  color:var(--s4y-text-dim) !important;
}
.footer-middle-in h6{
  color:var(--s4y-gold) !important;
  font-family:'Jost',sans-serif !important;
  letter-spacing:1px;
}
.footer-middle-in p, .footer-middle-in span,
ul.in li a, ul.tag-in li a, .footer-class, .footer-class a{
  color:var(--s4y-text-mute) !important;
}
.footer-middle-in p a:hover, ul.in li a:hover, .footer-class a:hover{
  color:var(--s4y-gold) !important;
}

/* ---- Precios con descuento (precio tachado) ---- */
del, .old-price, strike{ color:var(--s4y-text-mute) !important; }
.sale, .sale-price{ color:var(--s4y-gold) !important; }

/* ============================================================
   MEJORAS PÁGINA DE INICIO (hero + colecciones)
   ============================================================ */

/* ---- Hero nuevo (reemplaza el banner pixelado) ---- */
.s4y-hero{
  background:var(--s4y-bg);
  padding:70px 24px 60px;
  text-align:center;
  border-bottom:1px solid var(--s4y-line);
}
.s4y-hero h1{
  font-family:'Cormorant Garamond',serif;
  font-size:52px;
  line-height:1.1;
  font-weight:600;
  color:#fff;
  margin:0 0 18px;
}
.s4y-hero h1 .gold{ color:var(--s4y-gold); }
.s4y-hero p{
  font-family:'Jost',sans-serif;
  font-size:18px;
  color:var(--s4y-text-mute);
  max-width:620px;
  margin:0 auto 32px;
  font-weight:300;
}
.s4y-hero .s4y-btn{
  display:inline-block;
  background:var(--s4y-gold);
  color:#000;
  padding:14px 38px;
  border-radius:40px;
  font-family:'Jost',sans-serif;
  font-weight:500;
  font-size:14px;
  letter-spacing:2px;
  text-transform:uppercase;
  text-decoration:none;
  transition:background .2s ease, transform .15s ease;
}
.s4y-hero .s4y-btn:hover{ background:#fff; transform:translateY(-2px); }

/* ---- Sección de categorías: título ---- */
.category .title-category{
  text-align:center;
  padding:50px 0 10px;
}
.category .title-category span{
  font-family:'Cormorant Garamond',serif !important;
  font-size:40px !important;
  color:#fff !important;
  font-weight:600 !important;
}

/* ---- Tarjetas de categoría estilo foto 1 ---- */
.category .item-category{
  background:var(--s4y-bg2) !important;
  border:1px solid var(--s4y-line) !important;
  border-radius:16px !important;
  padding:18px !important;
  margin:12px 0 !important;
  min-height:360px;
  transition:transform .2s ease, border-color .2s ease !important;
}
.category .item-category:hover{
  transform:translateY(-6px) !important;
  border-color:var(--s4y-gold) !important;
}
/* recuadro interior oscuro donde va la foto del anillo */
.category .item-category > .row:first-child{
  background:var(--s4y-bg3);
  border-radius:12px;
  padding:22px;
  margin:0 0 16px 0;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:190px;
}
.category .item-category img.img-responsive-2{
  max-width:100%;
  max-height:160px;
  height:auto;
  margin:0 auto;
  display:block;
}
.category .item-category-title{ text-align:center; margin:0 !important; }
.category .item-category-title p{
  color:#fff !important;
  font-family:'Jost',sans-serif !important;
  font-size:20px !important;
  font-weight:500 !important;
  margin:6px 0 !important;
}
.category .item-category-desc{ text-align:center; margin:0 !important; }
.category .item-category-desc p{
  color:var(--s4y-text-mute) !important;
  font-size:14px !important;
  font-weight:300 !important;
  margin:2px 0 !important;
  line-height:1.4;
}
/* el enlace completo de la tarjeta sin subrayado */
.category a{ text-decoration:none !important; }

/* ============================================================
   AJUSTES PROFESIONALES (banner, logo, fotos)
   ============================================================ */

/* ---- Banner superior elegante (franja de texto, no imagen) ---- */
.head-offer{
  background:#000 !important;
  padding:10px 0 !important;
}
/* ocultar la imagen pixelada del banner viejo */
.head-offer img{ display:none !important; }
/* texto nuevo del banner vía CSS */
.head-offer a::after{
  content:"GREAT DEALS  ·  UP TO 50% OFF";
  color:var(--s4y-gold);
  font-family:'Jost',sans-serif;
  font-size:13px;
  letter-spacing:3px;
  font-weight:400;
}
.head-offer a{ text-decoration:none !important; }

/* ---- Logo más grande y centrado ---- */
.logo img{
  height:62px !important;
  width:auto !important;
}

/* ---- Recuadro de fotos de categoría: más grande y adaptable ---- */
.category .item-category{
  min-height:380px !important;
}
.category .item-category > .row:first-child{
  background:var(--s4y-bg3);
  border-radius:12px;
  padding:16px;
  margin:0 0 16px 0;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:230px;      /* más alto para que quepa el pendiente ovalado */
}
.category .item-category img.img-responsive-2{
  max-width:100% !important;
  max-height:200px !important;   /* cada foto se ajusta sin deformarse */
  width:auto !important;
  height:auto !important;
  object-fit:contain !important;
  margin:0 auto !important;
  display:block !important;
}

/* ---- Eliminar restos blancos sueltos en el body ---- */
.body-content > div[style*="background"]{ background:transparent !important; }

/* ============================================================
   AJUSTES FINALES v2 (logo izquierda, banner grande,
   quitar cuadro blanco, anillos uniformes)
   ============================================================ */

/* ---- Banner de ofertas MÁS GRANDE ---- */
.head-offer{ padding:14px 0 !important; }
.head-offer a::after{
  font-size:17px !important;
  letter-spacing:4px !important;
  font-weight:500 !important;
}

/* ---- Logo grande y a la IZQUIERDA ---- */
/* el header usa columnas col-sm-4; movemos el logo a la izquierda */
.logo{ text-align:left !important; }
.logo img{
  height:80px !important;
  width:auto !important;
}
/* la columna del medio donde está el logo, empújala a la izquierda */
.col-sm-4.head + .col-sm-4.head{ text-align:left !important; }

/* ---- QUITAR el cuadro blanco (img con src vacío y restos) ---- */
img[src=""], img:not([src]){ display:none !important; }
#imgUser{ display:none !important; }
/* cualquier imagen rota sin fuente dentro del body-content */
.body-content img[src=""]{ display:none !important; }

/* ---- Anillos TODOS del mismo tamaño ---- */
.category .item-category > .row:first-child{
  min-height:220px !important;
  max-height:220px !important;
  overflow:hidden !important;
}
.category .item-category img.img-responsive-2{
  width:100% !important;
  height:190px !important;
  object-fit:contain !important;   /* mantiene proporción, mismo marco */
}

/* ============================================================
   ARREGLO: título "The best gift" invisible
   (tenía color oscuro sobre fondo negro = parecía cuadro blanco)
   ============================================================ */
.title-category,
.title-category span,
.category .title-category,
.category .title-category span,
.col-md-12.title-category span{
  color:var(--s4y-gold) !important;
  background:transparent !important;
  font-family:'Cormorant Garamond',serif !important;
  font-size:40px !important;
  font-weight:600 !important;
  text-shadow:none !important;
}

/* ============================================================
   ARREGLO v2: quitar fondo blanco detrás de "The best gift"
   ============================================================ */
.title-category,
.title-category span,
.category .title-category,
.category .title-category span,
.col-md-12.title-category,
.col-md-12.title-category span,
.row .title-category,
.row .title-category span{
  background:none !important;
  background-color:transparent !important;
  background-image:none !important;
  box-shadow:none !important;
  padding:0 !important;
}
/* por si el fondo viene de la fila que lo contiene */
.category .row:has(.title-category){
  background:transparent !important;
}

/* ============================================================
   OCULTAR solo el titulo "The best gift" (NO los anillos)
   ============================================================ */
.title-category,
.col-md-12.title-category{
  display:none !important;
}
/* asegurar que las imagenes de anillos SI se vean */
.category .item-category > .row:first-child{
  display:flex !important;
}
.category .item-category img.img-responsive-2{
  display:block !important;
}

/* ============================================================
   FONDO NEGRO TOTAL (sin franjas blancas)
   ============================================================ */
html, body,
.container, .container-fluid,
.body-content, .container.body-content,
.category, .container.category,
.row, [class^="col-"], [class*=" col-"]{
  background-color:#0a0a0a !important;
}
.footer, .footer-middle, .footer-bottom{ background:#000 !important; }

/* ============================================================
   REJILLA DE TARJETAS — centrada y con reacomodo
   ============================================================ */
.category .row{
  display:flex !important;
  flex-wrap:wrap !important;
  justify-content:center !important;   /* CENTRADO siempre */
  align-items:flex-start !important;
  gap:18px !important;
  margin:0 auto !important;
  width:100% !important;
}
.category .col-md-2, .category .col-md-1{
  flex:0 0 auto !important;
  margin:0 !important;
  padding:0 !important;
  float:none !important;
}
/* ocultar columnas vacías de relleno viejas */
.category .row > .col-md-1:empty{ display:none !important; }

/* ---- Anchos por pantalla (controlan cuántas caben por fila) ---- */

/* Escritorio grande: 5 por fila */
.category .col-md-2{ width:210px !important; max-width:210px !important; }

/* Pantalla mediana-grande: 3 por fila */
@media (max-width: 1100px){
  .category .col-md-2{ width:30% !important; max-width:30% !important; }
}

/* Tablet: 2 por fila  (5 tarjetas => 2,2,1 centradas) */
@media (max-width: 820px){
  .category .col-md-2{ width:44% !important; max-width:44% !important; }
  .s4y-hero h1{ font-size:38px; }
  .s4y-hero p{ font-size:16px; }
  .logo img{ height:60px !important; }
}

/* Teléfono: 1 por fila, centrada y grande */
@media (max-width: 520px){
  .category .col-md-2{ width:86% !important; max-width:86% !important; }
  .category .item-category img.img-responsive-2{ height:220px !important; }
  .s4y-hero h1{ font-size:26px; line-height:1.25; }
  .s4y-hero p{ font-size:15px; }
  .s4y-hero .s4y-btn{ padding:12px 28px; font-size:13px; }
  /* logo centrado y con aire arriba para que no se corte */
  .logo{ text-align:center !important; padding-top:6px !important; }
  .logo img{ height:52px !important; }
  /* banner mas compacto */
  .head-offer a::after{ font-size:12px !important; letter-spacing:1.5px !important; }
}

/* imágenes nunca se desbordan */
img{ max-width:100%; height:auto; }
/* ============================================================
   HOME — 4 TARJETAS POR FILA
   (con 5 tarjetas: 4 arriba + 1 centrada abajo;
    con 8 tarjetas: 2 filas completas de 4)
   ============================================================ */
.category .row{
  display:flex !important;
  flex-wrap:wrap !important;
  justify-content:center !important;
  gap:22px !important;
  max-width:1040px !important;
  margin:0 auto !important;
  width:100% !important;
}
.category .col-md-2{
  flex:0 0 auto !important;
  width:calc(25% - 17px) !important;
  max-width:calc(25% - 17px) !important;
  margin:0 !important;
  padding:0 !important;
  float:none !important;
}

/* quitar lo que Bootstrap mete en la fila y ocupa espacio */
.category .row::before,
.category .row::after{ display:none !important; content:none !important; }
/* columnas de relleno vacías (col-md-1 sin tarjeta) */
.category .row > .col-md-1:not(:has(.item-category)){ display:none !important; }

/* Tablet: 2 por fila (8 tarjetas = 4 filas parejas) */
@media (max-width:991px){
  .category .row{ max-width:640px !important; gap:18px !important; }
  .category .col-md-2{
    width:calc(50% - 9px) !important;
    max-width:calc(50% - 9px) !important;
  }
}

/* Teléfono chico: 1 por fila, grande */
@media (max-width:480px){
  .category .col-md-2{
    width:88% !important;
    max-width:88% !important;
  }
}

/* Iconos de redes sociales del pie de pagina */
.footer .tag-in { padding: 0; margin: 0; }
.footer .tag-in li { display: inline-block; margin: 0 8px 8px 0; }
.footer .tag-in li img { height: 30px !important; width: auto !important; max-width: none; }