/*
Theme Name: petmarket
Theme URI: https://xentsoft.com/permarket
Author: Marcelo Vega
Author URI: https://xentsoft.com
Description: petmarket es un tema compatible con Woocommerce
Version: 1.0
Tags: blog, one-column, custom-background, custom-colors, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks, accessibility-ready
Requires at least: 5.0
Tested up to: 5.4
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: permarket
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

:root {
    --color-principal: #E72B7A;
    --color-complementario: #139EA1;
    --color-complementario-soft: #F0E9F2;
    --color-btn: #F4E60C;
    --color-texto: #444444;
    --fuente-principal:sans-serif;
    --fuente-title: 'Asap', sans-serif;
}

* {
	box-sizing: border-box;
    margin:0;
	padding:0;
}

html, body {
    width:100%;
    overflow-x: hidden;
}
body {
	margin:0;
    font-family: var(--fuente-principal);
    font-size: .9rem;
    font-optical-sizing: auto;
	color: var(--color-texto);
}

body::-webkit-scrollbar {
	width: 7px;
  }
  body::-webkit-scrollbar-track {
	background: var(--color-principal);
  }
  body::-webkit-scrollbar-thumb {
	background-color: var(--color-resalte);
	outline: 1px solid var(--color-resalte);
	border-radius:10px;
  }

a {
    text-decoration: none;
    color: var(--color-texto);
}

a:hover {
    color:var(--color-complementario);
}

.h1, h1 {
    font-size: calc(1rem + 1.5vw);
}

.text-center {
    text-align:center;
}
ul {
    list-style:none; 
	padding:0;
	margin:0;
}

button {
	cursor: pointer;
}

.top   {
    display:flex;
    flex-direction: column;
    align-items: center;
    padding: 1em;
    gap:2em;
 } 
 .top > div:nth-child(2) {
        display:flex;
        justify-content: center;
    }
  .top > div:last-child {
    display:flex;
    flex-direction:row;
    justify-content: center;
    gap:2em;
    
 }
 @media (min-width:768px)  {
    .top {
        display:grid;
        grid-template-columns: 134px auto 340px;
    }
   

    .top > div:last-child {
        justify-content: flex-end;
    }  
 }

.navbar {
    margin: 0 1em;
    padding:0;
}
#mnmwp-main-menu {
    background: var(--color-principal) !important;

}
@media(min-width:1150px) {
#mnmwp-main-menu {
    background:none;
    background-image: url("img/menu-right.png") !important;
    background-position: right bottom !important; 
    background-repeat: no-repeat !important;
}
}

#mnmwp-main-menu > ul > li > a {
    padding:11px;
}
#mnmwp-main-menu > ul > li > a:hover {
   background: var(--color-complementario);
}
.menu-1 {
    padding-left:35px !important;
    background: url("img/menu-1.png") no-repeat left top !important;
}
.menu-2 {
    padding-left:35px !important;
    background: url("img/menu-2.png") no-repeat left top !important;
}
.menu-3 {
    padding-left:35px !important;
    background: url("img/menu-3.png") no-repeat left top !important;
}
.menu-4 {
    padding-left:35px !important;
    background: url("img/menu-4.png") no-repeat left top !important;
}
.menu-5 {
    padding-left:35px !important;
    background: url("img/menu-5.png") no-repeat left top !important;
}
.menu-6 {
    padding-left:35px !important;
    background: url("img/menu-6.png") no-repeat left top !important;
}
.menu-7 {
    padding-left:35px !important;
    background: url("img/menu-7.png") no-repeat left top !important;
}
 .buscador {
    background:#fff;
    padding:.5em;
 }
.search-form {
    width:100%;
    display:flex;
    flex-direction:row;
    justify-content: center;
}
 
 .search-field {
    height:35px;
    min-width:240px;
    width:100%;
    border: solid 1px var(--color-complementario);
    padding-left: 1em;
    border-radius:15px;
}

.search-submit {
    border:none;
    margin-left:-2em;
    background:none;
}

@media (min-width:768px) {
    .search-form {
        justify-content: flex-end;
    }
}

.promo-home {
    display:grid;
    grid-template-columns: 1fr;
    justify-content: center;
    gap:2em;
}
.promo-home > div  {
    text-align: center;
}

@media (min-width:768px) {
    .promo-home {
        margin:auto;
        grid-template-columns: 1fr 1fr;
    }
}
main, #main {
    margin-top:1.5em;
}
.separacion {
    margin-top: 2em;
}
.puntos {
    border-top: 3px dashed var(--color-complementario);
    padding-top:2em;

}

.orderby {
    border: 1px solid #999;
    height:35px;
}

h1, h2,h3,h4, .page-title, .has-large-font-size {
    margin-top:1em;
    font-family: var(--fuente-title) !important;
    font-weight: 400 !important;
    text-transform: initial !important;
    letter-spacing: -1px;
    line-height: 24px;
    color: var(--color-texto);
}
h1, h2, .wp-block-heading {
    font-size: 24px;
}

.has-large-font-size, .wc-block-cart__totals-title  {
    font-size: 24px !important;
    font-family: var(--fuente-title);
    color: var(--color-complementario) !important;
    font-weight: 400;
}

.woocommerce-loop-product__title {
    font-size: 1em;
}
ul.products {
    --grid-gap: 12px;
    --auto-grid-min-size: 160px;
    grid-template-columns: repeat(auto-fill, minmax(var(--auto-grid-min-size), 1fr));
    grid-gap: var(--grid-gap);
    display: grid;
  }
  ul.products:before{
    content:unset!important;
  }
  ul.products li.product  {
    width: 100%!important;
    display:flex;
    flex-direction:column;
    padding: 1.5em .5em .5em .5em !important; 
    border: solid 2px var(--color-complementario);
    border-radius: 25px;
    background-size: 100% 100%;
    margin: 3px auto 0;
    position: relative;
  }

  ul.products li.product a.woocommerce-loop-product__link {
    flex-grow: 1;
  }

    .woocommerce ul.products li.product a img {
    max-height:200px;
    width:auto;
    margin:auto;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    text-align:center;
    padding: .5em;
  }
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price {
    background: none;
}
  .woocommerce:where(body:not(.woocommerce-uses-block-theme)) ul.products li.product .price , .price{
    text-align:center;
    color: var(--color-texto);
    font-size:1.4em;
    background: var(--color-btn);
    padding: .5 1em;
    border-radius: 10px;
  }
  .woocommerce ul.products li.product .price {
   font-size: 1.2em;
}
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price, .woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price

 {
    color: var(--color-texto);
    text-align: left;
    font-weight: bold;
}
  .woocommerce ul.products li.product .button {
        display: inline-block;
        margin:1em auto;
        text-align:center;
        font-size: 12px;
        line-height: 15px;
        padding: 8px 12px;
        min-height: 15px;
        font-weight: bold;
        text-transform: uppercase;
    }
   
    .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button {
        background-color: var(--color-principal);
        color:#fff;
    }

    .woocommerce ul.products li.product:hover .button {
        background-color: var(--color-principal);
        color:#fff;
       
    }

    @media (min-width: 1024px) {
        .woocommerce ul.products li.product .button {
            position: absolute;
            top: 50%;
            left:50%;
            -webkit-transition: 0.35s;
            transition: 0.35s;
            background: transparent;
            color: transparent;
            transform: translate(-50%, -50%);

        }
    
    }
    .woocommerce ul.products li.product .onsale {
    top: 0;
    right: auto;
    left: 0;
    margin: -1.5em 0 0 -1em;
}

    
    .woocommerce span.onsale {
        min-height: 75px;
        min-width: 75px;
        padding: .202em;
        font-size: 1em;
        font-weight: 700;
        position: absolute;
        text-align: center;
        line-height: 3.236;
        border-radius: 100%;
        background: url("img/menu-8.png") no-repeat left top !important;
        color: transparent;
        font-size: .857em;
        z-index: 9;
    }

    /*Cart -page.php*/

    .wp-block-woocommerce-cart-cross-sells-block {
        border-top: solid 1px #ccc;
    }
    .wp-block-woocommerce-cart-cross-sells-block > div {
        display:flex;
        flex-direction: column;

    }

    @media(min-width:768px) {
        .wp-block-woocommerce-cart-cross-sells-block > div {
            flex-direction: row;
            gap:20px;
            
    
        }
    }
    .cross-sells-product {
        min-width:200px;
        display:flex !important;
        flex-direction:column !important;
        padding:7em 1.5em 1.5em 1.5em !important; 
        background-image: url("img/petmarket-bg-common.png");
        background-repeat: no-repeat;
        background-size: 100% 100%;
        margin: 3px auto 0;
        position: relative;
        text-align:center;
        box-sizing:unset;
      }
    
      .cross-sells-product div .wc-block-components-product-image {
        margin-top:1.1em;
      }
      

      .wc-block-components-product-title {
        font-size: 1em !important;
        font-weight: 400  !important;
      }

      .wp-block-woocommerce-cart .wp-block-woocommerce-cart-cross-sells-block .cross-sells-product div .wc-block-components-product-price {
        text-align:center;
        font-size: 1.4em;
      }

      .wp-block-woocommerce-cart .wp-block-woocommerce-cart-cross-sells-block .cross-sells-product .wc-block-components-product-button__button {
        background-color: var(--color-principal);
        color:#fff;
        display: inline-block;
        margin:1em auto;
        text-align:center;
        font-size: 12px;
        line-height: 15px;
        padding: 8px 12px;
        min-height: 15px;
        font-weight: bold;
        text-transform: uppercase;
    }

    .wp-block-woocommerce-cart .wp-block-woocommerce-cart-cross-sells-block .cross-sells-product {
        overflow: hidden;
    }
    .wp-block-woocommerce-cart .wp-block-woocommerce-cart-cross-sells-block .cross-sells-product:hover .wc-block-components-product-button__button {
        background-color: var(--color-principal);
        color:#fff;
    }
    
    @media (min-width: 1024px) {
    
        .wp-block-woocommerce-cart .wp-block-woocommerce-cart-cross-sells-block .cross-sells-product .wc-block-components-product-button__button {
            position: absolute;
            top: 50%;
            left:50%;
            -webkit-transition: 0.35s;
            transition: 0.35s;
            background: transparent;
            color: transparent;
            transform: translate(-50%, -50%);
            border-radius:0;
        }
    }

    .wc-block-components-product-image .wc-block-components-product-sale-badge--align-left {
        min-height: 3.236em;
        min-width: 3.236em;
        padding: .202em;
        font-size: 1em;
        font-weight: 700;
        position: absolute;
        text-align: center;
        line-height: 3.236;
        top: -10em !important;
        left: 13.5em !important;
        margin: 0;
        border-radius: 100%;
        background-color: var(--color-complementario);
        color: #fff;
        font-size: .857em;
        z-index: 9;
        text-transform:none;
    }


    /*single*/
   
    .entry-title {
        font-family: var(--fuente-title);
        color: var(--color-texto) !important;
        font-size: 24px;
        font-weight: 400;
        text-transform: initial !important;
        letter-spacing: -1px;
        line-height: 24px;
    }

    .woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price, .woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price  {
        color: var(--color-texto);
        text-align:left;
        font-weight:bold;
    }

    .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button {
        background-color: var(--color-principal) !important;
        color: #fcfbfe;
        font-weight: normal;
        height:35px;
    }
    .woocommerce .quantity .qty {
        height: 35px;
        margin-top:1em;
    } 
    
    .woocommerce div.product form.cart .variations select {
        height:35px;
        padding-left:1em;
        min-width:40% !important;
    }

    .woocommerce div.product form.cart {
        display:flex;
        flex-direction:column;
    }

    .woocommerce div.product form.cart .button {
        margin-top:1em;
        background: var(--color-complementario) !important;
        border-radius:20px;
        padding-left:2em;
        padding-right:2em;
    }

    .woocommerce div.product form.cart {
        margin-top: 2em;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs li {
        border: 1px solid var(--color-principal);
        background-color: #F2C688;
        color: var(--color-principal);
        display: inline-block;
        position: relative;
        z-index: 0;
        border-radius: 4px 4px 0 0;
        margin: 0 -5px;
        padding: 0 1em;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs::before {
        border-bottom: 1px solid var(--color-texto);
    }

    .woocommerce #review_form #respond p {
        margin: 0 0 10px;
        display: flex;
        flex-direction: column;
    }

    .woocommerce-error, .woocommerce-info, .woocommerce-message {
        padding: 1em 2em 1em 3.5em;
        margin: 0 0 2em;
        position: relative;
        background-color:var(--color-btn);
        color: #000;
        border-top: 3px solid var(--color-principal);
        list-style: none outside;
        width: auto;
        word-wrap: break-word;
    }

   .home-cart {
    display:flex;
    flex-direction: row;
    min-width:45px;
    position:relative;

   }

   .home-cart .items {
    position:absolute;
    margin-top:-10px;
    margin-left:24px;
    text-align:center;
    font-size: .8em;
    background: var(--color-texto);
    color:#fff;
    border-radius: 50%;
    width:25px;
    height:25px;
    padding-top:5px;
   }

@media(max-width:768px) {   
    #home-slider {
        display:none ;
    }
}
/* Footer */
.footer {
    display:flex;
    padding:2em 1em;
    flex-direction:column;
    gap:1em;
    background-color:#f1f1f1;
    border-bottom: #999 1px solid;
}

.footer > div:first-child {
    display:flex;
    flex-direction: column;
    justify-content: space-between;
    text-align:center;

}

.img-pagos {
    max-width:190px !important;

}
.img-gls {
    height:50px !important;
    width: 88px !important;
}

@media(min-width:768px) {
    .footer {
        flex-direction:row;
        justify-content: space-between;
    }

    .footer > div:first-child {
        text-align:left;
    }
    .img-pagos, .img-gls {

            margin-top:3em;
      

    }
}

.footer-nav a {
    color:var(--color-texto);
}

.footer-nav a.nav-link {
    border-bottom: 1px dotted #666;
}

.footer-vet {
    margin: 2em auto;
    width:120px !important;
    height:100px;
}
.post-footer {
    border-top: solid 1px #fff;
    padding:1em;
    border-top: #fff 1px solid;
    width:100%;
    display:flex;
    flex-direction: column;
    background-color: #f1f1f1;
}

@media (min-width:768px) {
    .post-footer {
        flex-direction:row;
        justify-content: space-between;
        align-items: center;
    }
    .post-footer div:first-child{
        text-align:left;
    }
    .post-footer div:last-child {
        text-align:right;
    }
}
/*Cart*/
.woocommerce .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals {
     width: 100%;
}