/* Little Details · Editor de estilo.
   Los valores salen de variables que fija el módulo según el perfil que corresponda a cada página. */

/* Fondo de página */
html.ld-on.ld-bg body {
  background-color: var(--ld-bg) !important;
  background-image: linear-gradient(180deg, var(--ld-bg), var(--ld-bg2)) !important;
  background-repeat: no-repeat !important;
  background-size: 100% 100% !important;
}
html.ld-on.ld-bgimg body {
  background-image: var(--ld-bg-img) !important;
  background-size: var(--ld-bg-size) !important;
  background-repeat: var(--ld-bg-repeat) !important;
  background-position: center top !important;
}
html.ld-on.ld-bg #wrapper,
html.ld-on.ld-bgimg #wrapper {
  background: transparent !important;
}
html.ld-on.ld-bg body {
  color: var(--ld-text);
}

/* Tarjetas de producto */
html.ld-on.ld-cards .product-miniature {
  background: var(--ld-card);
  border-radius: var(--ld-radius);
  padding: var(--ld-pad);
  box-sizing: border-box;
  overflow: visible;
}
html.ld-on.ld-cards .product-miniature img {
  border-radius: calc(var(--ld-radius) * 0.6);
}
html.ld-on.ld-cards-shadow .product-miniature {
  border: 0;
  box-shadow: 0 12px 30px rgba(42, 37, 34, var(--ld-shadow-a));
}
html.ld-on.ld-cards-border .product-miniature {
  border: 1px solid rgba(42, 37, 34, 0.14);
  box-shadow: none;
}
html.ld-on.ld-cards-flat .product-miniature {
  border: 0;
  box-shadow: none;
}
html.ld-on.ld-cards .product-miniature .product-title a {
  color: var(--ld-text);
}
html.ld-on.ld-hover-lift.ld-cards .product-miniature {
  transition: transform .2s ease, box-shadow .2s ease;
}
html.ld-on.ld-hover-lift.ld-cards .product-miniature:hover {
  transform: translateY(-3px);
}
html.ld-on.ld-center .product-miniature {
  text-align: center;
}
html.ld-on.ld-hidecat .product-miniature .product-category-name,
html.ld-on.ld-hidecat .product-miniature .category-name {
  display: none !important;
}

/* Tarjetas «Superpuesta» (oscura) y «Superpuesta clara»: el texto va sobre la foto */
html.ld-on.ld-cards-overlay .product-miniature,
html.ld-on.ld-cards-overlaylight .product-miniature {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 0;
  box-shadow: 0 12px 30px rgba(42, 37, 34, var(--ld-shadow-a));
}
html.ld-on.ld-cards-overlay .product-miniature .thumbnail-container,
html.ld-on.ld-cards-overlaylight .product-miniature .thumbnail-container {
  position: relative;
  margin: 0;
}
html.ld-on.ld-cards-overlay .product-miniature img,
html.ld-on.ld-cards-overlaylight .product-miniature img {
  border-radius: 0;
  transition: transform .35s ease;
}
html.ld-on.ld-cards-overlay .product-miniature:hover img,
html.ld-on.ld-cards-overlaylight .product-miniature:hover img {
  transform: scale(1.04);
}
html.ld-on.ld-cards-overlay .product-miniature .product-description,
html.ld-on.ld-cards-overlaylight .product-miniature .product-description {
  position: absolute !important;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  margin: 0;
  padding: 2.4rem 0.9rem 0.85rem;
  pointer-events: none;
}
html.ld-on.ld-cards-overlay .product-miniature .product-description a,
html.ld-on.ld-cards-overlaylight .product-miniature .product-description a {
  pointer-events: auto;
}
html.ld-on.ld-cards-overlay .product-miniature .product-description-short,
html.ld-on.ld-cards-overlay .product-miniature .product-reference,
html.ld-on.ld-cards-overlaylight .product-miniature .product-description-short,
html.ld-on.ld-cards-overlaylight .product-miniature .product-reference {
  display: none !important;
}
/* Los botones que salen al pasar el ratón suben a la parte alta para no taparse con el texto */
html.ld-on.ld-cards-overlay .product-miniature .product-functional-buttons-bottom,
html.ld-on.ld-cards-overlaylight .product-miniature .product-functional-buttons-bottom {
  top: 8px !important;
  bottom: auto !important;
  z-index: 2;
}

