/*
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: #232323;
}

/* --- Urgencia / stock --- */
.stock-urgency {
font-size: 12px;
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;
}
}

/* --- Tabs como acordeón en columna derecha --- */
.woocommerce-tabs {
margin-top: 16px;
}
.woocommerce-tabs ul.tabs {
display: none !important;
}
.woocommerce-tabs .panel {
border-top: 0.5px solid #e5e5e5;
padding: 12px 0;
font-size: 13px;
color: #555;
line-height: 1.6;
}
.woocommerce-tabs h2 {
font-size: 13px;
font-weight: 500;
color: #1a1a1a;
margin-bottom: 8px;
}
/* --- Hero full width --- */
.home-hero {
width: 100vw;
position: relative;
left: 50%;
right: 50%;
margin-left: -50vw;
margin-right: -50vw;
}
.mp-checkout-container, .payment_method_woo-mercado-pago-basic img  {display: none;}

/* --- Footer acordeón mobile --- */
@media (max-width: 768px) {

footer.site-footer .col-full {
display: flex;
flex-direction: column;
}

footer.site-footer .widget {
border-bottom: 0.5px solid #333;
}

footer.site-footer .widget-title {
cursor: pointer;
padding: 14px 0;
margin: 0;
display: flex;
justify-content: space-between;
align-items: center;
user-select: none;
}

@media (max-width: 768px) {
footer.site-footer .widget-title {
cursor: pointer;
padding: 14px 0;
margin: 0;
display: flex !important;
justify-content: space-between;
align-items: center;
width: 100%;
user-select: none;
}

footer.site-footer .widget-title::after {
content: '+';
font-size: 20px;
font-weight: 300;
color: #999;
margin-left: auto;
padding-left: 10px;
}

footer.site-footer .widget-title.abierto::after {
content: '−';
}
}
footer.site-footer .widget > ul,
footer.site-footer .widget > .textwidget,
footer.site-footer .widget > .menu-pie-de-pagina-container,
footer.site-footer .widget_recent_entries ul,
footer.site-footer .product_list_widget {
display: none;
padding-bottom: 12px;
}

footer.site-footer .widget.abierto > ul,
footer.site-footer .widget.abierto > .textwidget,
footer.site-footer .widget.abierto > .menu-pie-de-pagina-container,
footer.site-footer .widget.abierto .widget_recent_entries ul,
footer.site-footer .widget.abierto .product_list_widget {
display: block;
}
}

/* --- Botón WhatsApp flotante --- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25d366;
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}
.whatsapp-float .ti {
    font-size: 28px;
}

/* En móvil súbelo para que no tape la sticky bar del carrito */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 80px;
        right: 16px;
    }
}