/* ==========================================================================
   toprak: estilos del tema
   Colores, tipografías y tamaños se definen en theme.json (variables --wp--preset--*).
   Aquí solo van los tokens de composición y los componentes de la marca.
   ========================================================================== */

:root {
  --tk-crema-50:   var(--wp--preset--color--crema-50, #F6EFE6);
  --tk-crema-100:  var(--wp--preset--color--crema-100, #F0E5D7);
  --tk-crema:      var(--wp--preset--color--crema, #E9D7C0);
  --tk-tierra:     var(--wp--preset--color--tierra, #9B7D61);
  --tk-tierra-700: var(--wp--preset--color--tierra-700, #6A4A36);
  --tk-tierra-900: var(--wp--preset--color--tierra-900, #2E1D14);
  --tk-arcilla:    var(--wp--preset--color--arcilla, #DAA38F);
  --tk-salvia:     var(--wp--preset--color--salvia, #92ADA4);
  --tk-texto:      var(--wp--preset--color--texto, #3A271C);
  --tk-texto-suave: var(--wp--preset--color--texto-suave, #6B5444);
  --tk-borde:      #DCC6AA;
  --tk-tierra-800: #3F2A1E;
  --tk-salvia-700: #4F6A61;

  --tk-serif: var(--wp--preset--font-family--serif);
  --tk-sans:  var(--wp--preset--font-family--sans);

  --tk-page-max: 1360px;
  --tk-gutter: clamp(1rem, 0.4rem + 2.4vw, 2.5rem);
  --tk-section-gap: clamp(3rem, 2rem + 4vw, 6rem);
  --tk-caps: 0.14em;
  --tk-wide: 0.22em;
  --tk-radius: 6px;
  --tk-radius-sm: 4px;
  --tk-ease: cubic-bezier(.2, .7, .2, 1);
  --tk-dur: 320ms;
  --tk-arrow: 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.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h17M14 6l6 6-6 6'/%3E%3C/svg%3E");
  --tk-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.6 6.4 5.6 11.4 12 12-6.4.6-11.4 5.6-12 12-.6-6.4-5.6-11.4-12-12C6.4 11.4 11.4 6.4 12 0z'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) { :root { --tk-dur: 0ms; } }

body { -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 2px solid var(--tk-salvia-700); outline-offset: 3px; }
img { height: auto; }

/* ---------- Contenedor ---------- */
.toprak-wrap { width: 100%; max-width: var(--tk-page-max); margin-inline: auto !important; padding-inline: var(--tk-gutter); box-sizing: border-box; }
.toprak-main { margin-block: 0 !important; }
.toprak-main > * + * { margin-block-start: 0; }
.toprak-section { padding-top: var(--tk-section-gap); }
.toprak-page { padding: var(--tk-section-gap) var(--tk-gutter) 0; }

/* ---------- Iconos ---------- */
.toprak-icon { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; display: block; }

/* ---------- Botones de marca ---------- */
.wp-block-button .wp-block-button__link { display: inline-flex; align-items: center; gap: 1rem; min-height: 44px; box-sizing: border-box; transition: background var(--tk-dur) var(--tk-ease), color var(--tk-dur) var(--tk-ease); }
.wp-block-button .wp-block-button__link::after {
  content: ""; width: 1rem; height: 1rem; background: currentColor;
  -webkit-mask: var(--tk-arrow) center / contain no-repeat; mask: var(--tk-arrow) center / contain no-repeat;
  transition: transform var(--tk-dur) var(--tk-ease);
}
.wp-block-button .wp-block-button__link:hover::after { transform: translateX(3px); }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; border: 1px solid currentColor; padding: .85rem 1.5rem; }
.toprak-btn-light > .wp-block-button__link { color: var(--tk-crema-50) !important; }
.toprak-btn-light > .wp-block-button__link:hover { background: var(--tk-crema-50) !important; color: var(--tk-tierra-900) !important; }
.toprak-btn-solid-light > .wp-block-button__link { background: var(--tk-crema-50); color: var(--tk-texto); border-color: var(--tk-crema-50); }
.toprak-btn-solid-light > .wp-block-button__link:hover { background: transparent; color: var(--tk-crema-50); border-color: var(--tk-crema-50); }
.toprak-btn-dark > .wp-block-button__link { color: var(--tk-texto) !important; border-color: var(--tk-texto-suave) !important; }
.toprak-btn-dark > .wp-block-button__link:hover { background: var(--tk-texto) !important; color: var(--tk-crema-50) !important; }

.toprak-link-arrow { margin: 0; font-size: var(--wp--preset--font-size--xs); text-transform: uppercase; letter-spacing: var(--tk-wide); white-space: nowrap; }
.toprak-link-arrow a { display: inline-flex; align-items: center; gap: .5rem; }
.toprak-link-arrow a::after { content: ""; width: .9rem; height: .9rem; background: currentColor; -webkit-mask: var(--tk-arrow) center / contain no-repeat; mask: var(--tk-arrow) center / contain no-repeat; }

/* ---------- Barra de anuncios ---------- */
.toprak-announce { position: relative; display: flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 44px; text-align: center; }
.toprak-announce > p { margin: 0 !important; font-size: var(--wp--preset--font-size--xs); letter-spacing: var(--tk-caps); text-transform: uppercase; line-height: 1.4; padding-block: 8px; }
.toprak-announce.is-rotating > p:not(.is-active) { display: none; }
.toprak-announce__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; background: none; border: 0; color: inherit; cursor: pointer; opacity: .8; }
.toprak-announce__btn:hover { opacity: 1; }
.toprak-announce__btn--prev { left: max(8px, calc(var(--tk-gutter) - 8px)); }
.toprak-announce__btn--next { right: max(8px, calc(var(--tk-gutter) - 8px)); }
.toprak-announce__btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; }

/* ---------- Cabecera ---------- */
header.wp-block-template-part { position: sticky; top: 0; z-index: 40; }
.admin-bar header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 32px); }
.toprak-header { position: relative; background: transparent; margin: 0 !important; }
/* El desenfoque va en una capa aparte: en el propio contenedor atraparía el menú móvil (position: fixed) */
.toprak-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--tk-crema-50) 94%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.toprak-header__inner { max-width: var(--tk-page-max); margin-inline: auto; padding-inline: var(--tk-gutter); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; min-height: 84px; box-sizing: border-box; }
.toprak-header__inner > * { margin: 0 !important; }
.toprak-logo img { display: block; height: auto; }
.toprak-nav .wp-block-navigation__container { gap: clamp(1rem, 2.4vw, 2.5rem); }
.toprak-nav .wp-block-navigation-item__content { padding-block: .5rem !important; border-bottom: 1px solid transparent; transition: border-color var(--tk-dur) var(--tk-ease); }
.toprak-nav .wp-block-navigation-item__content:hover,
.toprak-nav .current-menu-item > .wp-block-navigation-item__content { border-color: var(--tk-tierra); color: inherit; }
.toprak-header__actions { gap: .25rem !important; justify-content: flex-end; }
.toprak-header__actions > * { margin: 0 !important; }
.toprak-icon-link, .toprak-header__actions .wp-block-search__button, .toprak-header__actions .wc-block-mini-cart__button,
.toprak-header__actions .wp-block-woocommerce-customer-account a {
  display: grid !important; place-items: center; width: 40px; height: 40px; padding: 0 !important; margin: 0 !important;
  background: none !important; border: 0 !important; color: var(--tk-texto) !important; box-shadow: none !important;
}
.toprak-icon-link:hover, .toprak-header__actions .wp-block-search__button:hover, .toprak-header__actions .wc-block-mini-cart__button:hover { color: var(--tk-tierra) !important; }
.toprak-header__actions svg { width: 22px; height: 22px; }
.toprak-header__actions .wp-block-search__button svg { fill: currentColor; }
.toprak-search .wp-block-search__input { border: 0; border-bottom: 1px solid var(--tk-texto-suave); background: transparent; font: inherit; min-height: 40px; }
.toprak-header__actions .wc-block-mini-cart__badge { background: var(--tk-tierra) !important; color: var(--tk-crema-50) !important; border: 0; font-size: 10px; }
.toprak-header__actions .wc-block-mini-cart__amount { display: none; }

/* Menú móvil (overlay del bloque Navegación) */
.toprak-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--tk-crema-50) !important; color: var(--tk-texto) !important; padding: 1.5rem var(--tk-gutter); }
.toprak-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 3.5rem; align-items: stretch !important; }
.toprak-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 0 !important; align-items: stretch !important; }
.toprak-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  font-family: var(--tk-serif); font-size: 1.5rem; letter-spacing: .06em; text-transform: none;
  display: block; padding: 1rem 0 !important; border-bottom: 1px solid var(--tk-borde);
}

/* ---------- Bloques editoriales (hero, banners, split) ---------- */
.toprak-feature-block { position: relative; overflow: hidden; border-radius: var(--tk-radius); display: flex; align-items: center; }
.toprak-feature-block > * { margin: 0 !important; }
.toprak-feature-block .toprak-media { position: absolute !important; inset: 0 0 0 auto; width: 64%; height: 100%; }
.toprak-feature-block .toprak-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.toprak-feature-block .toprak-content { position: relative; z-index: 2; padding: 3rem clamp(1.5rem, 4vw, 4.5rem); max-width: 600px; display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; box-sizing: border-box; }
.toprak-feature-block .toprak-content > * { margin: 0 !important; }
.toprak-feature-block.is-dark { background: var(--tk-tierra-900); color: var(--tk-crema-50); }
.toprak-feature-block.is-dark::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--tk-tierra-900) 34%, rgb(46 29 20 / .7) 46%, transparent 72%);
}
.toprak-feature-block.is-dark h1, .toprak-feature-block.is-dark h2 { color: var(--tk-crema-50); }

.toprak-hero-wrap { padding-top: .5rem; }
.toprak-hero { min-height: clamp(520px, 78vh, 760px); }
.toprak-hero .toprak-media { width: 66%; }
.toprak-hero .toprak-media img { object-position: 40% 30%; }
.toprak-hero::before { background: linear-gradient(90deg, var(--tk-tierra-900) 30%, rgb(46 29 20 / .82) 42%, rgb(46 29 20 / .15) 70%, transparent 100%) !important; }
.toprak-hero::after {
  content: ""; position: absolute; z-index: 2; right: clamp(1.5rem, 5vw, 5rem); top: clamp(1.5rem, 6vw, 4rem);
  width: 22px; height: 22px; background: var(--tk-crema-50); opacity: .9;
  -webkit-mask: var(--tk-star) center / contain no-repeat; mask: var(--tk-star) center / contain no-repeat;
}
.toprak-hero .toprak-content { padding-block: 4.5rem; max-width: 620px; }
.toprak-display { font-size: var(--wp--preset--font-size--hero) !important; font-weight: 300 !important; letter-spacing: var(--tk-caps) !important; text-transform: uppercase; line-height: 1.08; }
.toprak-lead { font-size: var(--wp--preset--font-size--md); line-height: 1.55; max-width: 36ch; opacity: .92; }
.toprak-hero .toprak-lead { max-width: 34ch; }

.toprak-banner { min-height: clamp(300px, 34vw, 460px); }
.toprak-banner .toprak-lead { font-size: var(--wp--preset--font-size--base); }
.toprak-banner-title { font-size: var(--wp--preset--font-size--xl) !important; font-weight: 300 !important; letter-spacing: var(--tk-caps) !important; text-transform: uppercase; line-height: 1.08; }
.toprak-banner--full .toprak-media { width: 100%; }
.toprak-banner--full::before { background: linear-gradient(90deg, rgb(46 29 20 / .88) 0%, rgb(46 29 20 / .55) 45%, rgb(46 29 20 / .1) 80%) !important; }
.toprak-banner--full::after {
  content: ""; position: absolute; z-index: 2; right: clamp(1.5rem, 5vw, 5rem); top: clamp(1.5rem, 4vw, 3rem);
  width: 20px; height: 20px; background: var(--tk-arcilla);
  -webkit-mask: var(--tk-star) center / contain no-repeat; mask: var(--tk-star) center / contain no-repeat;
}

