/*
 * Riveira Avanti — estilos (APP-129).
 * Lenguaje visual: fondo blanco, Montserrat, títulos en mayúsculas, botones rectos en negro,
 * tarjetas de producto sobre gris muy claro y pie beige. Acento de marca: verde Riveira.
 */

:root {
  --rv-tinta: #000;
  --rv-texto: #676767;
  --rv-fondo: #fff;
  --rv-suave: #f6f6f6;
  --rv-pie: #f3f2f0;
  --rv-linea: #e4e4e4;
  --rv-acento: #0f4a4d;
  --rv-oferta: #b3263e;
  --rv-ancho: 1240px;
  --rv-fuente: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ------------------------------------------------------------------ Base */

html body,
html body button,
html body input,
html body select,
html body textarea {
  font-family: var(--rv-fuente);
}

html body {
  color: var(--rv-texto);
  background: var(--rv-fondo);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html body h1,
html body h2,
html body h3,
html body h4,
html body h5,
html body h6,
html body .entry-title,
html body .woocommerce-loop-product__title {
  font-family: var(--rv-fuente);
  color: var(--rv-tinta);
  letter-spacing: 0;
}

html body h1 {
  font-size: clamp(1.7rem, 3.2vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}

html body h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  font-weight: 500;
  line-height: 1.25;
  text-transform: uppercase;
}

html body h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

html body a {
  color: var(--rv-tinta);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

html body a:hover {
  color: var(--rv-acento);
}

html body ::selection {
  background: var(--rv-tinta);
  color: #fff;
}

/* ------------------------------------------------------- Barra de anuncio */

.rv-anuncio {
  background: #000;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
}

.rv-anuncio a,
.rv-anuncio span {
  display: block;
  padding: 11px 16px;
  color: #fff;
  text-decoration: none;
}

.rv-anuncio a {
  text-decoration: underline;
}

.rv-anuncio a:hover {
  color: #fff;
  opacity: 0.8;
}

/* ---------------------------------------------------------------- Cabecera */

html body .site-header,
html body .main-header-bar,
html body .ast-primary-header-bar,
html body .ast-main-header-wrap {
  background: #fff !important;
}

html body .main-header-bar,
html body .ast-primary-header-bar {
  border-bottom: 0;
}

/* Escritorio: logo centrado arriba, menú centrado debajo, iconos a la derecha y búsqueda a la izquierda. */
@media (min-width: 922px) {
  html body #ast-desktop-header .ast-primary-header-bar,
  html body #ast-desktop-header .ast-main-header-wrap {
    height: auto !important;
    min-height: 0 !important;
  }

  html body #ast-desktop-header .ast-primary-header-bar {
    position: relative;
  }

  html body #ast-desktop-header .ast-primary-header-bar .site-primary-header-wrap {
    height: auto !important;
    min-height: 0 !important;
    padding-top: 14px;
    padding-bottom: 6px;
  }

  html body #ast-desktop-header .ast-builder-grid-row {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: flex-start;
    justify-content: center;
    gap: 0;
    height: auto !important;
    min-height: 0 !important;
  }

  html body #ast-desktop-header .site-header-primary-section-left {
    flex: 0 0 100%;
    justify-content: center;
    height: auto !important;
    min-height: 0 !important;
  }

  html body #ast-desktop-header .site-header-primary-section-left .site-logo-img img,
  html body #ast-desktop-header .site-header-primary-section-left .custom-logo {
    width: auto !important;
    max-height: 56px;
  }

  html body #ast-desktop-header .site-header-primary-section-right {
    display: contents;
  }

  html body #ast-desktop-header .ast-builder-menu-1 {
    order: 3;
    flex: 0 0 100%;
    justify-content: center;
    margin-top: 6px;
  }

  html body #ast-desktop-header .ast-builder-menu-1 .main-header-bar-navigation,
  html body #ast-desktop-header .ast-builder-menu-1 .ast-main-header-bar-alignment,
  html body #ast-desktop-header .ast-builder-menu-1 .site-navigation {
    display: flex;
    flex: 1 1 100%;
    justify-content: center;
    width: 100%;
    height: auto !important;
  }

  html body #ast-desktop-header .ast-builder-menu-1 .main-header-menu {
    justify-content: center;
  }

  html body #ast-desktop-header .ast-header-html img {
    width: auto !important;
    height: 58px !important;
  }

  html body #ast-desktop-header .ast-header-woo-cart,
  html body #ast-desktop-header .ast-header-account {
    position: absolute;
    top: 26px;
  }

  html body #ast-desktop-header .ast-header-account {
    right: 0;
  }

  html body #ast-desktop-header .ast-header-woo-cart {
    right: 48px;
  }

  html body #ast-desktop-header .rv-buscar {
    position: absolute;
    top: 22px;
    left: 20px;
    z-index: 5;
    width: 260px;
  }
}

html body .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link,
html body .ast-builder-menu .main-header-menu > .menu-item > .menu-link {
  padding: 8px 16px;
  line-height: 1.4 !important;
  color: var(--rv-tinta) !important;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

html body .ast-builder-menu-1 .main-header-menu > .menu-item:hover > .menu-link,
html body .ast-builder-menu-1 .main-header-menu > .current-menu-item > .menu-link {
  color: var(--rv-acento) !important;
}

html body .main-header-menu .sub-menu {
  border: 1px solid var(--rv-linea);
  border-radius: 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

html body .main-header-menu .sub-menu .menu-link {
  font-size: 12px;
  text-transform: uppercase;
}

html body .ast-header-woo-cart .ast-site-header-cart-li a,
html body .ast-header-account a,
html body .ast-header-account svg {
  color: var(--rv-tinta);
  fill: var(--rv-tinta);
}

/* El tema de origen teñía el logo de blanco para la cabecera oscura: aquí vuelve a su color dorado. */
html body img.custom-logo,
html body .site-logo-img img,
html body .ast-header-html img {
  filter: none !important;
}

/* Móvil: logo contenido y botón de menú visible sobre fondo blanco. */
@media (max-width: 921px) {
  html body #ast-mobile-header .custom-logo,
  html body #ast-mobile-header .site-logo-img img {
    width: auto !important;
    max-height: 48px;
  }

  html body #ast-mobile-header .ast-primary-header-bar,
  html body #ast-mobile-header .ast-builder-grid-row {
    height: auto !important;
    min-height: 0 !important;
  }

  html body #ast-mobile-header .site-primary-header-wrap {
    min-height: 0 !important;
  }

  html body #ast-mobile-header .ast-mobile-svg,
  html body #ast-mobile-header .ast-mobile-svg path {
    fill: var(--rv-tinta) !important;
    color: var(--rv-tinta) !important;
  }

  html body #ast-mobile-header .menu-toggle,
  html body #ast-mobile-header .ast-mobile-menu-trigger-minimal,
  html body #ast-mobile-header .ast-mobile-menu-trigger-minimal svg,
  html body #ast-mobile-header .menu-toggle .menu-toggle-icon {
    background: transparent;
    color: var(--rv-tinta);
    fill: var(--rv-tinta);
    border: 0;
  }
}

/* Buscador (pastilla gris) que añade el tema. */
.rv-buscar {
  display: none;
}

@media (min-width: 922px) {
  .rv-buscar {
    display: block;
  }
}

.rv-buscar form {
  position: relative;
  margin: 0;
}

.rv-buscar input[type='search'] {
  width: 100%;
  height: 38px;
  padding: 0 16px 0 40px;
  border: 0 !important;
  border-radius: 999px;
  background: var(--rv-suave) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 14px center no-repeat;
  font-size: 13px;
}

.rv-buscar button {
  display: none;
}

html body .site-title a,
html body .site-description {
  color: var(--rv-tinta);
}

/* Evita el desplazamiento horizontal que provocan las presentaciones de Elementor. */
html,
html body {
  overflow-x: clip;
}

html body .elementor-background-slideshow {
  overflow: hidden;
}

html body .ast-header-woo-cart,
html body .ast-header-woo-cart .ast-site-header-cart,
html body .ast-header-woo-cart .ast-site-header-cart-li,
html body .ast-header-woo-cart .ast-site-header-cart-li a,
html body .ast-header-account,
html body .ast-header-account .ast-header-account-link {
  height: auto !important;
  min-height: 0 !important;
  line-height: 1 !important;
}

/* ------------------------------------------------------------------ Botones */

