/* ==========================================================
   HUANCA + WOOCOMMERCE
   Fixed store/product styling. No Bevesi dependency.
   ========================================================== */

.huanca-wc-main { padding: 14px 0 60px; min-height:60vh; }
.huanca-wc-shell { position:relative; }
.woocommerce .woocommerce-breadcrumb { margin:0 0 12px; color:#77859a; font-size:11px; }
.woocommerce .woocommerce-breadcrumb a { color:#77859a; text-decoration:none; }
.woocommerce .woocommerce-breadcrumb a:hover { color:#436923; }
.woocommerce .woocommerce-result-count { color:#6b7280; font-size:12px; }
.woocommerce .woocommerce-ordering select { min-height:38px; padding:0 34px 0 12px; border:1px solid #e1e5e8; border-radius:8px; background:#fff; }
.woocommerce-notices-wrapper { margin-bottom:12px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border:1px solid #e1e6df; border-radius:10px; background:#fbfcfa; box-shadow:none; }

/* archive */
.woocommerce-products-header__title.page-title { margin:0 0 18px; font-size:30px; line-height:1.1; }
.woocommerce ul.products { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; margin:0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display:none; }
.woocommerce ul.products li.product { width:auto !important; float:none !important; margin:0 !important; }
.huanca-product-card { height:100%; padding:16px; display:flex; flex-direction:column; border:1px solid #e6e8e9; border-radius:9px; background:#fff; transition:border-color .18s, box-shadow .18s, transform .18s; }
.huanca-product-card:hover { border-color:#95c233; box-shadow:0 8px 24px rgba(46,70,32,.07); transform:translateY(-1px); }
.huanca-product-card__media { position:relative; }
.huanca-product-card__image-link { position:relative; display:block; aspect-ratio:1/1; overflow:hidden; border-radius:7px; background:#fff; }
.huanca-product-card__image { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; transition:opacity .22s, transform .28s; }
.huanca-product-card__image img { width:100% !important; height:100% !important; margin:0 !important; object-fit:contain; }
.huanca-product-card__image--secondary { opacity:0; }
.huanca-product-card:hover .huanca-product-card__image--secondary { opacity:1; }
.huanca-product-card:hover .huanca-product-card__image--primary:has(+ .huanca-product-card__image--secondary) { opacity:0; }
.huanca-sale-badge { position:absolute; top:0; left:0; z-index:3; padding:5px 8px; border-radius:5px; background:#fde5ea; color:#bd2545; font-size:10px; font-weight:800; }
.huanca-product-card__body { flex:1; display:flex; flex-direction:column; padding-top:10px; }
.huanca-product-card__rating { display:flex; align-items:center; gap:6px; min-height:17px; font-size:10px; color:#717d88; }
.huanca-product-card__rating .star-rating { float:none; margin:0; font-size:11px; }
.huanca-product-card__rating .star-rating span::before { color:#f59e0b; }
.woocommerce ul.products li.product .huanca-product-card__title { min-height:39px; margin:5px 0 0 !important; padding:0 !important; font-size:14px !important; font-weight:650; line-height:1.35; }
.huanca-product-card__title a { text-decoration:none; }
.huanca-product-card__price { margin-top:8px; color:#4b8327; font-size:16px; font-weight:800; }
.huanca-product-card__price del { margin-right:5px; color:#a2a7ac; font-size:12px; font-weight:500; }
.huanca-product-card__price ins { text-decoration:none; }
.huanca-product-card__cart { margin-top:auto; padding-top:11px; }
.woocommerce ul.products li.product .huanca-product-card__cart .button, .woocommerce ul.products li.product .huanca-product-card__cart .added_to_cart { width:100%; min-height:40px; margin:0; padding:0 12px; display:flex; align-items:center; justify-content:center; border-radius:999px; background:#edf6e4; color:#518625; font-size:12px; font-weight:800; text-align:center; text-decoration:none; transition:.15s; }
.woocommerce ul.products li.product .huanca-product-card__cart .button:hover { background:#78ad36; color:#fff; }
.woocommerce ul.products li.product .huanca-product-card__cart .added_to_cart { margin-top:5px; background:#315f26; color:#fff; }

/* single: bounded buying area + description below */
body.single-product .huanca-wc-main { padding-top:8px; }
body.single-product div.product { display:block; position:relative; }
body.single-product div.product::before, body.single-product div.product::after { display:none; }
body.single-product .huanca-product-top {
    display:grid;
    grid-template-columns:minmax(0,1.18fr) minmax(390px,.96fr) minmax(190px,.58fr);
    gap:38px;
    align-items:start;
    position:relative;
}
body.single-product div.product .woocommerce-product-gallery { grid-column:1; grid-row:1; width:auto !important; float:none !important; margin:0 !important; position:relative; }
body.single-product div.product .summary { grid-column:2; grid-row:1; width:auto !important; float:none !important; margin:4px 0 0 !important; }
.huanca-recently-viewed { grid-column:3; grid-row:1; min-width:0; padding-top:3px; }
.huanca-product-details, body.single-product .up-sells, body.single-product .related { width:100%; }

/* Gallery horizontal */
body.single-product .woocommerce-product-gallery__wrapper { margin:0; }
body.single-product .woocommerce-product-gallery .flex-viewport { border:1px solid #edf0f1; background:#fff; }
body.single-product .woocommerce-product-gallery__image { background:#fff; }
body.single-product .woocommerce-product-gallery__image a { display:flex; align-items:center; justify-content:center; min-height:560px; }
body.single-product .woocommerce-product-gallery__image img { width:100% !important; max-height:610px; object-fit:contain; }
body.single-product .woocommerce-product-gallery .flex-control-thumbs { display:flex; flex-wrap:wrap; gap:7px; margin:12px 0 0 !important; padding:0 !important; }
body.single-product .woocommerce-product-gallery .flex-control-thumbs li { width:68px !important; float:none !important; margin:0 !important; padding:3px; border:1px solid #d8dee3; border-radius:4px; background:#fff; cursor:pointer; }
body.single-product .woocommerce-product-gallery .flex-control-thumbs li:has(img.flex-active) { border-color:#111; }
body.single-product .woocommerce-product-gallery .flex-control-thumbs img { width:100%; height:61px; object-fit:contain; opacity:1 !important; }
body.single-product .woocommerce-product-gallery__trigger { top:14px !important; right:14px !important; z-index:10; }
body.single-product span.onsale { top:14px !important; left:14px !important; z-index:9; min-width:auto; min-height:auto; padding:5px 8px; border-radius:5px; background:#fde5ea; color:#bd2545; line-height:1.2; font-size:10px; }

/* summary */
.huanca-single-category { display:inline-block; margin:0 0 5px; color:#8794a7; font-size:10px; font-weight:600; text-decoration:none; }
body.single-product .summary .product_title { margin:0; color:#090e13; font-size:22px; font-weight:750; line-height:1.2; }
.huanca-single-meta-row { display:flex; flex-wrap:wrap; align-items:center; gap:11px; margin:7px 0 17px; }
.huanca-single-rating { display:flex; align-items:center; gap:6px; color:#5d6975; font-size:11px; text-decoration:none; }
.huanca-single-rating .star-rating { float:none; margin:0; font-size:12px; }
.huanca-single-rating .star-rating span::before { color:#f97316; }
.huanca-single-sku { color:#303d49; font-size:10px; font-weight:700; }
.huanca-single-sku > span { color:#788490; font-weight:500; }

/* Price card */
.huanca-price-card { margin:0 0 14px; overflow:hidden; border:1px solid #d9e4d1; border-radius:12px; background:#fff; box-shadow:0 6px 15px rgba(32,61,24,.05); }
.huanca-price-card__bar { min-height:38px; padding:0 13px; display:flex; align-items:center; justify-content:space-between; gap:12px; background:#315f26; color:#fff; border-bottom:3px solid #8cc63f; }
.huanca-price-card__bar strong { display:flex; align-items:center; gap:6px; font-size:11px; letter-spacing:.02em; }
.huanca-price-card__spark { width:19px; height:19px; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; background:#95c233; color:#fff; box-shadow:0 0 0 3px rgba(255,255,255,.13); font-size:10px; }
.huanca-price-card__stock { display:flex; align-items:center; gap:5px; font-size:9px; font-weight:800; }
.huanca-price-card__stock i { width:8px; height:8px; border-radius:50%; background:#a9e348; box-shadow:0 0 0 3px rgba(169,227,72,.12); }
.huanca-price-card__stock.is-unavailable i { background:#f87171; }
.huanca-price-card__body { padding:12px 14px 10px; }
.huanca-price-card__price-row { display:flex; justify-content:space-between; gap:20px; align-items:center; }
.huanca-price-card__caption { display:block; color:#6a747d; font-size:9px; font-weight:600; }
.huanca-price-card__current { margin-top:1px; color:#06152a; font-size:35px; font-weight:900; letter-spacing:-.04em; line-height:1; }
.huanca-price-card__current .woocommerce-Price-currencySymbol { margin-right:3px; }
.huanca-price-card__before { margin-top:3px; color:#a1a7ad; font-size:10px; text-decoration:none; }
.huanca-price-card__before .woocommerce-Price-amount { text-decoration:line-through; }
.huanca-price-card__saving { display:flex; flex-direction:column; align-items:flex-end; gap:5px; color:#69737d; font-size:9px; }
.huanca-price-card__saving strong { color:#138a4d; font-size:12px; }
.huanca-discount-pill { min-height:27px; padding:0 10px; display:inline-flex; align-items:center; gap:4px; border:1px solid #ffd3dc; border-radius:999px; background:#fff0f4; color:#e5224f; font-size:11px; font-weight:850; }
.huanca-discount-pill img { width:8px; height:16px; object-fit:contain; }
.huanca-installment-card { margin-top:11px; padding:10px 12px; display:flex; align-items:center; gap:11px; border:1px solid #dbe6cf; border-left:4px solid #95c233; border-radius:9px; background:#fbfdf9; }
.huanca-installment-card__icon { width:37px; height:29px; display:flex; align-items:center; justify-content:center; border-radius:5px; background:#315f26; }
.huanca-installment-card__icon span { width:25px; height:4px; border-radius:3px; background:#97ca42; box-shadow:0 7px 0 #fff; }
.huanca-installment-card__copy { min-width:0; line-height:1.15; }
.huanca-installment-card__copy > strong { display:block; color:#263526; font-size:10px; }
.huanca-installment-card__copy > div { margin-top:1px; font-size:10px; }
.huanca-installment-card__copy b { color:#04253c; font-size:19px; }
.huanca-installment-card__copy small { color:#313e47; font-size:8px; }
.huanca-bank-row { min-height:28px; margin-top:5px; display:flex; align-items:center; gap:9px; overflow:hidden; }
.huanca-bank-row > span { color:#737c84; font-size:8px; }
.huanca-bank-row img { width:auto; max-width:52px; max-height:19px; object-fit:contain; }

/* Short description: intentionally plain. The product editor controls its content and hierarchy. */
body.single-product .woocommerce-product-details__short-description { margin:0 0 16px; padding:0; border:0; border-radius:0; background:transparent; color:inherit; font-size:inherit; line-height:1.55; box-shadow:none; }
body.single-product .woocommerce-product-details__short-description > * { margin-top:0; margin-bottom:7px; }
body.single-product .woocommerce-product-details__short-description > *:last-child { margin-bottom:0; }
body.single-product .woocommerce-product-details__short-description strong, body.single-product .woocommerce-product-details__short-description b { color:inherit; }

/* Add to cart / packs integration */
body.single-product form.cart { margin:0 !important; }
body.single-product form.cart .quantity { display:none; }
body.single-product .single_add_to_cart_button { position:relative; overflow:visible !important; width:100%; min-height:64px; margin:0 !important; padding:9px 18px 8px !important; display:flex !important; flex-direction:column; align-items:center; justify-content:center; gap:3px; border:0 !important; border-radius:8px !important; background:#7bbd3b !important; color:#fff !important; font-size:19px !important; font-weight:850 !important; line-height:1.05 !important; box-shadow:0 4px 12px rgba(69,126,29,.12) !important; animation:huanca-cta-nudge 6.8s ease-in-out infinite; transition:background-color .18s ease, transform .18s ease, box-shadow .18s ease; }
body.single-product .single_add_to_cart_button::after { content:"Oferta limitada · no te quedes sin el tuyo"; display:block; margin:0; color:rgba(255,255,255,.94); font-size:10px; font-weight:650; line-height:1.15; letter-spacing:.01em; }
/* The whole CTA makes a brief, subtle nudge periodically; no floating pointer. */
body.single-product .single_add_to_cart_button:hover { background:#65a92d !important; box-shadow:0 6px 16px rgba(69,126,29,.18) !important; }
body.single-product .single_add_to_cart_button.is-loading { cursor:wait; animation:none; opacity:.78; }
body.single-product .single_add_to_cart_button.disabled, body.single-product .single_add_to_cart_button:disabled { animation:none; opacity:.55; }
@keyframes huanca-cta-nudge {
    0%, 70%, 100% { transform:translateX(0) scale(1); box-shadow:0 4px 12px rgba(69,126,29,.12); }
    72% { transform:translateX(-1px) scale(1.018); box-shadow:0 6px 18px rgba(69,126,29,.20); }
    74% { transform:translateX(1px) scale(1.018); }
    76% { transform:translateX(-1px) scale(1.012); }
    78% { transform:translateX(0) scale(1); box-shadow:0 4px 12px rgba(69,126,29,.12); }
}
@media (prefers-reduced-motion: reduce) {
    body.single-product .single_add_to_cart_button { animation:none; }
}

/* The side mini-cart is the confirmation. Never show WooCommerce's extra "Ver carrito" link under this CTA. */
body.single-product .summary a.added_to_cart.wc-forward,
body.single-product form.cart a.added_to_cart.wc-forward { display:none !important; }

/* Small trust row directly below the buying action. */
.huanca-purchase-trust { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:10px 0 2px; }
.huanca-purchase-trust__item { min-width:0; min-height:52px; padding:8px 9px; display:flex; align-items:center; gap:7px; border:1px solid #e7ebe4; border-radius:10px; background:#fbfcfa; color:#4c574b; }
.huanca-purchase-trust__item svg { width:20px; height:20px; flex:0 0 20px; fill:none; stroke:#5b8d31; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.huanca-purchase-trust__item > span { min-width:0; display:flex; flex-direction:column; gap:1px; line-height:1.15; }
.huanca-purchase-trust__item strong { overflow:hidden; color:#273226; font-size:10.5px; font-weight:820; white-space:nowrap; text-overflow:ellipsis; }
.huanca-purchase-trust__item small { overflow:hidden; color:#838b82; font-size:8.5px; font-weight:600; white-space:nowrap; text-overflow:ellipsis; }

/* Offers plugin visual integration */
body.single-product .huanca-pack-section { margin:14px 0 16px !important; }
body.single-product .huanca-pack-heading { margin-bottom:9px !important; }
body.single-product .huanca-pack-heading-title { font-size:14px !important; }
body.single-product .huanca-pack-eyebrow { font-size:9px !important; }
body.single-product .huanca-pack-heading-help { font-size:8px !important; }
body.single-product .h-pack-item { min-height:76px; border-radius:10px !important; }

/* recently viewed */
.huanca-recently-viewed h3 { margin:0 0 12px; font-size:12px; font-weight:800; }
.huanca-recently-viewed__list { display:flex; flex-direction:column; gap:9px; }
.huanca-recently-viewed__item { min-width:0; padding:5px 4px; display:grid; grid-template-columns:48px 1fr; gap:8px; align-items:center; border-radius:9px; text-decoration:none; transition:background-color .15s ease; }
.huanca-recently-viewed__item:hover { background:#f7f9f5; }
.huanca-recently-viewed__image { width:48px; height:56px; display:flex; align-items:center; justify-content:center; border-radius:7px; background:#fff; overflow:hidden; }
.huanca-recently-viewed__image img { width:46px; height:54px; object-fit:contain; }
.huanca-recently-viewed__body { min-width:0; }
.huanca-recently-viewed__body strong { display:-webkit-box; overflow:hidden; color:#232b31; font-size:9.5px; font-weight:550; line-height:1.3; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.huanca-recently-viewed__price { display:block; margin-top:4px; color:#109245; font-size:12px; font-weight:850; line-height:1.1; }
.huanca-recently-viewed__price del { margin-left:2px; color:#aab0b5; font-size:8px; font-weight:500; }
.huanca-recently-viewed__price ins { text-decoration:none; }

/* centered product details */
.huanca-product-details { width:min(100%,920px); margin:42px auto 8px; border-top:1px solid #e8ebed; }
.huanca-product-detail { border-bottom:1px solid #e8ebed; }
.huanca-product-detail summary { min-height:54px; padding:0 5px; display:flex; align-items:center; justify-content:space-between; gap:15px; list-style:none; cursor:pointer; font-size:14px; font-weight:750; }
.huanca-product-detail summary::-webkit-details-marker { display:none; }
.huanca-product-detail summary em { color:#89939c; font-size:11px; font-style:normal; font-weight:600; }
.huanca-product-detail summary i { position:relative; width:18px; height:18px; }
.huanca-product-detail summary i::before, .huanca-product-detail summary i::after { content:""; position:absolute; top:8px; left:3px; width:12px; height:1.5px; background:#34414b; transition:.2s; }
.huanca-product-detail summary i::after { transform:rotate(90deg); }
.huanca-product-detail[open] summary i::after { transform:rotate(0); opacity:0; }
.huanca-product-detail__content { padding:2px 5px 24px; color:#4b5563; font-size:13px; line-height:1.7; }
.huanca-product-detail__content > *:first-child { margin-top:0; }
.huanca-product-detail__content > *:last-child { margin-bottom:0; }
.huanca-product-description img { height:auto; }
.huanca-product-details table.shop_attributes { width:100%; border-collapse:collapse; }
.huanca-product-details table.shop_attributes th, .huanca-product-details table.shop_attributes td { padding:9px 10px; border-bottom:1px solid #eef0f1; text-align:left; font-size:12px; }
.huanca-product-reviews .woocommerce-Reviews { padding:0 !important; }
.huanca-product-reviews #comments h2 { font-size:15px; }
.huanca-product-reviews .commentlist { padding-left:0 !important; }

/* related */
body.single-product .related.products, body.single-product .up-sells { margin-top:34px; }
body.single-product .related.products > h2, body.single-product .up-sells > h2 { margin-bottom:17px; font-size:20px; }

/* mini cart drawer integration */
.huanca-mini-cart-body .woocommerce-mini-cart { list-style:none; margin:0; padding:0; }
.huanca-mini-cart-body .woocommerce-mini-cart__empty-message { padding:28px 0; text-align:center; color:#7b858d; }
.huanca-mini-cart-body .mi-contenedor-carrito-custom { padding:0 !important; }
.huanca-mini-cart-body .producto-custom-card { border-color:#e3e6e8 !important; box-shadow:none !important; }
.huanca-mini-cart-body .btn-finalizar-huanca { background:#315f26 !important; }

/* account/forms basics */
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { min-height:44px; border:1px solid #dde2e5; border-radius:8px; padding:10px 12px; }
.woocommerce button.button, .woocommerce a.button, .woocommerce input.button { border-radius:8px; }

@media (max-width: 1200px) {
    body.single-product .huanca-product-top { grid-template-columns:minmax(0,1.1fr) minmax(370px,.95fr); gap:30px; }
    .huanca-recently-viewed { display:none; }
}

@media (max-width: 900px) {
    .woocommerce ul.products { grid-template-columns:repeat(3,minmax(0,1fr)); }
    body.single-product .huanca-product-top { grid-template-columns:1fr; gap:18px; }
    body.single-product div.product .woocommerce-product-gallery, body.single-product div.product .summary, .huanca-product-details, body.single-product .up-sells, body.single-product .related { grid-column:1; grid-row:auto; }
    body.single-product .woocommerce-product-gallery__image a { min-height:420px; }
}

@media (max-width: 600px) {
    .huanca-wc-main { padding-top:7px; }
    .woocommerce .woocommerce-breadcrumb { margin-bottom:8px; font-size:9px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .woocommerce ul.products { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
    .huanca-product-card { padding:8px; border-color:#eef0f1; }
    .huanca-product-card:hover { transform:none; box-shadow:none; }
    .woocommerce ul.products li.product .huanca-product-card__title { min-height:37px; font-size:12px !important; }
    .huanca-product-card__price { font-size:14px; }
    .huanca-product-card__cart { padding-top:8px; }
    .woocommerce ul.products li.product .huanca-product-card__cart .button { min-height:36px; font-size:10px; }
    body.single-product .huanca-product-top { gap:13px; }
    body.single-product .woocommerce-product-gallery__image a { min-height:330px; }
    body.single-product .woocommerce-product-gallery__image img { max-height:390px; }
    body.single-product .woocommerce-product-gallery .flex-control-thumbs { flex-wrap:nowrap; overflow-x:auto; padding-bottom:2px !important; }
    body.single-product .woocommerce-product-gallery .flex-control-thumbs li { flex:0 0 58px; width:58px !important; }
    body.single-product .woocommerce-product-gallery .flex-control-thumbs img { height:52px; }
    body.single-product .summary .product_title { font-size:19px; }
    .huanca-single-meta-row { margin-bottom:12px; }
    .huanca-price-card__current { font-size:31px; }
    .huanca-price-card__price-row { gap:10px; }
    .huanca-bank-row { gap:6px; }
    .huanca-bank-row img { max-width:44px; max-height:17px; }
    body.single-product .single_add_to_cart_button { min-height:61px; font-size:18px !important; }
    body.single-product .single_add_to_cart_button::after { font-size:9px; }
    .huanca-product-details { width:100%; margin-top:26px; }
    .huanca-product-detail summary { min-height:50px; font-size:13px; }
    .huanca-product-detail__content { padding-inline:0; font-size:12px; }
}


/* ==========================================================
   HUANCA 1.0.2 — PRODUCT REFINEMENTS
   ========================================================== */

/* Desktop only: keep the gallery visible inside the buying area.
   Because .huanca-product-top ends before .huanca-product-details, sticky
   releases exactly when the description section begins. */
@media (min-width: 901px) {
    body.single-product div.product .woocommerce-product-gallery {
        position: sticky !important;
        top: 18px;
        align-self: start;
        z-index: 2;
    }

    body.single-product .woocommerce-product-gallery__image a {
        min-height: clamp(430px, calc(100vh - 185px), 570px);
    }

    body.single-product .woocommerce-product-gallery__image img {
        max-height: clamp(460px, calc(100vh - 150px), 620px);
    }
}

/* Gallery polish */
body.single-product .woocommerce-product-gallery .flex-viewport {
    overflow: hidden;
    border-radius: 10px;
}
body.single-product .woocommerce-product-gallery .flex-control-thumbs {
    scrollbar-width: thin;
    scrollbar-color: #cbd2d8 transparent;
}
body.single-product .woocommerce-product-gallery .flex-control-thumbs li {
    transition: border-color .16s ease, transform .16s ease;
}
body.single-product .woocommerce-product-gallery .flex-control-thumbs li:hover {
    border-color: #7f8a92;
}
body.single-product .woocommerce-product-gallery .flex-control-thumbs li:has(img.flex-active) {
    border-color: #111 !important;
    box-shadow: 0 0 0 1px #111 inset;
}

/* CTA hierarchy: action first, urgency second. */
body.single-product .single_add_to_cart_button {
    min-height: 68px;
    border-radius: 9px !important;
    font-size: 20px !important;
    letter-spacing: -.01em;
}
body.single-product .single_add_to_cart_button::after {
    content: "Oferta limitada · no te quedes sin el tuyo";
    font-size: 10.5px;
    font-weight: 650;
}

/* MOBILE PRODUCT EXPERIENCE */
@media (max-width: 600px) {
    body.single-product .huanca-wc-main {
        padding-top: 5px;
        padding-bottom: 38px;
    }

    body.single-product .huanca-wc-shell {
        width: calc(100% - 16px);
    }

    body.single-product .huanca-product-top {
        gap: 12px;
    }

    body.single-product div.product .woocommerce-product-gallery {
        position: relative !important;
        top: auto;
        width: 100% !important;
    }

    body.single-product .woocommerce-product-gallery .flex-viewport {
        border-color: #e8ecef;
        border-radius: 10px;
    }

    body.single-product .woocommerce-product-gallery__image a {
        min-height: 0;
        aspect-ratio: 1 / 1;
        padding: 6px;
    }

    body.single-product .woocommerce-product-gallery__image img {
        width: 100% !important;
        height: 100% !important;
        max-height: none;
        object-fit: contain;
    }

    body.single-product .woocommerce-product-gallery .flex-control-thumbs {
        flex-wrap: nowrap;
        gap: 7px;
        margin-top: 8px !important;
        padding: 0 0 3px !important;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    body.single-product .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar {
        display: none;
    }

    body.single-product .woocommerce-product-gallery .flex-control-thumbs li {
        flex: 0 0 62px;
        width: 62px !important;
        padding: 3px;
        border-radius: 6px;
        scroll-snap-align: start;
    }

    body.single-product .woocommerce-product-gallery .flex-control-thumbs img {
        height: 55px;
    }

    body.single-product .woocommerce-product-gallery__trigger {
        top: 10px !important;
        right: 10px !important;
    }

    body.single-product span.onsale {
        top: 10px !important;
        left: 10px !important;
    }

    body.single-product div.product .summary {
        margin-top: 2px !important;
    }

    .huanca-single-category {
        margin-bottom: 4px;
        font-size: 9px;
    }

    body.single-product .summary .product_title {
        font-size: 20px;
        line-height: 1.22;
        letter-spacing: -.015em;
    }

    .huanca-single-meta-row {
        gap: 9px;
        margin: 7px 0 12px;
    }

    .huanca-single-rating,
    .huanca-single-sku {
        font-size: 9.5px;
    }

    .huanca-price-card {
        margin-bottom: 12px;
        border-radius: 11px;
        box-shadow: 0 4px 12px rgba(32,61,24,.045);
    }

    .huanca-price-card__bar {
        min-height: 35px;
        padding-inline: 11px;
    }

    .huanca-price-card__bar strong {
        font-size: 10px;
    }

    .huanca-price-card__stock {
        font-size: 8px;
    }

    .huanca-price-card__body {
        padding: 11px 12px 9px;
    }

    .huanca-price-card__price-row {
        align-items: end;
        gap: 8px;
    }

    .huanca-price-card__current {
        font-size: 32px;
    }

    .huanca-price-card__saving {
        padding-bottom: 1px;
    }

    .huanca-discount-pill {
        min-height: 25px;
        padding-inline: 8px;
        font-size: 10px;
    }

    .huanca-installment-card {
        margin-top: 10px;
        padding: 9px 10px;
        gap: 9px;
    }

    .huanca-installment-card__icon {
        width: 34px;
        height: 28px;
    }

    .huanca-installment-card__copy b {
        font-size: 18px;
    }

    .huanca-bank-row {
        min-height: 26px;
        gap: 6px;
        overflow: visible;
        flex-wrap: wrap;
    }

    .huanca-bank-row img {
        max-width: 45px;
        max-height: 17px;
    }

    body.single-product .woocommerce-product-details__short-description {
        margin-bottom: 13px;
        font-size: 13px;
        line-height: 1.5;
    }

    body.single-product .huanca-pack-section {
        margin: 12px 0 14px !important;
    }

    body.single-product .h-pack-item {
        min-height: 72px;
    }

    body.single-product .single_add_to_cart_button {
        min-height: 66px;
        padding: 9px 14px 8px !important;
        border-radius: 9px !important;
        font-size: 19px !important;
        box-shadow: 0 5px 14px rgba(69,126,29,.15) !important;
    }

    body.single-product .single_add_to_cart_button::after {
        font-size: 9.5px;
    }

    .huanca-product-details {
        margin-top: 24px;
        border-top-color: #e6e9eb;
    }

    .huanca-product-detail summary {
        min-height: 52px;
        padding-inline: 2px;
        font-size: 13.5px;
    }

    .huanca-product-detail__content {
        padding: 1px 0 21px;
        font-size: 13px;
        line-height: 1.65;
    }

    body.single-product .related.products,
    body.single-product .up-sells {
        margin-top: 28px;
    }

    body.single-product .related.products > h2,
    body.single-product .up-sells > h2 {
        margin-bottom: 13px;
        font-size: 18px;
    }
}

@media (max-width: 380px) {
    body.single-product .huanca-wc-shell {
        width: calc(100% - 12px);
    }

    .huanca-price-card__current {
        font-size: 29px;
    }

    .huanca-bank-row img {
        max-width: 41px;
    }
}


/* ==========================================================
   HUANCA 1.0.4 — TARJETA DE PRECIO (DISEÑO SUMINISTRADO)
   ========================================================== */
/* =========================================================
   OCULTAR PRECIO ORIGINAL
========================================================= */

.single-product-wrapper .product-price-wrapper {

	display: none !important;
}


div.summary .pls-product-discount-label {

	display: none !important;
}



/* =========================================================
   TARJETA PRINCIPAL
========================================================= */

.single-product .huanca-price-card {

	position: relative;

	width: 100%;

	max-width: 100%;

	margin:
		0
		0
		14px
		0;

	background: #ffffff;

	border:
		1px solid
		#dfe5da;

	border-radius: 14px;

	overflow: hidden;

	font-family: inherit;

	box-sizing: border-box;

	box-shadow:

		0 1px 2px
		rgba(0,0,0,.025),

		0 5px 18px
		rgba(25,55,20,.045);
}



/* =========================================================
   CABECERA
========================================================= */

.single-product .huanca-price-card-header {

	min-height: 38px;

	padding:
		8px
		14px;

	display: flex;

	align-items: center;

	justify-content: space-between;

	gap: 10px;

	background:

		linear-gradient(
			135deg,
			#213b22 0%,
			#315330 100%
		);

	border-bottom:
		3px solid
		#95c233;

	box-sizing: border-box;
}



/* OFERTA HUANCA */

.single-product .huanca-offer-title {

	display: inline-flex;

	align-items: center;

	gap: 7px;

	font-size: 11px;

	line-height: 1;

	font-weight: 800;

	letter-spacing: .5px;

	color: #ffffff;

	white-space: nowrap;
}


.single-product .huanca-offer-flash {

	display: inline-flex;

	align-items: center;

	justify-content: center;

	width: 18px;

	height: 18px;

	background: #95c233;

	border-radius: 50%;

	font-size: 9px;

	color: #ffffff;

	box-shadow:

		0 0 0 3px
		rgba(149,194,51,.15);
}



/* =========================================================
   STOCK
========================================================= */

.single-product .huanca-stock-text {

	position: relative;

	display: inline-flex;

	align-items: center;

	padding-left: 13px;

	font-size: 10px;

	line-height: 1;

	font-weight: 750;

	letter-spacing: .15px;

	color: #ffffff;

	white-space: nowrap;
}


.single-product .huanca-stock-text::before {

	content: "";

	position: absolute;

	left: 0;

	top: 50%;

	width: 7px;

	height: 7px;

	transform:
		translateY(-50%);

	border-radius: 50%;

	background: #a9d94f;

	box-shadow:

		0 0 0 3px
		rgba(169,217,79,.14);
}


.single-product .huanca-stock-low::before {

	background: #ffd25c;
}


.single-product .huanca-stock-out::before {

	background: #ff7070;
}



/* =========================================================
   CUERPO
========================================================= */

.single-product .huanca-price-card-body {

	padding:
		13px
		14px
		14px;

	box-sizing: border-box;
}



/* =========================================================
   ÁREA DEL PRECIO
========================================================= */

.single-product .huanca-price-area {

	display: flex;

	align-items: center;

	justify-content: space-between;

	gap: 15px;
}


.single-product .huanca-price-left {

	min-width: 0;
}


.single-product .huanca-price-label {

	margin-bottom: 3px;

	font-size: 10.5px;

	line-height: 1;

	font-weight: 600;

	color: #777d75;
}



/* PRECIO GRANDE */

.single-product .huanca-price-main {

	line-height: 1;
}


.single-product .huanca-price-main
.woocommerce-Price-amount {

	display: inline-block;

	font-size: 35px;

	line-height: 1;

	font-weight: 850;

	letter-spacing: -.9px;

	color: #111111;

	white-space: nowrap;
}


.single-product .huanca-price-main
.woocommerce-Price-currencySymbol {

	margin-right: 2px;
}



/* =========================================================
   PRECIO ANTERIOR
========================================================= */

.single-product .huanca-regular-price {

	display: flex;

	align-items: center;

	gap: 4px;

	margin-top: 4px;

	font-size: 11.5px;

	line-height: 1;

	color: #a1a1a1;

	white-space: nowrap;
}


.single-product .huanca-regular-price
.woocommerce-Price-amount {

	text-decoration: line-through;
}


.single-product .huanca-before-label {

	font-size: 10px;

	color: #999f98;

	text-decoration: none !important;
}



/* =========================================================
   DESCUENTO
========================================================= */

.single-product .huanca-price-right {

	display: flex;

	align-items: center;

	flex-shrink: 0;
}


.single-product .huanca-offer-info {

	display: flex;

	flex-direction: column;

	align-items: flex-end;

	gap: 5px;
}



/* -20% */

.single-product .huanca-discount-percent {

	position: relative;

	display: inline-flex;

	align-items: center;

	justify-content: center;

	min-width: 58px;

	padding:
		6px
		10px
		6px
		28px;

	background: #ffe9ed;

	border:
		1px solid
		#ffd3db;

	border-radius: 999px;

	font-size: 13px;

	line-height: 1;

	font-weight: 850;

	color: #e51c42;

	box-sizing: border-box;
}


.single-product .huanca-discount-percent::before {

	content: "";

	position: absolute;

	left: 8px;

	top: 50%;

	transform: translateY(-50%);

	width: 14px;

	height: 14px;

	background-image:
		url('https://huanca.pe/wp-content/uploads/2025/12/24x48.webp');

	background-size: contain;

	background-position: center;

	background-repeat: no-repeat;
}
	
	



/* AHORRAS */

.single-product .huanca-saving {

	font-size: 11px;

	line-height: 1.2;

	font-weight: 600;

	color: #5f655d;

	white-space: nowrap;
}


.single-product .huanca-saving strong {

	font-size: 13px;

	font-weight: 800;

	color: #2c762f;
}



/* =========================================================
   PAGO FÁCIL Y SEGURO
========================================================= */

.single-product .huanca-payment-note {
    position: relative;
    margin-top: 13px;
    padding: 10px 12px 10px 11px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #dfe9d5;
    border-radius: 11px;
    background: linear-gradient(135deg,#f7faf3 0%,#fbfcf9 100%);
    overflow: hidden;
}

.single-product .huanca-payment-note::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #95c233;
}

.single-product .huanca-payment-note__icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #eef5e7;
    color: #315f26;
}

.single-product .huanca-payment-note__icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.single-product .huanca-payment-note__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.25;
}

.single-product .huanca-payment-note__copy strong {
    color: #263526;
    font-size: 11.5px;
    font-weight: 820;
}

.single-product .huanca-payment-note__copy span {
    color: #687066;
    font-size: 10.5px;
    font-weight: 600;
}

/* =========================================================
   HOVER ESCRITORIO
========================================================= */

@media (hover:hover) {

	.single-product .huanca-price-card {

		transition:

			border-color .18s ease,
			box-shadow .18s ease;
	}


	.single-product .huanca-price-card:hover {

		border-color: #d2ddca;

		box-shadow:

			0 2px 3px
			rgba(0,0,0,.025),

			0 8px 22px
			rgba(25,55,20,.065);
	}
}



/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

	.single-product .huanca-price-card {

		border-radius: 12px;
	}


	.single-product .huanca-price-card-header {

		min-height: 36px;

		padding:
			8px
			12px;
	}


	.single-product .huanca-price-card-body {

		padding:
			12px
			12px
			13px;
	}


	.single-product .huanca-price-area {

		gap: 9px;
	}


	.single-product .huanca-price-main
	.woocommerce-Price-amount {

		font-size: 33px;
	}



	.single-product .huanca-discount-percent {

		font-size: 12px;

		padding:
			5px
			9px
			5px
			25px;
	}


	.single-product .huanca-discount-percent::before {

		left: 7px;

		width: 13px;

		height: 13px;
	}



	.single-product .huanca-saving {

		font-size: 10px;
	}


	.single-product .huanca-saving strong {

		font-size: 12px;
	}


	.single-product .huanca-payment-note {
		margin-top: 12px;
		padding: 9px 10px 9px 11px;
		gap: 9px;
	}

	.single-product .huanca-payment-note__icon {
		width: 32px;
		height: 32px;
		flex-basis: 32px;
	}

	.single-product .huanca-payment-note__copy strong {
		font-size: 11px;
	}

	.single-product .huanca-payment-note__copy span {
		font-size: 10px;
	}

}



/* =========================================================
   CELULARES PEQUEÑOS
========================================================= */

@media (max-width: 380px) {


	.single-product .huanca-price-main
	.woocommerce-Price-amount {

		font-size: 30px;
	}


	.single-product .huanca-price-label {

		font-size: 9.5px;
	}


	.single-product .huanca-saving {

		font-size: 9.5px;
	}


	.single-product .huanca-saving strong {

		font-size: 11px;
	}


	.single-product .huanca-stock-text {

		font-size: 9px;
	}


	.single-product .huanca-offer-title {

		font-size: 10px;
	}


	.single-product .huanca-credit-card-icon {

		flex-basis: 32px;

		width: 32px;

		height: 24px;
	}


	.single-product .huanca-bank-label {

		display: none;
	}


	.single-product .huanca-bank-row {

		justify-content: flex-start;
	}

}

/* Ocultar únicamente el stock estándar que WooCommerce imprime antes de los packs.
   El stock de la cabecera de la tarjeta premium se mantiene. */
body.single-product div.product .summary > p.stock,
body.single-product div.product .summary > .stock {
    display: none !important;
}

/* ==========================================================
   HUANCA 1.0.6 — DESCRIPTION + REVIEWS
   ========================================================== */

/* Rating next to the title: clearer marketplace-style hierarchy. */
.huanca-single-rating {
    min-height: 28px;
    padding: 4px 9px 4px 7px;
    gap: 7px;
    border: 1px solid #ece7dc;
    border-radius: 999px;
    background: #fffdf8;
    color: #374151;
    font-size: 11px;
    font-weight: 700;
}
.huanca-single-rating .star-rating {
    float: none;
    margin: 0;
    font-size: 13px;
}
.huanca-single-rating .star-rating::before,
.huanca-single-rating .star-rating span::before {
    color: #ffb400;
}
.huanca-single-rating > span:last-child::after {
    content: " reseñas";
    color: #7b8490;
    font-weight: 600;
}

/* Description is permanently open and has no artificial heading. */
.huanca-product-details {
    width: min(100%, 1040px);
    margin: 38px auto 8px;
    border-top: 0;
}
.huanca-product-description--always {
    width: min(100%, 920px);
    margin: 0 auto;
    padding: 0 0 34px;
    color: #343b43;
    font-size: 14px;
    line-height: 1.75;
}
.huanca-product-description--always > *:first-child { margin-top: 0; }
.huanca-product-description--always > *:last-child { margin-bottom: 0; }
.huanca-product-description--always h2,
.huanca-product-description--always h3,
.huanca-product-description--always h4 {
    margin-top: 26px;
    margin-bottom: 10px;
    color: #151a1f;
    line-height: 1.25;
}
.huanca-product-detail--attributes {
    width: min(100%, 920px);
    margin: 0 auto;
    border-top: 1px solid #eceff0;
}

/* Reviews area inspired by large marketplaces, but kept Huanca-clean. */
.huanca-reviews-section {
    width: 100%;
    margin: 34px auto 0;
    padding-top: 36px;
    border-top: 1px solid #e8ecee;
}
.huanca-reviews-section > h2 {
    margin: 0 0 24px;
    color: #171b20;
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 850;
    line-height: 1.15;
    text-align: center;
    letter-spacing: -.025em;
}
.huanca-review-overview {
    display: grid;
    grid-template-columns: minmax(190px, .85fr) minmax(320px, 1.4fr) minmax(190px, .8fr);
    align-items: center;
    gap: 34px;
    width: min(100%, 980px);
    margin: 0 auto 22px;
    padding: 24px 26px;
    border: 1px solid #e8ece8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 7px 28px rgba(21, 35, 18, .045);
}
.huanca-review-overview__score {
    min-width: 0;
    padding-right: 28px;
    border-right: 1px solid #edf0ed;
}
.huanca-review-big-stars .star-rating {
    float: none;
    width: 6.1em;
    margin: 0 0 8px;
    font-size: 20px;
}
.huanca-review-big-stars .star-rating::before,
.huanca-review-big-stars .star-rating span::before,
.huanca-review-card__stars .star-rating::before,
.huanca-review-card__stars .star-rating span::before {
    color: #ffb400;
}
.huanca-review-score-line {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.huanca-review-score-line strong {
    color: #171b20;
    font-size: 27px;
    font-weight: 900;
    letter-spacing: -.04em;
}
.huanca-review-score-line span {
    color: #5e6770;
    font-size: 13px;
    font-weight: 650;
}
.huanca-review-overview__score small {
    display: block;
    margin-top: 2px;
    color: #7a838c;
    font-size: 12px;
}
.huanca-review-overview__distribution {
    display: grid;
    gap: 6px;
}
.huanca-rating-bar-row {
    display: grid;
    grid-template-columns: 82px minmax(100px, 1fr) 26px;
    align-items: center;
    gap: 9px;
    min-height: 20px;
}
.huanca-rating-bar-row__stars {
    color: #ffb400;
    font-size: 14px;
    line-height: 1;
    letter-spacing: .5px;
    white-space: nowrap;
}
.huanca-rating-bar-row__track {
    position: relative;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef0ee;
}
.huanca-rating-bar-row__track i {
    position: absolute;
    inset: 0 auto 0 0;
    display: block;
    border-radius: inherit;
    background: #95c233;
}
.huanca-rating-bar-row__count {
    color: #777f87;
    font-size: 11px;
    text-align: right;
}
.huanca-review-overview__action {
    display: flex;
    justify-content: flex-end;
}
.huanca-write-review-button {
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    background: #95c233;
    color: #fff;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(83, 126, 31, .15);
    transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.huanca-write-review-button:hover {
    background: #83b12d;
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(83, 126, 31, .20);
}

.huanca-review-list {
    width: min(100%, 1080px);
    margin: 0 auto;
    border-top: 1px solid #edf0f1;
}
.huanca-review-card {
    padding: 20px 4px 21px;
    border-bottom: 1px solid #edf0f1;
}
.huanca-review-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.huanca-review-card__stars .star-rating {
    float: none;
    margin: 0;
    font-size: 15px;
}
.huanca-review-card__top time {
    flex: 0 0 auto;
    color: #8a9299;
    font-size: 11px;
}
.huanca-review-card__customer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.huanca-review-card__avatar {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eff6e8;
    color: #4f7926;
    font-size: 11px;
    font-weight: 900;
}
.huanca-review-card__customer > strong {
    color: #22272c;
    font-size: 13px;
    font-weight: 800;
}
.huanca-verified-review {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 21px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #e8f8ec;
    color: #1b8b47;
    font-size: 10px;
    font-weight: 800;
}
.huanca-verified-review > span {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #2ac86c;
    color: #fff;
    font-size: 9px;
}
.huanca-review-card__content {
    margin-top: 11px;
    color: #3e454c;
    font-size: 13.5px;
    line-height: 1.7;
}
.huanca-review-card__content p { margin: 0 0 8px; }
.huanca-review-card__content p:last-child { margin-bottom: 0; }
.huanca-review-no-rating {
    color: #7a838c;
    font-size: 11px;
    font-weight: 700;
}
.huanca-review-empty {
    padding: 30px 4px;
    color: #7a838c;
    font-size: 13px;
    text-align: center;
    border-bottom: 1px solid #edf0f1;
}

.huanca-review-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 18px auto 0;
}
.huanca-review-pagination a,
.huanca-review-pagination span {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #6b737b;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}
.huanca-review-pagination a:hover {
    background: #f3f6ef;
    color: #587d28;
}
.huanca-review-pagination .is-current {
    background: #edf5e5;
    color: #5d8729;
}
.huanca-review-pagination__arrow {
    font-size: 18px !important;
}

/* Review form starts hidden and opens only when requested. */
.huanca-review-form {
    width: min(100%, 720px);
    margin: 24px auto 0;
    padding: 22px;
    border: 1px solid #e5e9e4;
    border-radius: 16px;
    background: #fbfcfa;
}
.huanca-review-form[hidden] { display: none !important; }
.huanca-review-form .comment-reply-title {
    display: block;
    margin: 0 0 16px;
    color: #1d2329;
    font-size: 18px;
    font-weight: 850;
}
.huanca-review-form form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}
.huanca-review-form form > p { margin: 0; }
.huanca-review-form .comment-form-rating,
.huanca-review-form .comment-form-comment,
.huanca-review-form .form-submit,
.huanca-review-form .logged-in-as,
.huanca-review-form .comment-notes {
    grid-column: 1 / -1;
}
.huanca-review-form label {
    display: block;
    margin: 0 0 5px;
    color: #343b42;
    font-size: 12px;
    font-weight: 750;
}
.huanca-review-form input[type="text"],
.huanca-review-form input[type="email"],
.huanca-review-form select,
.huanca-review-form textarea {
    width: 100%;
    border: 1px solid #dfe4e6;
    border-radius: 9px;
    background: #fff;
    color: #20262c;
    outline: 0;
}
.huanca-review-form input[type="text"],
.huanca-review-form input[type="email"],
.huanca-review-form select {
    min-height: 43px;
    padding: 0 11px;
}
.huanca-review-form textarea {
    min-height: 130px;
    padding: 11px;
    resize: vertical;
}
.huanca-review-form input:focus,
.huanca-review-form select:focus,
.huanca-review-form textarea:focus {
    border-color: rgba(149, 194, 51, .9);
    box-shadow: 0 0 0 3px rgba(149, 194, 51, .10);
}
.huanca-review-submit {
    min-height: 44px !important;
    padding: 0 20px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: #315f26 !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    cursor: pointer;
}

@media (max-width: 767px) {
    .huanca-single-rating {
        min-height: 27px;
        padding: 4px 8px;
        font-size: 10px;
    }
    .huanca-single-rating .star-rating { font-size: 12px; }

    .huanca-product-details {
        width: 100%;
        margin-top: 28px;
    }
    .huanca-product-description--always {
        width: 100%;
        padding-bottom: 27px;
        font-size: 13px;
        line-height: 1.68;
    }
    .huanca-reviews-section {
        margin-top: 24px;
        padding-top: 28px;
    }
    .huanca-reviews-section > h2 {
        margin-bottom: 17px;
        font-size: 21px;
        text-align: left;
    }
    .huanca-review-overview {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 14px;
        padding: 18px 16px;
        border-radius: 14px;
    }
    .huanca-review-overview__score {
        padding-right: 0;
        padding-bottom: 15px;
        border-right: 0;
        border-bottom: 1px solid #edf0ed;
    }
    .huanca-review-big-stars .star-rating {
        margin-bottom: 6px;
        font-size: 18px;
    }
    .huanca-review-score-line strong { font-size: 25px; }
    .huanca-rating-bar-row {
        grid-template-columns: 76px minmax(80px, 1fr) 22px;
        gap: 7px;
    }
    .huanca-rating-bar-row__stars { font-size: 13px; }
    .huanca-review-overview__action { justify-content: stretch; }
    .huanca-write-review-button { width: 100%; min-height: 44px; }
    .huanca-review-card { padding: 17px 0 18px; }
    .huanca-review-card__top time { font-size: 10px; }
    .huanca-review-card__content { font-size: 13px; }
    .huanca-review-form {
        margin-top: 18px;
        padding: 16px 13px;
        border-radius: 13px;
    }
    .huanca-review-form form { grid-template-columns: 1fr; }
    .huanca-review-form form > p { grid-column: 1 / -1; }
}
.huanca-single-rating__score { color:#1f2933; font-size:12px; font-weight:850; }
.huanca-single-rating__count { color:#69737d; font-weight:650; }
.huanca-single-rating > span:last-child::after { content:none !important; }

/* v1.0.7 purchase confidence refinements */
@media (max-width: 767px) {
    .huanca-purchase-trust { gap:5px; margin-top:9px; }
    .huanca-purchase-trust__item { min-height:47px; padding:7px 6px; gap:5px; border-radius:9px; }
    .huanca-purchase-trust__item svg { width:17px; height:17px; flex-basis:17px; }
    .huanca-purchase-trust__item strong { font-size:9px; }
    .huanca-purchase-trust__item small { display:none; }
}
@media (max-width: 380px) {
    .huanca-purchase-trust__item {
        min-height: 56px;
        padding: 6px 4px;
        flex-direction: column;
        justify-content: center;
        gap: 3px;
        text-align: center;
    }
    .huanca-purchase-trust__item > span {
        display: flex;
        align-items: center;
        width: 100%;
    }
    .huanca-purchase-trust__item strong {
        display: block;
        width: 100%;
        overflow: visible;
        font-size: 8px;
        line-height: 1.1;
        white-space: normal;
        text-overflow: clip;
    }
    .huanca-purchase-trust__item small { display:none; }
}

/* v1.0.9 — Related products sit naturally between product information and reviews. */
.huanca-related-before-reviews {
    width: 100%;
    margin: 30px auto 0;
    padding-top: 30px;
    border-top: 1px solid #e8ecee;
}
.huanca-related-before-reviews .related.products {
    margin-top: 0 !important;
}
.huanca-related-before-reviews + .huanca-reviews-section {
    margin-top: 34px;
}
@media (max-width: 600px) {
    .huanca-related-before-reviews {
        margin-top: 22px;
        padding-top: 24px;
    }
    .huanca-related-before-reviews + .huanca-reviews-section {
        margin-top: 28px;
    }
}


/* ==========================================================
   HUANCA 1.0.14 — MOMENTO DEL PRODUCTO + PROMO MÓVIL
   Solo presentación; no modifica precios ni lógica de compra.
   ========================================================== */

/* La lupa deja de mostrarse. Si el producto tiene Día/Noche se transforma en pill informativo. */
body.single-product .woocommerce-product-gallery__trigger {
    display: none !important;
}

body.single-product.huanca-product-moment-day .woocommerce-product-gallery__trigger,
body.single-product.huanca-product-moment-night .woocommerce-product-gallery__trigger {
    width: auto !important;
    min-width: 0 !important;
    height: 29px !important;
    min-height: 29px !important;
    padding: 0 10px 0 8px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    top: 12px !important;
    right: 12px !important;
    border: 1px solid #ffdce2 !important;
    border-radius: 999px !important;
    background: #fff2f4 !important;
    color: #e0445b !important;
    box-shadow: none !important;
    text-indent: 0 !important;
    font-size: 0 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    pointer-events: none;
    cursor: default;
}

body.single-product.huanca-product-moment-day .woocommerce-product-gallery__trigger > span,
body.single-product.huanca-product-moment-night .woocommerce-product-gallery__trigger > span {
    display: none !important;
}

body.single-product.huanca-product-moment-day .woocommerce-product-gallery__trigger::before,
body.single-product.huanca-product-moment-night .woocommerce-product-gallery__trigger::before,
body.single-product.huanca-product-moment-day .woocommerce-product-gallery__trigger::after,
body.single-product.huanca-product-moment-night .woocommerce-product-gallery__trigger::after {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    transform: none !important;
}

body.single-product.huanca-product-moment-day .woocommerce-product-gallery__trigger::before,
body.single-product.huanca-product-moment-night .woocommerce-product-gallery__trigger::before {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: #e0445b !important;
    font-family: Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}

body.single-product.huanca-product-moment-day .woocommerce-product-gallery__trigger::before {
    content: "☼" !important;
}

body.single-product.huanca-product-moment-night .woocommerce-product-gallery__trigger::before {
    content: "☾" !important;
    font-size: 17px !important;
}

body.single-product.huanca-product-moment-day .woocommerce-product-gallery__trigger::after,
body.single-product.huanca-product-moment-night .woocommerce-product-gallery__trigger::after {
    display: inline !important;
    color: #e0445b !important;
    font-family: inherit !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: -.01em;
}

body.single-product.huanca-product-moment-day .woocommerce-product-gallery__trigger::after {
    content: "Para el día" !important;
}

body.single-product.huanca-product-moment-night .woocommerce-product-gallery__trigger::after {
    content: "Para la noche" !important;
}

/* Rail promocional: oculto fuera de celular. */
.huanca-mobile-product-promo {
    display: none;
}

@media (max-width: 767px) {
    body.single-product .huanca-mobile-product-promo {
        grid-column: 1;
        width: 100%;
        min-width: 0;
        display: block;
        overflow: hidden;
        margin: -1px 0 1px;
        border-top: 2px solid #95c233;
        border-bottom: 1px solid #351b20;
        border-radius: 8px;
        background: #171214;
        color: #fff;
        box-shadow: 0 4px 10px rgba(20, 10, 12, .05);
    }

    .huanca-mobile-product-promo__track {
        width: max-content;
        min-width: 200%;
        display: flex;
        align-items: center;
        animation: huanca-product-promo-scroll 17s linear infinite;
        will-change: transform;
    }

    .huanca-mobile-product-promo__group {
        flex: 0 0 auto;
        min-width: calc(100vw - 16px);
        display: flex;
        align-items: center;
        justify-content: space-around;
        gap: 24px;
        padding: 0 14px;
    }

    .huanca-mobile-product-promo__item {
        min-height: 31px;
        display: inline-flex;
        align-items: center;
        gap: 7px;
        white-space: nowrap;
        color: #fff;
        font-size: 13px;
        line-height: 1;
        font-weight: 780;
    }

    .huanca-mobile-product-promo__item i {
        width: 6px;
        height: 6px;
        flex: 0 0 6px;
        border-radius: 50%;
        background: #ff3558;
        box-shadow: 0 0 0 3px rgba(255, 53, 88, .12);
    }

    .huanca-mobile-product-promo.is-static .huanca-mobile-product-promo__track {
        min-width: 100%;
        width: 100%;
        animation: none;
    }

    .huanca-mobile-product-promo.is-static .huanca-mobile-product-promo__group {
        width: 100%;
        min-width: 100%;
        justify-content: center;
    }

    @keyframes huanca-product-promo-scroll {
        from { transform: translate3d(0,0,0); }
        to { transform: translate3d(-50%,0,0); }
    }

    body.single-product.huanca-product-moment-day .woocommerce-product-gallery__trigger,
    body.single-product.huanca-product-moment-night .woocommerce-product-gallery__trigger {
        top: 9px !important;
        right: 9px !important;
        height: 28px !important;
        min-height: 28px !important;
        padding-inline: 8px 9px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .huanca-mobile-product-promo__track {
        animation: none !important;
        transform: none !important;
    }

    .huanca-mobile-product-promo__group[aria-hidden="true"] {
        display: none;
    }
}



/* ==========================================================
   HUANCA THEME 1.0.19 · MICROTIPOGRAFÍA LEGIBLE
   ========================================================== */
.huanca-recently-viewed h3{
    font-size:13px;
    font-weight:700;
}
.huanca-recently-viewed__item{
    grid-template-columns:52px 1fr;
    gap:9px;
}
.huanca-recently-viewed__image{
    width:52px;
    height:58px;
}
.huanca-recently-viewed__image img{
    width:50px;
    height:56px;
}
.huanca-recently-viewed__body strong{
    font-size:11.5px;
    font-weight:600;
    line-height:1.35;
}
.huanca-recently-viewed__price{
    font-size:12.5px;
    font-weight:750;
}
.huanca-recently-viewed__price del{
    font-size:9.5px;
}
