/**
 * Block Sản phẩm nổi bật — layout (font/color chỉnh thêm trong Bricks / theme).
 */

.pcu-featured {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.pcu-featured--empty {
    padding: 2rem;
    text-align: center;
}

.pcu-featured__watermark {
    display: none;
}

.pcu-featured__category {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(4rem, 14vw, 16rem);
    font-weight: 300;
    letter-spacing: 0.02em;
    color: rgba(0, 0, 0, 0.06);
    pointer-events: none;
    user-select: none;
    z-index: 0;
    font-family: "Heading Now";
    text-wrap: nowrap;
    display: none;
}

.pcu-featured__grid {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 5rem;
    align-items: flex-end;
    margin: 0 auto;
    justify-content: space-between;
    height: calc(100vh - 26rem);
}

.pcu-featured__hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50%;
    height: 100%;
}

.pcu-featured__image-wrap {
    position: relative;
    width: 100%;
    margin: 0 auto;
    height: 100%;
}

/* Khung cố định — mọi ảnh biến thể chồng trong stack, chuyển bằng opacity */
.pcu-featured__image-stack {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
}

@media (min-width: 991px) {
    .pcu-featured__image-stack {
        aspect-ratio: 1;
        height: 100%;
        object-fit: contain;
    }
}

.pcu-featured__image--layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
    filter: drop-shadow(0 1.2rem 1rem rgba(0, 0, 0, 0.12));
}

.pcu-featured__image--layer.is-active {
    opacity: 1;
    z-index: 2;
}

.pcu-featured__col--left {
    padding-top: 2rem;
}

.pcu-featured__col--right {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (min-width: 991px) {

    .pcu-featured__col--left,
    .pcu-featured__col--right {
        min-width: 22%;
        width: 22%;
    }
}

.pcu-featured__desc-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4rem;
}

.pcu-featured__attr {
    margin-bottom: 0;
}

.pcu-featured__controls {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    align-items: flex-start;
}

/* Hai nút CTA chồng một ô (Alpine x-show + x-transition) — cùng ý tưởng .pcu-atc-switch / #pcu-design-trigger */
.pcu-featured__cta-switch {
    position: relative;
    display: grid;
    grid-template-areas: "cta-stack";
    width: 100%;
    min-height: 4.8rem;
    justify-items: start;
    justify-content: start;
}

@media (min-width: 991px) {
    .pcu-featured__cta-switch .pcu-featured__cta-btn-viewdetail {
        display: none;
    }
}

.pcu-featured__cta-switch>.pcu-featured__cta-btn {
    grid-area: cta-stack;
    justify-self: stretch;
}

.pcu-featured__attr-label {
    display: block;
    font-size: 1.4rem;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    opacity: 0.7;
}

.pcu-featured__attr-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.pcu-featured__attr-options--pills .pcu-featured__opt {
    border: 0.1rem solid var(--espresso-brown);
    background: transparent;
    border-radius: 99rem;
    padding: 0.7rem 1.8rem;
    cursor: pointer;
    font-family: "Heading Now";
    font-size: 1.4rem;
    opacity: 0.4;
    transition: all 0.3s;
    color: var(--espresso-brown);
}

.pcu-featured__attr-options--pills .pcu-featured__opt.is-active {
    opacity: 1;
}