html body .button,
html body button:not(.menu-toggle):not(.ast-mobile-menu-trigger-minimal),
html body input[type='submit'],
html body input[type='button'],
html body .ast-button,
html body .wp-block-button__link,
html body .woocommerce a.button,
html body .woocommerce button.button,
html body .woocommerce input.button,
html body .woocommerce #respond input#submit,
html body .elementor-button {
  border: 1px solid var(--rv-tinta);
  border-radius: 0;
  background: var(--rv-tinta);
  color: #fff;
  font-family: var(--rv-fuente);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

html body .button:hover,
html body button:not(.menu-toggle):not(.ast-mobile-menu-trigger-minimal):hover,
html body input[type='submit']:hover,
html body .ast-button:hover,
html body .wp-block-button__link:hover,
html body .woocommerce a.button:hover,
html body .woocommerce button.button:hover,
html body .woocommerce input.button:hover,
html body .elementor-button:hover {
  border-color: var(--rv-acento);
  background: var(--rv-acento);
  color: #fff;
}

/* Botón «de contorno»: se pide con la clase rv-contorno (p. ej. «Ver más»). */
html body .rv-contorno,
html body a.button.rv-contorno,
html body .is-style-outline .wp-block-button__link {
  background: transparent !important;
  border: 1px solid var(--rv-tinta) !important;
  padding: 11px 22px !important;
  color: var(--rv-tinta) !important;
}

html body .rv-contorno:hover,
html body a.button.rv-contorno:hover,
html body .is-style-outline .wp-block-button__link:hover {
  background: var(--rv-tinta) !important;
  border-color: var(--rv-tinta) !important;
  color: #fff !important;
}

/* ---------------------------------------------------------------- Formularios */

html body input[type='text'],
html body input[type='email'],
html body input[type='tel'],
html body input[type='number'],
html body input[type='search'],
html body input[type='password'],
html body select,
html body textarea {
  border: 1px solid var(--rv-linea);
  border-radius: 0;
  background: #fff;
  color: var(--rv-tinta);
  font-size: 14px;
}

html body input:focus,
html body select:focus,
html body textarea:focus {
  border-color: var(--rv-tinta);
  outline: 0;
  box-shadow: none;
}

/* ------------------------------------------------------------- Listado de productos */

html body ul.products {
  gap: 28px 18px;
}

html body ul.products li.product {
  position: relative;
  text-align: left;
}

html body ul.products li.product .astra-shop-thumbnail-wrap,
html body ul.products li.product a.woocommerce-LoopProduct-link:first-child,
html body ul.products li.product .ast-woocommerce-container > a:first-child {
  display: block;
  overflow: hidden;
  background: var(--rv-suave);
}

html body ul.products li.product img {
  margin: 0;
  padding: 14px;
  background: var(--rv-suave);
  mix-blend-mode: multiply;
  object-fit: contain;
  aspect-ratio: 1 / 1.1;
  transition: transform 0.4s;
}

html body ul.products li.product:hover img {
  transform: scale(1.03);
}

html body ul.products li.product .ast-woo-product-category,
html body ul.products li.product .ast-woo-shop-product-brand {
  margin: 14px 0 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--rv-tinta);
}

html body ul.products li.product .woocommerce-loop-product__title {
  margin: 12px 0 4px;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--rv-tinta);
  text-align: left;
  text-transform: none;
}

html body ul.products li.product .astra-shop-summary-wrap,
html body ul.products li.product .ast-woocommerce-container {
  text-align: left;
}

html body ul.products li.product .price {
  color: var(--rv-tinta);
  font-size: 14px;
  font-weight: 500;
}

html body ul.products li.product .price del {
  color: var(--rv-texto);
  font-weight: 400;
  opacity: 0.8;
}

html body ul.products li.product .price ins {
  color: var(--rv-oferta);
  text-decoration: none;
}

html body ul.products li.product .button {
  width: 100%;
  margin-top: 10px;
  padding: 12px 10px;
  text-align: center;
}

/* Variaciones (muestras de «Variation Swatches»): a la izquierda y discretas. */
html body ul.products li.product .cfvsw-swatches-container,
html body ul.products li.product .cfvsw-shop-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start !important;
  margin: 10px 0 0 !important;
}

