/* Fondo gris claro para que resalten las tarjetas blancas */
.woocommerce-shop {
    background-color: #F4F6F8;
}

/* Tarjeta de producto con el tono "Borde" de tu marca */
.woocommerce ul.products li.product {
    background-color: #FFFFFF;
    border: 1.5px solid #C2E2E8;
    border-radius: 12px;
    padding: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Efecto al pasar el mouse: el borde cambia al tono "Marca" */
.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    border-color: #36A0B5;
    box-shadow: 0 10px 20px rgba(54, 160, 181, 0.12);
}

/* Títulos en gris oscuro legible y sin mayúsculas forzadas */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    text-transform: capitalize;
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    line-height: 1.4;
}

/* Precio destacado en el tono "Marca" */
.woocommerce ul.products li.product .price {
    font-size: 17px;
    font-weight: 700;
    color: #36A0B5;
    margin-bottom: 12px;
}



/* 1. Eliminar definitivamente "Inicio / 3M" en Astra */
.ast-breadcrumbs-wrapper,
.ast-woocommerce-container .woocommerce-breadcrumb,
nav.woocommerce-breadcrumb {
    display: none !important;
}

/* 2. Recuadro moderno con franja turquesa para el título (ej. 3M) */
.ast-woocommerce-container .woocommerce-products-header,
.ast-archive-description {
    background: linear-gradient(135deg, #F0F9FA 0%, #D9EFF3 100%) !important;
    border: 1.5px solid #C2E2E8 !important;
    border-left: 8px solid #36A0B5 !important;
    border-radius: 12px !important;
    padding: 20px 28px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 4px 12px rgba(54, 160, 181, 0.08) !important;
}

.ast-woocommerce-container .woocommerce-products-header__title {
    color: #1E293B !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

/* 3. Enmarcar la barra lateral de marcas igual que en el previo */
#secondary .sidebar-main {
    background-color: #FFFFFF !important;
    border: 1.5px solid #C2E2E8 !important;
    border-radius: 12px !important;
    padding: 20px !important;
}




/* Fondo general completamente blanco */
.woocommerce-checkout,
.woocommerce-checkout .site-content,
.woocommerce-checkout #primary {
background-color: #FFFFFF !important;
}

/* Título "Finalizar Compra" */
.woocommerce-checkout .entry-header,
.woocommerce-checkout h1.entry-title {
color: #1E293B !important;
font-weight: 700 !important;
margin-bottom: 20px !important;
}

/* Barra de "¿Tienes un cupón?" con tus colores de marca */
.woocommerce-form-coupon-toggle .woocommerce-info {
display: block !important;
background-color: #F0F9FA !important;
border: 1.5px solid #C2E2E8 !important;
border-left: 5px solid #36A0B5 !important;
border-radius: 10px !important;
color: #1E293B !important;
padding: 14px 20px !important;
margin-bottom: 24px !important;
}

.woocommerce-form-coupon-toggle .woocommerce-info a {
color: #36A0B5 !important;
font-weight: 700 !important;
text-decoration: underline;
}

/* Cajita desplegable para escribir el cupón */
form.checkout_coupon {
background-color: #FFFFFF !important;
border: 1.5px solid #C2E2E8 !important;
border-radius: 10px !important;
padding: 20px !important;
margin-bottom: 24px !important;
}

form.checkout_coupon .button {
background-color: #36A0B5 !important;
color: #FFFFFF !important;
border-radius: 8px !important;
font-weight: 600 !important;
}

/* Tarjeta blanca izquierda: Detalles de facturación */
.woocommerce-checkout .col-1 {
background-color: #FFFFFF !important;
border: 1.5px solid #C2E2E8 !important;
border-radius: 12px !important;
padding: 28px !important;
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04) !important;
}

/* Tarjeta blanca derecha: Tu pedido */
.woocommerce-checkout #order_review {
background-color: #FFFFFF !important;
border: 1.5px solid #36A0B5 !important;
border-radius: 12px !important;
padding: 28px !important;
box-shadow: 0 8px 24px rgba(54, 160, 181, 0.1) !important;
}

