/*
Theme Name: 1Jour1Vin
Template: soledad
Description: Thème enfant basé sur Soledad pour 1Jour1Vin - Permet les personnalisations sans perdre les modifications lors des mises à jour du thème parent Soledad
Version: 1.0.0
Author: 1Jour1Vin
Text Domain: 1jour1vin
*/

/* Importation du style du thème parent Soledad */
@import url("../soledad/style.css");

/* HEADER */

#header_wrapper {
    position: sticky;
    top: 0;
    z-index: 999999;
}

.header-top-bar {
    background: #a00024;
    box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 5;
}
.header-logo {
    width: 158px;
    /* height: 48px; */
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.6rem;
    color: #fff;
}
.header-logo img {
    width: 158px;
}
.header-bottom-bar {
    background: #fff;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, .05), 0 4px 5px 0 rgba(0, 0, 0, .05), 0 1px 10px 0 rgba(0, 0, 0, .05);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    position: relative;
    z-index: 3;
}
.header-bottom-inner {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 0 2rem;
}
.header-categories {
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-categories-btn {
    background: none;
    cursor: pointer;
    border-radius: 5px;
    margin: 0;
    font-size: 0.875rem;
    line-height: 18px;
    font-family: Montserrat, sans-serif;
    color: #000;
    opacity: .5;
    padding: 6px 8px;
    min-height: 0;
    height: 30px;
    margin: 8px;
    min-width: 64px;
    transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-categories-btn.active {
    background-color: #d9c895;
    color: #fff;
    border-radius: 5px;
    opacity: 1;
}
.header-categories-btn.active svg {
    fill: #fff;
}
.header-categories-btn svg {
    height: 20px;
    width: 20px;
    fill: #000;
    font-weight: 600;
    transform: rotate(180deg);
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: -4px;
    margin-left: 8px;
}
.header-categories-btn.active svg {
    fill: #fff;
    transform: rotate(0deg);
}
.header-categories-btn span {
    font-weight: 600;
    white-space: pre-wrap;
}
.header-categories-list {
    display: grid;
    position: absolute;
    background: #fff;
    color: #333;
    min-width: 280px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -1px rgba(0, 0, 0, .06);
    padding: 0.5rem;
    margin-top: 0;
    top: 106px;
    left: 50%;
    transform: translate(-50%, -150px);
    z-index: 999999;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
    transition: 200ms cubic-bezier(0, 0, 0.2, 1);
    z-index: 1;
    width: 500px;
    max-width: 100vw;
    visibility: hidden;
}
.header-categories-list.show {
    transform: none;
    transform: translateX(-50%);
    visibility: visible;
}
@media (max-width: 500px) {
    .header-categories-list {
        width: 100vw;
        left: 50%;
        border-radius: 0;
        grid-template-columns: repeat(2, 1fr);
    }
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    padding: 6px 20px;
    border-radius: 4px;
    text-align: center;
    border-radius: 30px;
}
.category-item:hover {
    background-color: rgba(154, 2, 38, 0.04);
}
.category-item span {
    text-align: start;
    display: flex;
    align-items: center;
    font-family: Montserrat, sans-serif;
    font-size: .8rem;
    font-weight: 400;
    line-height: .9rem;
    color: #545454;
    height: 33px;
}
.header-shop-link {
    background: none;
    color: #a00024;
    border-radius: 30px;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.15rem;
    transition: none;
    border: none;
    cursor: pointer;
}

.title-bar {
    z-index: 0;
}

::selection {
    background-color: #666 !important;
    color: #fff !important;
}

a, span {
    transition: all .3s;
    -moz-transition: al .3s;
    -webkit-transition: all .3s;
}

.penci-btn-readmore {
    border: 0 !important;
    border-radius: 30px !important;
    box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12) !important;
    color: #fff !important;
    cursor: pointer !important;
    font-size: 0.950rem !important;
    font-weight: 600 !important;
    line-height: 33px !important;
    margin: 0 !important;
    min-height: 45px !important;
    min-width: 64px !important;
    outline: 0 !important;
    padding: 6px 20px !important;
    text-decoration: none !important;
    vertical-align: middle !important;
    -webkit-text-decoration: none !important;
}

.penci-btn-readmore:hover {
    box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12) !important;
    opacity: inherit !important;
}