.toprak-split { min-height: clamp(320px, 32vw, 460px); background: var(--tk-crema-100); }
.toprak-split .toprak-media { width: 60%; }
.toprak-split .toprak-media img { object-position: 60% 40%; }
.toprak-split::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, var(--tk-crema-100) 40%, rgb(240 229 215 / .7) 50%, transparent 68%); }
.toprak-split .toprak-banner-title { color: #7E6049; }
.toprak-split .toprak-lead { color: var(--tk-texto-suave); font-size: var(--wp--preset--font-size--base); max-width: 38ch; }

@media (min-width: 821px) {
  .toprak-hero .toprak-media, .toprak-banner:not(.toprak-banner--full) .toprak-media, .toprak-split .toprak-media {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%); mask-image: linear-gradient(90deg, transparent 0, #000 38%);
  }
}

/* ---------- Franja de características ---------- */
.toprak-features { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; padding-block: 3rem; border-bottom: 1px solid var(--tk-borde); }
.toprak-features > * { margin: 0 !important; }
.toprak-feature { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; }
.toprak-feature > * { margin: 0 !important; }
.toprak-feature .toprak-icon { margin-bottom: .25rem !important; }
.toprak-feature__title { font-size: var(--wp--preset--font-size--xs); letter-spacing: var(--tk-wide); text-transform: uppercase; line-height: 1.4; }
.toprak-feature__sub { font-size: var(--wp--preset--font-size--sm); color: var(--tk-texto-suave); line-height: 1.3; }

/* ---------- Encabezado de sección ---------- */
.toprak-section-head { align-items: center !important; gap: 1rem; margin-bottom: 2rem !important; }
.toprak-section-head > * { margin: 0 !important; }
.toprak-section-title { display: flex; align-items: center; gap: 1.5rem; letter-spacing: var(--tk-caps) !important; }
.toprak-section-title::after {
  content: ""; flex: none; width: 16px; height: 16px; background: var(--tk-tierra);
  -webkit-mask: var(--tk-star) center / contain no-repeat; mask: var(--tk-star) center / contain no-repeat;
}

/* ---------- Colecciones ---------- */
.toprak-collections { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.toprak-collections > * { margin: 0 !important; }
.toprak-collection { display: flex; flex-direction: column; gap: 1rem; }
.toprak-collection > * { margin: 0 !important; }
.toprak-collection__media { overflow: hidden; border-radius: var(--tk-radius-sm); aspect-ratio: 4 / 5; background: var(--tk-crema); }
.toprak-collection__media a, .toprak-collection__media img { display: block; width: 100%; height: 100%; }
.toprak-collection__media img { object-fit: cover; transition: transform 900ms var(--tk-ease); }
.toprak-collection:hover img { transform: scale(1.04); }
.toprak-collection__name { text-align: center; font-size: var(--wp--preset--font-size--md) !important; letter-spacing: var(--tk-caps) !important; text-transform: uppercase; }

/* ---------- Productos (bucle de WooCommerce) ---------- */
.woocommerce ul.products, .toprak-featured ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 2rem 1.5rem; margin: 0 !important; padding: 0; list-style: none; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; position: relative; display: flex; flex-direction: column; }
.woocommerce ul.products li.product a img { aspect-ratio: 6 / 7; object-fit: cover; border-radius: var(--tk-radius-sm); background: var(--tk-crema); margin: 0 0 .75rem !important; transition: transform 900ms var(--tk-ease); }
.woocommerce ul.products li.product .woocommerce-loop-product__link { display: block; overflow: hidden; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--tk-serif); font-size: var(--wp--preset--font-size--md) !important; font-weight: 400; letter-spacing: .02em; line-height: 1.2; padding: 0 !important; margin: 0 0 .25rem !important; color: var(--tk-texto);
}
.woocommerce ul.products li.product .price { color: var(--tk-texto-suave) !important; font-size: var(--wp--preset--font-size--sm) !important; margin: 0 !important; }
.woocommerce span.onsale {
  top: .75rem !important; left: .75rem !important; right: auto !important; margin: 0 !important; min-width: 0 !important; min-height: 0 !important;
  border-radius: 2px !important; background: var(--tk-crema-50) !important; color: var(--tk-texto) !important;
  font-size: 10px !important; font-weight: 400 !important; letter-spacing: var(--tk-wide); text-transform: uppercase; line-height: 1 !important; padding: 5px 8px !important;
}
.toprak-featured ul.products li.product .button { display: none; }
.woocommerce ul.products li.product .button { margin-top: .75rem; align-self: flex-start; }
.woocommerce a.button, .woocommerce button.button, .woocommerce .button {
  background: var(--tk-tierra-900); color: var(--tk-crema-50); border-radius: 2px; font-family: var(--tk-sans); font-weight: 400;
  font-size: var(--wp--preset--font-size--xs); letter-spacing: var(--tk-wide); text-transform: uppercase; padding: .85rem 1.5rem;
}
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--tk-tierra-700); color: var(--tk-crema-50); }

/* Bloque "Colección de productos" (destacados, catálogo) */
.toprak-product-collection .wc-block-product-template { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 2rem 1.5rem !important; }
.toprak-product-collection .wc-block-product-template > li { width: auto !important; max-width: none !important; margin: 0 !important; }
.toprak-product-collection .wc-block-product { text-align: left !important; display: flex; flex-direction: column; gap: .35rem; }
.toprak-product-collection .wc-block-product > * { margin: 0 !important; text-align: left !important; }
.toprak-product-collection .wc-block-components-product-image { margin-bottom: .5rem !important; overflow: hidden; border-radius: var(--tk-radius-sm); }
.toprak-product-collection .wc-block-components-product-image img { transition: transform 900ms var(--tk-ease); }
.toprak-product-collection .wc-block-product:hover .wc-block-components-product-image img { transform: scale(1.04); }
.toprak-product-collection .wp-block-post-title { font-size: var(--wp--preset--font-size--md) !important; font-weight: 400 !important; line-height: 1.2; }
.toprak-product-collection .wc-block-components-product-price { font-size: var(--wp--preset--font-size--sm) !important; color: var(--tk-texto-suave); }
.wc-block-components-product-sale-badge { border-radius: 2px !important; background: var(--tk-crema-50) !important; color: var(--tk-texto) !important; border: 0 !important; font-size: 10px !important; font-weight: 400 !important; letter-spacing: var(--tk-wide); text-transform: uppercase; }
.toprak-empty { color: var(--tk-texto-suave); font-size: var(--wp--preset--font-size--sm); }
@media (max-width: 820px) {
  .toprak-product-collection .wc-block-product-template { grid-template-columns: repeat(2, 1fr) !important; display: grid !important; gap: 1.5rem 1rem !important; }
  .toprak-product-collection .wc-block-product-template > li { width: auto !important; max-width: none !important; margin: 0 !important; }
}