html body ul.products li.product .cfvsw-swatches-option {
  min-width: 0;
  margin: 0 !important;
  padding: 4px 10px !important;
  border: 1px solid var(--rv-linea) !important;
  border-radius: 0 !important;
  background: #fff;
  color: var(--rv-tinta);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

html body ul.products li.product .cfvsw-swatches-option:hover,
html body ul.products li.product .cfvsw-swatches-option.cfvsw-selected-swatch {
  border-color: var(--rv-tinta) !important;
}

/* «Agotado»: una etiqueta pequeña sobre la foto, no una franja. */
html body ul.products li.product .ast-shop-product-out-of-stock {
  position: absolute;
  top: 10px;
  right: auto;
  bottom: auto;
  left: 10px;
  width: auto;
  margin: 0;
  padding: 5px 9px;
  background: #fff;
  color: var(--rv-tinta);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* La cabecera ocupa su sitio (el tema de origen la dejaba flotando sobre la portada). */
html body #masthead,
html body .ast-theme-transparent-header #masthead {
  position: relative !important;
}

/* Etiqueta de oferta: cuadrada y discreta. */
html body .woocommerce span.onsale,
html body ul.products li.product .onsale {
  top: 10px;
  left: 10px;
  right: auto;
  min-width: 0;
  min-height: 0;
  padding: 5px 9px;
  border-radius: 0;
  background: var(--rv-tinta);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

html body .woocommerce-ordering select,
html body .woocommerce .woocommerce-result-count {
  font-size: 13px;
}

/* ---------------------------------------------------------- Ficha del producto */

html body.single-product div.product .product_title {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 600;
  text-transform: none;
}

html body.single-product div.product p.price,
html body.single-product div.product span.price {
  color: var(--rv-tinta);
  font-size: 1.35rem;
  font-weight: 600;
}

html body.single-product .woocommerce-product-gallery {
  background: var(--rv-suave);
}

html body.single-product .woocommerce-product-gallery img {
  mix-blend-mode: multiply;
}

html body.single-product div.product form.cart .button {
  min-height: 48px;
  padding: 0 34px;
}

html body.single-product .woocommerce-tabs ul.tabs li a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

html body.single-product .woocommerce-tabs ul.tabs li.active a {
  color: var(--rv-tinta);
}

/* ---------------------------------------------------------- Carrito y pedido */

html body .woocommerce table.shop_table {
  border: 1px solid var(--rv-linea);
  border-radius: 0;
}

html body .woocommerce-checkout #payment {
  border-radius: 0;
  background: var(--rv-suave);
}

html body .woocommerce-message,
html body .woocommerce-info {
  border-top-color: var(--rv-tinta);
  background: var(--rv-suave);
}

/* -------------------------------------------------------------------- Pie */

html body .site-footer,
html body .site-below-footer-wrap,
html body .site-primary-footer-wrap,
html body .ast-small-footer {
  background: var(--rv-pie);
  color: var(--rv-texto);
}

html body .site-footer a {
  color: var(--rv-tinta);
}

html body .site-footer .widget-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* -------------------------------------------------------------- Secciones (Elementor) */

html body .elementor-widget-heading .elementor-heading-title {
  font-family: var(--rv-fuente);
}

html body .elementor-section-title,
html body .rv-seccion-titulo {
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  font-weight: 500;
  text-transform: uppercase;
}


/* -------------------------------------------------------------------- Títulos de página */

/* Tienda y archivos: título centrado, en mayúsculas, con un trazo corto debajo y buen espacio. */
html body .woocommerce-products-header,
html body .ast-archive-description,
html body.archive .page-header {
  margin: 0 0 40px;
  padding: 56px 0 0;
  text-align: center;
  background: transparent;
  border: 0;
}

html body .woocommerce-products-header__title,
html body .ast-archive-description .ast-archive-title,
html body.archive .page-title {
  position: relative;
  display: inline-block;
  margin: 0;
  padding-bottom: 20px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

html body .woocommerce-products-header__title::after,
html body .ast-archive-description .ast-archive-title::after,
html body.archive .page-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 44px;
  height: 2px;
  background: var(--rv-acento);
  transform: translateX(-50%);
}

html body .woocommerce-breadcrumb {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html body .woocommerce-result-count {
  margin-bottom: 24px;
  color: var(--rv-texto);
}

/* Títulos de páginas de contenido. */
html body.page:not(.home) .entry-title {
  position: relative;
  margin: 0 0 40px;
  padding-bottom: 20px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

html body.page:not(.home) .entry-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 44px;
  height: 2px;
  background: var(--rv-acento);
  transform: translateX(-50%);
}

/* -------------------------------------------------------------------- Pie de página */

.rv-pie {
  margin-top: 96px;
  background: var(--rv-pie);
  color: var(--rv-texto);
  font-size: 14px;
}

.rv-pie__contenedor {
  max-width: calc(var(--rv-ancho) + 40px);
  margin: 0 auto;
  padding: 0 44px;
}

@media (max-width: 921px) {
  .rv-pie__contenedor {
    padding: 0 20px;
  }
}

.rv-pie__marca {
  padding: 44px 0 36px;
  border-bottom: 1px solid #dedcd8;
}

.rv-pie__fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.rv-pie__logo {
  display: inline-block;
  color: var(--rv-tinta);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
}

.rv-pie__logo img {
  display: block;
  width: auto;
  height: 54px;
}

.rv-pie__lema {
  max-width: 420px;
  margin: 0;
  text-align: right;
  font-size: 13px;
  line-height: 1.6;
}

.rv-pie__cuerpo {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 56px;
}

.rv-pie h2 {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rv-tinta);
}

.rv-pie ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rv-pie li {
  margin: 0 0 12px;
}

.rv-pie a {
  color: var(--rv-texto);
  text-decoration: none;
  transition: color 0.2s;
}

.rv-pie a:hover {
  color: var(--rv-tinta);
}

.rv-pie__contacto p {
  max-width: 320px;
  margin: 0 0 22px;
  line-height: 1.65;
}

.rv-pie__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 320px;
  padding: 14px 0;
  border-top: 1px solid var(--rv-tinta);
  border-bottom: 1px solid var(--rv-tinta);
  color: var(--rv-tinta) !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rv-pie__correo,
.rv-pie__direccion {
  display: block;
  margin-top: 16px !important;
  font-size: 13px;
}

.rv-pie__base {
  padding: 22px 0;
  border-top: 1px solid #dedcd8;
  font-size: 12px;
}

.rv-pie__moneda select {
  width: auto;
  min-width: 160px;
  padding: 6px 10px;
  font-size: 12px;
}

.rv-pie__moneda .widget-title {
  display: none;
}

/* -------------------------------------------------------------------- Tabletas y móviles */

@media (max-width: 921px) {
  .rv-pie {
    margin-top: 64px;
  }

  .rv-pie__fila {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .rv-pie__lema {
    text-align: left;
  }

  .rv-pie__cuerpo {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .rv-pie__contacto {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .rv-pie__cuerpo {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------ Móvil */

@media (max-width: 921px) {
  html body {
    font-size: 14px;
  }

  html body ul.products {
    gap: 22px 12px;
  }

  html body .main-header-menu > .menu-item > .menu-link {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body *,
  html body *::before,
  html body *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Cabecera de la tienda (APP-129). */
.rv-cabecera-tienda {
  margin: 8px 0 44px;
  text-align: center;
}

.rv-cabecera-tienda span {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.rv-cabecera-tienda h1 {
  position: relative;
  display: inline-block;
  margin: 0;
  padding-bottom: 20px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rv-cabecera-tienda h1::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 44px;
  height: 2px;
  background: var(--rv-acento);
  transform: translateX(-50%);
}

.rv-cabecera-tienda p {
  max-width: 560px;
  margin: 18px auto 0;
  font-size: 14px;
  line-height: 1.7;
}

html body ul.products li.product.outofstock img,
html body ul.products li.product.outofstock .astra-shop-thumbnail-wrap img {
  opacity: 0.55;
}

/* Producto agotado: la tarjeta se ve igual que las demás; solo lleva una etiqueta pequeña. */
html body ul.products li.product.outofstock img,
html body ul.products li.product.outofstock .astra-shop-thumbnail-wrap img,
html body ul.products li.product.outofstock .cfvsw-original-thumbnail img {
  opacity: 1 !important;
  filter: none !important;
}

html body ul.products li.product .astra-shop-thumbnail-wrap {
  position: relative;
}

html body ul.products li.product .ast-shop-product-out-of-stock {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 2;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 6px 10px !important;
  border: 0 !important;
  background: #000 !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: 0.12em !important;
  text-align: left !important;
  text-transform: uppercase;
}

/* En las tarjetas solo se muestran los mililitros (el género ya está en las categorías). */
html body ul.products li.product [swatches-attr='attribute_pa_genero'] {
  display: none;
}

.rv-pie__subtitulo {
  margin-top: 28px !important;
}

/* -------------------------------------------------------------------- Páginas de la empresa */

html body.page:not(.home) .entry-content,
html body.page:not(.home) .ast-article-single .entry-content {
  max-width: 1040px;
  margin: 0 auto;
}

.rv-pagina__aviso {
  margin: 0 0 40px;
  padding: 14px 18px;
  border: 1px dashed #c9a227;
  background: #fff9e6;
  color: #7a5b00;
  font-size: 13px;
}

.rv-pagina__intro {
  max-width: 760px;
  margin: 0 auto 72px;
  text-align: center;
}

.rv-pagina__eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.rv-pagina__intro h2 {
  margin: 0 0 22px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.25;
  text-transform: none;
  font-weight: 500;
}

.rv-pagina__intro p:last-child {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.85;
}

.rv-pagina__rejilla {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0 0 80px;
}

.rv-pagina__rejilla > div {
  padding: 36px 30px 38px;
  background: var(--rv-suave);
}

.rv-pagina__rejilla span {
  display: block;
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.rv-pagina__rejilla h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rv-pagina__rejilla p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
}

.rv-pagina__texto {
  max-width: 760px;
  margin: 0 auto 72px;
}

.rv-pagina__texto h2 {
  margin: 44px 0 14px;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}

.rv-pagina__texto h2:first-child {
  margin-top: 0;
}

.rv-pagina__texto p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.85;
}

.rv-pagina__cta {
  padding: 56px 24px;
  background: var(--rv-tinta);
  color: #fff;
  text-align: center;
}

.rv-pagina__cta h2 {
  margin: 0 0 10px;
  color: #fff;
}

.rv-pagina__cta p {
  margin: 0 0 26px;
  color: #d8d8d8;
}

.rv-pagina__cta .button {
  border-color: #fff;
  background: #fff;
  color: var(--rv-tinta);
}

.rv-pagina__cta .button:hover {
  background: transparent;
  color: #fff;
}

@media (max-width: 921px) {
  .rv-pagina__rejilla {
    grid-template-columns: 1fr;
  }

  .rv-pagina__intro {
    margin-bottom: 48px;
  }
}

/* Los encabezados del contenido usan la misma letra que el resto del tema. */
html body .entry-content h1,
html body .entry-content h2,
html body .entry-content h3,
html body .entry-content h4,
html body .rv-f h2,
html body .rv-f h3 {
  font-family: var(--rv-fuente) !important;
  letter-spacing: 0.02em;
}

html body .rv-pagina__texto h2,
html body .rv-pagina__rejilla h3 {
  text-transform: uppercase;
}

/* ======================================================================
 * Verde de Riveira como acento de marca + cabecera renovada (APP-129).
 * ====================================================================== */

:root {
  --rv-acento: #0f4a4d;
  --rv-verde-osc: #0a3538;
  --rv-verde-suave: #e8f1f0;
}

/* Barra de anuncio en verde de la marca. */
.rv-anuncio {
  background: var(--rv-acento);
}

.rv-anuncio a,
.rv-anuncio span {
  letter-spacing: 0.04em;
}

/* Botones principales: verde Riveira (el contorno sigue siendo de contorno). */
html body .button,
html body button:not(.menu-toggle):not(.ast-mobile-menu-trigger-minimal),
html body input[type='submit'],
html body input[type='button'],
html body .ast-button,
html body .wp-block-button__link,
html body .woocommerce a.button,
html body .woocommerce button.button,
html body .woocommerce input.button,
html body .woocommerce #respond input#submit,
html body .elementor-button {
  border-color: var(--rv-acento);
  background: var(--rv-acento);
}

html body .button:hover,
html body button:not(.menu-toggle):not(.ast-mobile-menu-trigger-minimal):hover,
html body input[type='submit']:hover,
html body .ast-button:hover,
html body .wp-block-button__link:hover,
html body .woocommerce a.button:hover,
html body .woocommerce button.button:hover,
html body .woocommerce input.button:hover,
html body .elementor-button:hover {
  border-color: var(--rv-verde-osc);
  background: var(--rv-verde-osc);
}

html body .rv-contorno,
html body a.button.rv-contorno {
  border-color: var(--rv-acento) !important;
  color: var(--rv-acento) !important;
  background: transparent !important;
}

html body .rv-contorno:hover,
html body a.button.rv-contorno:hover {
  background: var(--rv-acento) !important;
  border-color: var(--rv-acento) !important;
  color: #fff !important;
}

html body .menu-toggle,
html body .rv-filtros__cerrar,
html body .rv-coincidencia button {
  /* se redefinen más abajo cada uno */
}

html body a:hover {
  color: var(--rv-acento);
}

/* Menú: el elemento activo y el que se señala llevan un subrayado verde. */
html body .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
  position: relative;
}

html body .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 2px;
  height: 2px;
  background: var(--rv-acento);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

html body .ast-builder-menu-1 .main-header-menu > .menu-item:hover > .menu-link::after,
html body .ast-builder-menu-1 .main-header-menu > .current-menu-item > .menu-link::after {
  transform: scaleX(1);
}

/* -------------------------------------------------------------- Cabecera (escritorio) */

@media (min-width: 922px) {
  /* Se ocultan el carrito y la cuenta del tema madre: el grupo propio los reemplaza. */
  html body #ast-desktop-header .ast-header-woo-cart,
  html body #ast-desktop-header .ast-header-account {
    display: none !important;
  }

  html body #ast-desktop-header .ast-primary-header-bar {
    border-bottom: 1px solid var(--rv-linea);
  }

  html body #ast-desktop-header .rv-buscar {
    top: 24px;
    left: 24px;
    width: 300px;
  }

  html body #ast-desktop-header .rv-iconos {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 5;
  }
}

.rv-iconos {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rv-icono {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--rv-linea);
  border-radius: 50%;
  background: #fff;
  color: var(--rv-tinta);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.rv-icono:hover,
.rv-cuenta:hover .rv-icono {
  border-color: var(--rv-acento);
  background: var(--rv-verde-suave);
  color: var(--rv-acento);
}

.rv-icono__cuenta {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--rv-acento);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.rv-icono__cuenta[data-n='0'] {
  background: #b9c6c5;
}

.rv-cuenta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 6px;
  padding-left: 16px;
  border-left: 1px solid var(--rv-linea);
  color: var(--rv-tinta);
  text-decoration: none;
}

.rv-cuenta__texto {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}

.rv-cuenta__texto small {
  font-size: 11px;
  color: var(--rv-texto);
}

.rv-cuenta__texto strong {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.rv-cuenta:hover {
  color: var(--rv-acento);
}

/* Buscador: pastilla blanca con contorno fino y foco verde. */
.rv-buscar input[type='search'] {
  height: 44px;
  padding: 0 18px 0 46px;
  border: 1px solid var(--rv-linea) !important;
  border-radius: 999px;
  background-color: #fff;
  background-position: 18px center;
  font-size: 13px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.rv-buscar input[type='search']:focus {
  border-color: var(--rv-acento) !important;
  box-shadow: 0 0 0 3px rgba(15, 74, 77, 0.12);
  outline: 0;
}

/* En móviles el grupo propio no se usa. */
@media (max-width: 921px) {
  .rv-iconos {
    display: none;
  }
}

/* -------------------------------------------------------------------- Migas de pan */

html body .woocommerce-breadcrumb.rv-migas,
html body .rv-migas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 28px;
  padding: 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rv-tinta);
}

.rv-migas a {
  color: var(--rv-texto);
  text-decoration: none;
}

.rv-migas a:hover {
  color: var(--rv-acento);
}

.rv-migas__sep {
  margin: 0 8px;
  color: #b3b3b3;
}

/* ----------------------------------------------------------- Etiquetas de las tarjetas */

.rv-etiqueta {
  display: inline-block;
  padding: 6px 10px;
  background: var(--rv-acento);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html body ul.products li.product .rv-etiqueta--preventa {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.rv-etiqueta--inline {
  margin-bottom: 14px;
}

/* ======================================================================
 * Quinta tanda: pie verde con efecto, WhatsApp en la cabecera, sin migas en
 * el catálogo, segunda imagen al pasar el cursor, zoom con más nitidez,
 * preventa con fecha y opiniones.
 * ====================================================================== */

/* ----------------------------------------------------------------- Pie verde con efecto */

.rv-pie {
  position: relative;
  margin-top: 130px;
  background:
    radial-gradient(900px 420px at 88% -12%, rgba(201, 162, 39, 0.18), transparent 62%),
    radial-gradient(760px 420px at 4% 112%, rgba(27, 156, 133, 0.28), transparent 60%),
    linear-gradient(165deg, #0a3538 0%, #0f4a4d 52%, #0b3f42 100%);
  color: #bcd2d0;
}

/* Borde superior ondulado sobre el contenido de la página. */
.rv-pie::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -59px;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60V34C180 6 340 6 520 28s360 28 540 6c150-18 280-30 380-24V60z' fill='%230a3538'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  pointer-events: none;
}

/* Un hilo de luz dorada que recorre el borde superior, despacio. */
.rv-pie::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(214, 178, 76, 0.9) 50%, transparent 100%);
  background-size: 40% 100%;
  background-repeat: no-repeat;
  animation: rv-hilo 9s linear infinite;
  pointer-events: none;
}

@keyframes rv-hilo {
  from {
    background-position: -40% 0;
  }

  to {
    background-position: 140% 0;
  }
}

.rv-pie__marca {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.rv-pie__logo {
  color: #fff;
}

.rv-pie h2,
.rv-pie__cuerpo h2 {
  color: #fff;
}

.rv-pie a {
  position: relative;
  color: #bcd2d0;
}

.rv-pie li a {
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: color 0.2s, background-size 0.3s ease;
}

.rv-pie li a:hover {
  color: #fff;
  background-size: 100% 1px;
}

.rv-pie__lema,
.rv-pie__contacto p,
.rv-pie__direccion {
  color: #a9c3c0;
}

.rv-pie__cta {
  border-top-color: rgba(255, 255, 255, 0.5);
  border-bottom-color: rgba(255, 255, 255, 0.5);
  color: #fff !important;
  transition: background-color 0.25s, padding 0.25s;
}

.rv-pie__cta:hover {
  padding-left: 14px;
  padding-right: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
}

.rv-pie__base {
  border-top-color: rgba(255, 255, 255, 0.14);
  color: #9fbab7;
}

.rv-pie__moneda select {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .rv-pie::after {
    animation: none;
  }
}

/* ------------------------------------------------------ WhatsApp en la cabecera de escritorio */

.rv-asesoria {
  display: none;
}

@media (min-width: 922px) {
  html body #ast-desktop-header .rv-asesoria {
    position: absolute;
    top: 20px;
    left: 24px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--rv-tinta);
    text-decoration: none;
  }

  .rv-asesoria:hover {
    color: var(--rv-acento);
  }

  .rv-asesoria:hover .rv-icono {
    border-color: var(--rv-acento);
    background: var(--rv-verde-suave);
    color: var(--rv-acento);
  }
}

/* --------------------------------------------------------- Sin migas en el catálogo */

body.post-type-archive-product .woocommerce-breadcrumb,
body.tax-product_cat .woocommerce-breadcrumb,
body.tax-product_brand .woocommerce-breadcrumb,
body.tax-pa_familia .woocommerce-breadcrumb,
body.woocommerce-shop .woocommerce-breadcrumb {
  display: none;
}

.rv-cabecera-tienda {
  margin-top: 0;
}

html body.woocommerce-shop .ast-woocommerce-container,
html body.tax-product_cat .ast-woocommerce-container,
html body.tax-product_brand .ast-woocommerce-container {
  padding-top: 0;
}

/* ------------------------------------------------ Segunda imagen al pasar el cursor */

html body ul.products li.product .astra-shop-thumbnail-wrap {
  position: relative;
  overflow: hidden;
}

html body ul.products li.product img.rv-hover {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 14px;
  background: var(--rv-suave);
  mix-blend-mode: multiply;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

html body ul.products li.product:hover img.rv-hover,
html body ul.products li.product:focus-within img.rv-hover {
  opacity: 1;
}

html body ul.products li.product .rv-etiqueta,
html body ul.products li.product .ast-shop-product-out-of-stock {
  z-index: 3;
}

/* ----------------------------------------------- Botón «Buscar»: en pastilla */

html body .rv-coincidencia button[type='submit'] {
  border-radius: 999px !important;
  padding: 0 24px !important;
  min-height: 38px !important;
  margin: 5px !important;
  font-size: 11px !important;
  letter-spacing: 0.1em;
}

/* ------------------------------------------------------ Preventa con fecha estimada */

html body.single-product div.product .summary .stock.available-on-backorder,
html body.single-product div.product .summary .woocommerce-variation-availability p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 16px;
  padding: 12px 14px;
  border-left: 3px solid var(--rv-acento);
  background: var(--rv-verde-suave);
  color: var(--rv-acento);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

html body.single-product div.product .summary .stock.out-of-stock {
  color: #9b1c2c;
  font-size: 13px;
  font-weight: 500;
}

/* ------------------------------------------------- Zoom de la ficha: nítido, sin mezclas */

html body.single-product .woocommerce-product-gallery img.zoomImg {
  mix-blend-mode: normal !important;
  background: #fff !important;
  image-rendering: auto;
  max-width: none;
}

html body.single-product .woocommerce-product-gallery__image img,
html body.single-product .woocommerce-product-gallery__image a img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: auto;
  object-fit: contain;
}

html body .pswp__img {
  background: #fff;
  image-rendering: auto;
}

html body .pswp__bg {
  background: #fff;
}

/* ------------------------------------------------------ Galería de fotos y foto de la descripción */

.rv-f__fotos {
  display: grid;
  gap: 14px;
}

.rv-f__fotos--2 {
  grid-template-columns: repeat(2, 1fr);
}

.rv-f__fotos--3 {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, 1fr);
}

.rv-f__fotos--3 figure:first-child {
  grid-row: 1 / 3;
}

.rv-f__fotos--4,
.rv-f__fotos--5 {
  grid-template-columns: repeat(4, 1fr);
}

.rv-f__fotos figure,
.rv-f__foto {
  margin: 0;
  overflow: hidden;
  background: var(--rv-suave);
}

.rv-f__fotos img,
.rv-f__foto img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.6s ease;
}