/* Variante oscura: degradado oscuro y texto blanco (para fotos que llenan la tarjeta) */
html.ld-on.ld-cards-overlay .product-miniature .product-description {
  background: linear-gradient(to top, rgba(30, 25, 18, .78) 0%, rgba(30, 25, 18, .35) 55%, rgba(30, 25, 18, 0) 100%);
}
html.ld-on.ld-cards-overlay .product-miniature .product-description,
html.ld-on.ld-cards-overlay .product-miniature .product-description * {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

/* Variante clara: degradado blanco y texto oscuro (para fotos de producto sobre fondo blanco) */
html.ld-on.ld-cards-overlaylight .product-miniature .product-description {
  background: linear-gradient(to top, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .8) 55%, rgba(255, 255, 255, 0) 100%);
}
html.ld-on.ld-cards-overlaylight .product-miniature .product-description,
html.ld-on.ld-cards-overlaylight .product-miniature .product-description * {
  color: var(--ld-text) !important;
}

/* Tarjetas «Compacta»: foto pequeña y texto al lado */
html.ld-on.ld-cards-compact .product-miniature {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(42, 37, 34, 0.12);
  box-shadow: none;
}
html.ld-on.ld-cards-compact .product-miniature .thumbnail-container {
  flex: 0 0 84px;
  width: 84px;
  max-width: 84px;
}
html.ld-on.ld-cards-compact .product-miniature .product-functional-buttons,
html.ld-on.ld-cards-compact .product-miniature .product-description-short,
html.ld-on.ld-cards-compact .product-miniature .product-reference {
  display: none !important;
}
html.ld-on.ld-cards-compact .product-miniature .product-description {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  text-align: left;
}
html.ld-on.ld-cards-compact .product-miniature .product-title {
  font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
  html.ld-on.ld-cards-overlay .product-miniature img,
  html.ld-on.ld-cards-overlaylight .product-miniature img { transition: none; }
  html.ld-on.ld-cards-overlay .product-miniature:hover img,
  html.ld-on.ld-cards-overlaylight .product-miniature:hover img { transform: none; }
}

/* Proporción y ajuste de las fotos de las tarjetas */
html.ld-on.ld-img .product-miniature .thumbnail-container .product-thumbnail {
  display: block;
  aspect-ratio: var(--ld-ratio);
  overflow: hidden;
}
html.ld-on.ld-img .product-miniature .thumbnail-container .product-thumbnail img {
  width: 100% !important;
  height: 100% !important;
  object-fit: var(--ld-fit);
}

/* Acento: botones principales y precios */
html.ld-on.ld-accentbtn .btn-primary {
  background-color: var(--ld-accent) !important;
  border-color: var(--ld-accent) !important;
  color: var(--ld-accent-text) !important;
}
html.ld-on.ld-accentbtn .btn-primary:hover,
html.ld-on.ld-accentbtn .btn-primary:focus {
  filter: brightness(0.92);
}
html.ld-on.ld-price .product-miniature .price,
html.ld-on.ld-price .product-miniature .product-price,
html.ld-on.ld-price .current-price,
html.ld-on.ld-price .current-price .price {
  color: var(--ld-price) !important;
}

/* Botones y campos */
html.ld-on.ld-btn-pill .btn,
html.ld-on.ld-btn-round .btn,
html.ld-on.ld-btn-square .btn {
  border-radius: var(--ld-btn-radius);
}
html.ld-on.ld-btn-pill .form-control,
html.ld-on.ld-btn-round .form-control,
html.ld-on.ld-btn-square .form-control {
  border-radius: var(--ld-input-radius);
}