/* ---------- Tarjetas de valores ---------- */
.toprak-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.toprak-values > * { margin: 0 !important; }
.toprak-value {
  position: relative; overflow: hidden; border-radius: var(--tk-radius); min-height: 200px; padding: 2rem; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; text-align: center; color: var(--tk-crema-50);
}
.toprak-value > * { margin: 0 !important; position: relative; z-index: 1; }
.toprak-value p { font-family: var(--tk-serif); font-size: var(--wp--preset--font-size--md); letter-spacing: var(--tk-wide); text-transform: uppercase; line-height: 1.3; }
.toprak-value .toprak-icon { width: 2rem; height: 2rem; stroke-width: 1; }
.toprak-value::before { content: ""; position: absolute; inset: 0; z-index: 0; background: rgb(46 29 20 / .12); }
.toprak-value--salvia { background: radial-gradient(120% 90% at 30% 20%, #7f9a90 0%, var(--tk-salvia-700) 55%, #34463f 100%); }
.toprak-value--piedra { background-color: var(--tk-tierra-800); background-position: center; }
.toprak-value--piedra::before { background: rgb(46 29 20 / .45); }
.toprak-value--tierra { background: radial-gradient(120% 90% at 70% 20%, #8a6a4f 0%, var(--tk-tierra-800) 60%, var(--tk-tierra-900) 100%); }

/* ---------- Pie de página ---------- */
footer.wp-block-template-part { margin-top: var(--tk-section-gap); }
.toprak-footer { border-top: 1px solid var(--tk-borde); margin: 0 !important; }
.toprak-footer .toprak-wrap > * { margin: 0 !important; }
.toprak-footer__newsletter { display: grid; grid-template-columns: 1fr minmax(280px, 460px); gap: 2rem; align-items: center; padding-block: 3rem; border-bottom: 1px solid var(--tk-borde); }
.toprak-footer__newsletter > * { margin: 0 !important; }
.toprak-footer__newsletter h2 { margin: 0 0 .5rem; letter-spacing: var(--tk-caps); }
.toprak-footer__newsletter p { margin: 0; }
.toprak-newsletter { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--tk-texto-suave); }
.toprak-newsletter input[type="email"] { flex: 1; min-width: 0; min-height: 48px; border: 0; background: transparent; font: inherit; color: var(--tk-texto); padding: 0 .5rem 0 0; }
.toprak-newsletter input:focus { outline: none; }
.toprak-newsletter:focus-within { border-color: var(--tk-texto); }
.toprak-newsletter button { display: flex; align-items: center; gap: .5rem; background: none; border: 0; color: inherit; cursor: pointer; font: inherit; font-size: var(--wp--preset--font-size--xs); letter-spacing: var(--tk-wide); text-transform: uppercase; padding: 0 .5rem; }
.toprak-newsletter button::after { content: ""; width: 1rem; height: 1rem; background: currentColor; -webkit-mask: var(--tk-arrow) center / contain no-repeat; mask: var(--tk-arrow) center / contain no-repeat; }
.toprak-newsletter__note { flex-basis: 100%; order: 3; transform: translateY(calc(100% + .75rem)); font-size: var(--wp--preset--font-size--xs); color: var(--tk-texto-suave); margin: 0; height: 0; overflow: visible; }
.toprak-newsletter__note a { text-decoration: underline; }

.toprak-footer__main { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; padding-block: 3.5rem 3rem; }
.toprak-footer__main > * { margin: 0 !important; }
.toprak-footer__brand > * { margin: 0 0 1rem !important; }
.toprak-footer__claim { font-family: var(--tk-serif); font-size: var(--wp--preset--font-size--md); font-style: italic; color: var(--tk-texto-suave); }
.toprak-footer__col > * { margin: 0 !important; }
.toprak-footer__col h3 { font-family: var(--tk-sans) !important; font-size: var(--wp--preset--font-size--xs) !important; font-weight: 500 !important; letter-spacing: var(--tk-wide) !important; text-transform: uppercase; margin-bottom: 1rem !important; }
.toprak-footer__col ul { list-style: none; padding: 0; }
.toprak-footer__col li + li { margin-top: .5rem; }
.toprak-footer__col a { font-size: var(--wp--preset--font-size--sm); color: var(--tk-texto-suave); }
.toprak-footer__col a:hover { color: var(--tk-texto); }
.toprak-social { gap: .5rem !important; }
.toprak-social .wp-social-link a { padding: 8px !important; }
.toprak-footer__legal { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.5rem; border-top: 1px solid var(--tk-borde); font-size: var(--wp--preset--font-size--xs); color: var(--tk-texto-suave); }
.toprak-footer__legal > * { margin: 0 !important; }
.toprak-footer__legal-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; padding: 0; }
.toprak-footer__legal a:hover { color: var(--tk-texto); }

/* ---------- Páginas generales y WooCommerce ---------- */
.toprak-page h1.wp-block-post-title { margin-bottom: 2rem; }
.toprak-404 { text-align: center; padding-bottom: var(--tk-section-gap); }
.wp-block-woocommerce-product-template .wc-block-components-product-image img,
.wc-block-grid__product-image img { aspect-ratio: 6 / 7; object-fit: cover; border-radius: var(--tk-radius-sm); background: var(--tk-crema); }
.wp-block-post-title a { color: inherit; }
.wc-block-components-product-name, .wp-block-woocommerce-product-template .wp-block-post-title { font-family: var(--tk-serif) !important; text-transform: none !important; letter-spacing: .02em !important; }
.woocommerce-breadcrumb, .wc-block-breadcrumbs { font-size: var(--wp--preset--font-size--xs); letter-spacing: var(--tk-caps); text-transform: uppercase; color: var(--tk-texto-suave); }
.wc-block-components-button:not(.is-link) { border-radius: 2px !important; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"], input[type="number"], textarea, select {
  border: 1px solid var(--tk-borde); border-radius: 2px; background: #fffaf4; color: var(--tk-texto); font-family: var(--tk-sans);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .toprak-header__inner { grid-template-columns: 1fr auto 1fr; min-height: 68px; gap: .5rem; }
  .toprak-header__inner > .toprak-logo { grid-column: 2; grid-row: 1; justify-self: center; }
  .toprak-header__inner > .toprak-logo img { width: 104px !important; }
  .toprak-header__inner > .toprak-nav { grid-column: 1; grid-row: 1; justify-self: start; margin-left: -8px !important; }
  .toprak-header__inner > .toprak-header__actions { grid-column: 3; grid-row: 1; margin-right: -8px !important; }
  /* Forzar el menú hamburguesa hasta 1080px */
  .toprak-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
  .toprak-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
  .toprak-nav .wp-block-navigation__responsive-container-open svg { width: 24px; height: 24px; }
  .toprak-features { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
  .toprak-footer__main { grid-template-columns: repeat(4, 1fr); }
  .toprak-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .toprak-collections, .woocommerce ul.products, .toprak-featured ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 1.5rem 1rem; }
  .toprak-values { grid-template-columns: 1fr; }
  .toprak-value { min-height: 150px; flex-direction: row; justify-content: flex-start; text-align: left; }
  .toprak-footer__newsletter { grid-template-columns: 1fr; }
  .toprak-footer__main { grid-template-columns: repeat(2, 1fr); }
  .toprak-section-head { align-items: flex-end !important; }
  .toprak-section-title { gap: .75rem; }

  .toprak-feature-block { flex-direction: column; align-items: stretch; min-height: 0; }
  .toprak-feature-block .toprak-media { position: relative !important; inset: auto; width: 100% !important; height: auto; }
  .toprak-hero .toprak-media { aspect-ratio: 4 / 5; max-height: 70vh; }
  .toprak-banner .toprak-media { aspect-ratio: 16 / 10; }
  .toprak-split .toprak-media { aspect-ratio: 4 / 3; }
  .toprak-hero .toprak-media, .toprak-banner .toprak-media {
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }
  .toprak-hero::before { background: linear-gradient(180deg, transparent 30%, rgb(46 29 20 / .6) 52%, var(--tk-tierra-900) 68%) !important; }
  .toprak-banner::before, .toprak-banner--full::before { background: linear-gradient(180deg, transparent 0%, transparent 35%, var(--tk-tierra-900) 58%) !important; }
  .toprak-split::before { display: none; }
  .toprak-hero .toprak-content { margin-top: -38% !important; padding: 0 1.5rem 3rem; }
  .toprak-banner .toprak-content { margin-top: -14% !important; padding: 0 1.5rem 2rem; }
  .toprak-split .toprak-content { padding: 2rem 1.5rem; }
}

@media (max-width: 560px) {
  .toprak-announce > p { font-size: 10px; letter-spacing: .08em; }
  .toprak-features { grid-template-columns: repeat(2, 1fr); }
  .toprak-features > :last-child { grid-column: 1 / -1; }
  .toprak-header__actions .toprak-hide-sm { display: none !important; }
  .toprak-footer__legal { flex-direction: column-reverse; }
}

/* Margen lateral para plantillas de WooCommerce y otras que no usan .toprak-main */
.wp-site-blocks > main.wp-block-group:not(.toprak-main),
.wp-site-blocks > .wp-block-group:not(.wp-block-template-part) > main { padding: 2rem var(--tk-gutter) 0; box-sizing: border-box; }
.wp-block-query-title, .wc-block-components-title { text-transform: uppercase; letter-spacing: var(--tk-caps); font-weight: 300; }

/* ==========================================================================
   Convivencia con Elementor
   El "kit" global de Elementor (.elementor-kit-N) impone sus fuentes y bordes
   a toda la web. Restauramos la identidad de toprak con más especificidad.
   ========================================================================== */
body.theme-toprak { font-family: var(--tk-sans); color: var(--tk-texto); }
body.theme-toprak :is(h1, h2, h3, h4, h5, h6) { font-family: var(--tk-serif); font-weight: 400; }
body.theme-toprak h1 { font-size: var(--wp--preset--font-size--xl); font-weight: 300; }
body.theme-toprak h2 { font-size: var(--wp--preset--font-size--lg); }
body.theme-toprak h3 { font-size: var(--wp--preset--font-size--md); }
body.theme-toprak :is(button, input, select, textarea) { font-family: inherit; }
body.theme-toprak img { border-radius: 0; }
body.theme-toprak .woocommerce ul.products li.product a img { border-radius: var(--tk-radius-sm); }
body.theme-toprak .toprak-footer__col h3 { font-family: var(--tk-sans) !important; }

/* Bloques que WooCommerce inserta solo en la cabecera (ya están en los iconos) */
.toprak-header__inner > .wp-block-woocommerce-customer-account,
.toprak-header__inner > .wp-block-woocommerce-mini-cart { display: none !important; }

/* Sin productos destacados: la sección solo se ve con la sesión iniciada (aviso para la administración) */
body:not(.logged-in) .toprak-featured:has(.toprak-empty) { display: none; }

/* ==========================================================================
   Catálogo (tienda, categorías, búsqueda)
   ========================================================================== */
.toprak-shop { padding-top: 1.5rem; }
.toprak-shop > * { margin: 0 !important; }
.toprak-breadcrumbs { margin-bottom: 1.5rem !important; }
.toprak-breadcrumbs a { color: var(--tk-texto-suave); }
.toprak-shop__head { margin-bottom: 1.5rem !important; }
.toprak-shop__head > * { margin: 0 !important; }
.toprak-shop__title { font-size: var(--wp--preset--font-size--xl) !important; font-weight: 300 !important; letter-spacing: var(--tk-caps) !important; text-transform: uppercase; }
.toprak-shop__intro { max-width: 60ch; color: var(--tk-texto-suave); margin-top: .75rem !important; }

.toprak-chips { display: flex; gap: .5rem; flex-wrap: wrap; padding-bottom: 1.5rem; margin-bottom: 2rem !important; border-bottom: 1px solid var(--tk-borde); }
.toprak-chip {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 1rem; border: 1px solid var(--tk-borde); border-radius: 999px;
  font-size: var(--wp--preset--font-size--xs); letter-spacing: var(--tk-caps); text-transform: uppercase; color: var(--tk-texto); white-space: nowrap;
  transition: background var(--tk-dur) var(--tk-ease), border-color var(--tk-dur) var(--tk-ease), color var(--tk-dur) var(--tk-ease);
}
.toprak-chip:hover { border-color: var(--tk-tierra); color: var(--tk-texto); }
.toprak-chip.is-active { background: var(--tk-tierra-900); border-color: var(--tk-tierra-900); color: var(--tk-crema-50); }

.toprak-shop__layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 3rem; align-items: start; }
.toprak-shop__layout > * { margin: 0 !important; }
.toprak-shop__sidebar { position: sticky; top: 110px; }
.toprak-shop__results > * { margin: 0 !important; }
.toprak-shop__toolbar { align-items: center !important; gap: 1rem; margin-bottom: 1.5rem !important; }
.toprak-shop__toolbar > * { margin: 0 !important; }
.toprak-shop__toolbar .woocommerce-result-count { margin: 0; font-size: var(--wp--preset--font-size--sm); color: var(--tk-texto-suave); }
.toprak-shop__toolbar .woocommerce-ordering { margin: 0; }
.toprak-shop__toolbar select.orderby {
  appearance: none; -webkit-appearance: none; min-height: 40px; padding: 0 2.25rem 0 .9rem; background: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233A271C' stroke-width='1.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; background-size: 14px;
  border: 1px solid var(--tk-borde); border-radius: 2px; font-size: var(--wp--preset--font-size--sm); color: var(--tk-texto); cursor: pointer;
}

/* Filtros */
.toprak-filters { --wc-product-filters-text-color: var(--tk-texto); --wc-product-filters-background-color: var(--tk-crema-50); --wc-product-filter-block-spacing: 1.75rem; }
.toprak-filters__title { font-family: var(--tk-sans) !important; font-size: var(--wp--preset--font-size--xs) !important; font-weight: 500 !important; letter-spacing: var(--tk-wide) !important; text-transform: uppercase; margin: 0 0 1rem !important; }
.toprak-filters h3 {
  font-family: var(--tk-serif) !important; font-size: var(--wp--preset--font-size--md) !important; letter-spacing: .04em !important;
  padding-top: 1.25rem; border-top: 1px solid var(--tk-borde); margin: 0 0 .75rem !important;
}
.toprak-filters .wc-block-product-filter-checkbox-list__label, .toprak-filters label { font-size: var(--wp--preset--font-size--sm); color: var(--tk-texto); }
.toprak-filters input[type="checkbox"] { accent-color: var(--tk-tierra-700); }
.toprak-filters .wc-block-product-filter-checkbox-list__input-wrapper::before { border-color: var(--tk-texto-suave) !important; border-radius: 2px !important; }
.toprak-filters .wc-block-product-filter-checkbox-list__show-more, .toprak-filters button.wc-block-product-filter-checkbox-list__show-more { font-size: var(--wp--preset--font-size--xs); letter-spacing: var(--tk-caps); text-transform: uppercase; text-decoration: underline; color: var(--tk-texto-suave); }
.toprak-filters .wc-block-product-filter-price-slider { --range-color: var(--tk-tierra-700); --wc-product-filter-price-slider: var(--tk-tierra-700); }
.toprak-filters .wc-block-product-filter-price-slider input[type="text"] { font-size: var(--wp--preset--font-size--sm); border-radius: 2px; }
.toprak-filters .wc-block-product-filter-removable-chips__chip { border-radius: 999px; border-color: var(--tk-borde) !important; background: var(--tk-crema-100) !important; font-size: var(--wp--preset--font-size--xs); }
.toprak-filters .wc-block-product-filter-clear-button .wp-block-button__link { font-size: var(--wp--preset--font-size--xs) !important; padding: .5rem .9rem !important; min-height: 36px; }
.toprak-filters .wc-block-product-filter-clear-button .wp-block-button__link::after { display: none; }
.wc-block-product-filters__open-overlay {
  display: none; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1.1rem; border: 1px solid var(--tk-texto-suave) !important;
  border-radius: 2px; background: transparent !important; color: var(--tk-texto) !important;
  font-size: var(--wp--preset--font-size--xs) !important; letter-spacing: var(--tk-wide); text-transform: uppercase;
}
.wc-block-product-filters__overlay-content { background: var(--tk-crema-50); }
.wc-block-product-filters__apply { background: var(--tk-tierra-900) !important; color: var(--tk-crema-50) !important; border-radius: 2px !important; text-transform: uppercase; letter-spacing: var(--tk-wide); font-size: var(--wp--preset--font-size--xs) !important; }

/* Tarjetas del catálogo */
.toprak-catalog-grid .wc-block-product-template { grid-template-columns: repeat(3, 1fr) !important; gap: 2.5rem 1.5rem !important; }
.toprak-product-collection .wp-block-post-title { margin: .25rem 0 0 !important; }
.toprak-product-collection .wp-block-post-title a:hover { color: var(--tk-tierra); }
.toprak-product-collection .wc-block-components-product-image img { aspect-ratio: 6 / 7 !important; object-fit: cover; width: 100%; }
.toprak-card-media { position: relative; }
.toprak-card-fav { position: absolute; top: .5rem; right: .5rem; z-index: 3; }
.toprak-card-fav .tinv-wishlist { margin: 0 !important; }
.toprak-card-fav .tinvwl_add_to_wishlist_button {
  display: grid !important; place-items: center; width: 38px; height: 38px; margin: 0 !important; border-radius: 50%;
  background: rgb(246 239 230 / .85) !important; color: var(--tk-texto) !important; font-size: 0 !important; text-decoration: none !important;
}
.toprak-card-fav .tinvwl_add_to_wishlist_button::before { font-size: 18px !important; margin: 0 !important; color: inherit !important; }
.toprak-card-fav .tinvwl_add_to_wishlist_button.tinvwl-product-in-list::before { color: var(--tk-arcilla) !important; }
.toprak-card-fav .tinvwl_add_to_wishlist-text, .toprak-card-fav .tinvwl-tooltip { display: none !important; }
.wc-block-components-product-sale-badge { position: absolute; top: .75rem; left: .75rem; z-index: 2; margin: 0 !important; padding: 4px 8px !important; }
.toprak-pagination { margin-top: 3rem !important; gap: .5rem; font-size: var(--wp--preset--font-size--sm); }
.toprak-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 38px; height: 38px; border: 1px solid transparent; border-radius: 2px; }
.toprak-pagination .page-numbers.current { border-color: var(--tk-texto); }
.toprak-noresults { padding: 3rem 0; text-align: center; }
.toprak-noresults > * { margin: 0 0 1rem !important; }

/* ==========================================================================
   Ficha de producto
   ========================================================================== */
.toprak-product { padding-top: 1.5rem; }
.toprak-product > * { margin: 0 !important; }
.toprak-product__layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.toprak-product__layout > * { margin: 0 !important; }
.toprak-product__gallery .woocommerce-product-gallery { width: 100% !important; float: none !important; margin: 0 !important; }
.toprak-product__gallery .woocommerce-product-gallery__image img,
.toprak-product__gallery .woocommerce-product-gallery__wrapper img { border-radius: var(--tk-radius); background: var(--tk-crema); width: 100%; aspect-ratio: 6 / 7; object-fit: cover; }
.toprak-product__gallery .flex-control-thumbs { display: grid !important; grid-template-columns: repeat(5, 1fr); gap: .75rem; margin-top: .75rem !important; padding: 0; }
.toprak-product__gallery .flex-control-thumbs li { width: auto !important; float: none !important; margin: 0 !important; }
.toprak-product__gallery .flex-control-thumbs img { border-radius: var(--tk-radius-sm); opacity: .6; transition: opacity var(--tk-dur) var(--tk-ease); aspect-ratio: 1; object-fit: cover; }
.toprak-product__gallery .flex-control-thumbs img.flex-active, .toprak-product__gallery .flex-control-thumbs img:hover { opacity: 1; }
.toprak-product__gallery .woocommerce-product-gallery__trigger { background: var(--tk-crema-50) !important; border-radius: 50%; }

.toprak-product__summary { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 1.25rem; }
.toprak-product__summary > * { margin: 0 !important; }
.toprak-product__cat { font-size: var(--wp--preset--font-size--xs); letter-spacing: var(--tk-wide); text-transform: uppercase; color: var(--tk-texto-suave); }
.toprak-product__cat a { color: inherit; }
.toprak-product__title { font-size: var(--wp--preset--font-size--xl) !important; font-weight: 300 !important; letter-spacing: var(--tk-caps) !important; text-transform: uppercase; line-height: 1.1; }
.toprak-product__price, .toprak-product__price .amount { font-family: var(--tk-sans); font-size: 1.375rem !important; font-weight: 300; color: var(--tk-texto); }
.toprak-product__price del { opacity: .5; margin-right: .5rem; }
.toprak-product__excerpt { color: var(--tk-texto-suave); max-width: 52ch; }
.toprak-product__excerpt p { margin: 0; }

