/* ==========================================================================
   Kham pha san pham (trang San pham) - 3 the xen ke anh trai/phai.
   Nen the mau kem + hoa tiet cham, tieu de do, nut vien.
   ========================================================================== */

.product-explore {
    --pe-card-bg: #fbf7f1;
    --pe-ink: var(--main-text-color, #2b1f18);
    --pe-muted: #5d4c42;
    --pe-accent: var(--main-site-bakground, #a13a27);
    --pe-dot: #e0d2b4;

    padding: 60px 20px 70px;
    background-color: #fff
}

.product-explore__inner {
    max-width: 1180px;
    margin: 0 auto
}

.product-explore__title {
    margin: 0 0 32px;
    font-family: iCielProza, var(--main-font-coffee), sans-serif;
    font-size: 28px;
    line-height: 1.25;
    /* chu thuong theo mau, khong in hoa nhu cac section khac */
    text-transform: none;
    color: var(--pe-ink)
}

/* ---------- The san pham ---------- */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 28px 24px 32px;
    margin-bottom: 22px;
    background-color: var(--pe-card-bg);
    overflow: hidden
}

/* Hoa tiet cham nam ngay sau goi san pham, mo dan ra ria (ve bang CSS de dung mau kem brand) */
.product-card__media:before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 55%;
    width: 128%;
    height: 118%;
    transform: translate(-50%, -50%);
    background-image: radial-gradient(var(--pe-dot) 1.3px, transparent 1.5px);
    background-size: 11px 11px;
    -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent 100%);
    mask-image: radial-gradient(closest-side, #000 45%, transparent 100%);
    pointer-events: none
}

.product-card__media,
.product-card__body {
    position: relative;
    z-index: 1
}

.product-card__media {
    margin: 0;
    text-align: center
}

.product-card__media img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 260px;
    margin: 0 auto
}

/* Nhan nho + icon net mong */
.product-card__label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--pe-muted)
}

.product-card__icon svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--pe-accent);
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round
}

.product-card__title {
    margin: 0 0 14px;
    font-family: iCielProza, var(--main-font-coffee), sans-serif;
    font-size: 24px;
    line-height: 1.25;
    text-transform: uppercase;
    color: var(--pe-accent)
}

.product-card__desc {
    max-width: 520px;
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
    color: var(--pe-muted)
}

/* ---------- Tablet tro len: anh mot ben, chu mot ben ---------- */
@media screen and (min-width:768px) {
    .product-explore {
        padding: 70px 40px 80px
    }
    .product-explore__title {
        font-size: 34px;
        margin-bottom: 40px
    }
    .product-card {
        flex-direction: row;
        align-items: center;
        gap: 40px;
        padding: 36px 44px;
        margin-bottom: 26px
    }
    .product-card--mirror {
        flex-direction: row-reverse
    }
    .product-card__media {
        flex: 0 0 38%
    }
    .product-card__media img {
        max-height: 300px
    }
    .product-card__body {
        flex: 1 1 auto
    }
}

@media screen and (min-width:1024px) {
    .product-explore {
        padding: 90px 60px 100px
    }
    .product-explore__title {
        font-size: 40px
    }
    .product-card {
        gap: 60px;
        padding: 40px 56px;
        min-height: 300px
    }
    .product-card__title {
        font-size: 30px
    }
    .product-card__media img {
        max-height: 330px
    }
}

/* ==========================================================================
   Trang San pham theo Figma (frame 1920px)
   Banner 0-1200 / Facts 1200-1267 / Kham pha 1267-2965 / Ket trang 2959
   ========================================================================== */

/* Tieu de banner: moi dong mot khoi */
.sp-banner h1 .gt-l1,
.sp-banner h1 .gt-l2 {
    display: block
}

/* Figma: lop phu den 46% */
.sp-banner.overlay-20:before {
    background-color: rgba(0, 0, 0, .46)
}

.product-explore__title {
    text-align: center;
    text-transform: uppercase;
    color: #6b3a22
}

