.product-miniature-default .product-thumbnail img {
  width: 100% !important;
}

/* Banners categorías Dimar */

.banner-dimar .elementor-iqit-banner {
    position: relative;
}

/* Franja blanca semitransparente */
.banner-dimar .elementor-iqit-banner-content {
 background: rgba(255, 255, 255, 0.40);
    width: 100%;
    padding: 12px 10px;
    box-sizing: border-box;
}

/* Título del banner */
.banner-dimar .elementor-iqit-banner-content h3,
.banner-dimar .elementor-iqit-banner-content h5 {
    color: #333333;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

/* Ocultar título del logotipo del footer Dimar */
#iqithtmlandbanners-block-2 > h5.block-title {
    display: none !important;
}


/* ===================================
   DIMAR - SUBVENCIONES FOOTER
   =================================== */

.subvenciones-dimar {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    text-align: center;
}

/* Primera fila: tres carteles */
.subvenciones-dimar .subvenciones-primera {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 35px;
}

.subvenciones-dimar .subvenciones-primera img {
    display: block;
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit: contain;
}

/* Segunda fila: Kit Digital */
.subvenciones-dimar .subvenciones-kitdigital {
    text-align: center;
    margin: 25px auto 35px;
}

.subvenciones-dimar .subvenciones-kitdigital img {
    display: block;
    width: 100%;
    max-width: 850px;
    height: auto;
    margin: 0 auto;
}

/* Tercera fila: Xunta 2024 */
.subvenciones-dimar .subvenciones-ultima {
    text-align: center;
    margin: 20px auto 35px;
}

.subvenciones-dimar .subvenciones-ultima img {
    display: block;
    width: 100%;
    max-width: 350px;
    height: auto;
    margin: 0 auto;
}

/* Adaptación a móviles */
@media (max-width: 768px) {
    .subvenciones-dimar .subvenciones-primera {
        flex-direction: column;
        gap: 25px;
    }

    .subvenciones-dimar .subvenciones-primera img {
        max-width: 90%;
    }

    .subvenciones-dimar .subvenciones-kitdigital img {
        max-width: 100%;
    }
}

/* =======================================
   DIMAR - PAGINA DE CONTACTO
   ======================================= */

/* Banner superior */
.dimar-contact-hero {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    background-image:
        linear-gradient(
            90deg,
            rgba(0,0,0,.55),
            rgba(0,0,0,.05)
        ),
        url('/img/cms/bg-breadcrumb.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 50px 7%;
}

.dimar-contact-hero-content {
    max-width: 520px;
    color: #fff;
}

.dimar-contact-hero-content > span {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
}

.dimar-contact-hero h1 {
    color: #fff;
    font-size: 42px;
    font-weight: 600;
    margin: 15px 0;
}

.dimar-contact-hero p {
    color: #fff;
    font-size: 16px;
    line-height: 1.7;
}

.dimar-contact-line {
    width: 55px;
    height: 3px;
    background: #8cbf26;
    margin: 18px 0;
}

/* Contenido */
.dimar-contact-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 15px 65px;
}

/* Tres tarjetas */
.dimar-contact-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.dimar-contact-card {
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    padding: 40px 20px;
    min-height: 240px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0,0,0,.035);
}

.dimar-contact-icon {
    width: 72px;
    height: 72px;
    border: 2px solid #8cbf26;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    color: #8cbf26;
    font-size: 27px;
}

.dimar-contact-card h2 {
    color: #222;
    font-size: 23px;
    font-weight: 500;
    margin-bottom: 18px;
}

.dimar-contact-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.8;
}

.dimar-contact-card a {
    color: #444;
    overflow-wrap: anywhere;
}

.dimar-contact-card a:hover {
    color: #8cbf26;
}

/* Contenedor formulario */
.dimar-contact-form-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 45px 55px;
    box-shadow: 0 5px 25px rgba(0,0,0,.035);
}

.dimar-contact-form-heading {
    text-align: center;
    margin-bottom: 35px;
}

.dimar-contact-form-heading > span {
    color: #8cbf26;
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 12px;
}

.dimar-contact-form-heading h2 {
    color: #222;
    font-size: 30px;
    margin: 12px 0;
}

.dimar-contact-form-heading .dimar-contact-line {
    margin: 15px auto;
}

.dimar-contact-form-heading p {
    color: #777;
    font-size: 15px;
}

/* Formulario PrestaShop */
.dimar-contact-form-content .contact-form {
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
}

.dimar-contact-form-content .contact-form h3 {
    display: none;
}

