/*
Theme Name: Cosecha 4
Text Domain: cosecha4
Version: 1.0
*/

:root {
    --text-default     : #FBFBFB;
    --text-primary     : #877827;
    --text-primary-light: #8E867D;
    --text-primary-dark: #423626;
    --text-info        : #E7E4D4;
    --text-success     : #6D7934;
    --text-warning     : #BD9F00;
    --text-danger      : #DD1D1D;
    --text-gray      : #B3AFA8;
    --bg-default     : #FBFBFB;
    --bg-primary     : #877827;
    --bg-primary-light: #8E867D;
    --bg-primary-dark: #423626;
    --bg-info        : #E7E4D4;
    --bg-success     : #6D7934;
    --bg-warning     : #BD9F00;
    --bg-danger      : #DD1D1D;
    --bg-gray        : #B3AFA8;
    --bg-light       : #f9f9f9;

    --font-default: "Marcellus";
    --font-primary: "Arimo";
    --font-secondary: "EB Garamond";
}

.text-default      { color: var(--text-default) !important; }
.text-primary      { color: var(--text-primary) !important; }
.text-primary-light { color: var(--text-primary-light) !important; }
.text-primary-dark { color: var(--text-primary-dark) !important; }
.text-info         { color: var(--text-info) !important; }
.text-success      { color: var(--text-success) !important; }
.text-warning      { color: var(--text-warning) !important; }
.text-danger       { color: var(--text-danger) !important; }
.text-gray         { color: var(--text-gray) !important; }
.bg-default        { background-color: var(--bg-default) !important; }
.bg-primary        { background-color: var(--bg-primary) !important; }
.bg-primary-light  { background-color: var(--bg-primary-light) !important; }
.bg-primary-dark   { background-color: var(--bg-primary-dark) !important; }
.bg-info           { background-color: var(--bg-info) !important; }
.bg-success        { background-color: var(--bg-success) !important; }
.bg-warning        { background-color: var(--bg-warning) !important; }
.bg-danger         { background-color: var(--bg-danger) !important; }
.bg-gray           { background-color: var(--bg-gray) !important; }
.bg-light           { background-color: var(--bg-light) !important; }

.font-style-italic { font-style: italic !important; }

*, body {
    font-family: var(--font-primary);
}

.font-default { font-family: var(--font-default); }
.font-primary { font-family: var(--font-primary); }
.font-secondary { font-family: var(--font-secondary); }

nav .navbar-toggler:focus { box-shadow: none;}
nav.navbar .nav-link,
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-default);
}

nav.navbar .nav-link { color: var(--text-default); }
nav.navbar .nav-link.active { color: var(--text-info); }
nav.navbar-normal { background-color: white; }
nav.navbar-normal .nav-link { color: var(--text-primary-dark) !important; }
nav.navbar-normal .navbar-toggler span { color: var(--text-primary-dark); }
nav.navbar-transparent { background-color: transparent; }
nav.navbar-transparent .nav-link { color: white !important; }
nav.navbar-transparent .navbar-toggler span { color: var(--text-default); }

nav.navbar .offcanvas-top { height: 400px !important; }

nav.navbar .offcanvas .nav-link {
    padding: 20px;
    color: var(--text-primary-dark) !important;
    border-bottom: 1px solid var(--bg-info);
}

.z-index-0 { z-index: 0 !important; }
.z-index-1 { z-index: 1 !important; }
.z-index-2 { z-index: 2 !important; }
.z-index-9998 { z-index: 9998 !important; }
.z-index-9999 { z-index: 9999 !important; }

#total-items-cart {
    height: 21px;
    width: 21px;
    font-size: 12px;
    /* border: 1px solid white;
    box-shadow: 0 0 3px rgba(0,0,0,0.5); */
}

.product-thumbnail img {
    height: auto;
    max-width: 100%;
}

/* ===============================================
 *  Responsive Layout                          XS
 * ===============================================
 */

.w-33 { width: 33.33%; }