@media screen and (min-width:1024px) {

    /* ---------- Banner ---------- */
    .sp-banner h1 .gt-l1,
    .sp-banner h1 .gt-l2 {
        font-family: "Proza Libre", iCielProza, serif;
        font-weight: 600;
        /* 42px o 1920, co theo man hinh */
        font-size: clamp(30px, 2.1875vw, 42px);
        line-height: 1.4
    }

    /* Banner du rong: giu cho xuong dong nhu Figma o moi man hinh desktop */
    .sp-banner .gt-br {
        display: inline !important
    }

    /* CSS goc co padding 0 480px -> bo di, neu khong khung chu con 0px */
    .sp-banner .product-banner__description {
        width: min(960px, 86vw);
        max-width: none;
        padding-left: 0;
        padding-right: 0
    }

    .sp-banner .product-banner__description p {
        margin: 0;
        font-family: Inter, sans-serif;
        font-weight: 400;
        font-size: clamp(24px, 2.104vw, 40.4px);
        line-height: 1.455;
        color: #fff
    }

    /* ---------- Kham pha san pham: 1698px ---------- */
    .product-explore {
        padding: 90px 0 0
    }

    .product-explore__inner {
        max-width: none
    }

    .product-explore__title {
        margin: 0 0 55px;
        padding: 0 var(--gt-edge);
        font-family: "Proza Libre", iCielProza, serif;
        font-weight: 600;
        font-size: 40px;
        line-height: 56px;
        letter-spacing: .4px
    }

    /* Moi the la mot hang tran ngang 499px, nen xen ke kem / trang */
    .product-card,
    .product-card--mirror {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 56px;
        height: 499px;
        min-height: 0;
        margin: 0;
        padding: 56px var(--gt-edge);
        background-color: #fbf7f1;
        overflow: visible
    }

    .product-card--mirror {
        flex-direction: row-reverse;
        background-color: #fff
    }

    .product-card__media {
        flex: 0 0 auto
    }

    /* Figma khong co hoa tiet cham sau goi san pham */
    .product-card__media:before {
        display: none
    }

    .product-card__media img {
        width: auto;
        height: 387px;
        max-height: none
    }

    .product-card__body {
        flex: 0 1 602px;
        max-width: 602px
    }

    .product-card__label {
        gap: 10px;
        margin: 0 0 24px;
        font-size: 20px;
        line-height: 26.25px;
        letter-spacing: 0;
        text-transform: none;
        color: #5d4c42
    }

    .product-card__title {
        margin: 0 0 24px;
        padding-top: .9px;
        font-family: "Proza Libre", iCielProza, serif;
        font-weight: 600;
        font-size: 49px;
        line-height: 58.8px
    }

    /* The 1: tieu de 1 dong, line-height 37.5 */
    .product-card:first-of-type .product-card__title {
        line-height: 37.5px
    }

    .product-card__desc {
        max-width: 520px;
        font-size: 20px;
        line-height: 26.25px;
        color: #5d4c42
    }

    .product-card:first-of-type .product-card__desc {
        max-width: 602px
    }
}

/* --------------------------------------------------------------------------
   Danh sach san pham nhan xanh (template-parts/blocks/content-nhan-xanh-list.php)
   Nam ngay duoi the "Noi huong vi bat dau" - them 28/11/2026.
   -------------------------------------------------------------------------- */
.green-list {
    margin: 8px 0 48px;
    /* Thut le giong noi dung the san pham phia tren (.product-card) */
    padding: 0 24px
}

@media screen and (min-width:768px) {
    .green-list {
        padding: 0 44px
    }
}

@media screen and (min-width:1024px) {
    .green-list {
        padding: 0 max(70px, calc((100% - 1408px) / 2))
    }
}

.green-list__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 24px;
    margin-bottom: 20px
}

.green-list__title {
    margin: 0;
    font-family: "Proza Libre", iCielProza, serif;
    font-weight: 600;
    font-size: 22px;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--main-site-bakground, #a13a27)
}

.green-list__note {
    margin: 0;
    font-size: 14px;
    color: #6b5a4f
}

.green-list__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none
}