.pcu-featured__attr-options--swatches .pcu-featured__opt.pcu-featured__swatch {
    width: 4rem;
    height: 4rem;
    border-radius: 99rem;
    padding: 0;
    background: var(--swatch, #ccc);
    box-shadow: inset 0 0 0 0.1rem rgba(0, 0, 0, 0.08);
    cursor: pointer;
    border: 0.5rem solid #e8dccb;
    outline: 0.2rem solid transparent;
    outline-offset: 0.2rem;
    transition: all 0.2s;
}

.pcu-featured__attr-options--swatches .pcu-featured__opt.pcu-featured__swatch.is-active {
    outline: 0.2rem solid var(--pcu-f-accent, #3d2b1f);
    outline-offset: 0.2rem;
}

.pcu-featured__attr-options--swatches {
    margin-left: 0.6rem;
}

.pcu-featured__price-block {
    margin: 0;
}

.pcu-featured__price-label {
    display: block;
    font-size: 1.4rem;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    opacity: 0.7;
}

.pcu-featured__price {
    font-size: 2.4rem;
    margin: 0;
    color: var(--brown-red);
    font-family: "Heading Now";
}

.pcu-featured__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
    border-radius: 99rem;
    transition: opacity 0.2s, transform 0.15s;
}

.pcu-featured__btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.pcu-featured__btn--primary {
    width: 100%;
    padding: 1.2rem 1.8rem;
    border: none;
    background: var(--pcu-f-accent, #3d2b1f);
    color: var(--pcu-f-on-accent, #f5f0e8);
    font-weight: 600;
}

.pcu-featured__btn--primary:not(:disabled):hover {
    transform: translateY(-0.1rem);
}

.pcu-featured__btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    font-size: 1.4rem;
}

.pcu-featured__btn--ghost {
    margin-top: 1.6rem;
    padding: 0.8rem 1.8rem;
    border: 0.1rem solid rgba(61, 43, 31, 0.45);
    background: transparent;
    color: inherit;
}


/*Modify Product Wheel*/

.pcu-featured__nav-head {
    font-size: 1.4rem;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0.7;
}

.pcu-featured__nav-item {
    display: flex;
    align-items: center;
    gap: 0rem;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    font: inherit;
    cursor: pointer;
    padding: 0.5rem 0;
    color: inherit;
    opacity: 0.45;
    transition: 0.4s ease all;
    font-family: "Heading Now";
    font-size: 2rem;
    height: 3.9rem;
    /* Item Height*/
    transform: scale(0.9);
    transform-origin: left center;
}

.pcu-featured__nav-item.is-active {
    opacity: 1;
    transform: scale(1);
    gap: 1.2rem;
}

.pcu-featured__nav-arrow {
    font-size: 4rem;
    line-height: 0.5rem;
    width: 0;
    opacity: 0;
    transform: translateX(-2rem);
    transition: 0.4s ease all;
}

.pcu-featured__nav-item.is-active .pcu-featured__nav-arrow {
    width: 2.3rem;
    opacity: 1;
    transform: translateX(0rem);
}

.pcu-featured__nav-wrapper {
    height: calc(3.9rem * 4);
    /* Item Height * Number of Items */
    overflow: hidden;
    position: relative;
    /* Tạo hiệu ứng mờ dần ở 2 đầu trên dưới */
    mask-image: linear-gradient(to bottom,
            transparent 0%,
            black 30%,
            black 70%,
            transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom,
            transparent 0%,
            black 30%,
            black 70%,
            transparent 100%);
}

@media (max-width: 991px) {
    .pcu-featured__nav-wrapper {
        height: calc(3.9rem * 3);
    }
}

@media (max-width: 991px) {
    .pcu-featured__grid {
        flex-direction: column;
        height: unset;
    }

    .pcu-featured__col--right {
        order: -1;
        gap: 2rem;
        width: 100%;
    }

    .pcu-featured__hero {
        order: 1;
        margin-top: -3rem;
    }

    .pcu-featured__col--left {
        order: 2;
        width: 100%;
    }

    .pcu-featured__grid {
        gap: 0rem;
    }

    .pcu-featured__hero {
        min-width: 55%;
        margin-top: -10rem;
    }

    .pcu-featured__controls {
        flex-wrap: wrap;
        flex-direction: row;
        gap: 2.5rem;
    }

    /* Desc được Alpine chèn vào trước CTA — full width một hàng */
    .pcu-featured__controls>.pcu-featured__desc-wrap {
        flex-basis: 100%;
        width: 100%;
    }

    .pcu-featured__desc-wrap {
        gap: 2rem;
    }

    .pcu-featured__nav-head {
        margin-bottom: 1rem;
    }

    .pcu-featured__nav-wrapper {
        mask-image: linear-gradient(to bottom, transparent 0%, black 50%, black 50%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 50%, black 50%, transparent 100%);
    }

    .pcu-featured__desc-wrap .brxe-button {
        display: none;
    }

    .pcu-featured__cta-switch {
        grid-auto-flow: column;
        direction: rtl;
        justify-content: end;
        gap: 0.8rem;
    }

    .pcu-featured__price-block {
        margin: 0;
        margin-bottom: -1rem;
    }
}

.pcu-featured__nav-list {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
    /* Padding để mục đầu tiên và cuối cùng có thể căn giữa */
    padding-top: 3.9rem;
    /* Item Height*/
    padding-bottom: 3.9rem;
    /* Item Height*/
}

.pcu-featured__desc {
    font-size: 1.6rem;
}


@media (max-width: 450px) {
    .pcu-featured__hero {
        margin-top: -3rem;
        min-width: 70%;
    }

    .pcu-featured__nav-item {
        font-size: 1.6rem;
    }

    .pcu-featured__nav-arrow {
        font-size: 3rem;
    }

    .pcu-featured__nav-item.is-active {
        gap: 0.8rem;
    }

    .pcu-featured__nav-item {
        height: 3.4rem;
    }

    .pcu-featured__nav-list {
        padding-top: 3.4rem;
        padding-bottom: 3.4rem;
    }

    .pcu-featured__nav-wrapper {
        height: calc(3.4rem * 3);
    }

    .pcu-featured__col--left {
        padding-top: 0;
    }

    .pcu-featured__nav-head {
        font-size: 1.2rem;
    }

    .pcu-featured__attr {
        min-width: 100%;
    }

    .pcu-featured__attr-label {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .pcu-featured__attr-options--swatches .pcu-featured__opt.pcu-featured__swatch {
        width: 3rem;
        height: 3rem;
        border-width: 0.15rem;
    }

    .pcu-featured__attr-options--pills .pcu-featured__opt {
        padding: 0.6rem 1.2rem;
        font-size: 1.1rem;
    }

    .pcu-featured__controls {
        gap: 1.5rem;
    }

    .pcu-featured__price-label {
        margin-bottom: 0.2rem;
        font-size: 1.2rem;
    }

    .pcu-featured__price {
        font-size: 1.8rem;
    }

    .pcu-featured__cta-switch {
        min-height: unset;
    }

    .pcu-featured__desc {
        font-size: 1.4rem;
    }

    .pcu-featured__cta-switch {
        gap: 0.8rem;
    }
}