/* Etiquetas de producto */
html.ld-on.ld-flag .product-flag {
  background: var(--ld-flag-bg) !important;
  color: var(--ld-flag-text) !important;
}
html.ld-on.ld-flag.ld-flag-pill .product-flag {
  border-radius: 999px !important;
  padding-left: 10px;
  padding-right: 10px;
}

/* Cabecera y pie */
html.ld-on.ld-hdr #header,
html.ld-on.ld-hdr #header [class*="header-top"],
html.ld-on.ld-hdr #desktop-header,
html.ld-on.ld-hdr #mobile-header {
  background: var(--ld-hdr-bg) !important;
}
html.ld-on.ld-hdr #header a {
  color: var(--ld-hdr-text) !important;
}
html.ld-on.ld-ftr #footer {
  background: var(--ld-ftr-bg) !important;
  color: var(--ld-ftr-text) !important;
}
html.ld-on.ld-ftr #footer a,
html.ld-on.ld-ftr #footer p,
html.ld-on.ld-ftr #footer h1,
html.ld-on.ld-ftr #footer h2,
html.ld-on.ld-ftr #footer h3,
html.ld-on.ld-ftr #footer h4,
html.ld-on.ld-ftr #footer h5,
html.ld-on.ld-ftr #footer li {
  color: var(--ld-ftr-text) !important;
}

/* Tipografía */
html.ld-on.ld-head-serif h1,
html.ld-on.ld-head-serif h2,
html.ld-on.ld-head-serif h3,
html.ld-on.ld-head-serif .h1,
html.ld-on.ld-head-serif .h2,
html.ld-on.ld-head-serif .h3 {
  font-family: Georgia, "Times New Roman", serif;
}
html.ld-on.ld-head-custom h1,
html.ld-on.ld-head-custom h2,
html.ld-on.ld-head-custom h3,
html.ld-on.ld-head-custom h4,
html.ld-on.ld-head-custom .h1,
html.ld-on.ld-head-custom .h2,
html.ld-on.ld-head-custom .h3 {
  font-family: "LDCustom", sans-serif !important;
}
html.ld-on.ld-hw h1,
html.ld-on.ld-hw h2,
html.ld-on.ld-hw h3,
html.ld-on.ld-hw .h1,
html.ld-on.ld-hw .h2,
html.ld-on.ld-hw .h3 {
  font-weight: var(--ld-head-weight) !important;
}
html.ld-on.ld-body-custom body,
html.ld-on.ld-body-custom p,
html.ld-on.ld-body-custom li,
html.ld-on.ld-body-custom label,
html.ld-on.ld-body-custom input,
html.ld-on.ld-body-custom textarea,
html.ld-on.ld-body-custom select,
html.ld-on.ld-body-custom button,
html.ld-on.ld-body-custom .btn,
html.ld-on.ld-body-custom td,
html.ld-on.ld-body-custom th,
html.ld-on.ld-body-custom a:not([class*="fa"]):not([class*="icon"]) {
  font-family: "LDCustom", sans-serif !important;
}

/* Franja de aviso */
.ld-ribbon {
  position: relative;
  font-size: 14px;
  line-height: 1.4;
  padding: 10px 48px 10px 16px;
  text-align: center;
}
.ld-ribbon a,
.ld-ribbon a:hover {
  text-decoration: underline;
}
.ld-ribbon-close {
  position: absolute;
  right: 8px;
  top: 50%;
  margin-top: -16px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.ld-ribbon-close:hover,
.ld-ribbon-close:focus {
  background: rgba(128, 128, 128, 0.25);
}

/* Nieve */
.ld-snow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}
.ld-snow-toggle {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 1000;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(42, 37, 34, 0.82);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  html.ld-on.ld-hover-lift.ld-cards .product-miniature { transition: none; }
}
