/*
Theme Name: the7dtchild
Author: Dream-Theme
Author URI: http://dream-theme.com/
Description: The7 is perfectly scalable, performance and SEO optimized, responsive, retina ready multipurpose WordPress theme. It will fit every site – big or small. From huge corporate portals to studio or personal sites – The7 will become a great foundation for your next project!
Version: 1.0.0
License: This WordPress theme is comprised of two parts: (1) The PHP code and integrated HTML are licensed under the GPL license as is WordPress itself.  You will find a copy of the license text in the same directory as this text file. Or you can read it here: http://wordpress.org/about/gpl/ (2) All other parts of the theme including, but not limited to the CSS code, images, and design are licensed according to the license purchased. Read about licensing details here: http://themeforest.net/licenses/regular_extended
Template: dt-the7
*/

/* Desktop */
@media (min-width: 1025px) {
  body.single-product #main {
    padding-top: 180px !important;
  }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 1024px) {
  body.single-product #main {
    padding-top: 140px !important;
  }
}

/* Móviles */
@media (max-width: 767px) {
  body.single-product #main {
    padding-top: 100px !important;
  }
}









/* =================================================================== */
/* CSS Corregido para CARRITO DE BLOQUES (WooCommerce Blocks) en Tema The7 */
/* =================================================================== */

/* --- 1. Márgenes para el contenido del Carrito de Bloques --- */
/* Apuntamos al contenedor principal del bloque del carrito */
.woocommerce-cart .wp-block-woocommerce-cart {
    max-width: 1200px !important; /* Ancho máximo del contenido */
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* --- 2. Estilo para el Botón "Finalizar Compra" del Carrito de Bloques --- */
/* Apuntamos a la clase correcta del botón que vimos en tu captura */
.wc-block-cart__submit-container .wc-block-components-button.wp-element-button {
    background-color: #6a0dad !important; /* Tu color de fondo morado */
    color: #ffffff !important;           /* Texto en blanco */
    border: none !important;
    padding: 12px 25px !important;
    font-size: 16px !important;
    border-radius: 5px !important;
    text-align: center !important;
    line-height: normal !important;
    box-shadow: none !important;
    transition: background-color 0.3s ease !important;
}

/* Efecto hover para el botón */
.wc-block-cart__submit-container .wc-block-components-button.wp-element-button:hover {
    background-color: #7f2ad0 !important; /* Morado un poco más claro */
    color: #ffffff !important;
}

/* --- Márgenes para el bloque de Finalizar Compra (Solución Definitiva) --- */
body.woocommerce-checkout .wp-block-woocommerce-checkout {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
}





/* Ocultar el botón de actualizar carrito, ya que ahora es automático */
.woocommerce [name='update_cart'] {
    display: none !important;
}



/* Ocultar el botón de actualizar carrito, ya que ahora es automático */
.woocommerce [name='update_cart'] {
    display: none !important;
}



add_filter( 'gettext', 'traducir_textos_del_tema_the7', 20, 3 );

function traducir_textos_del_tema_the7( $translated_text, $untranslated_text, $domain ) {
    // Solo aplicamos la traducción a los textos del tema The7
    if ( 'the7mk2' === $domain ) {
        // Usamos una estructura 'switch' para poder añadir más traducciones fácilmente en el futuro
        switch ( $untranslated_text ) {
            case 'Related Articles':
                $translated_text = 'Artículos Relacionados';
                break;
            // Ejemplo: Si quisieras traducir "Read More", añadirías otro caso aquí:
            // case 'Read More':
            //     $translated_text = 'Leer Más';
            //     break;
        }
    }
    return $translated_text;
}