/* Títulos internos */
.woocommerce-checkout h3 {
color: #36A0B5 !important;
font-size: 20px !important;
font-weight: 700 !important;
border-bottom: 1.5px solid #F1F5F9;
padding-bottom: 12px;
margin-bottom: 20px !important;
}

/* Campos de texto claros y fáciles de llenar */
.woocommerce-checkout form .form-row input.input-text,
.woocommerce-checkout form .form-row select {
background-color: #F8FAFC !important;
border: 1.5px solid #CBD5E1 !important;
border-radius: 8px !important;
padding: 12px 14px !important;
font-size: 15px !important;
color: #1E293B !important;
transition: border-color 0.2s ease, background-color 0.2s ease;
}

.woocommerce-checkout form .form-row input.input-text:focus,
.woocommerce-checkout form .form-row select:focus {
background-color: #FFFFFF !important;
border-color: #36A0B5 !important;
outline: none !important;
box-shadow: 0 0 0 3px rgba(54, 160, 181, 0.15) !important;
}

/* Etiquetas de los campos */
.woocommerce-checkout form .form-row label {
font-weight: 600 !important;
color: #334155 !important;
margin-bottom: 6px !important;
font-size: 14px !important;
}

/* Botón principal de "Realizar el pedido" */
.woocommerce-checkout #place_order {
background-color: #36A0B5 !important;
color: #FFFFFF !important;
font-size: 17px !important;
font-weight: 700 !important;
padding: 16px 24px !important;
border-radius: 10px !important;
width: 100% !important;
text-transform: uppercase;
letter-spacing: 0.5px;
margin-top: 16px !important;
transition: background-color 0.2s ease, transform 0.1s ease;
}

.woocommerce-checkout #place_order:hover {
background-color: #2A8091 !important;
transform: translateY(-2px);
}

/* Caja de método de pago */
.woocommerce-checkout #payment {
background-color: #F0F9FA !important;
border: 1px solid #C2E2E8 !important;
border-radius: 10px !important;
padding: 16px !important;
}




/* === AJUSTES EXCLUSIVOS PARA CELULAR === */
@media (max-width: 768px) {

/* 1. Evitar que el precio del carrito superior se parta en varias líneas */
.ast-header-woo-cart .ast-woo-header-cart-total {
display: none !important;
}

/* 2. Buscador móvil moderno (blanco con borde turquesa en lugar de negro) */
.ast-header-search .search-form,
.woocommerce-product-search {
background-color: #FFFFFF !important;
border: 1.5px solid #36A0B5 !important;
border-radius: 10px !important;
overflow: hidden;
}

.woocommerce-product-search input[type="search"] {
background-color: #FFFFFF !important;
color: #1E293B !important;
padding: 10px 14px !important;
font-size: 14px !important;
}

.woocommerce-product-search button {
background-color: #36A0B5 !important;
color: #FFFFFF !important;
border-radius: 0 8px 8px 0 !important;
}

/* 3. Ocultar el recuadro vacío de barra lateral en celular para ver productos directo */
#secondary .sidebar-main:empty,
.widget-area:empty {
display: none !important;
}

/* 4. Tarjetas de producto compactas y bien proporcionadas en 2 columnas */
.woocommerce ul.products[class*="columns-"] li.product {
padding: 10px !important;
border-radius: 10px !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
font-size: 13px !important;
line-height: 1.3 !important;
margin-bottom: 6px !important;
}

.woocommerce ul.products li.product .price {
font-size: 15px !important;
margin-bottom: 8px !important;
}

.woocommerce ul.products li.product .button {
padding: 8px 10px !important;
font-size: 12px !important;
}

/* 5. Hacer que las tarjetas del Checkout (Finalizar Compra) respiren en móvil */
.woocommerce-checkout .col-1,
.woocommerce-checkout #order_review {
padding: 18px !important;
margin-bottom: 18px !important;
}
}



/* === CONTROL INTELIGENTE DE CATEGORÍAS (PC vs CELULAR) === */

/* En computadora: ocultar el desplegable y dejar la lista lateral abierta */
@media (min-width: 769px) {
    .wc-block-product-categories.is-dropdown {
        display: none !important;
    }
}