.rv-f__fotos figure:hover img,
.rv-f__foto:hover img {
  transform: scale(1.04);
}

.rv-f__foto {
  margin-bottom: 40px;
}

.rv-f__foto img {
  aspect-ratio: 4 / 3;
  padding: 20px;
}

@media (max-width: 921px) {
  .rv-f__fotos--3,
  .rv-f__fotos--4,
  .rv-f__fotos--5 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .rv-f__fotos--3 figure:first-child {
    grid-row: auto;
    grid-column: 1 / -1;
  }
}

/* ------------------------------------------------------------- Opiniones y valoraciones */

.rv-f--opiniones {
  max-width: 860px;
  margin: 0 auto;
}

.rv-resumen {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: -12px 0 40px;
}

.rv-resumen strong {
  font-size: 2.6rem;
  font-weight: 300;
  line-height: 1;
  color: var(--rv-tinta);
}

.rv-resumen__vacio {
  margin: -12px 0 36px;
  text-align: center;
}

html body .star-rating {
  color: #b8912f;
}

html body #reviews #comments,
html body #reviews .woocommerce-Reviews-title {
  margin: 0;
}

html body #reviews .woocommerce-Reviews-title {
  display: none;
}

html body #reviews ol.commentlist {
  margin: 0 0 48px;
  padding: 0;
  list-style: none;
}

