/*
Theme Name: Blank Full
Theme URI: 
Author: Xavier Soler | Entorno Digital SAU
Author URI: 
Description: Tema para Entorno digital
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blankfull
Tags: grid-layout, wide-blocks, full-site-editing, full-width-template, 
*/


/* Styles shared with block editor are located in "assets/css/shared.css" */

strong {
    font-weight: 700;
}


/* ANIMATIONS */

.has-animations [class*="animation--init"] :where(h1, h2, h3, h4, h5, h6, li, p, .wp-block-buttons) {
    opacity: 0;
    transform: translateY(1em);
}


.has-animations .animation--end :where(h1, h2, h3, h4, h5, h6, li, p, .wp-block-buttons) {
    opacity: 1;
    transition: all 0.6s ease;
    transform: translateY(0);
}


.has-animations .animation--end :where(p) {
    transition-delay: 0.4s;
}

.has-animations .animation--end :where(.wp-block-buttons) {
    transition-delay: 0.8s;
}

/* Media query for mobile */
@media screen and (min-width: 601px) {
    .only-mobile {
        display: none !important
    }
}

@media screen and (max-width: 600px) {
    .no-mobile {
        display: none !important
    }
}


/* header */
@media screen and (min-width: 900px) {

    header.wp-block-template-part {
        position: sticky;
        top: 0;
        z-index: 3;
        box-shadow: 0 0 0.5em 0.5em rgba(0, 0, 0, 0.15);
    }

    .scrolled-header header .custom-logo-link {
        max-width: 150px;
        overflow: hidden;
    }
}


/* SINGLE PRODUCT */
.single.single-product .wp-block-woocommerce-product-image-gallery,
.single.single-product .wp-block-woocommerce-product-gallery {
    position: sticky;
    top: 100px;
}


.single.single-product .quantity input[type=number] {
    width: auto;
    max-width: 6em;
    height: 100% !important;
    border-radius: 4px;
    border-color: var(--wp--preset--color--accent);

}

.single.single-product.woocommerce div.product form.cart {
    margin-bottom: 0 !important;
}

.products-grid-home .wp-block-read-more {
    border-radius: 4px;
    /* border-color: var(--wp--preset--color--accent); */
    border: 1px solid currentColor;
    color: var(--wp--preset--color--accent);
    font-family: inherit;
    font-size: var(--wp--preset--font-size--small);
    line-height: inherit;
    padding-top: 0.6em;
    padding-right: 1em;
    padding-bottom: 0.6em;
    padding-left: 1em;
    text-decoration: none;
}


.single-product h2.woocommerce-Reviews-title {
    font-size: var(--wp--preset--font-size--is-h-3);
}


.single_add_to_cart_button {
    background: var(--wp--preset--color--contrast-2);
}

.woocommerce div.product form.cart div.quantity input.qty {
    padding: 0 !important;
    font-weight: bold;
    font-size: 14px !important;
    ;
}

/*descuento */

.wc-block-cart-item__total .wc-block-components-product-badge.wc-block-components-sale-badge {
    color: #FF5F00;
}

.wc-block-cart-item__total .wc-block-components-product-badge.wc-block-components-sale-badge:after {
    content: '5% DTO';
    display: block;
    font-size: 0.8em;
    text-align: center;
}

/* hide standard shipping when free shipping is available */
.wc-block-components-radio-control__option:nth-child(2) {
    display: none;
}

/* FORMS */

.default-forms {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--wp--style--block-gap);
    padding-bottom: 1em;
}

.default-forms p {
    margin-block-start: 0;
    margin-block-end: 0;
}

/* .default-forms label:not(:has(input[type=checkbox]), :has(input[type=radio])) {
    display: none;
} */

.default-forms br {
    display: none;
}

.default-forms .form-1-col {
    grid-column: span 2;
}

.default-forms :is(input[type=text], input[type=email], textarea) {
    width: 100%;
    font-family: var(--wp--preset--font-family--text);
    font-size: inherit;
    padding: calc(var(--wp--style--block-gap) / 2);
    border: none;
    background: var(--wp--preset--color--base-2);
}

.default-forms input:focus,
.default-forms textarea:focus {
    box-shadow: 0 0 20px rgba(154 218 171 / 20%);
    outline: none;
    border-color: var(--wp--preset--color--contrast);
    border-width: 1px;
}

.default-forms input[type=submit] {
    background-color: var(--wp--preset--color--contrast);
    border-color: var(--wp--preset--color--accent);
    border-width: 2px;
    color: var(--wp--preset--color--base);
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    padding-top: 0.6em;
    padding-right: 1em;
    padding-bottom: 0.6em;
    padding-left: 1em;
    text-decoration: none;
}

/* comments */



.commentlist h4 {
    margin: 0.2em 0;
    font-size: var(--wp--preset--font-size--is-h-5);
}

.commentlist p {
    font-size: var(--wp--preset--font-size--text-16);
}


.wp-block-button__link:hover {
    background-color: var(--wp--preset--color--contrast-2);
}

.wp-block-button__link.has-contrast-2-background-color:hover {
    background-color: var(--wp--preset--color--accent) !important;
    color: var(--wp--preset--color--contrast-2) !important;
}

/* reviews */

.review-product .product-thumbnail img {
    opacity: 0;
}

.review-product .product-thumbnail {
    background: url(/wp-content/uploads/2025/07/cropped-favicon-nutrasanmascotas-100x100.png) no-repeat center center;
    background-size: cover;
    border-radius: 0 !important;
}

.home-video {
    aspect-ratio: 1920/1080;
}