/* Ficha Kore4n independiente de los wrappers visuales de WoodMart. */
body.single-product .k4-product{--k4-text:#333333;color:var(--k4-text);font-family:'Segment',sans-serif}
body.single-product .k4-product .k4-container{width:90%;max-width:none;margin-inline:auto;padding:0}
.k4-product .k4-breadcrumb{margin:0 0 22px;font-size:13px}
.k4-product .k4-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}
.k4-product .k4-gallery,.k4-product .k4-info{min-width:0}
.k4-product .k4-gallery .woocommerce-product-gallery{width:100%;float:none}
.k4-product .k4-brand{font-size:13px;margin:0 0 8px}
.k4-product .k4-title{font-size:clamp(26px,2.25vw,35px);font-weight:500;line-height:1.18;color:#333;margin:0 0 16px}
.k4-product .woohern-rating--single{margin:0 0 20px}
.k4-product .k4-presentation-price{display:flex;align-items:baseline;justify-content:space-between;gap:16px;width:100%;margin:0 0 18px}
.k4-product .k4-presentation{flex:0 1 auto}
.k4-product .k4-price{flex:0 1 auto;margin-left:auto;text-align:right;font-weight:600;white-space:nowrap}
.k4-product .k4-excerpt{margin:18px 0 6px;color:#333}
.k4-product .k4-read-more{display:inline-block;color:#333;text-decoration:underline;text-underline-offset:3px;font-weight:500;text-transform:none}
.k4-product .k4-tabs,.k4-product .k4-related,.k4-product .k4-reviews,.k4-product .k4-recent{margin-top:46px;padding-top:32px;border-top:1px solid #e5e5e5}
.k4-product .k4-tabs__nav{display:flex;flex-wrap:wrap;align-items:center;gap:24px;margin-bottom:28px}
.k4-product .k4-tabs__link{display:inline-block;flex:none;background:none;border:0;box-shadow:none;padding:0;color:#888;font:inherit;font-size:15px;font-weight:400;letter-spacing:-.15px;text-decoration:none;text-transform:none;line-height:1.5}
.k4-product .k4-tabs__link.is-active{color:#333;text-decoration:underline;text-underline-offset:3px}
.k4-product .k4-tabs__link:hover{color:#333}
.k4-product .k4-tabs__panel,.k4-product .k4-tabs__panel p,.k4-product .k4-tabs__panel li{color:#333;font-family:inherit}
.k4-product .k4-tabs__panel h2{font-family:inherit;color:#333;margin:0 0 22px}
.k4-product .k4-tabs__panel[hidden]{display:none}
.k4-product .k4-related h2,.k4-product .k4-recent h2{font-size:23px;font-weight:600;color:#333;margin-bottom:20px}
@media(max-width:1024px){body.single-product .k4-product .k4-container{width:auto;margin-inline:16px}.k4-product .k4-top{gap:20px}}
@media(max-width:767px){.k4-product .k4-top{grid-template-columns:minmax(0,1fr)}.k4-product .k4-tabs__nav{gap:16px;flex-wrap:nowrap;overflow-x:auto}.k4-product .k4-tabs__link{white-space:nowrap}}

/* Recién vistos: cards propias, sin clases ni CSS de tarjetas WoodMart. */
.k4-product .k4-recent__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.k4-product .k4-recent__card{display:grid;grid-template-columns:116px minmax(0,1fr);gap:15px;align-items:start;min-width:0}
.k4-product .k4-recent__image{display:block;aspect-ratio:1/1;background:#fafafa;overflow:hidden}
.k4-product .k4-recent__image img{display:block;width:100%;height:100%;object-fit:contain}
.k4-product .k4-recent__details{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0;font-size:14px;line-height:1.45}
.k4-product .k4-recent__brand{color:#777;font-size:12px}
.k4-product .k4-recent__name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;color:#333;text-decoration:none;font-weight:400;overflow-wrap:anywhere}
.k4-product .k4-recent__name:hover{text-decoration:underline;text-underline-offset:3px}
.k4-product .k4-recent__rating{display:flex;flex-wrap:wrap;gap:6px;align-items:center;color:#111}
.k4-product .k4-recent__rating small{font-size:12px;color:#777}
.k4-product .k4-recent__price{display:block;color:#333;font-weight:600;white-space:normal}
.k4-product .k4-recent__price del{color:#aaa;font-size:12px;font-weight:400;margin-right:5px}
.k4-product .k4-recent__price ins{text-decoration:none;color:#f35;font-weight:600}
@media(max-width:1024px){.k4-product .k4-recent__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.k4-product .k4-recent__grid{grid-template-columns:1fr;gap:18px}.k4-product .k4-recent__card{grid-template-columns:100px minmax(0,1fr);gap:12px}}

/* Enlaces de breadcrumb y marca: sin subrayado hasta hover o foco. */
body.single-product .k4-product .k4-breadcrumb a,
body.single-product .k4-product .k4-brand a {color:inherit;text-decoration:none}
body.single-product .k4-product .k4-breadcrumb a:hover,
body.single-product .k4-product .k4-breadcrumb a:focus-visible,
body.single-product .k4-product .k4-brand a:hover,
body.single-product .k4-product .k4-brand a:focus-visible {text-decoration:underline;text-underline-offset:3px}

/* Estrellas SVG de Recién vistos, mismo trazado que WooHern. */
.k4-product .k4-recent__stars{display:inline-flex;align-items:center;gap:2px;line-height:0;white-space:nowrap}
.k4-product .k4-recent__star{position:relative;display:inline-block;flex:0 0 15px;width:15px;height:15px;color:#aaa;overflow:hidden}
.k4-product .k4-recent__star svg{display:block;width:15px;height:15px}
.k4-product .k4-recent__star-fill{position:absolute;inset:0 auto auto 0;height:15px;overflow:hidden;color:#000}

/* Precio actual Kore4n: tono rosa de marca, solo en ficha y Recién vistos. */
body.single-product .k4-product .k4-price .woocommerce-Price-amount.amount,
body.single-product .k4-product .k4-recent__price .woocommerce-Price-amount.amount {
  color: #ff5173;
}
/* Mantener el precio anterior tachado en gris. */
body.single-product .k4-product .k4-price del .woocommerce-Price-amount.amount,
body.single-product .k4-product .k4-recent__price del .woocommerce-Price-amount.amount {
  color: #999999;
}

/* Precio de ficha individual: 28 px; no afecta las cards Recién vistos. */
body.single-product .k4-product .k4-price,
body.single-product .k4-product .k4-price .woocommerce-Price-amount.amount {
  font-size: 28px;
  line-height: 1.2;
}

/* Barra de compra fija, independiente de la presentación de WoodMart. */
.k4-product .k4-sticky[hidden]{display:none}
.k4-product .k4-sticky{position:fixed;inset:auto 0 0;z-index:1100;background:#fff;border-top:1px solid #e5e5e5;box-shadow:0 -4px 22px rgba(0,0,0,.045);font-family:inherit;color:#333}
.k4-product .k4-sticky__inner{width:90%;margin-inline:auto;display:flex;align-items:center;gap:20px;padding:12px 0;min-height:84px}
.k4-product .k4-sticky__identity{display:flex;align-items:center;gap:16px;min-width:0;flex:1}
.k4-product .k4-sticky__image{width:60px;height:60px;object-fit:contain;flex:none;background:#fafafa}
.k4-product .k4-sticky__name{font-size:15px;font-weight:500;line-height:1.4;min-width:0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.k4-product .k4-sticky__price{margin-left:auto;font-size:17px;font-weight:600;white-space:nowrap}
.k4-product .k4-sticky__price .woocommerce-Price-amount.amount{color:#ff5173}
.k4-product .k4-sticky__price del .woocommerce-Price-amount.amount{color:#999;font-size:.8em}
.k4-product .k4-sticky__price ins{text-decoration:none}
.k4-product .k4-sticky__button{border:0;border-radius:999px;padding:13px 25px;min-height:44px;background:#171717;color:#fff;font:inherit;font-size:14px;font-weight:600;line-height:1.25;white-space:nowrap;cursor:pointer;text-transform:none}
.k4-product .k4-sticky__button:hover{background:#333;color:#fff}
.k4-product .k4-sticky__button:focus-visible{outline:2px solid #ff5173;outline-offset:3px}
@media (max-width:767px) {
  /* Ficha compacta, precio arriba y botón a todo lo ancho debajo. */
  body.single-product .k4-product .k4-sticky {
    border-top: 0;
    border-radius: 32px 32px 0 0;
    box-shadow: 0 -5px 24px rgba(0,0,0,.09);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  body.single-product .k4-product .k4-sticky__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-height: 0;
    gap: 16px;
    padding: 20px 16px 16px;
    box-sizing: border-box;
  }
  body.single-product .k4-product .k4-sticky__identity {display:none}
  body.single-product .k4-product .k4-sticky__price {
    width:100%;
    margin:0;
    font-size:19px;
    font-weight:600;
    line-height:1.35;
    text-align:left;
    white-space:normal;
  }
  body.single-product .k4-product button.k4-sticky__button {
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    min-height:48px;
    padding:12px 18px;
    margin:0;
    border:0;
    border-radius:999px;
    background:#171717;
    color:#fff;
    font:inherit;
    font-size:15px;
    font-weight:600;
    line-height:1.3;
    text-transform:none;
    box-shadow:none;
  }
}
