/*
 Theme Name:   Storefront Child
 Theme URI:    https://www.rsimportacionesysuministros.com.co/storefront-child/
 Description:  Tema hijo para el tema Storefront
 Author:       Tu Nombre
 Author URI:   https://www.rsimportacionesysuministros.com.co/
 Template:     storefront
 Version:      1.0.0
 Text Domain:  storefront-child
*/

/* Tus personalizaciones CSS empiezan debajo de esta línea */


/* Estilos para precios en WooCommerce */
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price,
body {
    font-size: 20px;
    font-weight: 700 ;
}

.entry-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
    font-family: 'Open Sans', sans-serif;
    margin: 0 0 20px;
}

/* Diseño de productos en lista */
.products li.product .product-outer {
    display: flex;
    flex-direction: column;
    border-bottom: 2px solid red;
    padding-bottom: 0;
    margin: 5px 0 0;
}

.products li.product + li.product {
    margin-top: 5px;
}

/* Título del producto */
.woocommerce-loop-product__title {
    font-weight: 700 ;
    text-align: left ;
    margin: 0;
    padding: 0;
    font-size: 2.1em;
    color: #333;
}

.woocommerce-loop-product__title a {
    color: inherit;
    text-decoration: none;
}

.woocommerce-loop-product__title a:hover {
    color: #000;
    text-decoration: underline;
}

/* Botón "Ver detalles" */
.products li.product .view-details-button {
    font-size: 14px ;
    font-weight: 700 ;
    background-color: #007cba ;
    color: #fff ;
    padding: 10px 15px ;
    text-align: center ;
    border-radius: 4px ;
    text-transform: uppercase ;
    display: block ;
    width: 100% ;
    text-decoration: none ;
    transition: 0.3s ;
    position: relative;
    overflow: hidden;
}

.products li.product .view-details-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transform: rotate(45deg);
    animation: 1.5s linear infinite shine;
}

.products li.product .view-details-button:hover {
    background-color: #005a8c ;
}

/* Precios con descuento */
.woocommerce div.product p.price del,
.woocommerce div.product span.price del,
.woocommerce ul.products li.product .price del {
    color: #000000  !important;  
    text-decoration-color: #000000 !important; 
}

.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins,
.woocommerce ul.products li.product .price ins {
    color: #CC0000  !important;
    font-weight: 700;
    font-size: 22px;
}

/* Etiqueta de rebaja */
.woocommerce span.onsale {
    background-color: red;
    color: #fff;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
}

