/*
Theme Name: Shoptimizer Child
Template: shoptimizer
*/
/* =============================================
   FICHA DE PRODUCTO — CONVERSIÓN MOBILE
   ============================================= */

/* --- Badge de descuento --- */
.woocommerce span.onsale {
    background: #e53e3e;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    min-height: unset;
    line-height: 1.6;
    top: 12px;
    left: 12px;
}

/* --- Zona de precio --- */
.woocommerce div.product p.price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.woocommerce div.product p.price ins {
    font-size: 26px;
    font-weight: 500;
    text-decoration: none;
    color: #1a1a1a;
}
.woocommerce div.product p.price del {
    font-size: 15px;
    color: #888;
    opacity: 1;
}

/* --- Botones de talla --- */
.size-buttons-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.size-btn {
    min-width: 44px;
    height: 44px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .15s;
}
.size-btn.selected {
    border: 2px solid #1a1a1a;
    font-weight: 500;
}
.size-btn.disabled {
    opacity: 0.35;
    text-decoration: line-through;
    pointer-events: none;
}

/* --- CTAs --- */
.woocommerce div.product form.cart .single_add_to_cart_button {
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}
.woocommerce div.product form.cart .single_add_to_cart_button:hover {
    background: #333;
}
.buy-now-btn {
    width: 100%;
    background: #fff;
    color: #1a1a1a;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 16px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 16px;
    display: block;
    text-align: center;
    box-sizing: border-box;
    text-decoration: none;
}
.buy-now-btn:hover {
    border-color: #1a1a1a;
    text-decoration: none;
    color: #1a1a1a;
}

.trust-badge .ti {
    font-size: 20px;
    color: #666;
    margin-top: 2px;
    flex-shrink: 0;
}
.shipping-banner .ti,
.stock-urgency .ti {
    font-size: 15px;
    vertical-align: -2px;
}


/* --- Bloque de garantías --- */
.trust-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: #f8f8f6;
    border-radius: 12px;
    padding: 14px;
    margin: 16px 0;
    border: 0.5px solid #e5e5e5;
}
.trust-badge {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.trust-badge strong {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.3;
}
.trust-badge span {
    font-size: 11px;
    color: #888;
}

/* --- Urgencia / stock --- */
.stock-urgency {
    font-size: 13px;
    color: #e53e3e;
    font-weight: 500;
    margin-bottom: 8px;
}

/* --- Envío gratis --- */
.shipping-banner {
    font-size: 12px;
    color: #265B19;
    margin-bottom: 10px;
}

/* --- Barra sticky (mobile) --- */
.sticky-atc-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    padding: 12px 16px;
    z-index: 9999;
    align-items: center;
    gap: 12px;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}
.sticky-atc-bar .sticky-info p {
    margin: 0;
    line-height: 1.3;
}
.sticky-atc-bar .sticky-price {
    font-size: 17px;
    font-weight: 500;
}
.sticky-atc-bar .sticky-stock {
    font-size: 11px;
    color: #e53e3e;
}
.sticky-atc-bar button {
    flex-shrink: 0;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 13px 18px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .sticky-atc-bar.visible {
        display: flex;
    }
}
.commercekit-sticky-add-to-cart .button,
.shoptimizer-sticky-add-to-cart .button {
    background-color: #1a1a1a !important;
    border-color: #1a1a1a !important;
}

/* --- Ocultar descripción corta, stock y separador en mobile --- */
@media (max-width: 768px) {
    .woocommerce div.product .woocommerce-product-details__short-description,
    .woocommerce div.product .stock,
    .woocommerce div.product form.cart .woocommerce-variation-availability {
        display: none !important;
    }
}

/* --- Tamaño título más pequeño --- */
.woocommerce div.product .product_title {
    font-size: 20px !important;
    line-height: 1.3;
}

/* --- Precio más grande --- */
.woocommerce div.product p.price ins,
.woocommerce div.product p.price > .amount {
    font-size: 28px !important;
    font-weight: 600 !important;
	color: black !important;
}
.woocommerce-price-suffix {
	color: black !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button::before {
    content: none;
}

/* --- Quitar botón Comprar ahora --- */
.buy-now-btn {
    display: none !important;
}

@media (max-width: 768px) {
    .product-details-wrapper {
        padding-bottom: 0 !important;
    }
    h1, h2, h3, h4,
    .wp-block-heading {
        font-size: 1rem !important; /* o el tamaño que tenga tu párrafo, ej: 16px, 0.9rem, etc. */
        line-height: 1.5; /* opcional, para mantener legibilidad */
    }
 .commercekit-atc-tab-links li:not(#cgkit-tab-commercekit-sticky-atc-title) {
        display: none !important;
    }
}