.dimar-contact-form-content .form-control {
    border: 1px solid #dedede;
    border-radius: 4px;
    box-shadow: none;
    min-height: 45px;
}

.dimar-contact-form-content textarea.form-control {
    min-height: 150px;
}

.dimar-contact-form-content .form-control:focus {
    border-color: #8cbf26;
    box-shadow: none;
}

.dimar-contact-form-content .btn-primary {
    background: #8cbf26;
    border-color: #8cbf26;
    color: #fff;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 4px;
}

.dimar-contact-form-content .btn-primary:hover {
    background: #76a51d;
    border-color: #76a51d;
}

/* Tablet y móvil */
@media (max-width: 991px) {
    .dimar-contact-cards {
        grid-template-columns: 1fr;
    }

    .dimar-contact-card {
        min-height: auto;
    }

    .dimar-contact-form-box {
        padding: 30px 20px;
    }
}

@media (max-width: 575px) {
    .dimar-contact-hero {
        min-height: 280px;
        padding: 35px 20px;
    }

    .dimar-contact-hero h1 {
        font-size: 30px;
    }

    .dimar-contact-form-heading h2 {
        font-size: 25px;
    }
}

/* DIMAR - CONTACTO: cabecera a ancho completo */

/* Ocultar migas de pan solo en contacto */
body#contact .breadcrumb {
    display: none !important;
}

/* Eliminar espacio entre header y banner */
body#contact #wrapper {
    padding-top: 0 !important;
}

body#contact .page-header {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Banner a todo el ancho de la ventana */
body#contact .dimar-contact-hero {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: 430px;
    padding: 60px max(7%, calc((100vw - 1200px) / 2));
    display: flex;
    align-items: center;
}

/* Ajustes móviles */
@media (max-width: 768px) {
    body#contact .dimar-contact-hero {
        min-height: 300px;
        padding: 40px 25px;
    }
}


/* DIMAR - Top Bar: redes sociales a la derecha */

/* Alinear los elementos de la barra a la derecha */
#header .header-nav .row.justify-content-between {
    justify-content: flex-end !important;
}

/* Mover la zona izquierda al extremo derecho */
#header .header-nav .left-nav {
    order: 3;
    margin-left: auto !important;
    margin-right: 0 !important;
    text-align: right;
    flex-grow: 0;
}

/* Ocultar las otras zonas de la barra superior */
#header .header-nav .center-nav,
#header .header-nav .right-nav {
    display: none !important;
}


/* DIMAR - Redes sociales en horizontal */

#header .header-nav .left-nav {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

#header .header-nav .left-nav .social-links,
#header .header-nav .left-nav .social-icons,
#header .header-nav .left-nav ul {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin: 0;
    padding: 0;
}

#header .header-nav .left-nav li {
    display: inline-flex !important;
    margin: 0;
}

/* DIMAR - Página Sobre nosotros */

/* Ocultar migas de pan */
body#cms.cms-id-4 .breadcrumb {
    display: none !important;
}

/* Ocultar título automático de la página */
body#cms.cms-id-4 .page-header {
    display: none !important;
}

/* Eliminar espacio superior */
body#cms.cms-id-4 #main,
body#cms.cms-id-4 .page-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* DIMAR - Eliminar espacio superior en Sobre nosotros */

body#cms.cms-id-4 #wrapper {
    padding-top: 0 !important;
}

body#cms.cms-id-4 #content-wrapper,
body#cms.cms-id-4 #main,
body#cms.cms-id-4 .page-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body#cms.cms-id-4 .elementor-section:first-child {
    margin-top: 0 !important;
}


/* DIMAR - Ocultar solo el aviso de combinaciones */
.product-miniature .product-combination-only-unavailable {
    display: none !important;
}


/* =======================================
   DIMAR - MENÚ LATERAL DE CATEGORÍAS
   ======================================= */

#left-column .block-categories {
    background: #fff;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 6px;
}

#left-column .block-categories .block-title {
    font-size: 17px;
    font-weight: 600;
    text-transform: uppercase;
    border-left: 4px solid #a8c76f;
    border-bottom: 1px solid #eee;
    padding: 0 0 14px 12px;
    margin-bottom: 12px;
}

/* Reservar espacio fijo para la flecha en cada enlace */
#left-column .block-categories .category-sub-menu li > a {
    position: relative;
    display: block !important;
    font-size: 13px;
    font-weight: 400;
    color: #444;
    padding: 10px 12px 10px 28px !important;
    border-bottom: 1px solid #f2f2f2;
    transition: color .2s ease, background-color .2s ease;
}

