/**
 * Menin Douro Estates — hub de produtos e blocos .mde-products-hub.
 * Enfileirado globalmente em functions.php (junto com product-single e product-category).
 *
 * @package Menin_Theme
 */

 /* Página de produtos - Hub */

.page-products-mde-hub {
    position: relative;
    padding-top: 112px;
}

@media (max-width: 991px) {
	.page-products-mde-hub {
		padding-top: 88px;
	}
}

.mde-products-hub__heading {
    position: relative;
    padding: 168px 0 120px;
    margin-bottom: 120px;
}

@media (max-width: 991px) {
	.mde-products-hub__heading {
		padding: 116px 0 80px;
		margin-bottom: 0;
	}
}

.mde-products-hub__heading-title {
    position: relative;
    padding-bottom: 16px;
    margin-bottom: 0;

    &::after {
        content: "";
        position: absolute;
        width: 40vw;
        height: 1px;
        bottom: 0;
        margin-left: -50vw;
        left: 50%;
        z-index: -1;
        background-color: white;
    }
}

@media (max-width: 991px) {
	.mde-products-hub__heading-title {
		color: #916B4F;

        &::after {
            content: "";
            background-color: #916B4F;
        }
	}
}

.mde-products-hub__heading-subtitle {
    margin-top: 40px;
    max-width: 320px;
}

@media (max-width: 991px) {
	.mde-products-hub__heading-subtitle {
		margin-top: 56px;
        font-size: 20px;
	}
}

.mde-products-hub__heading-content {
    position: relative;
    color: white;
    z-index: 1;
}

@media (max-width: 991px) {
	.mde-products-hub__heading-content {
		color: #916B4F;
	}
}

.mde-products-hub__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 991px) {
	.mde-products-hub__heading .mde-products-hub__image {
		display: none;
	}
}

.mde-products-hub__image img {
    object-fit: cover;
}

.mde-products-hub__heading-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    color: #fff;
    pointer-events: none;
}

.mde-products-hub__heading-overlay svg {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: bottom;
}

.mde-products-hub__content {
    position: relative;
    padding: 90px 0;
    margin-bottom: 220px;
    background: linear-gradient(197.97deg, #eedfcd 12.25%, #ffffff 140.08%);
}

@media (max-width: 991px) {
	.mde-products-hub__content {
		padding: 80px 0 40px;
		margin-bottom: 110px;
	}
}

.mde-products-hub__content-overlay-primary {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    color: #fff;
    pointer-events: none;
}

@media (max-width: 991px) {
	.mde-products-hub__content-overlay-primary {
		top: -10px;
	}
}

.mde-products-hub__content-overlay-secondary {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    color: #fff;
    pointer-events: none;
}

@media (max-width: 991px) {
	.mde-products-hub__content-overlay-secondary {
		bottom: -6px;
	}
}

/* Painéis do hub (cartão = <a.mde-products-hub__panel>) */
.mde-products-hub__panel {
    position: relative;
    padding: 85px 37px;
    min-height: 820px;
    height: 100%;
    display: block;
    color: inherit;
    transition: all 0.3s ease;
}

@media (max-width: 991px) {
	.mde-products-hub__panel {
		min-height: 553px;
	}
}

.mde-products-hub__panel .mde-products-hub__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.mde-products-hub__panel-overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: rgb(0, 0, 0);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.mde-products-hub__panel .mde-products-hub__image img,
.mde-products-hub__panel .mde-products-hub__panel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mde-products-hub__panel-content {
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 2;
}

.mde-products-hub__panel-label{
    color: white;
    text-transform: uppercase;
}

.mde-products-hub__panel-text{
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.mde-products-hub__panel-text {
    color: white;
}

.mde-products-hub__panel-text p:last-child {
    margin-bottom: 0;
}

.mde-products-hub__panel:hover .mde-products-hub__panel-overlay{
        opacity: 0.5;
}
   
.mde-products-hub__panel:hover .mde-products-hub__panel-text{
    opacity: 1;
}


/* Página de produtos - Arquivos */

.product-category-archive{
    position: relative;
    padding-top: 112px;
}

@media (max-width: 991px) {
	.product-category-archive {
		padding-top: 88px;
	}
}

.product-category-archive__hero {
    position: relative;
    padding: 168px 0 120px;
}

@media (max-width: 991px) {
	.product-category-archive__hero {
		padding: 0;
        height: 457px;
	}
}

.product-category-archive__heading-title {
    position: relative;
    padding-bottom: 16px;
    margin-bottom: 0;

    &::after {
        content: "";
        position: absolute;
        width: 20vw;
        height: 1px;
        bottom: 0;
        margin-left: -50vw;
        left: 50%;
        z-index: -1;
        background-color: white;
    }
}

.product-category-archive__heading-subtitle {
    margin-top: 40px;
    max-width: 320px;
}

.product-category-archive__content {
    position: relative;
    color: white;
    z-index: 1;
}

@media (max-width: 991px) {
	.product-category-archive__content {
		display: none;
	}
}

.product-category-archive__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.product-category-archive__image img {
    object-fit: cover;
}


.product-category-archive__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    color: #fff;
    pointer-events: none;
}

.product-category-archive__overlay svg {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: bottom;
}

.product-category-archive__content-products{
    position: relative;
    padding: 96px 0 146px;
    background: linear-gradient(192.76deg, #EEDFCD 2.58%, #FFFFFF 30.57%);
}

@media (max-width: 991px) {
	.product-category-archive__content-products {
		padding: 56px 0 110px;
	}
}

.product-category-archive__content-products-overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    color: #fff;
    pointer-events: none;
}

.product-category-archive__content-products-overlay svg {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: bottom;
}

.product-category-subnav{
    text-align: center;
}

.product-category-subnav__list{
    list-style: none;
    display: flex;
    justify-content: center;
    padding-left: 0;
}

.product-category-subnav__list li a{
    text-decoration: none;
    font-family: 'Reservation Wide', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    line-height: 1.6;
    text-transform: uppercase;
    color: #141414;
    transition: all 0.3s ease;
    padding: 12px 11px;
    border-left: 1px solid #141414;
    display: block;
}

@media (max-width: 991px) {
	.product-category-subnav__list li a {
		border-width: 0.5px;
        padding: 12px 15px;
	}
}

.product-category-subnav__list li a.is-active{
    font-weight: bold;
}

.product-category-subnav__list li:first-child a {
    border-left: none;
}

.product-category-subnav__list li a:hover{
    color: #AD644E;
    text-decoration: none;
    opacity: 0.8;
}



/* Página Historia - Subpáginas */

@media (max-width: 991px) {

    .page-history-mde-subpage .mde-products-hub__heading{
        margin-bottom: 67px;
        min-height: 457px;
    }
	.page-history-mde-subpage .mde-products-hub__image{
		display: flex;
	}

    .page-history-mde-subpage .mde-products-hub__heading-content{
        display: none;
    }
}