html body #reviews ol.commentlist li {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rv-linea);
}

html body #reviews ol.commentlist li .comment_container {
  display: block;
  padding: 24px 0;
}

html body #reviews ol.commentlist li img.avatar {
  display: none;
}

html body #reviews ol.commentlist li .comment-text {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

html body #reviews ol.commentlist li .star-rating {
  float: none;
  margin: 0 0 8px;
}

html body #reviews .woocommerce-review__author {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rv-tinta);
}

html body #reviews .woocommerce-review__published-date,
html body #reviews .woocommerce-review__dash {
  font-size: 12px;
  color: var(--rv-texto);
}

html body #reviews .description p {
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.75;
}

html body #review_form_wrapper {
  padding: 36px;
  background: var(--rv-suave);
}

html body #review_form #reply-title {
  display: block;
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rv-tinta);
}

html body #review_form label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

html body #review_form textarea,
html body #review_form input[type='text'],
html body #review_form input[type='email'] {
  width: 100%;
  background: #fff;
}

html body #review_form .comment-form-cookies-consent,
html body #review_form .comment-form-email {
  display: none;
}

html body #review_form .form-submit input[type='submit'] {
  min-height: 46px;
  padding: 0 32px;
}

@media (max-width: 921px) {
  html body #review_form_wrapper {
    padding: 24px 18px;
  }
}

/* Estrellas doradas (el color del logo). */
html body .star-rating::before,
html body .star-rating span::before,
html body .comment-form-rating .stars a,
html body p.stars a::before {
  color: #b8912f !important;
}

/* Los títulos de las columnas del pie son párrafos (no encabezados): no compiten por el SEO de la página. */
.rv-pie__titulo {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}

.rv-pie__titulo.rv-pie__subtitulo {
  margin-top: 28px;
}

/* La segunda imagen solo aparece al pasar el cursor (también en los agotados, cuyo estilo general fuerza opacidad 1). */
html body ul.products li.product img.rv-hover,
html body ul.products li.product.outofstock img.rv-hover {
  opacity: 0 !important;
}

html body ul.products li.product:hover img.rv-hover,
html body ul.products li.product:focus-within img.rv-hover,
html body ul.products li.product.outofstock:hover img.rv-hover {
  opacity: 1 !important;
}

/* ======================================================================
 * Sexta tanda: opiniones renovadas, zoom sin cambio de fondo y el cambio de
 * imagen de las tarjetas con un fundido real (una se va, la otra llega).
 * ====================================================================== */

/* ------------------------------------------------------- Cambio de imagen en las tarjetas */

html body ul.products li.product .astra-shop-thumbnail-wrap {
  background: var(--rv-suave);
}

/* La imagen principal y la segunda se funden: sin mezcla y con fondo propio, para que no se vean superpuestas. */
html body ul.products li.product img.rv-hover,
html body ul.products li.product.outofstock img.rv-hover {
  mix-blend-mode: normal !important;
  background: var(--rv-suave) !important;
  opacity: 0 !important;
  transform: scale(1.045);
  transition: opacity 0.55s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

html body ul.products li.product .astra-shop-thumbnail-wrap a img:not(.rv-hover) {
  transition: opacity 0.55s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

html body ul.products li.product:hover img.rv-hover,
html body ul.products li.product:focus-within img.rv-hover,
html body ul.products li.product.outofstock:hover img.rv-hover {
  opacity: 1 !important;
  transform: scale(1);
}

html body ul.products li.product:hover .astra-shop-thumbnail-wrap a img:not(.rv-hover),
html body ul.products li.product:focus-within .astra-shop-thumbnail-wrap a img:not(.rv-hover),
html body ul.products li.product.outofstock:hover .astra-shop-thumbnail-wrap a img:not(.rv-hover) {
  opacity: 0 !important;
  transform: scale(0.97);
}

/* El zoom de la tarjeta antigua no interviene cuando hay segunda imagen. */
html body ul.products li.product:hover img {
  transform: none;
}

html body ul.products li.product:hover img.rv-hover {
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  html body ul.products li.product img.rv-hover,
  html body ul.products li.product .astra-shop-thumbnail-wrap a img:not(.rv-hover) {
    transition: opacity 0.2s linear;
    transform: none !important;
  }
}

/* ----------------------------------------------------- Zoom de la ficha: mismo fondo que la foto */

html body.single-product .woocommerce-product-gallery__image,
html body.single-product .woocommerce-product-gallery__image a {
  background: var(--rv-suave) !important;
}

html body.single-product .woocommerce-product-gallery img.zoomImg {
  background: var(--rv-suave) !important;
  mix-blend-mode: multiply !important;
}

html body .pswp__bg {
  background: var(--rv-suave);
}

html body .pswp__img {
  background: transparent;
}

/* ------------------------------------------------------------ Opiniones y valoraciones */

.rv-f--opiniones {
  max-width: 1040px;
}

.rv-op {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.rv-op__resumen {
  position: sticky;
  top: 24px;
  padding: 32px 28px;
  background: var(--rv-verde-suave);
  border-top: 3px solid var(--rv-acento);
}

.rv-op__nota {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-bottom: 24px;
}

.rv-op__nota strong {
  font-size: 3.4rem;
  font-weight: 300;
  line-height: 1;
  color: var(--rv-acento);
}

.rv-op__nota small {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rv-texto);
}

.rv-op__estrellas .star-rating {
  float: none;
  margin: 0;
  font-size: 1.15em;
}

.rv-op__barras {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.rv-op__barras li {
  display: grid;
  grid-template-columns: 34px 1fr 22px;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 12px;
  color: var(--rv-tinta);
}

.rv-op__barras i {
  color: #b8912f;
  font-style: normal;
}

.rv-op__barras b {
  position: relative;
  display: block;
  height: 5px;
  background: #cfdfdd;
}

.rv-op__barras em {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--rv-acento);
}

.rv-op__barras span:last-child {
  text-align: right;
  color: var(--rv-texto);
}

html body .rv-op__escribir {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 0 !important;
  align-items: center;
}

.rv-op__vacio {
  margin: 0 0 32px;
  font-size: 15px;
  line-height: 1.7;
}

/* Lista de valoraciones. */
html body .rv-op #reviews ol.commentlist {
  margin: 0 0 56px;
}

html body .rv-op #reviews ol.commentlist li {
  border-top: 1px solid var(--rv-linea);
}

html body .rv-op #reviews ol.commentlist li:first-child {
  border-top: 0;
}

html body .rv-op #reviews ol.commentlist li .comment_container {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0 18px;
  padding: 26px 0;
}

.rv-op__inicial {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--rv-acento);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

html body .rv-op #reviews .comment-text .star-rating {
  float: none;
  margin: 0 0 6px;
  font-size: 0.95em;
}

html body .rv-op #reviews .woocommerce-review__author {
  font-size: 12px;
}

html body .rv-op #reviews .description p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--rv-tinta);
}

/* Formulario para opinar. */
html body .rv-op #review_form_wrapper {
  padding: 36px 36px 40px;
  background: #fff;
  border: 1px solid var(--rv-linea);
  border-top: 3px solid var(--rv-acento);
}

html body .rv-op #review_form #reply-title {
  display: block;
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rv-acento);
}

html body .rv-op #review_form .comment-notes {
  display: none;
}