/* Si la flecha del tema es un pseudoelemento del enlace,
   mantenerla centrada verticalmente */
#left-column .block-categories .category-sub-menu li > a::before {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 !important;
    line-height: 1;
}

#left-column .block-categories .category-sub-menu li > a:hover {
    color: #769b39;
    background: #f5f9ed;
    border-radius: 4px;
}

#left-column .block-categories .category-sub-menu li > a.selected,
#left-column .block-categories .category-sub-menu li > a.current {
    color: #769b39;
    font-weight: 600;
}

#left-column .block-categories .collapse-icons {
    color: #8ba94e;
}

/* DIMAR - Centrar título de productos destacados */
.featured-products .products-section-title {
    text-align: center !important;
}

/* DIMAR - Separación en productos destacados */
.featured-products .products {
    margin-top: 30px !important;
}


/* DIMAR - Separación lateral de la cabecera */

@media (min-width: 992px) {
    #header .header-top > .container,
    #header .header-top > .container-fluid {
        padding-left: 50px !important;
        padding-right: 50px !important;
    }
}
/* Más espacio alrededor del precio en listados */
.product-miniature .product-price-and-shipping {
    margin-top: 10px;
    margin-bottom: 14px;
}

/* Opcional: separar un poco más el título del precio */
.product-miniature .product-title {
    margin-bottom: 8px;
}

/* DIMAR - Ocultar contador de productos */
#products .total-products,
#products .showing {
    display: none !important;
}


/* DIMAR - Pie de página en móvil */
@media (max-width: 767px) {

    /* Cada columna del pie ocupa todo el ancho */
    #footer .footer-container .row > [class*="col-"] {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Separación entre bloques */
    #footer .footer-container .row > [class*="col-"] {
        margin-bottom: 22px;
    }

    /* Evitar que los enlaces se partan innecesariamente */
    #footer .block-links a {
        overflow-wrap: break-word;
        word-break: normal;
    }

    /* Separación de los títulos */
    #footer .block-title {
        margin-bottom: 14px;
    }
}

/* ==========================================
   DIMAR - FICHA DE PRODUCTO
   ========================================== */

/* Precio grande y verde */
body#product .product-prices .current-price .price {
    color: #a8c95a !important;
    font-size: 42px !important;
    font-weight: 700 !important;
    line-height: 1.15;
}

/* Separación del precio */
body#product .product-prices {
    margin: 22px 0 25px;
}

/* Botón de compra verde */
body#product .product-add-to-cart .add-to-cart {
    background: #b2cb7a !important;
    border-color: #8cc63e !important;
    color: #000000 !important;
    min-width: 240px;
    min-height: 46px;
    font-size: 14px;
   
    text-transform: uppercase;
}

/* Efecto hover */
body#product .product-add-to-cart .add-to-cart:hover {
    background: #b2cb7a !important;
    border-color: #b2cb7a !important;
}

/* Separación entre descripción y atributos */
body#product .product-variants {
    margin-top: 25px;
    margin-bottom: 25px;
}

/* Espacio entre talla y color */
body#product .product-variants .product-variants-item {
    margin-bottom: 15px;
}

/* Separación debajo del bloque de compra */
body#product .product-add-to-cart {
    margin-bottom: 15px;
}

/* Adaptación móvil */
@media (max-width: 767px) {
    body#product .product-prices .current-price .price {
        font-size: 34px !important;
    }

    body#product .product-add-to-cart .add-to-cart {
        min-width: 0;
        max-width: 100%;
    }
}

/* ==========================================
   DIMAR - ATRIBUTOS SELECCIONADOS EN VERDE
   ========================================== */

/* Atributos de talla y color */
body#product .product-variants .input-color,
body#product .product-variants .input-radio {
    cursor: pointer;
}

/* Tallas seleccionadas */
body#product .product-variants .input-radio:checked + span,
body#product .product-variants .input-radio:checked + label {
    border-color: #b2cb7a !important;
    color: #b2cb7a !important;
    background-color: #f5faee !important;
}

/* Colores seleccionados */
body#product .product-variants .input-color:checked + span,
body#product .product-variants .input-color:checked + label {
    border-color: #b2cb7a!important;
    color: #b2cb7a !important;
    box-shadow: 0 0 0 1px #8cc63e !important;
}

/* Selección de atributos con botones */
body#product .product-variants .input-radio:checked + .radio-label,
body#product .product-variants .input-radio:checked + .color {
    border: 2px solid #b2cb7a !important;
    color: #b2cb7a !important;
    background-color: #f5faee !important;
}