.cat {
    margin-top: 21px;
    text-align: left;
}

.cat .category {
    font-weight: 600;
    margin-bottom: 10px;
}

.cat .category span {
    color: #979797;
}

.cat .category a:hover {
    color: #979797;
    text-decoration: underline 1.5px #979797;
}

.cat > a , .upk-tag-cloud a, .read_more_category_article {
    background-color: transparent !important;
    border: 1px solid #979797 !important;
    border-radius: 30px !important;
    color: #979797 !important;
    display: inline-flex !important;
    font-size: 12px !important;
    margin-bottom: 5px !important;
    margin-right: 5px !important;
    padding: 4px 8px !important;
}

.upk-tag-cloud a span {
    color: #979797 !important;
}

.cat > a:hover, .upk-tag-cloud a:hover, .read_more_category_article:hover {
    background-color: #F1F1F1 !important;
    border-color: #F1F1F1 !important;
    color: #545454 !important;
}

.upk-tag-cloud a:hover span {
    color: #545454 !important;
}

/* HOMEPAGE */

/* Latest post */

.grid-mixed {
    border: none;
}

.grid-mixed .mixed-detail {
    padding-bottom: inherit;
}

.grid-mixed>article {
    background-color: white;
    border-radius: 4px;
    height: 100%;
    overflow: hidden;
    padding: 2px;
}

.grid-mixed .grid-header-box:after {
    background-color: #D8D8D8   ;
    height: 3px;
}

.grid-mixed article div a {
    background-size: cover !important;
    height: 100% !important;
}

/* Featured categories */

.penci-grid li .item h2 a, .penci-masonry .item-masonry h2 a {
    text-transform: none;
}

.penci-grid li .item h2, .penci-masonry .item-masonry h2, .penci-grid li .item h3, .penci-masonry .item-masonry h3 {
    font-size: 1.25rem;
}

.penci-grid li .item h3 a, .penci-masonry .item-masonry h3 a {
    color: #666666;
    font-size: 1.25rem;
    font-weight: 700;
}

.list-post .header-list-style:after {
    background: #D8D8D8;
    height: 3px;
}

.penci-grid li.list-post {
    background-color: white;
    border-bottom: none;
    border-radius: 4px;
    margin-bottom: 32px !important;
    overflow: hidden;
    padding: 2px !important;
}

.penci-grid li.list-post .item .content-list-right {
    padding: 16px;
}

/* Chosen posts */

.upk-content p:hover {
    text-decoration: underline 1.5px #979797;
}

.upk-tiny-list a,.upk-tiny-list a:hover {
    background-image: none !important;
}

/* CATEGORY/TAG/AUTHOR... */

.category_image {
    width: fit-content;
}

.category_image img {
    width: 100%;
}

.penci-grid>li.grid-style {
    background-color: white;
    border-radius: 4px;
    overflow: hidden;
    padding: 2px;
}

.penci-grid>li.grid-style .item-content, .penci-grid>li.grid-style .grid-header-box {
    padding: 0 16px 16px;
}

.penci-grid>li.grid-style .penci-readmore-btn {
    padding: 0 16px;
}

.penci-grid>li.grid-style .grid-header-box:after {
    height: 3px;
}

.penci-pagination.align-left {
    text-align: right;
}

/* CATEGORY */

.category_bottom_article {
    padding: 0 16px;
}

/* POST */

.e-con-full {
    border-radius: 4px !important;
    padding: 2px !important;
}

.post-image img {
    height: 400px !important;
    object-fit: cover;
    object-position: center;
    overflow: hidden;
}

@media (max-width: 1079px) {
    .e-con {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .grid-mixed>article {
        padding: 0 !important;
    }

    .penci-grid li.list-post {
        padding: 0 !important;
    }

    .penci-grid>li.grid-style {
        padding: 0 !important;
    }
}