html body .rv-op #review_form p {
  margin: 0 0 20px;
}

html body .rv-op #review_form label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rv-tinta);
}

html body .rv-op #review_form .comment-form-rating {
  display: flex;
  align-items: center;
  gap: 16px;
}

html body .rv-op #review_form .comment-form-rating label {
  margin: 0;
}

html body .rv-op #review_form p.stars {
  margin: 0;
}

html body .rv-op #review_form p.stars a {
  font-size: 1.7rem;
  letter-spacing: 4px;
  text-decoration: none;
}

html body .rv-op #review_form textarea {
  min-height: 130px;
  background: #fff;
}

html body .rv-op #review_form input[type='text'],
html body .rv-op #review_form textarea {
  width: 100%;
  border: 1px solid var(--rv-linea);
  border-radius: 0;
}

html body .rv-op #review_form input:focus,
html body .rv-op #review_form textarea:focus {
  border-color: var(--rv-acento);
  box-shadow: 0 0 0 3px rgba(15, 74, 77, 0.12);
}

html body .rv-op #review_form .form-submit {
  margin-bottom: 0;
}

html body .rv-op #review_form .form-submit input[type='submit'] {
  min-width: 220px;
  min-height: 50px;
}

html body .rv-op .woocommerce-verification-required,
html body .rv-op .woocommerce-noreviews {
  padding: 14px 16px;
  background: var(--rv-verde-suave);
  border-left: 3px solid var(--rv-acento);
  font-size: 14px;
}

@media (max-width: 921px) {
  .rv-op {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .rv-op__resumen {
    position: static;
  }

  html body .rv-op #review_form_wrapper {
    padding: 26px 20px 30px;
  }

  html body .rv-op #reviews ol.commentlist li .comment_container {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 0 14px;
  }

  .rv-op__inicial {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }
}

/* ======================================================================
 * Séptima tanda: zoom opaco, imágenes completas, icono de deseos en verde
 * Riveira, barra de compra al desplazarse, pie sin onda, hilo dorado bajo el
 * menú, filtros minimalistas y tarjetas con el volumen y la preventa mejor
 * resueltos. Regla del proyecto: todo se crea para cargar lo más rápido
 * posible (CSS solo donde hace falta, imágenes diferidas y con medidas).
 * ====================================================================== */

/* -------------------------------------------- Ficha: zoom que reemplaza a la imagen */

html body.single-product .woocommerce-product-gallery__image:hover > a > img:not(.zoomImg) {
  opacity: 0;
}

html body.single-product .woocommerce-product-gallery img.zoomImg {
  background: transparent !important;
  mix-blend-mode: multiply !important;
}

/* Las fotos del producto no tocan el borde del recuadro gris. */
html body.single-product .woocommerce-product-gallery__image > a {
  display: block;
  padding: clamp(20px, 4vw, 44px);
}

html body.single-product .woocommerce-product-gallery__image > a > img {
  width: 100%;
  height: auto;
}

/* Miniaturas con el mismo aire. */
html body.single-product .woocommerce-product-gallery .flex-control-thumbs li img {
  padding: 6px;
  background: var(--rv-suave);
  object-fit: contain;
}

/* ------------------------------------------------ Lista de deseos: icono en verde Riveira */

html body.single-product div.product .summary .yith-wcwl-add-to-wishlist-button svg,
html body.single-product div.product .summary .yith-wcwl-add-to-wishlist-button svg path,
html body.single-product div.product .summary .yith-wcwl-add-to-wishlist-button .yith-wcwl-icon {
  fill: currentColor !important;
  stroke: currentColor !important;
  color: inherit !important;
}

html body.single-product div.product .summary .yith-wcwl-add-to-wishlist-button {
  color: var(--rv-acento) !important;
}

html body.single-product div.product .summary .yith-wcwl-add-to-wishlist-button:hover {
  color: #fff !important;
}

/* ---------------------------------------- Barra de compra que aparece al desplazarse */

html body .ast-sticky-add-to-cart.top {
  top: 0;
  padding: 0;
  border-bottom: 1px solid var(--rv-linea);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(10, 53, 56, 0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

html body .ast-sticky-add-to-cart .ast-container {
  max-width: var(--rv-ancho);
  padding: 0;
}

html body .ast-sticky-add-to-cart .ast-sticky-add-to-cart-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 24px;
}

html body .ast-sticky-add-to-cart .ast-sticky-add-to-cart-title-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

html body .ast-sticky-add-to-cart .ast-sticky-add-to-cart-title-wrap img {
  flex-shrink: 0;
  width: 54px;
  height: 60px;
  padding: 5px;
  background: var(--rv-suave);
  object-fit: contain;
  mix-blend-mode: multiply;
}

html body .ast-sticky-add-to-cart .ast-sticky-add-to-cart-title {
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--rv-tinta);
}

html body .ast-sticky-add-to-cart .ast-sticky-add-to-cart-action-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
}

html body .ast-sticky-add-to-cart .price {
  font-size: 15px;
  font-weight: 600;
  color: var(--rv-tinta);
}

html body .ast-sticky-add-to-cart a.single_link_to_cart_button,
html body .ast-sticky-add-to-cart .single_add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 0 30px;
  border: 1px solid var(--rv-acento);
  border-radius: 0;
  background: var(--rv-acento);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.2s, border-color 0.2s;
}

html body .ast-sticky-add-to-cart a.single_link_to_cart_button:hover,
html body .ast-sticky-add-to-cart .single_add_to_cart_button:hover {
  border-color: var(--rv-verde-osc);
  background: var(--rv-verde-osc);
  color: #fff;
}

@media (max-width: 921px) {
  html body .ast-sticky-add-to-cart .ast-sticky-add-to-cart-title-wrap img {
    width: 44px;
    height: 50px;
  }

  html body .ast-sticky-add-to-cart .ast-sticky-add-to-cart-content {
    gap: 12px;
    padding: 10px 16px;
  }

  html body .ast-sticky-add-to-cart .ast-sticky-add-to-cart-action-wrap {
    gap: 12px;
  }

  html body .ast-sticky-add-to-cart a.single_link_to_cart_button {
    padding: 0 16px;
    font-size: 11px;
  }

  html body .ast-sticky-add-to-cart .price {
    display: none;
  }
}

/* --------------------------------------------- Pie: sin onda, hilo de luz, moneda y marcas */

.rv-pie::before {
  display: none;
}

.rv-pie {
  margin-top: 110px;
}

.rv-pie__cuerpo {
  grid-template-columns: 1.25fr 1fr 1.7fr 1fr;
  gap: 56px;
}

.rv-pie__columna--marcas ul {
  columns: 2;
  column-gap: 32px;
}

.rv-pie__columna--marcas li {
  break-inside: avoid;
}

/* Moneda bajo el botón de WhatsApp. */
.rv-pie__moneda {
  max-width: 320px;
  margin-top: 28px;
}

.rv-pie__moneda-titulo {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8fb0ad;
}

.rv-pie__moneda .widget-title,
.rv-pie__moneda .woocs_display_none {
  display: none !important;
}

.rv-pie__moneda form,
.rv-pie__moneda .widget {
  margin: 0;
}

.rv-pie__moneda select {
  width: 100%;
  min-height: 46px;
  padding: 0 40px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23ffffff' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") right 16px center no-repeat;
  -webkit-appearance: none;
  appearance: none;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.rv-pie__moneda select option {
  color: #0f4a4d;
}

.rv-pie__moneda select:focus {
  border-color: #fff;
  outline: 0;
}

/* --------------------------------------------- Hilo dorado bajo el menú de la cabecera */

html body .ast-primary-header-bar {
  position: relative;
}

html body #masthead .ast-primary-header-bar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 3;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(184, 145, 47, 0.95) 50%, transparent 100%);
  background-size: 40% 100%;
  background-repeat: no-repeat;
  animation: rv-hilo 9s linear infinite;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  html body #masthead .ast-primary-header-bar::after {
    animation: none;
    background-size: 100% 100%;
    opacity: 0.5;
  }
}

/* ------------------------------------------------------------ Filtros: más minimalistas */

.rv-filtros {
  font-size: 13px;
}

.rv-filtros__cabecera {
  margin-bottom: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rv-linea);
}

.rv-filtros__cabecera strong,
.rv-filtro summary {
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--rv-tinta);
}

.rv-filtros__cabecera strong {
  font-size: 11px;
}

.rv-filtro summary {
  padding: 16px 20px 16px 0;
  font-size: 11px;
}

.rv-filtro summary::after {
  width: 6px;
  height: 6px;
  border-color: #8a8a8a;
}

.rv-filtro {
  border-bottom-color: #ececec;
}

.rv-opcion {
  gap: 10px;
  padding: 5px 0;
  color: #6f6f6f;
}

.rv-opcion i {
  width: 14px;
  height: 14px;
  border-color: #c9c9c9;
  border-radius: 50%;
}

.rv-opcion.es-activa {
  font-weight: 500;
}