/* Formulario de compra */
.toprak-product__cart form.cart { display: flex; flex-wrap: wrap; align-items: stretch; gap: .75rem; margin: 0 !important; }
.toprak-product__cart form.cart::before, .toprak-product__cart form.cart::after { display: none !important; }
.toprak-product__cart .quantity { margin: 0 !important; }
.toprak-product__cart .quantity input.qty { width: 4.5rem; height: 52px; text-align: center; border: 1px solid var(--tk-borde); border-radius: 2px; background: transparent; font-size: var(--wp--preset--font-size--base); }
.toprak-product__cart button.single_add_to_cart_button {
  flex: 1; min-height: 52px; min-width: 220px; background: var(--tk-tierra-900) !important; color: var(--tk-crema-50) !important; border-radius: 2px !important;
  font-size: var(--wp--preset--font-size--xs) !important; letter-spacing: var(--tk-wide) !important; text-transform: uppercase; font-weight: 400 !important;
}
.toprak-product__cart button.single_add_to_cart_button:hover { background: var(--tk-tierra-700) !important; }
.toprak-product__cart table.variations { margin-bottom: .5rem; border: 0; }
.toprak-product__cart table.variations th, .toprak-product__cart table.variations td { padding: .25rem 0; border: 0; background: none; text-align: left; vertical-align: middle; }
.toprak-product__cart table.variations label { font-size: var(--wp--preset--font-size--xs); letter-spacing: var(--tk-wide); text-transform: uppercase; font-weight: 400; }
.toprak-product__cart table.variations select { min-height: 44px; padding: 0 .75rem; width: 100%; }
.toprak-product__cart .stock { font-size: var(--wp--preset--font-size--sm); color: var(--tk-salvia-700); margin: 0 0 .5rem; }
.toprak-product__cart .stock.out-of-stock { color: #8a4b3a; }
.toprak-product__cart .tinv-wraper { flex-basis: 100%; margin: .25rem 0 0 !important; }
.toprak-product__cart .tinvwl_add_to_wishlist_button { font-size: var(--wp--preset--font-size--xs) !important; letter-spacing: var(--tk-caps); text-transform: uppercase; color: var(--tk-texto) !important; text-decoration: none !important; }
.toprak-product__cart .tinvwl_add_to_wishlist_button::before { color: var(--tk-arcilla) !important; }

/* Desplegables */
.toprak-product__info { border-top: 1px solid var(--tk-borde); margin-top: .5rem !important; }
.toprak-product__info > * { margin: 0 !important; }
.toprak-acc { border-bottom: 1px solid var(--tk-borde); }
.toprak-acc > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0;
  font-size: var(--wp--preset--font-size--xs); letter-spacing: var(--tk-wide); text-transform: uppercase;
}
.toprak-acc > summary::-webkit-details-marker { display: none; }
.toprak-acc > summary::after { content: "+"; font-size: 1.25rem; font-weight: 300; line-height: 1; transition: transform var(--tk-dur) var(--tk-ease); }
.toprak-acc[open] > summary::after { transform: rotate(45deg); }
.toprak-acc > :not(summary) { padding-bottom: 1.25rem; color: var(--tk-texto-suave); font-size: var(--wp--preset--font-size--sm); margin: 0 !important; }
.toprak-acc p { margin: 0 0 .75rem; }
.toprak-acc a { text-decoration: underline; color: var(--tk-texto); }
.toprak-acc table { width: 100%; border-collapse: collapse; }
.toprak-acc th, .toprak-acc td { text-align: left; padding: .5rem 0; border-bottom: 1px solid var(--tk-borde); font-weight: 300; }
.toprak-acc th { font-weight: 400; color: var(--tk-texto); width: 40%; }

.toprak-related { margin-top: var(--tk-section-gap) !important; }
.toprak-related > .toprak-section-title { margin-bottom: 2rem !important; }

/* Responsive del catálogo y la ficha */
@media (max-width: 1080px) {
  .toprak-shop__layout { grid-template-columns: 1fr; gap: 0; }
  .toprak-shop__sidebar { position: static; margin-bottom: 1rem !important; }
  .toprak-filters__title { display: none; }
  .wc-block-product-filters__open-overlay { display: inline-flex; }
  .toprak-catalog-grid .wc-block-product-template { grid-template-columns: repeat(3, 1fr) !important; }
  .toprak-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--tk-gutter) * -1) !important; padding-inline: var(--tk-gutter); }
  .toprak-chips::-webkit-scrollbar { display: none; }
}
@media (max-width: 820px) {
  .toprak-catalog-grid .wc-block-product-template, .toprak-related .wc-block-product-template { grid-template-columns: repeat(2, 1fr) !important; gap: 2rem 1rem !important; }
  .toprak-product__layout { grid-template-columns: 1fr; gap: 2rem; }
  .toprak-product__summary { position: static; }
  .toprak-product__gallery { margin-inline: calc(var(--tk-gutter) * -1) !important; }
  .toprak-product__gallery .woocommerce-product-gallery__image img, .toprak-product__gallery .woocommerce-product-gallery__wrapper img { border-radius: 0; }
  .toprak-product__gallery .flex-control-thumbs { padding-inline: var(--tk-gutter); }
  .toprak-shop__toolbar .woocommerce-result-count { display: none; }
}

/* Favoritos: en las tarjetas solo el corazón sobre la foto (el plugin añade otro enlace debajo) */
.toprak-product-collection .wc-block-product .tinv-wraper:not(.toprak-card-fav .tinv-wraper),
.toprak-product-collection .wc-block-product > .tinvwl_add_to_wishlist_button { display: none !important; }

/* Listas de filtros sin caja */
.toprak-filters .wc-block-product-filter-checkbox-list,
.toprak-filters .wc-block-product-filter-checkbox-list__list,
.toprak-filters .wc-block-product-filter-checkbox-list > ul { border: 0 !important; padding: 0 !important; background: none !important; box-shadow: none !important; }
.toprak-filters .wc-block-product-filter-checkbox-list__item { margin: 0 0 .4rem; }
.toprak-filters .wc-block-product-filter-price-slider input[type="text"] { background: transparent; border: 1px solid var(--tk-borde); }
.toprak-filters fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.toprak-filters .wc-block-product-filter-checkbox-list__items { display: flex; flex-direction: column; gap: .45rem; }

/* ==========================================================================
   Menú: submenú «Joyas»
   ========================================================================== */
.toprak-nav .wp-block-navigation__submenu-icon { width: 9px; height: 9px; margin-left: .35rem; }
.toprak-nav .wp-block-navigation__submenu-icon svg { stroke-width: 1.5; }
.toprak-nav .wp-block-navigation__submenu-container {
  min-width: 230px !important; padding: .75rem 0 !important; border: 1px solid var(--tk-borde) !important; border-radius: 2px;
  background: var(--tk-crema-50) !important; color: var(--tk-texto) !important; box-shadow: 0 14px 30px rgb(46 29 20 / .08);
}
.toprak-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  display: block; padding: .5rem 1.25rem !important; border: 0 !important; white-space: nowrap;
  font-size: var(--wp--preset--font-size--xs); letter-spacing: var(--tk-caps);
}
.toprak-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { color: var(--tk-tierra); background: var(--tk-crema-100); }
/* En el menú móvil, el submenú se muestra abierto y sangrado */
.toprak-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
  border: 0 !important; box-shadow: none; padding: 0 0 .5rem 1rem !important; background: transparent !important; min-width: 0 !important;
}
.toprak-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  font-family: var(--tk-sans); font-size: var(--wp--preset--font-size--sm); letter-spacing: .04em; padding: .55rem 0 !important; border-bottom: 0 !important;
}
.toprak-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-icon { display: none; }

/* ==========================================================================
   Franja del club (newsletter) y pie de página
   ========================================================================== */
