h2 a {
    color: #333;
}
h2 a:hover {
    text-decoration: underline;
}
/* products.html ----------------------------*/
#product-list, #product {
    width: 100%;
    background-color: white;
    float: left;
}
#product-list::before, #product::before {
    display: inline-block;
}
.product-listing {
    width: 66%;
    margin: 20px 17%;  
    padding: 15px 0 35px;
    border-bottom: 1px solid #BCBCBC;
}
.product-thumbs, .product-listing>a>img {
    list-style: none;
    float: left;
    margin: auto 2% auto 0;
    width: 20%;
    background-color: #fafafa;
    border: 1px solid #eee;
    padding: 35px 1.4%;
}
.product-listing li::before {
    content: "";
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}
.product-thumbs img {
    max-width: 100%;
    max-height: 160px;
    margin: auto;
}
.product-listing a {
    width: 100%;
    margin: auto;
    vertical-align: middle;
}
.product-description {
    float: right;
    width: 74%;
}
#product-list .product-description h2 {
    margin: 2px 0 8px 0;
    font-size: 2.1rem;

}
.product-description p {
    font-weight: 100;
    line-height: 1.8;
    font-size: 14px;
}
.product-description ul {
    font-weight: 100;
    padding-left: 20px;
    margin-bottom: 45px;
    line-height: 1.6;
}
#product-list .product-description a {
    color: #333;
}
.product-description a:hover {
    text-decoration: underline;
}
.product-description .more {
    display: inline;
}
@media only screen and (max-width: 1010px) {
    .product-listing>a {
        height: auto;
    }
    .product-listing>a>img, .product-thumbs, .product-description {
        width: 60%;
        margin: 25px 20%;
    }
}
@media only screen and (max-width: 660px) {
    .product-listing>a>img, .product-thumbs, .product-description {
        width: 90%;
        margin: 15px 5%;
    }
    .product-listing .more {
        display: block;
        width: 90%;
        padding: 13px 5%;
        text-align: center;
    }
}
/* product category pages --------------------*/
#product-category {
    background: white;
}
#related-product {
    width: 66%;
    margin: auto;
}
@media only screen and (max-width: 768px) {
    #related-product {
        width: auto;
        margin: auto;
        padding: 0 25px;
    }   
}
#product-category article {
    border-top: none;
    padding: 0;
    text-align: left;
}
#product-category img {
    float: left;
    margin: -75px 2% 30px 0;
    width: 20%;
    background-color: #fafafa;
    border: 1px solid #eee;
    padding: 35px 1.4%;
}
@media only screen and (max-width: 576px) {
    #product-category img {
        display: block;
        width: 100%;
        height: auto;
        margin: 15px 0;
        padding: 0;
    }
    #related-product a {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: center;
    }

    #product-category p, #product-category article h4, #related-product a {
        margin-left: 0 !important;
        margin-right: 0;
    }
}
#product-category p {
    display: none;
    font-weight: 100;
    line-height: 1.8;
    font-size: 14px;
}
#product-category img+p {
    display: block;
}
.info {
    margin-bottom: 25px;
}
#product-category .info p, #product-category .info h4 {
    display: block;
    width: 50%;
    margin: 0 0 0 22%;
    padding: 22px 15px 0;
}
#product-category .info p {
    border-left: 1px dotted #BCBCBC;
    border-right: 1px dotted #BCBCBC;
}
#product-category .info p:last-of-type {
    border-bottom: 1px dotted #BCBCBC;
    padding-bottom: 15px;
}
@media only screen and (max-width: 768px) {
    #product-category .info p, #product-category .info h4 {
        display: block;
        width: auto;
        margin: 0 20px;
    }

}
.more {
    width: 250px;
    margin-bottom: 10px;
}
#product-category article h2 {
    border-top: 1px solid #BCBCBC;
    padding-top: 30px;
    clear: both;
}
#product-category article h2:first-of-type {
    border-top: none;
    padding-top: 0;
}
#product-category p, #product-category article h4, #related-product a {
    margin-left: 27%;
}
/* individual product pages ----------------*/
#product-container{
    max-width: 70%;
    margin: 25px;
    float: left;
}
#sidebar {
    border-left: 1px solid var(--sidebar-border);
    transition: top 1s;
    max-width: calc(30% - 100px);
    margin: 25px;
    float: right;
    top: 200px;
}
#sidebar .more {
    width: 100%;
    background-color: transparent;
    border: none;
}
#sidebar .more:hover {
    text-decoration: underline;
    color: var(--accent-red);
}
#sidebar img {
    margin: 10px auto;
    width: 170px;
    display: block;
}
/* Don't forget to make sidebar-items .clear */
.horiz {
    clear: both;
    margin-bottom: 20px;
}
#sidebar .horiz img {
    width: 150px;
    margin: 0;
    float: right;
}
#sidebar .horiz .more {
    float: left;
    width: 190px;
    margin-top: 63px;
}
@media only screen and (max-width: 1350px) {
    #product-container {
        width: 96%;
    }
}
@media only screen and (max-width: 850px) {
    #product-container {
        width: auto;
        float: inherit;
        max-width: 100%;
        margin: 0;
    }

    #product-container .more {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    #product-container #price {
        text-align: center;
        font-size: 2em;
    }

    #product-container .price {
        text-align: center;
        font-size: 2em;
    }

    #sidebar {
        float: inherit;
        top: 0;
        max-width: 100%;
        width: 100%;
        border: 0;
        margin: 0;
        padding: 25px;
    }
}
#page-label a:hover {
    text-decoration: none;
    color: #000;
}
#product-images {
    float: left;
    width: 31%;
}
#product-gallery, #product-gallery-nav {
    list-style: none;
}
#product-gallery li {
    padding: 0 8px;
    max-height: 577px;
}
#product-gallery img {
    width: 100%;
}
#product-gallery li::before, #product-gallery-nav li::before {
    content: "";
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}
#product-gallery-nav {
    height: 110px;
    overflow: hidden;
}
#product-gallery-nav li {
    margin: 16px;
    cursor: pointer;
    height: 86px;
}
#product-gallery-nav img, #product-gallery img {
    width: 100%;
    display: inline-block;
    vertical-align: middle;
}
#product-images h5 {
    text-align: center;
}
#product-images h5 a:hover {
    text-decoration: underline;
}
#product-text {
    float: right;
    width: 65%;
}
#product-text img {
    max-width: 100%;
}
#product-text, .tab-text {
    line-height: 1.8;
    font-weight: 100;
    font-family: 'Lato', sans-serif;
}