/* === DISEÑO MÓVIL CON FONDO BLANCO Y MENÚ DESPLEGABLE === */
@media (max-width: 768px) {

    /* 1. Fondo completamente blanco en toda la tienda móvil */
    body,
    .woocommerce-shop,
    .site-content,
    #primary,
    #secondary {
        background-color: #FFFFFF !important;
    }

    /* 2. Ocultar la lista gigante en celular y dejar solo el desplegable compacto */
    .wc-block-product-categories.is-list {
        display: none !important;
    }

    /* 3. Mover el desplegable de categorías ARRIBA de los productos */
    #content .ast-container {
        display: flex !important;
        flex-direction: column !important;
    }

    #secondary {
        order: -1 !important;
        width: 100% !important;
        margin-bottom: 16px !important;
        padding: 0 !important;
    }

    #secondary .sidebar-main {
        background-color: #FFFFFF !important;
        border: none !important;
        padding: 0 !important;
    }

    #primary {
        order: 1 !important;
        width: 100% !important;
    }

    /* 4. Estilo moderno para el recuadro desplegable de categorías */
    .wc-block-product-categories.is-dropdown select {
        width: 100% !important;
        background-color: #FFFFFF !important;
        border: 1.5px solid #36A0B5 !important;
        border-radius: 10px !important;
        padding: 12px 16px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        color: #1E293B !important;
        box-shadow: 0 2px 8px rgba(54, 160, 181, 0.1) !important;
    }

    /* Ocultar el botón de flechita extra si el bloque genera uno al lado */
    .wc-block-product-categories__button {
        background-color: #36A0B5 !important;
        color: #FFFFFF !important;
        border-radius: 8px !important;
        margin-left: 6px !important;
    }

    /* 5. Buscador móvil en blanco con borde y botón turquesa */
    .ast-header-search .search-form,
    .ast-header-search form,
    header .search-form {
        background-color: #FFFFFF !important;
        border: 1.5px solid #36A0B5 !important;
        border-radius: 10px !important;
        box-shadow: 0 2px 8px rgba(54, 160, 181, 0.08) !important;
    }

    .ast-header-search input[type="search"],
    header input[type="search"] {
        background-color: #FFFFFF !important;
        color: #1E293B !important;
    }

    .ast-header-search button,
    .ast-header-search .search-submit,
    header button[type="submit"] {
        background-color: #36A0B5 !important;
        color: #FFFFFF !important;
        border-radius: 0 8px 8px 0 !important;
    }

    /* 6. Cuadrícula de 2 columnas de productos bien proporcionada */
    .woocommerce ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .woocommerce ul.products li.product {
        width: 100% !important;
        margin: 0 !important;
        padding: 12px !important;
        border-radius: 10px !important;
        background-color: #FFFFFF !important;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 13px !important;
        line-height: 1.3 !important;
        min-height: 34px;
    }

    .woocommerce ul.products li.product .price {
        font-size: 15px !important;
        margin-bottom: 8px !important;
    }

    .woocommerce ul.products li.product .button {
        padding: 8px 6px !important;
        font-size: 12px !important;
    }
}




/* === CONTROL DE CATEGORÍAS (PC vs CELULAR) === */
@media (min-width: 769px) {
.wc-block-product-categories.is-dropdown {
display: none !important;
}
}

/* === DISEÑO MÓVIL SEGURO === */
@media (max-width: 768px) {
body, .woocommerce-shop, .site-content, #primary, #secondary {
background-color: #FFFFFF !important;
}

.wc-block-product-categories.is-list,
.wc-block-product-categories__button,
.woocommerce-result-count,
.woocommerce-ordering {
display: none !important;
}

.wc-block-product-categories.is-dropdown,
.wc-block-product-categories.is-dropdown select {
width: 100% !important;
max-width: 100% !important;
background-color: #FFFFFF !important;
border: 1.5px solid #C2E2E8 !important;
border-radius: 10px !important;
padding: 12px 16px !important;
font-size: 15px !important;
font-weight: 600 !important;
color: #1E293B !important;
}