.green-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(46, 24, 17, .08);
    transition: box-shadow .25s ease, transform .25s ease
}

.green-item:hover {
    box-shadow: 0 10px 28px rgba(46, 24, 17, .12);
    transform: translateY(-3px)
}

.green-item__media {
    margin: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f4efe6
}

.green-item__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease
}

.green-item:hover .green-item__media img {
    transform: scale(1.04)
}

.green-item__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 14px 14px 16px
}

.green-item__type {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #8a7563
}

.green-item__title {
    margin: 4px 0 10px;
    font-family: "Proza Libre", iCielProza, serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--main-second-site-background, #2e1811)
}

.green-item__specs {
    margin: 0 0 14px
}

.green-item__spec {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 0;
    border-top: 1px solid rgba(46, 24, 17, .08);
    font-size: 13px;
    line-height: 1.35
}

.green-item__spec dt {
    color: #6b5a4f;
    font-weight: 400
}

.green-item__spec dd {
    margin: 0;
    color: var(--main-second-site-background, #2e1811);
    font-weight: 600;
    text-align: right;
    white-space: nowrap
}

.green-item__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--main-site-bakground, #a13a27);
    text-decoration: none
}

.green-item__cta svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s ease
}

.green-item__cta:hover svg,
.green-item__cta:focus-visible svg {
    transform: translateX(4px)
}

/* Dien thoai: 1 san pham / hang, anh nho ben trai - 2 cot qua hep lam vo nhan thong so */
@media screen and (max-width:575px) {
    .green-list__grid {
        grid-template-columns: 1fr;
        gap: 12px
    }

    .green-item {
        flex-direction: row;
        align-items: flex-start
    }

    .green-item__media {
        flex: 0 0 104px;
        width: 104px;
        margin: 12px 0 12px 12px
    }

    .green-item__body {
        padding: 12px 14px 14px
    }

    .green-item__title {
        margin-bottom: 8px;
        font-size: 15px
    }

    .green-item__spec {
        padding: 4px 0
    }

    .green-item__spec dt,
    .green-item__cta {
        white-space: nowrap
    }

    .green-item__cta {
        align-self: flex-start
    }
}

@media screen and (min-width:768px) {
    .green-list__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px
    }

    .green-item__body {
        padding: 18px 18px 20px
    }

    .green-item__title {
        font-size: 18px
    }

    .green-item__spec {
        font-size: 14px
    }
}

@media screen and (min-width:1200px) {
    .green-list {
        margin: 12px 0 64px
    }

    .green-list__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 22px
    }
}

/* --------------------------------------------------------------------------
   Ca phe rang xay dang trinh dien (template-parts/blocks/content-rang-xay-showcase.php)
   Dung lai .featured-product cua trang chu (featured-product.style.css), giu cung
   kich thuoc / nen voi cac the .product-card. Bo cuc theo anh khach danh so 28/11/2026:
   (1) nhan, (2) cau chu de + noi dung | (3) anh + ten dong & mo ta chu den | danh sach;
   (4) nut Lien he goc duoi trai.
   -------------------------------------------------------------------------- */
.featured-product--rx {
    margin-bottom: 26px;
    background-color: var(--pe-card-bg)
}

.featured-product--rx .featured-product__wapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 28px 24px 32px;
    /* nen cham hinh doi chi o nua duoi, khong de len chu */
    background-size: 100% 45%;
    background-position: 0 100%
}

.featured-product--rx .rx-head {
    order: 0
}

.featured-product--rx .button-change-product {
    order: 1;
    margin: 0;
    padding: 0
}

.featured-product--rx .featured-product__image {
    order: 2;
    margin: 0;
    padding: 0 !important;
    height: 280px
}

/* Ten dong + mo ta: xep chong trong 1 o luoi (khong absolute) -> khoi tu co chieu cao */
.featured-product--rx .featured-product__description {
    order: 3;
    display: grid;
    padding: 0
}

.featured-product--rx .featured-product__description>div {
    position: relative;
    top: auto;
    grid-area: 1 / 1;
    padding: 0
}