/* Media Queries */
@media (max-width: 768px) {
    /* Diseño móvil */
    .products li.product {
        width: 100% ;
        margin: 0 ;
        padding: 0 ;
        border-bottom: 2px solid red;
    }

    .products li.product .product-outer {
        flex-direction: row;
        align-items: flex-start;
        padding: 0 ;
        margin: 0 ;
        gap: 0;
    }

    .products li.product .product-image {
        flex: 0 0 48%;
        padding: 0 ;
        margin: 0 ;
        line-height: 0;
    }

    .products li.product .product-summary {
        flex: 0 0 52%;
        padding: 0 0 0 10px ;
        background-color: #f5f5f5;
        margin: 0 ;
    }

    .products li.product + li.product {
        margin-top: 15px ;
    }

    .view-details-button {
        margin-top: 8px ;
    }

    .woocommerce-loop-product__title {
        font-size: 1em ;
        line-height: 1 ;
        margin-bottom: 5px ;
    }

    /* Ocultar elementos en dispositivos móviles */
    .archive .woocommerce-products-header__title,
    .menu-toggle span,
    .page-title,
    .post-type-archive-product .page-title,
    .secondary-navigation,
    .site-description,
    .tax-product_cat .page-title,
    .woocommerce-products-header__title {
        display: none ;
    }

    .woocommerce-products-header {
        margin: 0 ;
        padding: 0 ;
        min-height: 0 ;
    }

    /* Cabecera del sitio */
    #masthead {
        padding: 10px 0 ;
        min-height: 60px ;
    }

    .site-branding .site-title {
        font-size: 1.2em ;
        margin: 0 ;
        line-height: 1.2 ;
    }

    .site-search .search-field {
        padding: 8px ;
        font-size: 14px ;
        height: 40px ;
    }

    .site-search button[type=submit] {
        padding: 8px 12px ;
    }

    .storefront-primary-navigation {
        margin-top: 2px ;
        padding: 2px 0 ;
    }

    /* Menú hamburguesa */
    .menu-toggle::after,
    .menu-toggle::before {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        height: 3px;
        background: #333;
        transition: 0.3s;
    }

    .menu-toggle::before {
        top: 8px;
        box-shadow: 0 12px 0 #333;
    }

    .menu-toggle::after {
        top: 24px;
    }

    .menu-toggle[aria-expanded=true]::before {
        transform: translateX(-50%) rotate(45deg);
        top: 15px;
        box-shadow: none;
    }

    .menu-toggle[aria-expanded=true]::after {
        transform: translateX(-50%) rotate(-45deg);
        top: 15px;
    }

    /* Navegación principal */
    .main-navigation .menu > li > a {
        padding: 8px 12px ;
        font-size: 14px ;
        margin: 4px 0 ;
    }

    .col-full {
        gap: 10px ;
        padding: 8px 0 ;
    }

    .site-branding {
        flex: 1 0 55% ;
        padding: 0 5px ;
    }

    .site-header-cart {
        flex: 1 0 40% ;
        padding-right: 15px ;
    }

    .site-header-cart .cart-contents {
        padding: 12px ;
        display: flex;
        justify-content: flex-end;
        gap: 8px ;
    }

    .site-header-cart .count {
        font-size: 14px ;
        width: 20px ;
        height: 20px ;
        line-height: 20px ;
    }

    .site-search {
        margin-top: 10px ;
        padding: 0 10px ;
    }

    .search-field {
        padding: 8px 15px ;
        margin-right: 10px ;
    }

    .woocommerce-product-search button[type=submit] {
        padding: 10px 20px ;
        font-size: 14px ;
    }

    /* Pie de página móvil */
    .storefront-handheld-footer-bar {
        /*height: 40px ;*/
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05) ;
    }

    .storefront-handheld-footer-bar ul.columns-3 {
        height: 100% ;
        align-items: center ;
    }

    .storefront-handheld-footer-bar li a {
        /*font-size: 10px ;*/
        /*padding: 5px ;*/
        line-height: 1.2 ;
        display: flex ;
        flex-direction: column ;
        align-items: center ;
    }

    .storefront-handheld-footer-bar .count {
        /*: 15px ;*/
        /*height: 15px ;*/
        /*font-size: 9px ;*/
        line-height: 15px ;
        position: relative ;
        top: -2px ;
    }
}

/* Animación */
@keyframes shine {
    from {
        transform: translateX(-100%) rotate(45deg);
    }
    to {
        transform: translateX(100%) rotate(45deg);
    }
}

/* Ocultar elementos específicos */
.products li.product .add_to_cart_button,
.single-product .col-full>#block-5,
.storefront-breadcrumb,
body.single-product .onsale {
    display: none ;
}

/* Título del producto en vista individual */
.single-product h1.product_title.entry-title {
    font-size: 24px;
}

/* Ocultar mensaje de cumplimiento */
#cmplz-message-1-optout {
    display: none ;
}

/* Reducir o eliminar el espacio en blanco del contenedor principal */
li.product {
    margin-bottom: 10px !important; /* Ajusta este valor según prefieras */
    padding-bottom: 0 !important;
}

/* Ajustar estilos específicos de los elementos internos */
li.product .product-outer,
li.product .product-image,
li.product .product-summary {
    margin: 0 !important;
    padding: 0 !important;
}

/* Ajustar el espacio entre el título y el precio */
li.product h2.woocommerce-loop-product__title {
    margin-bottom: 5px !important; /* Reduce el espacio debajo del título */
}

/* Ajustar el espacio del botón "Ver descripción" */
li.product .button.view-details-button {
    margin-top: 5px !important; /* Ajusta este valor según prefieras */
}

/* Ajustar el espacio del precio */
li.product .price {
    margin-bottom: 5px !important; /* Reduce el espacio debajo del precio */
}



