
/*

CSS for the QETTLE products category and subcategories

INDEX
    - Hero
    - Category grid
    - Product grid
    - Nav

*/

.master-column-wrapper { margin: 0; }
.breadcrumb { background: #DBE4ED; }

/* HERO */

.master-wrapper-content {
    width: 100%;
    margin: 0 auto;
    min-height: auto;
}


#hero {
    background: #DBE4ED;
    height: 200px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    padding: 0 100px;
}

#hero h2 {
    font-size: 50px;
    margin-bottom: 30px;
}

#hero h1 {
    margin: 0 10px 0 0;
    

}



#hero img {
    display: block;
    max-height: 180px;
    width: auto;
}

@media all and (max-width: 960px) {
    #hero h2 {
        margin-bottom: 10px;
    }
}

@media all and (max-width: 800px) {
    #hero {
        padding: 0 50px;
    }

    #hero img {height:120px;}
    #hero h1 {
        font-size: 30px;
    }

    #hero h2 {
        font-size: 34px;
        margin-bottom: 10px;
    }
}

@media all and (max-width: 600px) {
    #hero h1 {
        font-size: 20px;
    }
}

@media all and (max-width: 480px) {
    #hero {
        padding: 30px;
    }
    
    #hero img {
        display: none;
    }
}




/* TAP GRID SPECIFIC STYLES */


.tap-grid-wrapper {
    margin: 0 0 100px;
    padding: 30px 0;
    background: #F7F7F7;
}

.tap-grid-wrapper > .title {
    font-size: 20px;
}

.tap-grid-wrapper #tap-grid {
    max-width: 1000px;
    margin: 0 auto;
    justify-content: center;
}

.tap-grid-wrapper #tap-grid .tap-category-wrapper {
    width: 15%; /* 18.5%;   ( 100% / n ) - 1.5%     where n = number of taps per row */
    padding-top: 18.5%;
    border: thin solid #ddd;
    background-color: rgba(255,255,255,0.5);
}

.tap-grid-wrapper #tap-grid .title {
    font-size: 14px;
}

.category-description {
    margin: 0 auto 25px;
    max-width: 600px;

}


/*  CATEGORY GRIDS */


.category-grid-wrapper {
    padding: 0 100px;
}

.page.sub-category-page .category-description, .tap-version {
    max-width: 550px;
    margin: 0 auto;
    margin-top: 50px;
}


.tap-version p.tap-version-date {font-weight: bold;margin: 20px 0 0 0}

.page.sub-category-page .category-description p, .page.sub-category-page .category-description H2, 
.tap-version p, .tap-version H2, .category-description p {
    text-align: center;
    font-family: "Open Sans", sans-serif;
    margin: 0;
}

/*.category-description p {margin-top: 50px;}*/
.tap-version p {
    font-size: 18px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  
  40% {
    transform: translateY(-20px);
  }

  60% {
    transform: translateY(-10px);
  }
}

.svg-inline--fa.fa-glasses-round.fa-bounce {
  animation: bounce 2s ease-in-out 2; /* Play the animation twice */
}


#category-grid,
#tap-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-flow: row wrap;
            flex-flow: row wrap;
    margin-left: 1.5%;
    margin-top: 50px;
    align-content: center;
    justify-content: center;
}

#category-grid .sub-category-wrapper,
#tap-grid .tap-category-wrapper {
    width: 23.5%;
    padding-top: 23.5%;
    height: 0;
    position: relative;
    margin: 1.5% 1.5% 0 0;
    /*background: #F7F7F7;*/
    border: thin solid #666;
}

#category-grid .sub-category-wrapper:hover,
#tap-grid .tap-category-wrapper:hover {
    border: thin solid #ff6600;
}

#category-grid .sub-category-item,
#tap-grid .tap-category-item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 15px;
    padding-bottom: 0;
}

#category-grid .picture,
#tap-grid .picture {
    height: calc(100% - 60px);
}

#category-grid img,
#tap-grid .picture img {
    display: block;
    max-height: 100%;
    width: auto;
    margin: 0 auto;
}

#category-grid .title,
#tap-grid .title {
    height: 60px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    font-size: 18px;
}

@media all and (max-width: 1000px) {
    .category-grid-wrapper {
        padding: 0;
    }
}

@media all and (max-width: 800px) {
    #category-grid .sub-category-wrapper {
        width: 48.5%; /*  ( 100% / n ) - 1.5%     where n = number of taps per row */
        padding-top: 48.5%;
    }

    .tap-grid-wrapper #tap-grid .tap-category-wrapper {
        width: 31.8%; /*  ( 100% / n ) - 1.5%     where n = number of taps per row */
        padding-top: 31.8%;
    }
}

@media all and (max-width: 480px) {
    #category-grid .sub-category-wrapper {
        width: 98.5%; /*  ( 100% / n ) - 1.5%     where n = number of taps per row */
        padding-top: 98.5%;
    }

    .tap-grid-wrapper #tap-grid .tap-category-wrapper {
        width: 48.5%; /*  ( 100% / n ) - 1.5%     where n = number of taps per row */
        padding-top: 48.5%;
        background: transparent;
    }
}