.featured-product--rx .rx-item__name {
    margin: 0 0 10px;
    font-family: "Proza Libre", iCielProza, serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.25;
    text-transform: uppercase;
    color: var(--main-second-site-background, #2e1811)
}

.featured-product--rx .featured-product__description p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #2b1f18
}

.featured-product--rx .rx-cta {
    order: 4;
    align-self: flex-start;
    margin: 0
}

/* Anh nam sat day khung, giu ti le */
.featured-product--rx .featured-product__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: 50% 100%
}

.featured-product--rx .button-change-product .bullet span {
    white-space: nowrap
}

@media screen and (min-width:768px) {
    .featured-product--rx .featured-product__wapper {
        padding: 36px 44px
    }
}

@media screen and (min-width:1024px) {

    /* (1)(2) chu de | (3) anh | (3) ten + mo ta dong | danh sach; (4) lien he duoi chu de */
    .featured-product--rx .featured-product__wapper {
        display: grid;
        /* cot chu de du rong de tieu de nam 2 dong nhu the khac (khong lam khoi cao hon) */
        grid-template-columns: min(600px, 39vw) 17vw minmax(0, 1fr) auto;
        grid-template-rows: 1fr auto;
        gap: 0;
        /* bang dem cua .product-card (48px tren duoi, le trai khop noi dung the) */
        padding: 48px 0 48px max(70px, calc((100% - 1408px) / 2));
        min-height: 0;
        background-size: 100% 55%
    }

    .featured-product--rx .rx-head {
        grid-column: 1;
        grid-row: 1;
        align-self: start;
        padding-right: 48px
    }

    .featured-product--rx .rx-cta {
        grid-column: 1;
        grid-row: 2;
        align-self: end;
        margin-top: 24px
    }

    .featured-product--rx .featured-product__image {
        grid-column: 2;
        grid-row: 1 / 3;
        height: 360px
    }

    .featured-product--rx .featured-product__description {
        grid-column: 3;
        grid-row: 1 / 3;
        align-self: center;
        margin: 0;
        padding: 0 3vw
    }

    .featured-product--rx .featured-product__description>div {
        max-width: 380px
    }

    .featured-product--rx .rx-item__name {
        font-size: 28px
    }

    .featured-product--rx .button-change-product,
    .featured-product--rx .button-change-product--stacked {
        grid-column: 4;
        grid-row: 1 / 3;
        align-self: start;
        margin: 0;
        /* le phai khop le trai cua the */
        padding: 0 max(70px, calc((100vw - 1408px) / 2)) 0 0
    }

    .featured-product--rx .button-change-product strong {
        font-size: 45px;
        line-height: 54.63px
    }

    .featured-product--rx .button-change-product .bullet span {
        font-size: 15px;
        line-height: 18.21px
    }
}

/* 1024-1439: 3 cot - mo ta dong dang chon nam duoi danh sach 01/02/03 */
@media screen and (min-width:1024px) and (max-width:1439px) {
    .featured-product--rx .featured-product__wapper {
        grid-template-columns: min(560px, 44vw) 20vw minmax(0, 1fr)
    }

    .featured-product--rx .button-change-product,
    .featured-product--rx .button-change-product--stacked {
        grid-column: 3;
        grid-row: 1;
        padding: 0 70px 0 2vw
    }

    .featured-product--rx .featured-product__description {
        grid-column: 3;
        grid-row: 2;
        align-self: start;
        margin-top: 20px;
        padding: 0 70px 0 2vw
    }

    .featured-product--rx .rx-item__name {
        margin-bottom: 6px;
        font-size: 22px
    }

    /* danh sach gon hon de cot phai (danh sach + mo ta) khong lam khoi cao hon the khac */
    .featured-product--rx .button-change-product--stacked ul {
        row-gap: 4px
    }

    .featured-product--rx .button-change-product strong {
        font-size: 34px;
        line-height: 40px
    }

    .featured-product--rx .button-change-product .bullet span {
        font-size: 14px
    }

    .featured-product--rx .featured-product__description p {
        font-size: 14px;
        line-height: 1.5
    }
}

