/* ==========================================================================
   1. ESTILOS GLOBALES Y CONTENEDORES
   ========================================================================== */

body {
    background-color: #ffffff;
}

/* Títulos y Encabezados de Sección (Generales) */
.h2,
#onsale-products .h2 {
    text-align: center;
    background: #85C1E9;
    padding: 0.875rem;
    font-size: 1rem;
    border-radius: 1.5rem 0.0625rem 1.5rem 0.0625rem;
    text-transform: uppercase;
}

/* Menú Móvil y Barras de Aviso */
.modal-body {
    background-color: #003366;
}

.barrita-inferior {
    background: #def7ff;
}

.barrita-superior-texto {
    font-size: 1rem;
    color: white;
}

/* ==========================================================================
   2. SIDEBAR Y CATEGORÍAS (PRODUCTOS)
   ========================================================================== */

/* Contenedor Principal */
.sidebar-categories .widget.woocommerce.widget_product_categories {
    padding: 0.875rem;
    background-color: #003366;
    border-radius: 0.75rem;
}

.sidebar-categories .widget_product_categories ul.product-categories > li {
    border-bottom: 0;
    padding: 0;
}

/* Enlaces de Categorías */
.sidebar-categories .widget_product_categories ul.product-categories > li a {
    padding: 0.875rem;
    color: white;
}

.sidebar-categories .widget_product_categories ul.product-categories > li a:hover {
    background-color: #00AFEF;
    color: #003366;
}

/* Subcategorías (.children) */
.product-categories ul.children {
    background-color: #003366 !important;
    margin-left: 0;
    padding-left: 1rem;
}