/* PRODUCT GRID */


.product-grid-wrapper {
    padding: 0 100px;
}


#product-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-flow: row wrap;
            flex-flow: row wrap;
    margin-left: 1.5%;
}

#product-grid .product-item {
    width: 31.8%;
    width: 18%;
    /*background: #F7F7F7;*/
    border: thin solid #666;
    margin: 1.5% 1.5% 0 0;
    padding: 30px;
}

#product-grid .product-item:hover {
    border: thin solid #ff6600;
}

#product-grid .picture {
    margin-bottom: 15px;
    position: relative;
    padding-top: 100%;
    height: 0;
}

#product-grid img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 100%;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
}

#product-grid .price {
    text-align: center;
    font-size: 16px;
    margin-bottom: 5px;
}

#product-grid .price.outOfStock {
    font-size: 20px;
    line-height: 30px;
    color: #FF6600;
}

#product-grid .title {
    font-size: 16px;
}




@media all and (max-width: 1000px) {
    .product-grid-wrapper {
        padding: 0;
    }
}

@media all and (max-width: 800px) {
    #product-grid .product-item {
        width: 48.5%;
    }
}

@media all and (max-width: 550px) {

    div#hero {
        height: revert;
        }
    }

@media all and (max-width: 330px) {
    #product-grid .product-item {
        width: 98.5%;
    }

    #product-grid .product-item {
        padding: 15px;
    }
}


/* ---------- NAV ---------- */

#nav {
    background: #DBE4ED;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 0 0 0 70px;
    position: relative;
    border-top: thin solid #aabfd5;
}

#nav .nav-breadcrumb {
    -webkit-box-flex: 1;
        -ms-flex: 1 1 auto;
            flex: 1 1 auto;
    width: 100%;
}

#nav .nav-breadcrumb ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-flow: row wrap;
            flex-flow: row wrap;
    padding: 5px 0;
    min-height: 40px;
    height: 100%;
    align-items: center;
}

#nav .nav-breadcrumb li {
    line-height: 2;
}

#nav .nav-breadcrumb .delimiter {
    overflow: hidden;
    font-size: 0;
    background: url(../images/right-arrow.png) no-repeat;
    height: 10px;
    width: 10px;
    background-size: 10px;
    margin: 0 12px;
    display: inline-block;
    vertical-align: middle;
}

#nav .nav-breadcrumb a:hover {
    text-decoration: underline;
}

#nav .nav-breadcrumb * {
    font-family: Roboto,sans-serif;
    font-size: 10px;
    color: #454545;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 1px;
}

#nav #browse {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 auto;
            flex: 0 0 auto;
    -webkit-transition-duration: 100ms;
         -o-transition-duration: 100ms;
            transition-duration: 100ms;
}

#nav #browse.open {
    background: #fff !important;
    border-left: 1px solid #ccc;
}

#nav #browse-trigger {
    cursor: pointer;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    text-transform: uppercase;
    color: #454545;
    font-size: 12px;
    padding: 0 15px;
    line-height: 40px;
    height: 100%;
}

#nav #browse {display: none;}
#nav #browse:hover {
    background: rgba(255,255,255,.5)
}

#nav #browse-trigger svg {
    fill: #454545;
    margin-left: 5px;
    height: 20px;
}

#nav #browse-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border-bottom: 1px solid #ccc;
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    background-color: rgba(255, 255, 255, .85);
    z-index: 100;
}

#nav .browse-menu-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-flow: row wrap;
            flex-flow: row wrap;
    padding: 50px 100px;
}

#nav .browse-menu-content a {
    width: 31.3334%;
    margin: 1%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    padding: 15px 0 15px 6%;
    color: #454545;
}

#nav .browse-menu-content a:hover {
    text-decoration: underline;
}

#nav .browse-menu-content a p {
    margin-left: 30px;
    font-size: 30px;
}

#nav #browse-menu a img {
    display: block;
    max-height: 100px;
    width: auto;
}

@media all and (max-width: 1200px) {
    #nav .browse-menu-content {
        padding: 0;
    }

    #nav .browse-menu-content a {
        padding: 15px 0;
    }

    #nav .browse-menu-content a p {
        font-size: 20px;
    }
}

@media all and (max-width: 750px) {
    #nav #browse-menu a img {
        max-height: 75px;
    }

    #nav .browse-menu-content a p {
        margin-left: 5px;
    }
}

@media all and (max-width: 600px) {
    #nav {
        padding-left: 15px;
    }

    #nav .browse-menu-content a {
        width: 48%;
    }
}

@media all and (max-width: 400px) {
    #nav .browse-menu-content a {
        width: 98%;
    }

    #nav .browse-menu-content a p {
        margin-left: 30px;
    }
}