/* Resaltar opciones al pasar el ratón */
body#product .product-variants .radio-label:hover {
    border-color: #b2cb7a !important;
    color: #b2cb7a !important;
}

/* ==========================================
   DIMAR - TALLAS Y COLORES
   ========================================== */

/* Tallas y colores seleccionados: verde y negrita */
body#product .product-variants .input-radio:checked + .radio-label,
body#product .product-variants .input-radio:checked + span,
body#product .product-variants .input-color:checked + span {
    color: #b2cb7a !important;
    border-color: #b2cb7a !important;
    font-weight: 700 !important;
}

/* Opciones desactivadas */
body#product .product-variants input:disabled + span,
body#product .product-variants input:disabled + label,
body#product .product-variants .disabled {
    opacity: 0.45;
    cursor: not-allowed !important;
}

/* Cursor de prohibido en atributos desactivados */
body#product .product-variants input:disabled,
body#product .product-variants input:disabled + span,
body#product .product-variants input:disabled + label {
    cursor: not-allowed !important;
    pointer-events: auto;
}

/* ==========================================
   DIMAR - VENTANA PRODUCTO AÑADIDO AL CARRITO
   ========================================== */

/* Ventana general */
#blockcart-modal .modal-content {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
}

/* Cabecera */
#blockcart-modal .modal-header {
    background: #ffffff;
    padding: 24px 30px;
    border-bottom: 1px solid #eeeeee;
}

/* Título de confirmación */
#blockcart-modal .modal-title {
    font-size: 19px;
    font-weight: 600;
    color: #222222;
    line-height: 1.4;
}

/* Icono de confirmación */
#blockcart-modal .modal-title i,
#blockcart-modal .modal-title .material-icons {
    color: #8cc63e !important;
}

/* Interior */
#blockcart-modal .modal-body {
    padding: 30px;
    background: #ffffff;
}

/* Fotografía del producto */
#blockcart-modal .product-image {
    border-radius: 5px;
    max-width: 100%;
    height: auto;
}

/* Nombre del producto */
#blockcart-modal .product-name {
    font-size: 15px;
    font-weight: 600;
    color: #333333;
    line-height: 1.5;
}

/* Resumen del carrito */
#blockcart-modal .cart-content {
    font-size: 14px;
    color: #555555;
}

/* Total del carrito */
#blockcart-modal .cart-content .cart-total {
    color: #659b20;
    font-weight: 700;
    font-size: 17px;
}

/* Botones */
#blockcart-modal .cart-content-btn {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

/* Finalizar compra */
#blockcart-modal .cart-content-btn .btn-primary {
    background: #8cc63e !important;
    border: 1px solid #8cc63e !important;
    color: #ffffff !important;
    padding: 14px 20px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Hover finalizar */
#blockcart-modal .cart-content-btn .btn-primary:hover {
    background: #76ab2b !important;
    border-color: #76ab2b !important;
}

/* Continuar comprando */
#blockcart-modal .cart-content-btn .btn-secondary {
    background: #ffffff !important;
    border: 1px solid #dddddd !important;
    color: #444444 !important;
    padding: 13px 20px;
    border-radius: 5px;
    font-weight: 500;
}

/* Hover continuar */
#blockcart-modal .cart-content-btn .btn-secondary:hover {
    background: #f5faee !important;
    border-color: #8cc63e !important;
    color: #659b20 !important;
}

/* Móvil */
@media (max-width: 767px) {
    #blockcart-modal .modal-header {
        padding: 20px;
    }

    #blockcart-modal .modal-title {
        font-size: 16px;
    }

    #blockcart-modal .modal-body {
        padding: 20px 15px;
    }

    #blockcart-modal .cart-content-btn .btn {
        width: 100%;
        white-space: normal;
    }
}

/* DIMAR - Tallas y colores desactivados en gris */

/* Atributos en desplegables */
body#product .product-variants select option:disabled {
    color: #999999 !important;
  
}

/* Tallas y colores mostrados como botones */
body#product .product-variants input:disabled + .radio-label,
body#product .product-variants input:disabled + .color,
body#product .product-variants input:disabled + label {
    color: #999999 !important;
    border-color: #dddddd !important;
    background-color: #f5f5f5 !important;
    opacity: 0.6;
    cursor: not-allowed !important;
}

/* DIMAR - Tallas disponibles en negrita */
body#product .product-variants select option:not(:disabled) {
    font-weight: 700 !important;
    color: #333333 !important;
}

/* Tallas agotadas en gris */
body#product .product-variants select option:disabled {
    font-weight: 400 !important;
    color: #999999 !important;
}