.product-categories ul.children li a {
    color: white !important;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.product-categories ul.children li a:hover {
    background-color: #00AFEF !important;
    color: #003366 !important;
}

/* ==========================================================================
   3. SECCIÓN DE OFERTAS Y PRODUCTO INDIVIDUAL (COMPONENTES)
   ========================================================================== */

/* --- 3.1. Ofertas Cross-sell (Llevá con tu compra) --- */
.cuw-offer-title {
    background: linear-gradient(90deg, #ff4500 0%, #ff8c00 100%);
    color: #ffffff;
    text-align: center;
    padding: 12px 20px;
    margin: 0 0 20px 0;
    border-radius: 4px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    font-size: 1rem;
    line-height: 1.4;
}

.cuw-offer-title::before {
    content: "🏷️";
    margin-right: 10px;
    font-size: 1.1em;
    position: relative;
    top: 1px;
}

.cuw-offer-cta-section {
    background: linear-gradient(90deg, #ff4500 0%, #ff8c00 100%) !important;
    text-align: center;
    padding: 10px 18px;
    margin-top: 8px;
    border-radius: 4px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    transition: all 0.1s ease;
}

.cuw-offer-cta-section .cuw-offer-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    background: none;
    padding: 0;
    margin: 0;
}

.cuw-offer-cta-section .cuw-offer-cta-text {
    color: #ffffff !important;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 1rem;
}

.cuw-offer-cta-section .cuw-checkbox {
    position: static;
    margin-right: 10px;
}

.cuw-offer-added-text {
    display: none;
}

/* --- 3.2. Descripción y Precios de Oferta --- */
.cuw-offer-description {
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-left: 5px solid #007bff;
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 4px;
    text-align: left;
    color: #333333;
    font-size: 1em;
    line-height: 1.5;
    font-weight: 500;
}

.cuw-offer-description::before {
    content: "ℹ️";
    margin-right: 10px;
    font-size: 1.1em;
    color: #007bff;
}

.cuw-product-title {
    color: #333333;
    text-align: left;
    margin: 15px 0 5px 0;
    font-size: 1.5em;
    font-weight: 700;
    line-height: 1.2;
}

.cuw-product-price {
    margin: 5px 0 15px 0;
    text-align: left;
}

.cuw-product-price .woocommerce-Price-amount {
    color: #28a745;
    font-size: 1.8em;
    font-weight: 800;
    line-height: 1;
}

.cuw-product-price .woocommerce-Price-currencySymbol {
    font-size: 0.7em;
    font-weight: 600;
    margin-right: 2px;
    vertical-align: top;
}

/* ==========================================================================
   4. PRODUCTOS (GRIDS / LISTADOS)
   ========================================================================== */

.products-grid li.product,
.products-grid article.product,
.woocommerce:not(.single-product) li.product,
.woocommerce:not(.single-product) article.product {

    .woocommerce-loop-product__link img {
        border-radius: 0.5rem;
    }

    .woocommerce-loop-product__link .woocommerce-loop-product__title {
        font-size: 1rem !important;
        font-weight: 600;
        padding: 0.625rem 0;
        color: #003366;
        text-align: center;
        text-transform: uppercase;
    }

    .woocommerce-loop-product__link .price span {
        color: black !important;
        text-align: center;
        font-weight: 600;
        font-size: 1.3rem;
    }

    .woocommerce-loop-product__link .price del,
    .woocommerce-loop-product__link .price del span bdi,
    .woocommerce-loop-product__link .price del span bdi span {
        font-size: 1rem;
        color: red;
        font-weight: bold;
    }

    a.button.add_to_cart_button {
        background-color: #00AFEF !important;
        color: white !important;
        font-weight: bold;
        text-transform: uppercase !important;
        border-radius: 0.5rem !important;
        border: none !important;
        width: 100%;
        margin-top: 0.5rem;
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    }

    a.button.add_to_cart_button:hover {
        background-color: #003366 !important;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }
}

/* Ocultar etiquetas generales */
.onsale,
.out-of-stock,
.in-stock {
    display: none;
}

/* ==========================================================================
   5. SECCIÓN ESPECÍFICA DE OFERTAS (#onsale-products)
   ========================================================================== */

#onsale-products {
    background: linear-gradient(to bottom, #D70000 0%, #FF0000 50%, #D70000 100%);
    border-radius: 0;
    padding: 1.5rem 0.625rem;
}

#onsale-products .h2 {
    font-size: 1.5rem;
    color: white !important;
    background: #000000 !important;
    padding: 0.875rem !important;
    border-radius: 0.75rem !important;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

#onsale-products .products-grid li.product,
#onsale-products .products-grid article.product {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    padding: 0.625rem;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   6. PÁGINA DE PRODUCTO INDIVIDUAL (SINGLE PRODUCT)
   ========================================================================== */

.single-product:not(.quickswish-content-area) .product {

    .entry-content {
        margin-top: 0.3125rem !important;
    }

    .summary.entry-summary {
        border-radius: 0.75rem;
        margin-top: 0;
        background-color: #003366;
        box-shadow: none;
        border: none;
        padding: 1rem 1.25rem;
        text-align: center;
    }

    .product_title {
        font-size: 1.4rem !important;
        text-align: center;
        padding-top: 0;
        margin-bottom: 0.5rem;
        text-transform: uppercase;
        color: white;
    }

    .price {
        text-align: center;
        font-size: 1.3rem !important;
        font-weight: bold;
        border: none;
        border-radius: 0.5rem;
        padding: 0.5rem 0.75rem;
        margin: 0.75rem auto;
        display: inline-block;
        background-color: transparent;
        color: #00AFEF !important;
        box-shadow: 0 4px 8px rgba(0, 51, 102, 0.4);
        max-width: 80%;
    }

    .price span {
        color: #00AFEF !important;
    }

    p.price del,
    span.price del {
        font-size: 1.0rem;
        color: #AAAAAA;
        font-weight: normal;
    }

    .woocommerce-product-details__short-description {
        font-size: 0.9375rem !important;
        padding: 0.5rem 0 0;
        text-align: justify;
        color: #000000;
    }

    /* Pestañas (Tabs) */
    .woocommerce-tabs ul.tabs li {
        background: #F0F0F0;
        border: 1px solid #CCCCCC;
        border-bottom: 0;
        border-radius: 0.5rem 0.5rem 0 0;
    }

    .woocommerce-tabs ul.tabs li a {
        color: #003366;
        font-weight: 600;
    }

    .woocommerce-tabs ul.tabs li.active {
        background: #00AFEF;
        border-color: #00AFEF;
        border-bottom: 1px solid #00AFEF;
    }

    .woocommerce-tabs ul.tabs li.active a {
        color: white;
    }
}

/* Botón Añadir al Carrito (Single) */
.single-product .button.single_add_to_cart_button {
    background-color: #003366 !important;
    color: white !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05rem;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    padding: 0.8rem 2rem !important;
    border-radius: 0.5rem !important;
    border: none !important;
    width: 100%;
    display: block;
    margin-top: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

.single-product .button.single_add_to_cart_button:before {
    font-family: 'bootstrap-icons';
    content: "\f244";
    margin-right: 0.625rem;
    font-weight: bold;
    font-size: 1.1rem;
    vertical-align: top;
}

.single-product .button.single_add_to_cart_button:hover {
    background-color: #FF0000 !important;
    color: white !important;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.5);
}

/* Upsells */
.product_upsells h3 {
    text-align: center;
    background: #00afef;
    color: white;
    padding: 0.5rem;
    border-radius: 0.75rem;
    font-size: 1rem !important;
    font-weight: bold !important;
    text-transform: uppercase;
}

/* ==========================================================================
   7. FOOTER Y CONTACTO
   ========================================================================== */

.site-footer {
    text-align: center;
    background-color: black;
    padding: 2rem 0.625rem 5rem 0.625rem !important;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 1.2rem;
}

.site-footer h4,
.footer-categorias .widget-title {
    color: white;
}

.footer-datos {
    color: white;
    margin: 0;
    padding: 0;
    list-style-type: none;
    text-align: center;
}

#footer-datos .footer-datos {
    color: white;
    font-size: 0.75rem;
}

.menu-footer {
    margin: 0;
    padding: 1rem;
    list-style-type: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1rem;
}

.menu-footer > li > a {
    color: #00AFEF;
    font-weight: bold;
    text-decoration: none;
}

.footer-categorias .product-categories .cat-item a {
    color: white;
}

footer .children {
    display: none;
}

.link-instagram-footer {
    color: white;
    list-style-type: none;
    text-decoration: none;
}

.bi-instagram {
    font-size: 1.25rem;
}

.footer-pagos {
    text-align: center;
    padding: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 1.2rem;
}

/* Urutienda Logos */
.footer-urutienda {
    display: none;
}

.footer-urutienda-logo {
    display: flex;
    justify-content: flex-end;
}

.footer-urutienda-logo a {
    margin-top: 1rem;
    padding-top: 1rem;
    display: flex;
    width: 35%;
}

.urutienda-sub-container {
    background: #3c3c3c !important;
}

.urutienda-sub-title {
    color: white;
}

/* ==========================================================================
   8. VARIOS Y UTILIDADES
   ========================================================================== */

.cat-item-114,
.cat-item-88 {
    display: none !important;
}

.entry-title {
    text-align: center !important;
    text-transform: uppercase;
}

.metaslider.ml-slider {
    margin-top: 0.3125rem !important;
}

.woocommerce-ordering .orderby {
    font-size: 0.875rem;
    font-weight: bold;
    color: black;
    border-radius: 0;
    box-shadow: none;
    padding: 0.875rem 1.5625rem;
}

.term-description {
    text-align: center;
    margin-bottom: 1.25rem !important;
    font-size: 1rem;
}

.wc-bacs-bank-details-account-name,
.wc-bacs-bank-details-heading {
    display: none;
}

.main-search-form .aws-search-field {
    border: 1.2px solid #000000 !important;
}

/* Alerta de Stock */
.stock_alert_button {
    text-align: center;
    background: #00afef;
    color: white;
    border-radius: 0.75rem;
}

.subscribe_for_interest_text {
    font-size: 1rem !important;
    font-weight: bold;
}

.stock_notifier-subscribe-form {
    padding-left: 1.375rem !important;
    padding-bottom: 2.5rem;
}

/* Banner Informativo Home */
.icono-home-desc {
    background: #85C1E9;
    color: white;
    text-align: justify;
    font-size: 1.125rem !important;
    font-weight: bold;
    padding: 0.9375rem 5.625rem;
    border-radius: 0.625rem;
}

.bi.bi-truck,
.icono-home-title {
    display: none;
}

/* ==========================================================================
   9. FIX ACORDEÓN WORDPRESS
   ========================================================================== */

.accordion details {
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.accordion details > summary {
    display: block !important;
    list-style: none !important;
    cursor: pointer;
    padding: 22px 16px !important;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.accordion details > summary::-webkit-details-marker {
    display: none !important;
}

.accordion details > summary::after {
    content: "▾";
    float: right;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.accordion details[open] > summary::after {
    transform: rotate(180deg);
}

.accordion .content {
    padding: 0 16px 20px;
    font-size: 15px;
    line-height: 1.65;
    text-align: justify;
    color: #fff;
}

.accordion details > .content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease;
}

.accordion details[open] > .content {
    max-height: 5000px;
}

@media (min-width: 768px) {
    .accordion details > summary {
        font-size: 20px;
        padding: 28px 20px !important;
    }

    .accordion .content {
        font-size: 16px;
        padding: 0 20px 28px;
    }
}

/* ==========================================================================
   10. BARRA SUPERIOR ENVÍOS (ANIMACIONES)
   ========================================================================== */

.barrita-superior-texto {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

.barrita-superior {
    padding: 0 !important;
    min-height: unset !important;
    height: auto !important;
    background: linear-gradient(90deg, #000 0%, #111 50%, #000 100%) !important;
}

.barrita-superior .container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    text-align: center !important;
}

.barra-envios {
    display: inline-block;
    font-size: 15px;
    font-weight: normal;
    letter-spacing: 0.4px;
    white-space: nowrap;
    line-height: 1;
    padding: 8px 0;
    margin: 0 auto;
    animation: blinkEnvios 2.2s ease-in-out infinite;
}

@keyframes blinkEnvios {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

@media (prefers-reduced-motion: reduce) {
    .barra-envios { animation: none; }
}

/* ==========================================================================
   11. MEDIA QUERIES (MÓVIL &lt;= 768px)
   ========================================================================== */

@media (max-width: 768px) {
    /* Footer Móvil */
    .footer-categorias .widget_product_categories ul.product-categories,
    .footer-categorias .widget-title {
        display: none !important;
    }

    .menu-footer,
    #footer-datos .footer-datos,
    .footer-urutienda-logo {
        display: block !important;
    }

    .site-footer {
        padding: 1.5rem 0.625rem 3rem 0.625rem !important;
    }

    .sidebar-categories .widget.woocommerce.widget_product_categories {
        padding: 0.625rem;
    }
}




/* ==========================================================================
   SELECTOR DE ORDEN (ORDER BY) - TIENDA PADEL
   Ajusta el menú desplegable de &quot;Ordenar por&quot; en las listas de productos.
   ========================================================================== */

.woocommerce-ordering select.orderby {
    /* 1. Dimensiones y Espaciado */
    height: 45px !important;
    width: auto;
    padding: 0 40px 0 15px !important;
    
    /* 2. Bordes y Contorno */
    border: 2px solid #0056b3 !important; /* Azul de marca */
    border-radius: 4px !important;
    
    /* 3. Tipografía y Colores de Texto */
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    text-transform: none !important;
    
    /* 4. Fondo y Estética de la Flecha Personalizada */
    background-color: #ffffff !important;
    background-image: url(&quot;data:image/svg+xml,%3Csvg xmlns=&#039;http://www.w3.org/2000/svg&#039; width=&#039;12&#039; height=&#039;12&#039; viewBox=&#039;0 0 24 24&#039; fill=&#039;none&#039; stroke=&#039;%230056b3&#039; stroke-width=&#039;3&#039; stroke-linecap=&#039;round&#039; stroke-linejoin=&#039;round&#039;%3E%3Cpath d=&#039;m6 9 6 6 6-6&#039;/%3E%3C/svg%3E&quot;) !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    background-size: 14px !important;
    
    /* 5. Reset de apariencia nativa del navegador */
    appearance: none !important;
    -webkit-appearance: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

/* --- EFECTO HOVER --- 
   Invierte los colores (fondo azul, texto blanco) al pasar el ratón 
*/
.woocommerce-ordering select.orderby:hover {
    background-color: #0056b3 !important;
    color: #ffffff !important;
    /* Cambia la flecha a color blanco para que sea visible sobre el fondo azul */
    background-image: url(&quot;data:image/svg+xml,%3Csvg xmlns=&#039;http://www.w3.org/2000/svg&#039; width=&#039;12&#039; height=&#039;12&#039; viewBox=&#039;0 0 24 24&#039; fill=&#039;none&#039; stroke=&#039;%23ffffff&#039; stroke-width=&#039;3&#039; stroke-linecap=&#039;round&#039; stroke-linejoin=&#039;round&#039;%3E%3Cpath d=&#039;m6 9 6 6 6-6&#039;/%3E%3C/svg%3E&quot;) !important;
}

/* --- AJUSTES PARA MÓVILES --- 
   Asegura que el selector sea cómodo de usar en pantallas táctiles 
*/
@media (max-width: 768px) {
    .woocommerce-ordering,
    .woocommerce-ordering select.orderby {
        width: 100% !important; /* Ocupa todo el ancho de la pantalla */
        margin-bottom: 20px !important;
    }
}



/* ==========================================================================
   CONFIGURACIÓN FINAL UNIFICADA: RESEÑAS TIENDA PADEL
   ========================================================================== */

/* --- 1. ENCABEZADO DE LA SECCIÓN --- */

/* Título: &quot;Nuestros clientes hablan por nosotros&quot; */
h2.ur-carousel-title {
    font-size: 15px !important;
    font-weight: 700 !important;
}

/* Contador: &quot;de 11 reseñas&quot; */
p.ur-total-count {
    font-size: 12px !important;
    color: #888888 !important;
}

/* --- 2. DISEÑO DE LA TARJETA (Contenedor) --- */

.ur-review-card {
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06) !important;
    border: 1px solid #f0f0f0 !important;
    transition: transform 0.3s ease !important;
}

/* Efecto hover: la tarjeta sube levemente */
.ur-review-card:hover {
    transform: translateY(-5px);
}

/* --- 3. ELEMENTOS INTERNOS (Imagen y Texto) --- */

/* Contenedor de la imagen del producto */
.ur-card-image-wrapper {
    max-width: 160px !important;
    margin: 0 auto !important;
    padding-top: 10px;
}

/* Nombre del autor de la reseña */
.ur-card-author {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #333333 !important;
}

/* Título de la reseña (ej: &quot;Muy recomendable&quot;) */
h6.ur-card-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    margin-top: 10px !important;
    line-height: 1.2 !important;
}

/* Cuerpo del comentario */
p.ur-card-comment {
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #555555 !important;
}

/* --- 4. PIE DE TARJETA (Producto Relacionado) --- */

/* Forzamos el color azul en el contenedor, el texto y cualquier elemento interno */
.ur-card-product, 
.ur-card-product * {
    color: #0056b3 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    opacity: 1 !important;
    text-decoration: none !important;
}

/* Específicamente para el icono de la caja */
.ur-card-product i {
    color: #0056b3 !important;
    margin-right: 5px !important;
}

/* Eliminamos el gris por defecto de Bootstrap que suele aplicarse a &#039;text-muted&#039; */
small.text-muted.ur-card-product {
    color: #0056b3 !important;
}