.footer {
    display: grid; 
    grid-template-columns: 1fr; 
    grid-template-rows: 1fr; 
    gap: 0px 0px; 
    grid-template-areas: 
      "area-footer"; 
}
.area-footer {
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    grid-template-rows: 0fr 0fr 0fr 0fr; 
    gap: 0px 0px; 
    grid-template-areas: 
      "area-contacto area-contacto"
      "area-subscribir area-subscribir"
      "area-enlaces area-social"
      "area-copy area-copy"; 
    grid-area: area-footer; 
}
.area-contacto { grid-area: area-contacto; }
.area-subscribir { grid-area: area-subscribir; }
.area-social { grid-area: area-social; }
.area-copy { grid-area: area-copy; }
.area-enlaces { grid-area: area-enlaces; }

.area-subscribir input[type=text] {
    border-bottom: 1px solid var(--bg-primary-dark) !important;
    outline: none;
}

.area-subscribir button.btn.btn-icon,
.area-social button.btn.btn-icon {
    height: 45px;
    width: 45px;
}

.dropdown > .mini-cart-overlay{
    content: ''; 
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transition: opacity .15s ease-in-out;
    opacity: 0;
    visibility:hidden;
    background-color: rgba(0,0,0,.7);
    pointer-events: none;
}
.dropdown.show .nav-link{
  position:relative;
  z-index:9;
}
.dropdown.show > .mini-cart-overlay{
  z-index:10; opacity:1; 
  visibility:visible;
  position: fixed;
}

#mini-cart-xs { min-width: 300px; }
#mini-cart-lg { min-width: 406px; }
#mini-cart table .product-thumbnail {
    min-width: 32px;
}
#mini-cart table .product-thumbnail img {
    width: 32px;
    height: auto;
}


.footer { font-size: 14px !important; }
.footer h6 { font-size: 16px !important; }
.footer .area-copy { font-size: 11px !important; }
@media only screen and (min-width: 320px) { #mini-cart-xs { min-width: 300px; } }
@media only screen and (min-width: 375px) { #mini-cart-xs { min-width: 355px; } }
/* ===============================================
 *  Responsive Layout                          MD
 * ===============================================
 */
@media only screen and (min-width: 993px) {

    .w-md-33 {
        width: 33.33% !important;
    }
    .w-md-50 {
        width: 50% !important;
    }

    .footer {  display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        gap: 0px 0px;
        grid-auto-flow: row;
        grid-template-areas:
          "area-footer";
    }
      
    .area-footer {  display: grid;
        grid-template-columns: 0.6fr 1.4fr;
        grid-template-rows: 1fr 1fr 0fr;
        gap: 0px 0px;
        grid-auto-flow: row;
        grid-template-areas:
          "area-logo area-contacto"
          "area-enlaces area-subscribir"
          "area-copy area-social";
        grid-area: area-footer;
    }
      
    .area-logo { grid-area: area-logo; align-items: center; }
    .area-enlaces { grid-area: area-enlaces; }
    .area-copy { grid-area: area-copy; }
    .area-contacto { grid-area: area-contacto; }
    .area-subscribir { grid-area: area-subscribir; }  
    .area-social { grid-area: area-social; }
    #mini-cart-xs { min-width: 405px; }
}

/* ===============================================
 *  Responsive Layout                          LG
 * ===============================================
 */
@media only screen and (min-width: 1281px) {
    .footer {
        display: grid; 
        grid-template-columns: 1fr; 
        grid-template-rows: 1fr; 
        gap: 0px 0px; 
        grid-template-areas: 
          "area-footer"; 
    }
    .area-footer {
        display: grid; 
        grid-template-columns: 1fr .5fr 1fr 1fr 1.5fr; 
        grid-template-rows: 1fr 0fr; 
        gap: 0px 0px; 
        grid-template-areas: 
          "area-logo area-menu area-enlaces area-contacto area-subscribir"
          "area-logo area-copy area-copy . area-social"; 
        grid-area: area-footer; 
    }
    .area-logo { grid-area: area-logo; }
    .area-menu { grid-area: area-menu; }
    .area-enlaces { grid-area: area-enlaces; }
    .area-copy { grid-area: area-copy; }
    .area-contacto { grid-area: area-contacto; }
    .area-subscribir { grid-area: area-subscribir; }
    .area-social { grid-area: area-social; }

    .area-subscribir button.btn.btn-icon,
    .area-social button.btn.btn-icon {
        height: 34px;
        width: 34px;
    }
}