footer.wp-block-template-part > .toprak-club { margin: 0 !important; }
.toprak-club { background: #EFC9BA; color: var(--tk-tierra-900); padding: clamp(2.5rem, 5vw, 4rem) var(--tk-gutter); }
.toprak-club__inner { max-width: 720px; margin-inline: auto; }
.toprak-club__inner > * { margin: 0 !important; }
.toprak-club__title { font-size: var(--wp--preset--font-size--xl) !important; font-weight: 300 !important; letter-spacing: var(--tk-caps) !important; text-transform: uppercase; color: var(--tk-tierra-900) !important; }
.toprak-club__text { margin-top: .75rem !important; font-size: var(--wp--preset--font-size--md); color: var(--tk-tierra-800, #3F2A1E); }
.toprak-club__form { display: flex; flex-direction: column; gap: .85rem; margin-top: 1.75rem; }
.toprak-club__form input[type="email"] {
  width: 100%; min-height: 54px; padding: 0 1.1rem; box-sizing: border-box; border: 1px solid rgb(46 29 20 / .18); border-radius: 2px;
  background: var(--tk-crema-50); color: var(--tk-texto); font: inherit; font-size: var(--wp--preset--font-size--base);
}
.toprak-club__form input[type="email"]::placeholder { color: var(--tk-texto-suave); }
.toprak-check { display: flex; align-items: flex-start; gap: .65rem; font-size: var(--wp--preset--font-size--sm); line-height: 1.45; cursor: pointer; }
.toprak-check input { flex: none; width: 18px; height: 18px; margin: .1rem 0 0; accent-color: var(--tk-tierra-900); }
.toprak-check a { text-decoration: underline; color: inherit; }
.toprak-club__form button {
  min-height: 54px; border: 0; border-radius: 2px; background: var(--tk-tierra-900); color: var(--tk-crema-50); cursor: pointer;
  font: inherit; font-size: var(--wp--preset--font-size--sm); letter-spacing: var(--tk-wide); text-transform: uppercase; margin-top: .35rem;
  transition: background var(--tk-dur) var(--tk-ease);
}
.toprak-club__form button:hover { background: var(--tk-tierra-700); }
.toprak-club__status { margin: 0; min-height: 1.2em; font-size: var(--wp--preset--font-size--sm); text-align: center; }

footer.wp-block-template-part { margin-top: var(--tk-section-gap); }
.toprak-footer { border-top: 0; }
.toprak-footer__main { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.25fr) !important; padding-block: 3.5rem 2.5rem; }
.toprak-footer__col h3 { margin-bottom: 1.1rem !important; }
.toprak-footer__col li + li { margin-top: .55rem; }
.toprak-trust__secure { display: flex; align-items: center; gap: .5rem; margin: 0 0 1rem; font-size: var(--wp--preset--font-size--sm); font-weight: 400; }
.toprak-pay { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.toprak-pay li {
  display: flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 .5rem; text-align: center;
  border: 1px solid var(--tk-borde); border-radius: 3px; background: var(--tk-crema-50); font-size: 11px; letter-spacing: .04em; color: var(--tk-texto-suave);
}
.toprak-footer__follow { margin: 0 0 .5rem !important; font-size: var(--wp--preset--font-size--xs); font-weight: 500; letter-spacing: var(--tk-wide); text-transform: uppercase; }
.toprak-footer__legal { align-items: center; }
.toprak-footer__logo { margin: 0 auto 0 0 !important; }
.toprak-footer__logo img { display: block; }
@media (max-width: 1080px) {
  .toprak-footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 560px) {
  .toprak-footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 2rem 1rem; }
  .toprak-footer__trust { grid-column: 1 / -1; }
  .toprak-pay { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .toprak-footer__legal { align-items: flex-start; }
  .toprak-footer__logo { margin: 0 !important; }
}
.toprak-pay li { height: 36px; min-height: 0; line-height: 1; box-sizing: border-box; }
.toprak-footer__trust .toprak-pay { margin-bottom: 1.75rem !important; }
.toprak-footer__trust > .wp-block-html, .toprak-footer__trust > p, .toprak-footer__trust > ul { margin: 0 !important; }
.toprak-footer__trust .toprak-pay { margin-bottom: 1.75rem !important; }
/* WordPress añade relleno a los grupos con fondo; el pie usa su propio contenedor */
.toprak-footer.has-background, .toprak-announce.has-background { padding: 0 !important; }
.toprak-announce.has-background { padding: 0 44px !important; }
.toprak-footer__col .toprak-pay li + li { margin-top: 0; }

/* Franja de la comunidad: marrón tierra de la marca (como la barra superior) */
.toprak-club { background: var(--tk-tierra-700); color: var(--tk-crema); position: relative; }
.toprak-club__title { color: var(--tk-crema-50) !important; }
.toprak-club__title::after {
  content: ""; display: block; width: 16px; height: 16px; margin: 1rem auto 0; background: var(--tk-arena);
  -webkit-mask: var(--tk-star) center / contain no-repeat; mask: var(--tk-star) center / contain no-repeat;
}
.toprak-club__text { color: var(--tk-crema) !important; }
.toprak-club__form input[type="email"] { border-color: transparent; background: var(--tk-crema-50); }
.toprak-check { color: var(--tk-crema); }
.toprak-check input { accent-color: var(--tk-arena); }
.toprak-club__form button { background: var(--tk-crema); color: var(--tk-tierra-900); }
.toprak-club__form button:hover { background: var(--tk-crema-50); }
.toprak-club__status { color: var(--tk-crema-50); }

/* Franja de la comunidad en verde oliva (contraste AA con el texto crema) */
:root { --tk-oliva: #5C6140; --tk-oliva-claro: #6E7450; }
.toprak-club { background: var(--tk-oliva); }

/* Barra de anuncios sin flechas: los mensajes rotan solos */
.toprak-announce.has-background { padding: 0 var(--tk-gutter) !important; }

/* ==========================================================================
   Club toprak (suscripción)
   ========================================================================== */
.toprak-is-club footer.wp-block-template-part > .toprak-club { display: none; }
.toprak-club-page > * { margin-block: 0 !important; }
.toprak-club-page .toprak-wrap > *, .toprak-club-page .toprak-section > * { margin-block: 0; }
.toprak-cp-kicker { margin: 0 0 1rem !important; font-size: var(--wp--preset--font-size--xs); letter-spacing: var(--tk-wide); text-transform: uppercase; color: var(--tk-tierra); }
.toprak-cp-h2 { font-size: var(--wp--preset--font-size--xl) !important; font-weight: 300 !important; letter-spacing: var(--tk-caps) !important; text-transform: uppercase; line-height: 1.1; margin: 0 0 1.25rem !important; }
.toprak-cp-sub { color: var(--tk-texto-suave); max-width: 56ch; margin: 0 auto 2.5rem !important; }

/* Portada */
.toprak-cp-hero-wrap { padding-top: .5rem; }
.toprak-cp-hero {
  position: relative; overflow: hidden; border-radius: var(--tk-radius); background: var(--tk-oliva, #5C6140); color: var(--tk-crema-50);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 2rem; min-height: clamp(520px, 74vh, 720px);
  padding: clamp(2rem, 5vw, 4.5rem);
}
.toprak-cp-hero > * { margin: 0 !important; }
.toprak-cp-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(60% 70% at 85% 30%, rgb(254 216 166 / .22), transparent 60%), radial-gradient(50% 60% at 10% 90%, rgb(218 163 143 / .18), transparent 60%);
}
.toprak-cp-hero__text { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.toprak-cp-hero__text > * { margin: 0 !important; }
.toprak-cp-hero .toprak-cp-kicker { color: var(--tk-arena, #FED8A6); }
.toprak-cp-title { font-size: clamp(3.25rem, 2rem + 6vw, 7rem) !important; font-weight: 300 !important; letter-spacing: var(--tk-caps) !important; text-transform: uppercase; line-height: .95; color: var(--tk-crema-50) !important; }
.toprak-cp-lead { font-family: var(--tk-serif); font-style: italic; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.3; color: var(--tk-crema); max-width: 20ch; }
.toprak-cp-hero__visual { position: relative; z-index: 1; height: 100%; min-height: 380px; display: grid; place-items: center; }
.toprak-cp-photo { width: min(100%, 520px); aspect-ratio: 4 / 3.2; border-radius: 4px; overflow: hidden; transform: rotate(-3deg); box-shadow: 0 30px 60px rgb(20 14 8 / .35); }
.toprak-cp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.toprak-cp-ticket {
  position: absolute; right: 2%; bottom: 6%; width: 180px; padding: 1.25rem 1.1rem 1.1rem; transform: rotate(5deg);
  background: var(--tk-crema-50); color: var(--tk-texto); border-radius: 3px; box-shadow: 0 18px 40px rgb(20 14 8 / .3);
  display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center;
}
.toprak-cp-ticket::before { content: ""; position: absolute; top: -9px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--tk-oliva, #5C6140); box-shadow: inset 0 0 0 3px var(--tk-crema-50); }
.toprak-cp-ticket__star { width: 16px; height: 16px; background: var(--tk-tierra); -webkit-mask: var(--tk-star) center / contain no-repeat; mask: var(--tk-star) center / contain no-repeat; }
.toprak-cp-ticket__label { font-size: 10px; letter-spacing: var(--tk-wide); text-transform: uppercase; color: var(--tk-texto-suave); }
.toprak-cp-ticket__name { font-family: var(--tk-serif); font-size: 2rem; letter-spacing: var(--tk-caps); text-transform: uppercase; line-height: 1; }
.toprak-cp-ticket__seal { margin-top: .35rem; padding-top: .5rem; border-top: 1px dashed var(--tk-borde); width: 100%; font-family: var(--tk-serif); font-style: italic; font-size: .95rem; color: var(--tk-tierra-700); }

/* ¿Qué es? */
.toprak-cp-what { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.toprak-cp-what > * { margin: 0 !important; }
.toprak-cp-what__media { border-radius: var(--tk-radius); overflow: hidden; aspect-ratio: 4 / 5; }
.toprak-cp-what__media img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 40%; }
.toprak-cp-what__text > * { margin: 0 0 1rem !important; }
.toprak-cp-what__text p:not(.toprak-cp-kicker) { color: var(--tk-texto-suave); font-size: var(--wp--preset--font-size--md); max-width: 46ch; }

/* ¿Qué incluye? */
.toprak-cp-includes { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.toprak-cp-include { padding: 2rem 1.5rem; border: 1px solid var(--tk-borde); border-radius: var(--tk-radius); background: var(--tk-crema-100); text-align: center; }
.toprak-cp-include .toprak-icon { width: 2.25rem; height: 2.25rem; stroke-width: 1; margin: 0 auto 1rem; color: var(--tk-tierra-700); }
.toprak-cp-include h3 { margin: 0 0 .5rem; font-size: var(--wp--preset--font-size--md) !important; letter-spacing: .06em !important; }
.toprak-cp-include p { margin: 0; font-size: var(--wp--preset--font-size--sm); color: var(--tk-texto-suave); }

/* Cada mes, un universo */
.toprak-cp-worlds__track {
  list-style: none; margin: 0; padding: 0 var(--tk-gutter) 1rem; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr);
  gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; max-width: var(--tk-page-max); margin-inline: auto; box-sizing: border-box; scrollbar-width: thin;
}
.toprak-cp-world {
  scroll-snap-align: start; position: relative; min-height: 280px; padding: 1.5rem; border-radius: var(--tk-radius);
  display: flex; flex-direction: column; justify-content: flex-end; gap: .5rem; color: var(--tk-texto);
  transition: transform var(--tk-dur) var(--tk-ease);
}
.toprak-cp-world:hover { transform: translateY(-4px); }
.toprak-cp-world__num { position: absolute; top: 1.25rem; left: 1.5rem; font-size: 10px; letter-spacing: var(--tk-wide); text-transform: uppercase; opacity: .8; }
.toprak-cp-world__star { position: absolute; top: 1.2rem; right: 1.4rem; width: 16px; height: 16px; background: currentColor; opacity: .75; -webkit-mask: var(--tk-star) center / contain no-repeat; mask: var(--tk-star) center / contain no-repeat; }
.toprak-cp-world__name { font-family: var(--tk-serif); font-size: 2.25rem; letter-spacing: var(--tk-caps); text-transform: uppercase; line-height: 1; }
.toprak-cp-world__text { font-size: var(--wp--preset--font-size--sm); opacity: .9; }
.toprak-cp-world--tierra  { background: var(--tk-tierra); color: var(--tk-crema-50); }
.toprak-cp-world--arcilla { background: var(--tk-arcilla); }
.toprak-cp-world--arena   { background: var(--tk-arena, #FED8A6); }
.toprak-cp-world--salvia  { background: var(--tk-salvia); }
.toprak-cp-world--crema   { background: var(--tk-crema); }

/* ¿Cómo funciona? */
.toprak-cp-steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; counter-reset: none; }
.toprak-cp-step { position: relative; padding-top: 1.5rem; border-top: 1px solid var(--tk-texto-suave); }
.toprak-cp-step__num { display: block; font-family: var(--tk-serif); font-size: 3.5rem; font-weight: 300; line-height: 1; color: var(--tk-tierra); margin-bottom: 1rem; }
.toprak-cp-step h3 { margin: 0 0 .5rem; font-size: var(--wp--preset--font-size--md) !important; letter-spacing: .06em !important; text-transform: uppercase; }
.toprak-cp-step p { margin: 0; color: var(--tk-texto-suave); max-width: 34ch; }

/* Planes */
.toprak-cp-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.toprak-cp-plan {
  position: relative; display: flex; flex-direction: column; padding: 2.5rem 2rem 2rem; border: 1px solid var(--tk-borde); border-radius: var(--tk-radius);
  background: var(--tk-crema-50); text-align: center;
}
.toprak-cp-plan.is-featured { background: var(--tk-tierra-900); color: var(--tk-crema-50); border-color: var(--tk-tierra-900); transform: translateY(-8px); }
.toprak-cp-plan__badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 999px; background: var(--tk-arena, #FED8A6); color: var(--tk-tierra-900); font-size: 10px; letter-spacing: var(--tk-wide); text-transform: uppercase; white-space: nowrap; }
.toprak-cp-plan__name { margin: 0 !important; font-size: 2rem !important; font-weight: 300 !important; letter-spacing: var(--tk-caps) !important; text-transform: uppercase; color: inherit !important; }
.toprak-cp-plan__tag { margin: .5rem 0 0; font-family: var(--tk-serif); font-style: italic; font-size: 1.1rem; opacity: .85; }
.toprak-cp-plan__price { margin: 1.5rem 0; padding-block: 1rem; border-block: 1px solid currentColor; border-color: rgb(107 84 68 / .25); font-size: var(--wp--preset--font-size--xs); letter-spacing: var(--tk-wide); text-transform: uppercase; }
.toprak-cp-plan.is-featured .toprak-cp-plan__price { border-color: rgb(246 239 230 / .25); }
.toprak-cp-plan ul { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-direction: column; gap: .65rem; font-size: var(--wp--preset--font-size--sm); }
.toprak-cp-plan li::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: .6rem; background: var(--tk-tierra); -webkit-mask: var(--tk-star) center / contain no-repeat; mask: var(--tk-star) center / contain no-repeat; }
.toprak-cp-plan.is-featured li::before { background: var(--tk-arena, #FED8A6); }
.toprak-cp-plan__btn {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid currentColor; border-radius: 2px;
  font-size: var(--wp--preset--font-size--xs); letter-spacing: var(--tk-wide); text-transform: uppercase; transition: background var(--tk-dur) var(--tk-ease), color var(--tk-dur) var(--tk-ease);
}
.toprak-cp-plan__btn:hover { background: var(--tk-texto); color: var(--tk-crema-50); border-color: var(--tk-texto); }
.toprak-cp-plan.is-featured .toprak-cp-plan__btn { background: var(--tk-crema-50); color: var(--tk-tierra-900); border-color: var(--tk-crema-50); }
.toprak-cp-plan.is-featured .toprak-cp-plan__btn:hover { background: transparent; color: var(--tk-crema-50); }

/* Preguntas frecuentes */
.toprak-cp-faq { max-width: 820px !important; }
.toprak-cp-faq .toprak-acc > summary { font-size: var(--wp--preset--font-size--sm); letter-spacing: .04em; text-transform: none; }
.toprak-cp-faq .toprak-acc > summary { font-family: var(--tk-serif); font-size: 1.2rem; }

/* Llamada final */
.toprak-cp-final { margin: 0 var(--tk-gutter) !important; max-width: calc(var(--tk-page-max) - 2 * var(--tk-gutter)); margin-inline: auto !important; padding: clamp(3rem, 6vw, 5rem) var(--tk-gutter); border-radius: var(--tk-radius); background: var(--tk-oliva, #5C6140); color: var(--tk-crema); }
.toprak-cp-final > * { max-width: 620px; margin-inline: auto !important; }
.toprak-cp-final__title { font-size: var(--wp--preset--font-size--xl) !important; font-weight: 300 !important; letter-spacing: var(--tk-caps) !important; text-transform: uppercase; color: var(--tk-crema-50) !important; margin-bottom: 1rem !important; }
.toprak-cp-final .toprak-cp-form { margin-top: 2rem; }
.toprak-cp-final .toprak-check { color: var(--tk-crema); }
.toprak-cp-final .toprak-club__form button { background: var(--tk-crema); color: var(--tk-tierra-900); }

/* Responsive */
@media (max-width: 1080px) {
  .toprak-cp-includes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .toprak-cp-hero { grid-template-columns: 1fr; padding: 2.5rem 1.5rem 2rem; min-height: 0; }
  .toprak-cp-hero__visual { min-height: 300px; order: -1; }
  .toprak-cp-ticket { width: 150px; right: 0; bottom: 0; }
  .toprak-cp-ticket__name { font-size: 1.6rem; }
  .toprak-cp-what { grid-template-columns: 1fr; }
  .toprak-cp-what__media { aspect-ratio: 4 / 3; }
  .toprak-cp-steps, .toprak-cp-plans { grid-template-columns: 1fr; }
  .toprak-cp-plan.is-featured { transform: none; }
  .toprak-cp-plans { gap: 1.75rem; }
}
@media (max-width: 560px) {
  .toprak-cp-includes { grid-template-columns: 1fr; }
  .toprak-cp-worlds__track { grid-auto-columns: 72%; }
}

:root { --tk-arena: var(--wp--preset--color--arena, #FED8A6); }

/* ==========================================================================
   Verde oliva como acento de la marca (v0.7)
   Crema sigue siendo el protagonista; el oliva marca los momentos clave.
   ========================================================================== */
:root { --tk-oliva: var(--wp--preset--color--oliva, #5C6140); --tk-oliva-900: #3E4229; --tk-oliva-100: #E4E3D3; }

/* Precios de los planes del club */
.toprak-cp-plan__price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: .1rem .4rem; text-transform: none; letter-spacing: 0; }
.toprak-cp-plan__amount { font-family: var(--tk-serif); font-size: 2.4rem; font-weight: 400; line-height: 1; letter-spacing: .02em; }
.toprak-cp-plan__period { font-size: var(--wp--preset--font-size--sm); opacity: .8; }
.toprak-cp-plan__note { flex-basis: 100%; margin-top: .45rem; font-size: 10px; letter-spacing: var(--tk-wide); text-transform: uppercase; opacity: .65; }
.toprak-cp-plan.is-featured { background: var(--tk-oliva-900); border-color: var(--tk-oliva-900); }

/* Barra de anuncios (la clase de paleta ya la pone en oliva) */
.toprak-announce { color: var(--tk-crema) !important; }

/* Iconos de la franja de características y de «qué incluye» */
.toprak-feature .toprak-icon, .toprak-cp-include .toprak-icon { color: var(--tk-oliva); }

/* Estrellas de los títulos de sección */
.toprak-section-title::after { background: var(--tk-oliva); }

/* Banner «Un regalo con significado» en oliva */
.toprak-banner--oliva { background: var(--tk-oliva-900); }
.toprak-banner--oliva::before { background: linear-gradient(90deg, var(--tk-oliva-900) 34%, rgb(62 66 41 / .72) 46%, transparent 72%) !important; }
@media (max-width: 820px) {
  .toprak-banner--oliva::before { background: linear-gradient(180deg, transparent 0%, transparent 35%, var(--tk-oliva-900) 58%) !important; }
}

/* Tarjeta «Resistentes al agua»: del salvia al oliva */
.toprak-value--salvia { background: radial-gradient(120% 90% at 30% 20%, #7c8259 0%, var(--tk-oliva) 55%, var(--tk-oliva-900) 100%); }

/* Accesos rápidos del catálogo: el activo en oliva */
.toprak-chip:hover { border-color: var(--tk-oliva); }
.toprak-chip.is-active { background: var(--tk-oliva); border-color: var(--tk-oliva); color: var(--tk-crema-50); }

/* Enlaces y menú al pasar el ratón */
.toprak-nav .wp-block-navigation-item__content:hover,
.toprak-nav .current-menu-item > .wp-block-navigation-item__content { border-color: var(--tk-oliva); }
.toprak-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { color: var(--tk-oliva); background: var(--tk-oliva-100); }
.toprak-footer__col a:hover, .toprak-link-arrow a:hover, .toprak-product-collection .wp-block-post-title a:hover { color: var(--tk-oliva); }

/* Filtros del catálogo */
.toprak-filters input[type="checkbox"] { accent-color: var(--tk-oliva); }
.toprak-filters .wc-block-product-filter-price-slider { --range-color: var(--tk-oliva); --wc-product-filter-price-slider: var(--tk-oliva); }

/* Ficha de producto: stock y favoritos */
.toprak-product__cart .stock { color: var(--tk-oliva); }
.toprak-card-fav .tinvwl_add_to_wishlist_button.tinvwl-product-in-list::before { color: var(--tk-oliva) !important; }

/* Pasos de «Cómo funciona» */
.toprak-cp-step { border-top-color: var(--tk-oliva); }
.toprak-cp-step__num { color: var(--tk-oliva); }

/* ==========================================================================
   Mi cuenta
   ========================================================================== */
.toprak-account-wrap { padding-top: clamp(1.5rem, 3vw, 3rem); }
.toprak-account { --acc-gap: clamp(1.5rem, 3vw, 3rem); }
.toprak-account .woocommerce { margin: 0; }

/* Acceso y registro (sin sesión) */
.toprak-account.is-fuera { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--acc-gap); align-items: start; }
.toprak-account__welcome {
  position: sticky; top: 110px; padding: clamp(2rem, 4vw, 3.5rem); border-radius: var(--tk-radius); overflow: hidden;
  background: var(--tk-oliva); color: var(--tk-crema);
}
.toprak-account__welcome::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 200px; height: 200px; opacity: .12; background: var(--tk-crema-50);
  -webkit-mask: var(--tk-star) center / contain no-repeat; mask: var(--tk-star) center / contain no-repeat;
}
.toprak-account__kicker, .toprak-dash__kicker { margin: 0 0 1rem; font-size: var(--wp--preset--font-size--xs); letter-spacing: var(--tk-wide); text-transform: uppercase; color: var(--tk-oliva); }
.toprak-account__welcome .toprak-account__kicker { color: var(--tk-arena); }
.toprak-account__title { margin: 0 0 1rem; font-size: var(--wp--preset--font-size--xl) !important; font-weight: 300 !important; letter-spacing: var(--tk-caps) !important; text-transform: uppercase; line-height: 1.05; color: var(--tk-crema-50) !important; }
.toprak-account__lead { margin: 0 0 2rem; font-size: var(--wp--preset--font-size--md); max-width: 34ch; }
.toprak-account__perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .9rem; }
.toprak-account__perks li { display: flex; align-items: center; gap: .9rem; font-size: var(--wp--preset--font-size--sm); }
.toprak-account__perks span { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 1px solid rgb(233 215 192 / .5); border-radius: 50%; font-family: var(--tk-serif); font-size: 1.05rem; color: var(--tk-arena); }

.toprak-account.is-fuera .u-columns, .toprak-account.is-fuera #customer_login { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.toprak-account.is-fuera .u-columns::before, .toprak-account.is-fuera .u-columns::after { display: none; }
.toprak-account.is-fuera .u-column1, .toprak-account.is-fuera .u-column2 { width: auto !important; float: none !important; }
.toprak-account h2 { font-size: var(--wp--preset--font-size--lg) !important; font-weight: 300 !important; letter-spacing: var(--tk-caps) !important; text-transform: uppercase; margin: 0 0 1.25rem; }
.toprak-account form.login, .toprak-account form.register, .toprak-account form.lost_reset_password {
  margin: 0 !important; padding: clamp(1.5rem, 3vw, 2.25rem) !important; border: 1px solid var(--tk-borde) !important; border-radius: var(--tk-radius) !important; background: var(--tk-crema-100);
}
.toprak-account .form-row { margin: 0 0 1rem !important; padding: 0 !important; }
.toprak-account .form-row label, .toprak-account fieldset legend { display: block; margin-bottom: .4rem; font-size: var(--wp--preset--font-size--xs); letter-spacing: var(--tk-caps); text-transform: uppercase; color: var(--tk-texto-suave); line-height: 1.4; }
.toprak-account .form-row label.woocommerce-form__label-for-checkbox { display: inline-flex; align-items: center; gap: .5rem; text-transform: none; letter-spacing: 0; font-size: var(--wp--preset--font-size--sm); color: var(--tk-texto); }
.toprak-account input.input-text, .toprak-account select, .toprak-account textarea, .toprak-account .select2-selection {
  width: 100%; min-height: 48px; padding: 0 .9rem; box-sizing: border-box; border: 1px solid var(--tk-borde) !important; border-radius: 2px !important; background: var(--tk-crema-50) !important; font: inherit; color: var(--tk-texto);
}
.toprak-account textarea { padding: .75rem .9rem; min-height: 110px; }
.toprak-account input.input-text:focus { outline: 2px solid var(--tk-oliva); outline-offset: 1px; }
.toprak-account input[type="checkbox"] { accent-color: var(--tk-oliva); width: 16px; height: 16px; }
.toprak-account .woocommerce-Button, .toprak-account button.button, .toprak-account a.button, .toprak-account .woocommerce-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.5rem !important; border: 0 !important; border-radius: 2px !important;
  background: var(--tk-tierra-900) !important; color: var(--tk-crema-50) !important; font-family: var(--tk-sans) !important; font-size: var(--wp--preset--font-size--xs) !important; font-weight: 400 !important;
  letter-spacing: var(--tk-wide); text-transform: uppercase; text-decoration: none !important; cursor: pointer;
}
.toprak-account .woocommerce-Button:hover, .toprak-account button.button:hover, .toprak-account a.button:hover { background: var(--tk-oliva) !important; }
.toprak-account .woocommerce-form-login__submit { width: 100%; margin-top: .5rem !important; }
.toprak-account .woocommerce-LostPassword a, .toprak-account .lost_password a { font-size: var(--wp--preset--font-size--sm); text-decoration: underline; color: var(--tk-texto-suave); }
.toprak-account .woocommerce-privacy-policy-text { font-size: var(--wp--preset--font-size--xs); color: var(--tk-texto-suave); }
.toprak-account .woocommerce-error, .toprak-account .woocommerce-message, .toprak-account .woocommerce-info {
  border: 1px solid var(--tk-borde) !important; border-left: 3px solid var(--tk-oliva) !important; border-radius: 2px; background: var(--tk-crema-100) !important; color: var(--tk-texto) !important; padding: 1rem 1.25rem !important; list-style: none; margin: 0 0 1.5rem !important;
}
.toprak-account .woocommerce-error::before, .toprak-account .woocommerce-message::before, .toprak-account .woocommerce-info::before { display: none; }

/* Con sesión: pestañas arriba y contenido debajo */
.toprak-account.is-dentro .woocommerce { display: flex; flex-direction: column; gap: 2rem; }
.toprak-account .woocommerce-MyAccount-navigation { width: auto !important; float: none !important; order: -1; }
.toprak-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem; border-bottom: 1px solid var(--tk-borde); }
.toprak-account .woocommerce-MyAccount-navigation li { margin: 0; }
.toprak-account .woocommerce-MyAccount-navigation a {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 1rem; border: 1px solid var(--tk-borde); border-radius: 999px;
  font-size: var(--wp--preset--font-size--xs); letter-spacing: var(--tk-caps); text-transform: uppercase; color: var(--tk-texto); white-space: nowrap;
  transition: background var(--tk-dur) var(--tk-ease), color var(--tk-dur) var(--tk-ease), border-color var(--tk-dur) var(--tk-ease);
}
.toprak-account .woocommerce-MyAccount-navigation a:hover { border-color: var(--tk-oliva); }
.toprak-account .woocommerce-MyAccount-navigation .is-active a { background: var(--tk-oliva); border-color: var(--tk-oliva); color: var(--tk-crema-50); }
.toprak-account .woocommerce-MyAccount-navigation-link--customer-logout { margin-left: auto !important; }
.toprak-account .woocommerce-MyAccount-navigation-link--customer-logout a { border-color: transparent; color: var(--tk-texto-suave); text-decoration: underline; }
.toprak-account .woocommerce-MyAccount-content { width: auto !important; float: none !important; }
.toprak-account .woocommerce-MyAccount-content > p:first-child { color: var(--tk-texto-suave); }

/* Escritorio */
.toprak-dash { display: flex; flex-direction: column; gap: clamp(1.75rem, 3vw, 2.5rem); }
.toprak-dash__title { margin: 0 0 .75rem; font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem) !important; font-weight: 300 !important; letter-spacing: .06em !important; line-height: 1.05; }
.toprak-dash__title em { font-style: italic; color: var(--tk-oliva); }
.toprak-dash__lead { margin: 0; color: var(--tk-texto-suave); font-size: var(--wp--preset--font-size--md); }
.toprak-dash__lead a { color: var(--tk-texto); text-decoration: underline; margin-left: .35rem; }
.toprak-dash__tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.toprak-dash__tile {
  display: flex; flex-direction: column; gap: .4rem; padding: 1.5rem 1.25rem; border: 1px solid var(--tk-borde); border-radius: var(--tk-radius); background: var(--tk-crema-50);
  transition: transform var(--tk-dur) var(--tk-ease), border-color var(--tk-dur) var(--tk-ease), box-shadow var(--tk-dur) var(--tk-ease);
}
.toprak-dash__tile:hover { transform: translateY(-3px); border-color: var(--tk-oliva); box-shadow: 0 12px 28px rgb(46 29 20 / .07); color: inherit; }
.toprak-dash__tile svg { width: 26px; height: 26px; margin-bottom: .6rem; fill: none; stroke: var(--tk-oliva); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.toprak-dash__tile-title { font-family: var(--tk-serif); font-size: 1.3rem; letter-spacing: .03em; }
.toprak-dash__tile-text { font-size: var(--wp--preset--font-size--sm); color: var(--tk-texto-suave); line-height: 1.45; }

/* Tarjeta de sellos */
.toprak-sellos {
  position: relative; padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--tk-radius); background: var(--tk-crema);
  background-image: radial-gradient(circle at 100% 0, rgb(254 216 166 / .55), transparent 45%), radial-gradient(circle at 0 100%, rgb(146 173 164 / .25), transparent 45%);
  border: 1px solid var(--tk-crema-300, #DCC6AA); overflow: hidden;
}
.toprak-sellos::before { content: ""; position: absolute; inset: 10px; border: 1px dashed rgb(92 97 64 / .35); border-radius: 4px; pointer-events: none; }
.toprak-sellos__head { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; margin-bottom: 2rem; }
.toprak-sellos__kicker { margin: 0 0 .6rem; font-size: var(--wp--preset--font-size--xs); letter-spacing: var(--tk-wide); text-transform: uppercase; color: var(--tk-oliva); }
.toprak-sellos__title { margin: 0 0 .75rem !important; font-size: var(--wp--preset--font-size--xl) !important; font-weight: 300 !important; letter-spacing: .06em !important; text-transform: none !important; line-height: 1.05; }
.toprak-sellos__title em { color: var(--tk-oliva); }
.toprak-sellos__text { margin: 0; max-width: 46ch; color: var(--tk-texto-suave); }
.toprak-sellos__text strong { color: var(--tk-texto); font-weight: 500; }
.toprak-sellos__count { margin: 0; font-family: var(--tk-serif); font-size: 1.5rem; color: var(--tk-texto-suave); white-space: nowrap; }
.toprak-sellos__count span { font-size: 3.5rem; color: var(--tk-oliva); line-height: 1; }
.toprak-sellos__grid { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.6rem, 2vw, 1.5rem); }
.toprak-sello { display: grid; place-items: center; }
.toprak-sello__circle {
  position: relative; display: grid; place-items: center; width: 100%; max-width: 128px; aspect-ratio: 1; border-radius: 50%;
  border: 1.5px dashed rgb(107 84 68 / .45); background: rgb(246 239 230 / .6); color: var(--tk-texto-suave);
}
.toprak-sello__num { font-family: var(--tk-serif); font-size: clamp(1.25rem, 1rem + 1.5vw, 2rem); opacity: .6; }
.toprak-sello__gift { font-family: var(--tk-serif); font-size: clamp(1.1rem, .9rem + 1.2vw, 1.75rem); color: var(--tk-oliva); }
.toprak-sello.is-premio .toprak-sello__circle { border-style: solid; border-color: var(--tk-oliva); }
.toprak-sello.is-lleno .toprak-sello__circle {
  border: 2px solid var(--tk-oliva); background: var(--tk-oliva); color: var(--tk-crema-50); transform: rotate(var(--giro, 0deg));
  box-shadow: inset 0 0 0 5px var(--tk-oliva), inset 0 0 0 6.5px rgb(246 239 230 / .55);
  animation: toprak-sello-in 600ms var(--tk-ease) both;
}
.toprak-sello:nth-child(2).is-lleno .toprak-sello__circle { animation-delay: 80ms; }
.toprak-sello:nth-child(3).is-lleno .toprak-sello__circle { animation-delay: 160ms; }
.toprak-sello:nth-child(4).is-lleno .toprak-sello__circle { animation-delay: 240ms; }
.toprak-sello:nth-child(5).is-lleno .toprak-sello__circle { animation-delay: 320ms; }
.toprak-sello__draw { width: 58%; height: 58%; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
@keyframes toprak-sello-in { from { opacity: 0; transform: scale(1.35) rotate(calc(var(--giro, 0deg) - 20deg)); } to { opacity: 1; transform: scale(1) rotate(var(--giro, 0deg)); } }
@media (prefers-reduced-motion: reduce) { .toprak-sello.is-lleno .toprak-sello__circle { animation: none; } }
.toprak-sellos__progress { position: relative; margin: 1.75rem 0 0; text-align: center; color: var(--tk-texto-suave); }
.toprak-sellos__progress strong { color: var(--tk-oliva); font-weight: 500; }

/* Cupón ganado */
.toprak-premio {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem; margin-top: 1.75rem;
  padding: 1.5rem 1.75rem; border-radius: var(--tk-radius); background: var(--tk-oliva); color: var(--tk-crema);
}
.toprak-premio::before, .toprak-premio::after { content: ""; position: absolute; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--tk-crema); }
.toprak-premio::before { left: -11px; } .toprak-premio::after { right: -11px; }
.toprak-premio__star svg { width: 40px; height: 40px; fill: var(--tk-arena); }
.toprak-premio__body p { margin: 0; }
.toprak-premio__kicker { font-size: var(--wp--preset--font-size--xs); letter-spacing: var(--tk-wide); text-transform: uppercase; color: var(--tk-arena); }
.toprak-premio__title { font-family: var(--tk-serif); font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem); color: var(--tk-crema-50); line-height: 1.15; }
.toprak-premio__text { font-size: var(--wp--preset--font-size--sm); opacity: .9; }
.toprak-premio__code { display: flex; flex-direction: column; align-items: stretch; gap: .5rem; text-align: center; }
.toprak-premio__code code { padding: .7rem 1rem; border: 1.5px dashed rgb(233 215 192 / .7); border-radius: 3px; font-family: var(--tk-sans); font-size: 1rem; letter-spacing: .12em; color: var(--tk-crema-50); background: rgb(62 66 41 / .5); }
.toprak-premio__copy { min-height: 40px; border: 0; border-radius: 2px; background: var(--tk-crema-50); color: var(--tk-tierra-900); cursor: pointer; font: inherit; font-size: var(--wp--preset--font-size--xs); letter-spacing: var(--tk-wide); text-transform: uppercase; }
.toprak-premio__shop { font-size: var(--wp--preset--font-size--xs); letter-spacing: var(--tk-caps); text-transform: uppercase; text-decoration: underline; color: var(--tk-crema); }

/* Pedidos, direcciones y formularios con sesión */
.toprak-account table.shop_table, .toprak-account table.woocommerce-orders-table { width: 100%; border: 0 !important; border-collapse: collapse; border-radius: 0 !important; }
.toprak-account table.shop_table th, .toprak-account table.shop_table td { padding: 1rem .75rem !important; border: 0 !important; border-bottom: 1px solid var(--tk-borde) !important; text-align: left; font-size: var(--wp--preset--font-size--sm); }
.toprak-account table.shop_table thead th { font-size: var(--wp--preset--font-size--xs); letter-spacing: var(--tk-caps); text-transform: uppercase; color: var(--tk-texto-suave); font-weight: 400; }
.toprak-account table.shop_table .button { min-height: 36px; padding: 0 1rem !important; margin: .15rem; }
.toprak-account .woocommerce-Addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.toprak-account .woocommerce-Addresses::before, .toprak-account .woocommerce-Addresses::after { display: none; }
.toprak-account .woocommerce-Address { width: auto !important; float: none !important; padding: 1.5rem; border: 1px solid var(--tk-borde); border-radius: var(--tk-radius); background: var(--tk-crema-50); }
.toprak-account .woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.toprak-account .woocommerce-Address-title h2 { font-size: var(--wp--preset--font-size--md) !important; margin: 0 0 .75rem; }
.toprak-account .woocommerce-Address-title a { font-size: var(--wp--preset--font-size--xs); letter-spacing: var(--tk-caps); text-transform: uppercase; text-decoration: underline; }
.toprak-account address { font-style: normal; color: var(--tk-texto-suave); line-height: 1.7; }
.toprak-account .woocommerce-EditAccountForm, .toprak-account form.edit-account, .toprak-account .woocommerce-address-fields { max-width: 640px; }
.toprak-account fieldset { margin: 1.5rem 0; padding: 1.25rem; border: 1px solid var(--tk-borde); border-radius: var(--tk-radius); }

/* Responsive */
@media (max-width: 1080px) {
  .toprak-dash__tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .toprak-account.is-fuera { grid-template-columns: 1fr; }
  .toprak-account__welcome { position: static; }
  .toprak-account .woocommerce-MyAccount-navigation ul { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--tk-gutter) * -1); padding-inline: var(--tk-gutter); scrollbar-width: none; }
  .toprak-account .woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
  .toprak-account .woocommerce-MyAccount-navigation-link--customer-logout { margin-left: 0 !important; }
  .toprak-dash__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toprak-sellos__head { flex-direction: column; gap: .5rem; }
  .toprak-sellos__count { order: -1; }
  .toprak-premio { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .toprak-account .woocommerce-Addresses { grid-template-columns: 1fr; }
  .toprak-account table.shop_table_responsive tr td { display: flex; justify-content: space-between; }
}
@media (max-width: 560px) {
  .toprak-sellos__grid { gap: .4rem; }
  .toprak-sello.is-lleno .toprak-sello__circle { box-shadow: inset 0 0 0 3px var(--tk-oliva), inset 0 0 0 4px rgb(246 239 230 / .55); }
  .toprak-dash__tiles { grid-template-columns: 1fr; }
  .toprak-dash__tile { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: .9rem; }
  .toprak-dash__tile svg { margin: 0; }
  .toprak-dash__tile-text { flex-basis: 100%; }
}
.toprak-account .woocommerce, .woocommerce-account .toprak-account .woocommerce { max-width: none !important; width: 100% !important; margin: 0 !important; }
.toprak-account .woocommerce-MyAccount-navigation a { text-decoration: none !important; }

/* Panel del minicarrito: nunca más ancho que la pantalla, y sin scroll lateral en ningún caso */
.wc-block-components-drawer { width: min(415px, 100%) !important; max-width: 100% !important; }
.wc-block-components-drawer__screen-overlay--is-hidden { display: none !important; }
html, body { overflow-x: clip; }

/* ==========================================================================
   Avisos (error, éxito, información) en toda la tienda
   ========================================================================== */
.wc-block-components-notice-banner,
.woocommerce-error, .woocommerce-message, .woocommerce-info {
  position: relative; display: flex !important; align-items: flex-start; gap: .9rem;
  margin: 0 0 1.5rem !important; padding: 1.1rem 1.25rem 1.1rem 1.1rem !important; list-style: none;
  border: 1px solid var(--tk-borde) !important; border-left-width: 3px !important; border-radius: 3px !important;
  background: var(--tk-crema-50) !important; color: var(--tk-texto) !important;
  font-family: var(--tk-sans); font-size: var(--wp--preset--font-size--sm) !important; line-height: 1.55; box-shadow: none !important;
}
.wc-block-components-notice-banner > svg { display: none !important; }
.woocommerce-error::before, .woocommerce-message::before, .woocommerce-info::before { display: none !important; content: none !important; }
.wc-block-components-notice-banner::before,
.woocommerce-error > li:first-child::before { content: none; }
.wc-block-components-notice-banner::before {
  content: "" !important; flex: none; width: 20px; height: 20px; margin-top: .1rem; background: currentColor;
  -webkit-mask: var(--tk-star) center / contain no-repeat; mask: var(--tk-star) center / contain no-repeat;
}
.wc-block-components-notice-banner__content { flex: 1; color: var(--tk-texto); }
.wc-block-components-notice-banner__content strong, .woocommerce-error strong { display: block; margin-bottom: .15rem; font-family: var(--tk-serif); font-size: 1.15rem; font-weight: 500; letter-spacing: .02em; }
.wc-block-components-notice-banner a, .woocommerce-error a, .woocommerce-message a, .woocommerce-info a {
  color: var(--tk-texto) !important; text-decoration: underline !important; text-underline-offset: 3px; font-weight: 400;
}
.wc-block-components-notice-banner .wc-forward, .woocommerce-message .button {
  float: none !important; order: 2; margin-left: auto; padding: .45rem .9rem !important; border-radius: 2px; text-decoration: none !important;
  background: var(--tk-tierra-900) !important; color: var(--tk-crema-50) !important; font-size: var(--wp--preset--font-size--xs) !important; letter-spacing: var(--tk-wide); text-transform: uppercase;
}

/* Error: rosa arcilla */
.wc-block-components-notice-banner.is-error, .woocommerce-error {
  border-color: rgb(218 163 143 / .55) !important; border-left-color: var(--tk-arcilla) !important;
  background: linear-gradient(90deg, rgb(218 163 143 / .2), rgb(246 239 230 / .6)) !important;
}
.wc-block-components-notice-banner.is-error::before { color: #B8735C; }
/* Éxito: verde oliva */
.wc-block-components-notice-banner.is-success, .woocommerce-message {
  border-color: rgb(92 97 64 / .3) !important; border-left-color: var(--tk-oliva) !important;
  background: linear-gradient(90deg, rgb(92 97 64 / .1), rgb(246 239 230 / .6)) !important;
}
.wc-block-components-notice-banner.is-success::before { color: var(--tk-oliva); }
/* Información: arena */
.wc-block-components-notice-banner.is-info, .wc-block-components-notice-banner.is-warning, .woocommerce-info {
  border-color: rgb(254 216 166 / .9) !important; border-left-color: #D9A962 !important;
  background: linear-gradient(90deg, rgb(254 216 166 / .3), rgb(246 239 230 / .6)) !important;
}
.wc-block-components-notice-banner.is-info::before, .wc-block-components-notice-banner.is-warning::before { color: #B5873F; }


/* ==========================================================================
   Contacto
   ========================================================================== */
.toprak-contact { padding-top: clamp(1.5rem, 3vw, 3rem); }
.toprak-contact > * { margin: 0 !important; }
.toprak-contact__hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; scroll-margin-top: 120px; }
.toprak-contact__intro { position: relative; padding-top: 1rem; }
.toprak-contact__kicker { margin: 0 0 1rem; font-size: var(--wp--preset--font-size--xs); letter-spacing: var(--tk-wide); text-transform: uppercase; color: var(--tk-oliva); }
.toprak-contact__title { margin: 0 0 1.5rem; font-family: var(--tk-serif); font-size: clamp(4rem, 2.5rem + 7vw, 8.5rem) !important; font-weight: 300 !important; letter-spacing: .02em !important; line-height: .9; text-transform: none; }
.toprak-contact__title span { color: var(--tk-oliva); }
.toprak-contact__lead { margin: 0 0 2.25rem; max-width: 40ch; font-size: var(--wp--preset--font-size--md); color: var(--tk-texto-suave); }
.toprak-contact__ways { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.toprak-contact__ways li { display: flex; align-items: center; gap: 1rem; }
.toprak-contact__ways small { display: block; font-size: 10px; letter-spacing: var(--tk-wide); text-transform: uppercase; color: var(--tk-texto-suave); }
.toprak-contact__ways a { text-decoration: underline; text-underline-offset: 3px; }
.toprak-contact__way-icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--tk-borde); background: var(--tk-crema-100); }
.toprak-contact__way-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--tk-oliva); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

/* Sello giratorio */
.toprak-contact__badge { position: relative; width: 150px; height: 150px; margin-top: 2.5rem; }
.toprak-contact__badge svg { width: 100%; height: 100%; animation: toprak-spin 22s linear infinite; }
.toprak-contact__badge text { font-family: var(--tk-sans); font-size: 9px; letter-spacing: 0; text-transform: uppercase; fill: var(--tk-tierra-700); }
.toprak-contact__badge-star { position: absolute; inset: 50% auto auto 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; background: var(--tk-oliva); -webkit-mask: var(--tk-star) center / contain no-repeat; mask: var(--tk-star) center / contain no-repeat; }
@keyframes toprak-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .toprak-contact__badge svg { animation: none; } }

/* Tarjeta del formulario */
.toprak-contact__card { position: relative; padding: clamp(1.75rem, 3.5vw, 2.75rem); border-radius: var(--tk-radius); background: var(--tk-crema); border: 1px solid var(--tk-borde); box-shadow: 0 30px 60px rgb(46 29 20 / .07); }
.toprak-contact__card::before { content: ""; position: absolute; inset: 10px; border: 1px dashed rgb(92 97 64 / .3); border-radius: 4px; pointer-events: none; }
.toprak-contact__form { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1rem; }
.toprak-field { display: flex; flex-direction: column; gap: .4rem; }
.toprak-field--full { grid-column: 1 / -1; }
.toprak-field label { font-size: var(--wp--preset--font-size--xs); letter-spacing: var(--tk-caps); text-transform: uppercase; color: var(--tk-texto-suave); }
.toprak-field label span { text-transform: none; letter-spacing: 0; opacity: .8; }
.toprak-field input, .toprak-field select, .toprak-field textarea {
  width: 100%; min-height: 50px; padding: 0 1rem; box-sizing: border-box; border: 1px solid transparent !important; border-radius: 2px !important;
  background: var(--tk-crema-50) !important; color: var(--tk-texto); font: inherit; font-size: var(--wp--preset--font-size--base);
  transition: border-color var(--tk-dur) var(--tk-ease), box-shadow var(--tk-dur) var(--tk-ease);
}
.toprak-field textarea { padding: .9rem 1rem; min-height: 150px; resize: vertical; }
.toprak-field select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233A271C' stroke-width='1.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 1rem center !important; background-size: 14px !important; }
.toprak-field input:focus, .toprak-field select:focus, .toprak-field textarea:focus { outline: none; border-color: var(--tk-oliva) !important; box-shadow: 0 0 0 3px rgb(92 97 64 / .15); }
.toprak-contact__form .toprak-check { color: var(--tk-texto-suave); }
.toprak-contact__form .toprak-check input { accent-color: var(--tk-oliva); }
.toprak-contact__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem; min-height: 54px; padding: 0 1.75rem; border: 0; border-radius: 2px; cursor: pointer;
  background: var(--tk-oliva); color: var(--tk-crema-50) !important; font: inherit; font-size: var(--wp--preset--font-size--xs); letter-spacing: var(--tk-wide); text-transform: uppercase;
  transition: background var(--tk-dur) var(--tk-ease);
}
.toprak-contact__btn::after { content: ""; width: 1rem; height: 1rem; background: currentColor; -webkit-mask: var(--tk-arrow) center / contain no-repeat; mask: var(--tk-arrow) center / contain no-repeat; transition: transform var(--tk-dur) var(--tk-ease); }
.toprak-contact__btn:hover { background: var(--tk-oliva-900); }
.toprak-contact__btn:hover::after { transform: translateX(3px); }
.toprak-contact__trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.toprak-contact__card .wc-block-components-notice-banner { position: relative; }
.toprak-contact__sent { position: relative; padding: 2rem 0 .5rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.toprak-contact__sent p { margin: 0; color: var(--tk-texto-suave); }
.toprak-contact__sent-title { font-family: var(--tk-serif); font-size: 2rem; color: var(--tk-texto) !important; }
.toprak-contact__sent-star { width: 44px; height: 44px; background: var(--tk-oliva); -webkit-mask: var(--tk-star) center / contain no-repeat; mask: var(--tk-star) center / contain no-repeat; animation: toprak-sello-in 700ms var(--tk-ease) both; }

/* Ayuda rápida */
.toprak-contact__help { padding-top: var(--tk-section-gap); }
.toprak-contact__help .toprak-section-title { margin: 0 0 2rem; }
.toprak-contact__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }

/* Redes */
.toprak-contact__social { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(1rem, 3vw, 2.5rem); align-items: center; padding-top: var(--tk-section-gap); }
.toprak-contact__photo { margin: 0; border-radius: var(--tk-radius); overflow: hidden; aspect-ratio: 4 / 5; }
.toprak-contact__photo:first-child { transform: rotate(-3deg); }
.toprak-contact__photo:last-child { transform: rotate(3deg); }
.toprak-contact__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.toprak-contact__social-text { text-align: center; padding: 2rem 1rem; }
.toprak-contact__social-text p { margin: 0 auto 1rem; max-width: 36ch; color: var(--tk-texto-suave); }
.toprak-contact__social-text .toprak-contact__kicker { color: var(--tk-oliva); }
.toprak-contact__h2 { margin: 0 0 1rem; font-size: var(--wp--preset--font-size--xl) !important; font-weight: 300 !important; letter-spacing: var(--tk-caps) !important; text-transform: uppercase; line-height: 1.1; }
.toprak-contact__nets { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; }
.toprak-contact__nets a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1.1rem; border: 1px solid var(--tk-borde); border-radius: 999px; font-size: var(--wp--preset--font-size--xs); letter-spacing: var(--tk-caps); text-transform: uppercase; }
.toprak-contact__nets a:hover { background: var(--tk-oliva); border-color: var(--tk-oliva); color: var(--tk-crema-50); }

@media (max-width: 1080px) {
  .toprak-contact__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .toprak-contact__hero { grid-template-columns: 1fr; }
  .toprak-contact__badge { position: absolute; top: 0; right: 0; width: 96px; height: 96px; margin: 0; }
  .toprak-contact__badge text { font-size: 9.5px; }
  .toprak-contact__social { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toprak-contact__social-text { grid-column: 1 / -1; order: -1; padding: 0 0 .5rem; }
}
@media (max-width: 560px) {
  .toprak-contact__form { grid-template-columns: 1fr; }
  .toprak-contact__tiles { grid-template-columns: 1fr; }
}

/* Móvil: lupa, persona y bolsa siempre visibles y compactos */
@media (max-width: 560px) {
  .toprak-header__actions .wp-block-search__button,
  .toprak-header__actions .wc-block-mini-cart__button,
  .toprak-header__actions .wp-block-woocommerce-customer-account a { width: 36px !important; height: 36px !important; }
  .toprak-header__actions .wp-block-woocommerce-customer-account { display: block !important; }
}

/* Mi cuenta sin sesión: pestañas Acceder / Crear cuenta */
.toprak-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 1.25rem; border-bottom: 1px solid var(--tk-borde); }
.toprak-auth-tabs button {
  position: relative; padding: .9rem .5rem 1rem; border: 0; background: none; cursor: pointer; color: var(--tk-texto-suave);
  font-family: var(--tk-serif); font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); letter-spacing: var(--tk-caps); text-transform: uppercase;
  transition: color var(--tk-dur) var(--tk-ease);
}
.toprak-auth-tabs button::after { content: ""; position: absolute; left: 15%; right: 15%; bottom: -1px; height: 2px; background: var(--tk-oliva); transform: scaleX(0); transition: transform var(--tk-dur) var(--tk-ease); }
.toprak-auth-tabs button.is-active { color: var(--tk-texto); }
.toprak-auth-tabs button.is-active::after { transform: scaleX(1); }
.toprak-auth-tabs button:hover { color: var(--tk-texto); }
.toprak-auth-tabs ~ #customer_login .u-column1 > h2,
.toprak-auth-tabs ~ #customer_login .u-column2 > h2 { display: none; }
.toprak-account #customer_login [hidden] { display: none !important; }
.toprak-register__intro { margin: 0 0 1.25rem; padding: .9rem 1rem; border-radius: 3px; background: rgb(92 97 64 / .1); font-size: var(--wp--preset--font-size--sm); color: var(--tk-texto); }
.toprak-register__intro strong { color: var(--tk-oliva); font-weight: 500; }
.toprak-account form.register .woocommerce-form-register__submit { width: 100%; margin-top: .5rem !important; }
.toprak-account__create {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .5rem; margin-top: 2rem;
  font-size: var(--wp--preset--font-size--xs); letter-spacing: var(--tk-wide); text-transform: uppercase; color: var(--tk-crema-50);
  border-bottom: 1px solid rgb(246 239 230 / .5); padding-bottom: .2rem;
}
.toprak-account__create::after { content: ""; width: .9rem; height: .9rem; background: currentColor; -webkit-mask: var(--tk-arrow) center / contain no-repeat; mask: var(--tk-arrow) center / contain no-repeat; }
.toprak-account__create:hover { color: var(--tk-arena); border-color: var(--tk-arena); }

/* ==========================================================================
   Medidor de seguridad de la contraseña (registro, cambiar contraseña, pago)
   ========================================================================== */
.woocommerce-password-strength {
  margin: .6rem 0 0 !important; padding: .55rem .9rem !important; border-radius: 2px; border: 1px solid transparent;
  font-family: var(--tk-sans) !important; font-size: var(--wp--preset--font-size--xs) !important; font-weight: 400 !important;
  letter-spacing: var(--tk-wide); text-transform: uppercase; text-align: left !important;
  display: flex; align-items: center; gap: .6rem;
}
.woocommerce-password-strength::before {
  content: ""; flex: none; width: 46px; height: 4px; border-radius: 2px; background: currentColor; opacity: .9;
}
.woocommerce-password-strength.short { background: rgb(218 163 143 / .22) !important; border-color: rgb(218 163 143 / .6); color: #9A5640 !important; }
.woocommerce-password-strength.short::before { width: 14px; }
.woocommerce-password-strength.bad { background: rgb(218 163 143 / .14) !important; border-color: rgb(218 163 143 / .45); color: #9A5640 !important; }
.woocommerce-password-strength.bad::before { width: 24px; }
.woocommerce-password-strength.good { background: rgb(254 216 166 / .35) !important; border-color: rgb(217 169 98 / .55); color: #8A6326 !important; }
.woocommerce-password-strength.good::before { width: 36px; }
.woocommerce-password-strength.strong { background: rgb(92 97 64 / .12) !important; border-color: rgb(92 97 64 / .35); color: var(--tk-oliva) !important; }
.woocommerce-password-strength.strong::before { width: 46px; }
.woocommerce-password-hint { display: block; margin-top: .5rem; font-size: var(--wp--preset--font-size--xs); line-height: 1.5; color: var(--tk-texto-suave); }

/* El campo de contraseña sin el borde grueso del navegador al escribir */
.toprak-account .password-input { display: block; position: relative; width: 100%; }
.toprak-account input.input-text:focus, .toprak-account .password-input input:focus { outline: none !important; border-color: var(--tk-oliva) !important; box-shadow: 0 0 0 3px rgb(92 97 64 / .15) !important; }
.toprak-account .show-password-input { color: var(--tk-texto-suave); }
.toprak-account .woocommerce-privacy-policy-text p { margin: 1rem 0 0; font-size: var(--wp--preset--font-size--xs); line-height: 1.6; color: var(--tk-texto-suave); }
.toprak-account .woocommerce-privacy-policy-text a { text-decoration: underline; color: var(--tk-texto); }