.rv-opcion.es-activa i {
  background: var(--rv-acento) radial-gradient(circle, #fff 0 24%, transparent 26%);
}

.rv-opcion small {
  font-size: 11px;
  color: #b3b3b3;
}

.rv-precio {
  gap: 10px;
}

.rv-precio label span {
  margin-bottom: 4px;
  font-size: 10px;
  color: #b3b3b3;
}

.rv-precio input {
  height: 34px;
  padding: 0 2px;
  border: 0 !important;
  border-bottom: 1px solid #d9d9d9 !important;
  border-radius: 0;
  background: transparent;
  font-size: 13px;
}

.rv-precio input:focus {
  border-bottom-color: var(--rv-acento) !important;
  box-shadow: none !important;
}

html body .rv-precio .button {
  min-height: 30px !important;
  padding: 0 14px !important;
  border-color: transparent;
  background: transparent !important;
  color: var(--rv-acento) !important;
  font-size: 10.5px !important;
  letter-spacing: 0.12em;
  text-decoration: underline;
  text-underline-offset: 4px;
}

html body .rv-precio .button:hover {
  color: var(--rv-verde-osc) !important;
}

.rv-chip {
  padding: 5px 10px;
  border: 0;
  background: #f1f1f1;
  color: #4a4a4a;
  font-size: 11.5px;
}

.rv-chip:hover {
  background: var(--rv-verde-suave);
  color: var(--rv-acento);
}

/* --------------------------------------- Tarjetas: volumen y llegada de la preventa */

html body ul.products li.product .astra-shop-summary-wrap {
  display: flex;
  flex-direction: column;
}

html body ul.products li.product .woocommerce-loop-product__title {
  order: 1;
}

html body ul.products li.product .cfvsw-swatches-container,
html body ul.products li.product .cfvsw-shop-container {
  order: 2;
  margin: 8px 0 0 !important;
}

html body ul.products li.product .price {
  order: 3;
  margin-top: 10px;
}

html body ul.products li.product .rv-llegada {
  order: 4;
}

/* El volumen: una etiqueta fina con la medida en mayúsculas, sin caja de botón. */
html body ul.products li.product .cfvsw-swatches-option {
  display: inline-flex;
  align-items: center;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 3px 9px !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #6f6f6f;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

html body ul.products li.product .rv-llegada {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--rv-acento);
}

html body ul.products li.product .rv-llegada strong {
  font-weight: 600;
}

/* El precio de las tarjetas va en tinta (el tema de origen lo pintaba de verde claro). */
html body ul.products li.product .price,
html body ul.products li.product .price .amount,
html body ul.products li.product .price .woocs_price_code,
html body ul.products li.product .price .woocs_price_code * {
  color: var(--rv-tinta) !important;
  font-weight: 600;
}

/* Selector de moneda del pie (menú desplegable del plugin de monedas), con el diseño del pie. */
.rv-pie__moneda .dd-container {
  position: relative;
  width: 100% !important;
}

.rv-pie__moneda .dd-select {
  width: 100% !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, 0.06) !important;
  cursor: pointer;
}

.rv-pie__moneda .dd-selected {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 13px 40px 13px 16px !important;
  color: #fff !important;
  text-decoration: none;
}

.rv-pie__moneda .dd-selected-text {
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.rv-pie__moneda .dd-desc,
.rv-pie__moneda .dd-selected-description {
  color: #9fbab7 !important;
  font-size: 12px;
}

.rv-pie__moneda .dd-pointer {
  border-color: #fff transparent transparent !important;
}

.rv-pie__moneda .dd-pointer-up {
  border-color: transparent transparent #fff !important;
}

.rv-pie__moneda .dd-options {
  width: 100% !important;
  margin: 2px 0 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 0 !important;
  background: #0a3538 !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35) !important;
  list-style: none;
}

.rv-pie__moneda .dd-option {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 16px !important;
  border: 0 !important;
  color: #fff !important;
  text-decoration: none;
}

.rv-pie__moneda .dd-option:hover,
.rv-pie__moneda .dd-option-selected {
  background: rgba(255, 255, 255, 0.1) !important;
}

.rv-pie__moneda .dd-option-text {
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
}

/* ======================================================================
 * Décima tanda: sin ml ni fecha en las tarjetas, corazón en cada producto,
 * botón de WhatsApp propio y menos aire sobre el título de la tienda.
 * ====================================================================== */

/* El volumen y la fecha de llegada solo se ven en el detalle del producto. */
html body ul.products li.product .cfvsw-swatches-container,
html body ul.products li.product .cfvsw-shop-container,
html body ul.products li.product .rv-llegada {
  display: none !important;
}

/* Menos espacio entre el menú y el título de la tienda. */
html body.woocommerce-shop .woocommerce-products-header,
html body.tax-product_cat .woocommerce-products-header,
html body.tax-product_brand .woocommerce-products-header {
  display: none;
}

html body.woocommerce-shop #primary,
html body.tax-product_cat #primary,
html body.tax-product_brand #primary {
  margin-top: 28px;
}

html body .rv-cabecera-tienda {
  margin-bottom: 28px;
}

/* ------------------------------------------------ Corazón de la lista de deseos en cada producto */
html body ul.products li.product {
  position: relative;
}

.rv-corazon {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
}

.rv-corazon .yith-add-to-wishlist-button-block {
  margin: 0;
}

html body .rv-corazon a.yith-wcwl-add-to-wishlist-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(10, 53, 56, 0.12);
  color: var(--rv-acento);
  line-height: 1;
  opacity: 1;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

html body .rv-corazon a.yith-wcwl-add-to-wishlist-button:hover {
  background: var(--rv-acento);
  color: #fff;
  transform: scale(1.06);
}

html body .rv-corazon .yith-wcwl-add-to-wishlist-button__label,
html body .rv-corazon a.yith-wcwl-add-to-wishlist-button svg {
  display: none;
}

html body .rv-corazon a.yith-wcwl-add-to-wishlist-button::before {
  content: '';
  width: 19px;
  height: 19px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 20.5s-7.5-4.6-9.3-9.2C1.5 8 3.4 4.8 6.6 4.8c1.9 0 3.5 1 5.4 3 1.9-2 3.5-3 5.4-3 3.2 0 5.1 3.2 3.9 6.5-1.8 4.6-9.3 9.2-9.3 9.2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 20.5s-7.5-4.6-9.3-9.2C1.5 8 3.4 4.8 6.6 4.8c1.9 0 3.5 1 5.4 3 1.9-2 3.5-3 5.4-3 3.2 0 5.1 3.2 3.9 6.5-1.8 4.6-9.3 9.2-9.3 9.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Ya está en la lista: corazón lleno. */
html body .rv-corazon a.yith-wcwl-add-to-wishlist-button--remove::before,
html body .rv-corazon a.yith-wcwl-add-to-wishlist-button--exists::before,
html body .rv-corazon a.yith-wcwl-add-to-wishlist-button--added::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 20.5s-7.5-4.6-9.3-9.2C1.5 8 3.4 4.8 6.6 4.8c1.9 0 3.5 1 5.4 3 1.9-2 3.5-3 5.4-3 3.2 0 5.1 3.2 3.9 6.5-1.8 4.6-9.3 9.2-9.3 9.2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 20.5s-7.5-4.6-9.3-9.2C1.5 8 3.4 4.8 6.6 4.8c1.9 0 3.5 1 5.4 3 1.9-2 3.5-3 5.4-3 3.2 0 5.1 3.2 3.9 6.5-1.8 4.6-9.3 9.2-9.3 9.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ------------------------------------------------------- Botón de WhatsApp propio */
.joinchat {
  display: none !important;
}

.rv-wa {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 22px 0 16px;
  background: var(--rv-acento);
  box-shadow: 0 10px 30px rgba(10, 53, 56, 0.28);
  color: #fff;
  text-decoration: none;
  transition: background-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.rv-wa:hover {
  background: #0a3538;
  box-shadow: 0 14px 34px rgba(10, 53, 56, 0.34);
  color: #fff;
  transform: translateY(-2px);
}

.rv-wa svg {
  flex-shrink: 0;
}

.rv-wa__texto {
  display: grid;
  line-height: 1.2;
}

.rv-wa__texto small {
  font-size: 10.5px;
  letter-spacing: 0.04em;
  opacity: 0.78;
}

.rv-wa__texto strong {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* El botón de volver arriba sube para no quedar debajo. */
html body #ast-scroll-top {
  bottom: 92px;
  right: 26px;
}

@media (max-width: 600px) {
  .rv-wa {
    right: 14px;
    bottom: 14px;
    width: 54px;
    padding: 0;
    justify-content: center;
  }

  .rv-wa__texto {
    display: none;
  }

  html body #ast-scroll-top {
    bottom: 80px;
    right: 18px;
  }
}

/* Datos de la empresa al pie de cada política (salen de la app). */
.rv-pagina__datos {
  max-width: 920px;
  margin: 56px auto 0;
  padding: 32px 36px;
  border-top: 3px solid var(--rv-acento);
  background: var(--rv-suave);
}

.rv-pagina__datos h2 {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rv-acento);
}