/* https://faq.dailymotion.com/hc/en-us/articles/360022841393-How-to-preserve-the-player-aspect-ratio-on-a-responsive-page */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9, for an aspect ratio of 1:1 change to this value to 100% */
    margin-bottom: 0; 
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#price {
    font-size: 24px;
    font-weight: 600;
    color: #888;
}
.price {
    font-size: 24px;
    font-weight: 600;
    color: #888;
}
#product-text p:last-of-type {
    margin-bottom: 40px;
}
#product-tabs {
    width: 60%;
    margin: auto;
    clear: both;
}
.ready .tab-text {
    display: none;
}
.ready .tab-text.active-tab {
    display: block;
}
#label-container {
    border-bottom: 1px solid #bbb;
}
.tab-label {
    float: left;
    font-size: 16px;
    width: 150px;
    padding: 11px 0;
    border: 1px solid #bbb;
    border-right: none;
    color: #999;
    background: #efefef;
    text-align: center;
    cursor: pointer;
    margin-bottom: -2px;
}
.tab-label:first-of-type {
    margin-left: 8px;
}
.tab-label:last-of-type {
    border-right: 1px solid #bbb;
}
.tab-label.active-tab {
    border-bottom: 2px solid white;
    color: black;
    background: white;
}
.tab-text {
    clear: both;
    margin-bottom: 30px;
}
#tab-two-text ul {
    width: 100%;
    list-style: none;
    border: 1px solid #bbb;
}
#tab-two-text li {
    padding: 10px;
    border-bottom: 1px solid #bbb;
}
#tab-two-text li:nth-of-type(2n-1) {
    background: #efefef;
}
#tab-two-text li:last-of-type {
    border-bottom: none;
}
#tab-three-text ul {
    list-style: none;
}
#tab-three-text li {
    position: relative;
    padding-left: 50px;
    margin: 25px auto;
    width: 250px;
    float: left;
}
@media only screen and (max-width: 520px) {
    #tab-three-text li {
        width: 100%;
        padding: 35px 30px;
        margin: 0;
        width: 100%;
        float: inherit;
    }

    .article-image img {
        max-height: 150px !important;
        display: block;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}
.article-title, .article-date {
    margin: 5px auto;
    font-size: 1.17rem;
}
.article-date {
    color: #bbb;
    font-weight: 200;
    font-style: italic;
}
.article-title a {
    color: #222;
    border-bottom: 1px solid #888;
}
.article-title a:hover {
    color: #69a1f6;
    border-bottom-color: #69a1f6;
}
/* .article-image {
    float: left;
} */
.article-image img {
    max-height: 110px;
    width: auto;
    margin: 1em;
    margin-left: 0;
}
.article-image p{
    display: none;
}
.article-text {
    height: 116px;
    overflow: hidden;
    border-bottom: 1px dashed grey;
}
#tab-one-text .more {
    float: left;
    margin-right: 15px;
}
/* #tab-three-text .more {
    position: relative;
    right: -65%;
    width: 30%;
} */
@media only screen and (max-width: 800px) {
    #product-images, #product-text {
        width: 96%;
        margin: auto 2%;
    }
    #product-gallery-nav {
        height: 122px;
    }
    #product-tabs {
        width: 96%;
        padding-top: 20px;
    }
    #tab-three-text .more {
        position: static;
        width: 75%;
    }
}
@media only screen and (max-width: 517px) {
    .tab-label {
        width: 96%;
        margin: 20px 2%;
        line-height: 50px;
    }
    #label-container, .tab-label, .tab-label:last-of-type {
        border: none;
        border-right: none;
        border-bottom: none;
    }
    #tab-three-text li {
        padding: 20px;
    }
    #tab-three-text li::before {
        left: 0;
    }
    
}