.woocommerce ul.products {
display: grid !important;
grid-template-columns: repeat(2, 1fr) !important;
gap: 12px !important;
}

.woocommerce ul.products li.product {
width: 100% !important;
margin: 0 !important;
padding: 12px !important;
}
	

/* === 1. COMPUTADORA DE ESCRITORIO (Pantallas grandes: más de 1024px) === */
@media (min-width: 1025px) {
.wc-block-product-categories.is-dropdown {
display: none !important;
}
}

/* === 2. TABLETAS (iPad / Android Tablet: 769px a 1024px) === */
@media (min-width: 769px) and (max-width: 1024px) {
body, .woocommerce-shop, .site-content, #primary, #secondary {
background-color: #FFFFFF !important;
}

/* Usar el desplegable limpio en tableta para dar todo el ancho a los productos */
.wc-block-product-categories.is-list,
.wc-block-product-categories__button {
display: none !important;
}

#secondary {
width: 100% !important;
margin-bottom: 20px !important;
}

#secondary .sidebar-main {
border: none !important;
padding: 0 !important;
background: transparent !important;
}

#primary {
width: 100% !important;
}

.wc-block-product-categories.is-dropdown,
.wc-block-product-categories.is-dropdown select {
width: 100% !important;
max-width: 100% !important;
background-color: #FFFFFF !important;
border: 1.5px solid #36A0B5 !important;
border-radius: 10px !important;
padding: 12px 16px !important;
font-size: 15px !important;
font-weight: 600 !important;
color: #1E293B !important;
}

/* Cuadrícula de 3 columnas perfecta para tableta */
.woocommerce ul.products {
display: grid !important;
grid-template-columns: repeat(3, 1fr) !important;
gap: 16px !important;
}

.woocommerce ul.products li.product {
width: 100% !important;
margin: 0 !important;
padding: 14px !important;
}
}

/* === 3. CELULARES (Pantallas chicas: hasta 768px) === */
@media (max-width: 768px) {
body, .woocommerce-shop, .site-content, #primary, #secondary {
background-color: #FFFFFF !important;
}

.wc-block-product-categories.is-list,
.wc-block-product-categories__button,
.woocommerce-result-count,
.woocommerce-ordering {
display: none !important;
}

.wc-block-product-categories.is-dropdown,
.wc-block-product-categories.is-dropdown select {
width: 100% !important;
max-width: 100% !important;
background-color: #FFFFFF !important;
border: 1.5px solid #C2E2E8 !important;
border-radius: 10px !important;
padding: 12px 16px !important;
font-size: 15px !important;
font-weight: 600 !important;
color: #1E293B !important;
}

/* Cuadrícula de 2 columnas para celular */
.woocommerce ul.products {
display: grid !important;
grid-template-columns: repeat(2, 1fr) !important;
gap: 12px !important;
}

.woocommerce ul.products li.product {
width: 100% !important;
margin: 0 !important;
padding: 12px !important;
}
	
/* === BUSCADOR LIMPIO EN TODAS LAS PANTALLAS === */
.ast-below-header-bar,
.ast-below-header {
background-color: #FFFFFF !important;
background: #FFFFFF !important;
}

/* Ocultar etiqueta "Buscar" superior */
.woocommerce-product-search label,
.wp-block-search__label {
display: none !important;
}

/* Alinear input y botón en una sola pieza */
.woocommerce-product-search,
.wp-block-search__inside-wrapper {
display: flex !important;
flex-wrap: nowrap !important;
align-items: stretch !important;
width: 100% !important;
max-width: 650px !important;
margin: 0 auto !important;
}

.woocommerce-product-search input[type="search"],
.wp-block-search__input {
flex: 1 1 auto !important;
width: 100% !important;
background-color: #FFFFFF !important;
border: 1.5px solid #36A0B5 !important;
border-right: none !important;
border-radius: 10px 0 0 10px !important;
height: 44px !important;
padding: 0 14px !important;
margin: 0 !important;
}