.rv-pagina__datos ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rv-pagina__datos li {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
}

.rv-pagina__datos li strong {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6a7677;
}

.rv-pagina__fecha {
  margin: 20px 0 0;
  font-size: 12.5px;
  color: #7a8586;
}

.rv-pagina__falta {
  color: var(--rv-oferta);
  font-style: normal;
}

/* ======================================================================
 * Tarjetas: ml bajo el nombre, precio bajo los ml, botón de compra y la
 * foto sin franja extra debajo.
 * ====================================================================== */

/* La foto llena un cuadrado: sin la franja gris que quedaba debajo. */
html body ul.products li.product .astra-shop-thumbnail-wrap {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--rv-suave);
}

html body ul.products li.product .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 7%;
}

html body ul.products li.product .astra-shop-thumbnail-wrap img.attachment-woocommerce_thumbnail {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  margin: 0;
  object-fit: contain;
}

html body ul.products li.product .astra-shop-thumbnail-wrap img.rv-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 7%;
  object-fit: contain;
}

/* El botón de cesta flotante de Astra se sustituye por el botón de compra de la tarjeta. */
html body ul.products li.product a.ast-on-card-button {
  display: none !important;
}

/* Orden: nombre, ml, precio, botón. */
html body ul.products li.product .astra-shop-summary-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

html body ul.products li.product .astra-shop-summary-wrap .rv-ml {
  order: 2;
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a8586;
}

html body ul.products li.product .astra-shop-summary-wrap .price {
  order: 3;
  margin: 8px 0 0;
}

html body ul.products li.product .astra-shop-summary-wrap .rv-comprar {
  order: 5;
}

html body ul.products li.product .rv-comprar {
  display: block;
  width: 100%;
  margin: 14px 0 0;
  padding: 12px 10px;
  border: 1px solid var(--rv-acento);
  border-radius: 0;
  background: transparent;
  color: var(--rv-acento);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.2s, color 0.2s;
}

html body ul.products li.product a.rv-comprar:hover {
  background: var(--rv-acento);
  color: #fff;
}

html body ul.products li.product .rv-comprar--agotado {
  border-color: #d5dada;
  color: #9aa4a5;
  cursor: default;
}

/* La foto ya trae su fondo gris: la tarjeta lo continúa sin marco ni franjas. */
html body ul.products li.product .astra-shop-thumbnail-wrap {
  background: #eeeeee;
}

html body ul.products li.product .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link {
  padding: 0;
}

html body ul.products li.product .astra-shop-thumbnail-wrap img.attachment-woocommerce_thumbnail,
html body ul.products li.product .astra-shop-thumbnail-wrap img.rv-hover {
  background: transparent;
}

html body ul.products li.product .astra-shop-thumbnail-wrap img.rv-hover {
  padding: 0;
}

html body ul.products li.product .astra-shop-summary-wrap .woocommerce-loop-product__title {
  margin-bottom: 0;
}

/* Alineación: nombre en dos líneas de alto, y el botón siempre al fondo de la tarjeta. */
html body ul.products li.product {
  display: flex;
  flex-direction: column;
}

html body ul.products li.product .astra-shop-summary-wrap {
  flex: 1;
}

html body ul.products li.product .astra-shop-summary-wrap .ast-loop-product__link {
  display: block;
  width: 100%;
}

html body ul.products li.product .astra-shop-summary-wrap .woocommerce-loop-product__title {
  min-height: 2.8em;
  line-height: 1.4;
}

html body ul.products li.product .astra-shop-summary-wrap .rv-comprar {
  margin-top: auto;
}

html body ul.products li.product .astra-shop-summary-wrap .price {
  margin-bottom: 14px;
}

/* Sin hueco entre el nombre y los ml: el nombre ocupa solo lo que mide; el botón sigue al fondo. */
html body ul.products li.product .astra-shop-summary-wrap .woocommerce-loop-product__title {
  min-height: 0 !important;
  margin-bottom: 0 !important;
}

html body ul.products li.product .astra-shop-summary-wrap .ast-loop-product__link {
  margin-bottom: 0;
}

html body ul.products li.product .astra-shop-summary-wrap .rv-ml {
  margin-top: 6px;
}

/* El selector de presentación del complemento de variaciones (ya oculto en su contenido) también dejaba su caja vacía. */
html body ul.products li.product .cfvsw_variations_form,
html body ul.products li.product .cfvsw-shop-variations,
html body ul.products li.product form.variations_form {
  display: none !important;
}


/* Modern Cart (plugin del sitio vivo): su botón flotante se monta sobre el de WhatsApp y la cabecera ya tiene el carrito. */
html body [id*="moderncart-floating-cart"],
html body [class*="moderncart-floating-cart"] {
  display: none !important;
}

/* Catálogo con desplazamiento infinito: con JavaScript activo se oculta la paginación y queda el aviso de carga. */
html.rv-inf-activo nav.woocommerce-pagination {
  display: none;
}

.rv-inf {
  grid-column: 1 / -1;
  min-height: 56px;
  padding: 28px 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
  color: var(--rv-acento, #0f4a4d);
}

.rv-inf:empty {
  min-height: 1px;
  padding: 0;
}

/* ======================================================================
 * Cabecera en verde Riveira y franja superior en dorado (APP-137).
 * ====================================================================== */

/* Franja superior (la del anuncio): blanca, con letra en verde Riveira. */
html body .rv-anuncio {
  background: #fff;
  color: var(--rv-acento);
}

html body .rv-anuncio a,
html body .rv-anuncio span {
  color: var(--rv-acento);
  font-weight: 600;
}

html body .rv-anuncio a:hover {
  color: var(--rv-acento);
}

/* Cabecera: verde Riveira con el menú y los iconos en claro. */
html body .site-header,
html body .main-header-bar,
html body .ast-primary-header-bar,
html body .ast-main-header-wrap {
  background: var(--rv-acento) !important;
}

html body .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link,
html body .ast-builder-menu .main-header-menu > .menu-item > .menu-link {
  color: #fff !important;
}

html body .ast-builder-menu-1 .main-header-menu > .menu-item:hover > .menu-link,
html body .ast-builder-menu-1 .main-header-menu > .current-menu-item > .menu-link {
  color: #e2c373 !important;
}

html body .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link::after {
  background: #e2c373;
}

html body .ast-header-woo-cart .ast-site-header-cart-li a,
html body .ast-header-account a,
html body .ast-header-account svg {
  color: #fff;
  fill: #fff;
}

html body .rv-icono {
  border-color: rgba(255, 255, 255, 0.38);
  background: transparent;
  color: #fff;
}

html body .rv-icono:hover,
html body .rv-cuenta:hover .rv-icono {
  border-color: #e2c373;
  background: rgba(255, 255, 255, 0.1);
  color: #e2c373;
}

html body .rv-icono__cuenta {
  background: #b8912f;
  color: #0a2a2c;
}

html body .rv-cuenta {
  border-left-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

html body .rv-cuenta__texto small {
  color: rgba(255, 255, 255, 0.78);
}

html body .rv-cuenta:hover {
  color: #e2c373;
}

@media (max-width: 921px) {
  html body #ast-mobile-header .menu-toggle,
  html body #ast-mobile-header .ast-mobile-menu-trigger-minimal,
  html body #ast-mobile-header .ast-mobile-menu-trigger-minimal svg,
  html body #ast-mobile-header .menu-toggle .menu-toggle-icon {
    color: #fff;
    fill: #fff;
  }
}

/* «Asesoría por WhatsApp» (arriba a la izquierda) en claro sobre el verde. */
@media (min-width: 922px) {
  html body #ast-desktop-header .rv-asesoria {
    color: #fff;
  }

  html body #ast-desktop-header .rv-asesoria:hover {
    color: #e2c373;
  }

  html body #ast-desktop-header .rv-asesoria:hover .rv-icono {
    border-color: #e2c373;
    background: rgba(255, 255, 255, 0.1);
    color: #e2c373;
  }
}

@media (max-width: 921px) {
  html body #ast-mobile-header .menu-toggle .ast-mobile-svg,
  html body #ast-mobile-header .menu-toggle .ast-mobile-svg path,
  html body #ast-mobile-header .menu-toggle .mobile-menu-toggle-icon {
    color: #fff !important;
    fill: #fff !important;
  }
}

/* En las páginas de tipo propio (el detalle de una noticia) Astra pinta de blanco la capa interior de la cabecera y tapa el
   verde: el menú y los íconos, que son blancos, parecían desaparecer. */
html body #ast-desktop-header .site-primary-header-wrap,
html body #ast-mobile-header .site-primary-header-wrap {
  background-color: transparent !important;
}
