/* Local Font Face */
@font-face {
    font-family: 'BodoniNova';
    src: url('../fonts/bodoninova/ABodoniNovaNr.woff2') format('woff2'),
         url('../fonts/bodoninova/ABodoniNovaNr.woff') format('woff'),
         url('../fonts/bodoninova/ABodoniNovaNr.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Moodboard Section Styles */
.moodboard {
    padding: 0;
}

.moodboard__container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    height: 720px;
}

.moodboard__banner {
    position: relative;
    background-color: #f5f5f5;
}

.moodboard__banner--left {
    flex: 0 0 70%;
}

.moodboard__banner--right {
    flex: 0 0 30%;
}

.moodboard__image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.moodboard__image,
.woocommerce-page img.moodboard__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.moodboard__content {
    position: absolute;
    bottom: 45px;
    left: 40px;
    z-index: 2;
    color: white;
}

.moodboard__content--right {
    top: 50px;
    bottom: auto;
}

.moodboard__description {
    width: 675px;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.moodboard__text {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    color: #F1F1F1;
}

.moodboard__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #811823;
    color: #F1F1F1;
    text-decoration: none;
    width: 230px;
    height: 40px;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5714285714285714;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.moodboard__link:hover {
    background-color: #6b1420;
}

.moodboard__link-arrow {
    width: 12px;
    height: 10px;
    flex-shrink: 0;
}

.moodboard__title {
    position: absolute;
    top: 45px;
    left: 40px;
    font-family: 'BodoniNova', serif;
    font-size: 58px;
    font-weight: 400;
    line-height: 1.2309999465942383;
    margin: 0;
    color: #FFFFFF;
    z-index: 2;
}

.moodboard__tags {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.moodboard__tag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333333;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Public Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    max-width: 200px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.moodboard__tag:hover {
    background-color: rgba(255, 255, 255, 1);
}

.tag__text {
    flex: 1;
}

.tag__icon {
    margin-left: 8px;
    font-size: 12px;
}

/* Hot Spots */
.moodboard__hotspot {
    position: absolute;
    z-index: 3;
    cursor: pointer;
}

.hotspot__circle {
    width: 25px;
    height: 25px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hotspot__circle:hover {
    transform: scale(1.2);
}

.hotspot__inner {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
}

.hotspot__icon {
    width: 25px;
    height: 25px;
}

.hotspot__heart {
    transition: fill 0.3s ease;
}

.moodboard__hotspot.active .hotspot__heart {
    fill: #811823;
}

/* Hot Spot Product Card */
.hot-spot-product {
    position: absolute;
    width: 249px;
    height: 289px;
    background-color: #FFFAF4;
    border-radius: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.hot-spot-product.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hot-spot-product__image {
    position: relative;
    width: 225px;
    height: 170px;
    margin: 12px auto 0;
    overflow: hidden;
    border-radius: 3px;
}

.hot-spot-product__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hot-spot-product__info {
    position: absolute;
    bottom: 55px;
    left: 15px;
    width: 150px;
    height: 40px;
}

.hot-spot-product__title,
.hot-spot-product__title a {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6666649182637532;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #000000;
    margin: 0 0 4px 0;
    text-decoration:none;
}

.hot-spot-product__price {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6666649182637532;
    letter-spacing: 0.6px;
    color: #000000;
    margin: 0;
}

.hot-spot-product__button {
    position: absolute;
    bottom: 11px;
    right: 12px;
    width: 25px;
    height: 25px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.hot-spot-product__button:hover {
    transform: scale(1.1);
}

/* Half Moodboard Section Styles */
.catalog-half-moodboard {
    padding: 0;
}

.catalog-half-moodboard__container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    height: 720px;
}

.catalog-half-moodboard__banner {
    position: relative;
    background-color: #f5f5f5;
    flex: 0 0 50%;
}

/* Левый и правый баннеры наследуют стили от .catalog-half-moodboard__banner */

/* Responsive */

@media (min-width: 1601px) {
    .moodboard__container {
        height: 800px;
    }

    .catalog-half-moodboard__container {
        height: 800px;
    }

    .catalog-moodboard__container {
        height: 800px;
    }
}

@media (max-width: 768px) {
    .moodboard {
        padding: 0;
    }

    .moodboard__container {
        /* flex-direction: column; */
        height: 300px;
        overflow-x: hidden;
        position: initial !important;
    }

    .moodboard__banner {
        height: 300px;
    }

    .moodboard__title {
        font-size: 48px;
    }

    .moodboard__content--right {
        top: 30px;
    }

    .moodboard__hotspot {
        display: none;
    }

    /* Half Moodboard Responsive */
    .catalog-half-moodboard__container {
        flex-direction: column;
        height: auto;
    }

    .catalog-half-moodboard__banner {
        height: 400px;
        flex: none;
    }
}

/* На детальной странице капсулы показываем хотспоты на мобильных */
@media (max-width: 768px) {
    .moodboard--capsule-detail .moodboard__hotspot {
        display: block;
    }
}



/* Scoped styles: Capsule detail moodboard */
.moodboard--capsule-detail .moodboard__container { position: relative; }
.moodboard--capsule-detail .moodboard__banner--left,
.moodboard--capsule-detail .moodboard__banner--right { flex: 0 0 50%; }

/* Centered rubric title over moodboard */
.moodboard__center-title {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'BodoniNova', serif;
    font-weight: 400;
    font-size: 58px;
    line-height: 0.98;
    color: #F9F3E0;
    text-align: center;
    z-index: 3;
    pointer-events: none;
}


/* Appearing animation for center title/desc */
.moodboard--capsule-detail .moodboard__center-title {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(24px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}
.moodboard--capsule-detail .moodboard__center-title.animate {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.moodboard--capsule-detail .moodboard__center-desc {
    opacity: 0;
    transform: translateX(-50%) translateY(24px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}
.moodboard--capsule-detail .moodboard__center-desc.animate {
    opacity: 1;
    transform: translateX(-50%);
}

/* Centered rubric description under title */
.moodboard__center-desc {
    position: absolute;
    top: calc(40% + 40px);
    left: 50%;
    transform: translateX(-50%);
    width: 510px;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    z-index: 3;
    pointer-events: none;
    color: #f9f3e0;
    line-height: 1.4em;
}


/* Moodboard overlay layer (capsule detail) */
.moodboard__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0); /* actual opacity set inline */
    z-index: 2; /* above image, below hotspots/title */
    pointer-events: none;
}

@media(max-width:768px) {
    .moodboard__center-title {
        width: 90%;
        font-size: 38px;
        top: 31%;
    }
    .moodboard__center-desc {
        width: 90%;
        top: 36%;
        font-size: 14px;
    }
    .moodboard__banner {
        background-color: transparent;
    }
    .moodboard__banner--right {
        margin-top: -0.5px;
    }
    .hero--capsule-detail {
        margin-top: -1px;
    }
    body.home .home-main .moodboard {
        display: none;
    }
    .hero--capsule-detail {
        height: 270px;
    }
    .hero--capsule-detail .hero-wrapper {
        height: auto;
}
    .hero--capsule-detail .hero-image {
        height:270px !important;
    }
}

@media (max-width: 768px) {
    .moodboard--capsule-detail .moodboard__overlay {
        background-color: rgba(0, 0, 0, 0.6) !important;
    }
}