/* Botón BUSCAR en un solo renglón sin partirse */
.woocommerce-product-search button,
.wp-block-search__button {
flex: 0 0 auto !important;
width: auto !important;
min-width: 90px !important;
background-color: #36A0B5 !important;
color: #FFFFFF !important;
border: 1.5px solid #36A0B5 !important;
border-radius: 0 10px 10px 0 !important;
height: 44px !important;
padding: 0 16px !important;
margin: 0 !important;
white-space: nowrap !important;
font-weight: 600 !important;
}
	
/* === ALINEAR BUSCADOR EN UNA SOLA LÍNEA EN COMPUTADORA === */
@media (min-width: 1025px) {
/* Ocultar el título "Buscar" que aparece encima de la caja */
.ast-header-search .widget-title,
.site-header .widget-title {
display: none !important;
}

/* Hacer que el buscador sea compacto y quepa en la misma fila que el menú y carrito */
.site-header .woocommerce-product-search,
.site-header .wp-block-search__inside-wrapper {
max-width: 260px !important;
margin: 0 !important;
padding: 0 !important;
}

.site-header .woocommerce-product-search input[type="search"],
.site-header .wp-block-search__input {
height: 38px !important;
font-size: 14px !important;
}

.site-header .woocommerce-product-search button,
.site-header .wp-block-search__button {
height: 38px !important;
min-width: 75px !important;
padding: 0 12px !important;
font-size: 13px !important;
}
}

	
/* === ARREGLAR TÍTULO Y BOTÓN DEL BUSCADOR EN PC Y TABLETA === */
header .widget h2,
header .widget-title,
header .wp-block-search__label,
header label[for*="search"],
header label[for*="woocommerce-product-search"] {
display: none !important;
}

	/* === ARREGLAR BOTÓN "BUSCAR" EN TABLETA Y PC === */
header .wp-block-search__button,
header .wp-element-button {
white-space: nowrap !important;
word-break: keep-all !important;
min-width: 96px !important;
width: auto !important;
padding: 0 18px !important;
margin-left: 0 !important;
border-radius: 0 10px 10px 0 !important;
flex-shrink: 0 !important;
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
}
header .woocommerce-product-search,
header .wp-block-search__inside-wrapper {
display: flex !important;
flex-wrap: nowrap !important;
align-items: center !important;
min-width: 280px !important;
}

header .woocommerce-product-search button,
header .wp-block-search__button {
white-space: nowrap !important;
width: auto !important;
min-width: 95px !important;
padding: 0 16px !important;
flex-shrink: 0 !important;
}
	
	/* === BARRA LATERAL COMPACTA Y 4 COLUMNAS EN COMPUTADORA === */
@media (min-width: 1025px) {

/* Hacer la barra lateral izquierda más angosta (20% del ancho) */
.woocommerce-page #secondary {
width: 20% !important;
padding-right: 20px !important;
}

/* Darle el 80% restante al área de productos para que luzcan las 4 columnas */
.woocommerce-page #primary {
width: 80% !important;
}

/* Ajustar el relleno interno de la caja de marcas para que se vea estilizada */
#secondary .sidebar-main {
padding: 16px 14px !important;
}

/* Asegurar que los textos largos de marcas (como American Orthodontics) quepan bien */
.wc-block-product-categories-list li a {
font-size: 13px !important;
line-height: 1.3 !important;
}
}
	
/* === AJUSTES MÓVILES PARA LA PÁGINA DE INICIO === */
@media (max-width: 768px) {

/* 1. Eliminar el espacio blanco enorme arriba de la franja turquesa */
.home .site-content,
.home #primary,
.home .entry-content {
margin-top: 0 !important;
padding-top: 0 !important;
}

.home .entry-header {
display: none !important;
}

/* 2. Hacer más compacta la franja turquesa en celular para que no ocupe media pantalla */
.home .wp-block-group.has-background {
padding-top: 12px !important;
padding-bottom: 12px !important;
}

.home .wp-block-group.has-background p {
margin-bottom: 8px !important;
font-size: 14px !important;
line-height: 1.3 !important;
}

.home .wp-block-group.has-background .wp-block-column:last-child p {
margin-bottom: 0 !important;
}
}