/* ==========================================================
   HEALTH & TEA — MATCHA CATEGORY
   Matches the visual language of Homepage V5.
========================================================== */

:root {
    --htm-dark-green: #17392a;
    --htm-green: #617a45;
    --htm-cream: #f5f0e6;
    --htm-white: #fffefb;
    --htm-text: #28322b;
    --htm-muted: #687169;
    --htm-gold: #d4b875;
}

.htm-matcha-page,
.htm-matcha-page *,
.htm-matcha-page *::before,
.htm-matcha-page *::after {
    box-sizing: border-box;
}

.htm-matcha-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: var(--htm-white);
}

.htm-container {
    width: min(1240px, calc(100% - 56px));
    margin: 0 auto;
}

/* Remove Kadence/WooCommerce archive width constraints for this template. */
body.tax-product_cat.term-matcha-green-tea-powder #primary,
body.tax-product_cat.term-matcha-green-tea-powder .content-area,
body.tax-product_cat.term-matcha-green-tea-powder .site-main {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.htm-eyebrow {
    margin-bottom: 14px;
    color: var(--htm-green);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.htm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 15px 28px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .08em;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.htm-button-light {
    background: #ffffff;
    color: var(--htm-dark-green) !important;
}

.htm-button-light:hover {
    background: #e8eedb;
    color: var(--htm-dark-green) !important;
    transform: translateY(-2px);
}


/* ==========================================================
   HERO
========================================================== */

.htm-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 28%, rgba(173, 192, 134, .24), transparent 28%),
        linear-gradient(125deg, #17392a 0%, #294d37 60%, #607c4b 100%);
}

.htm-hero--has-image {
    background:
        linear-gradient(
            90deg,
            rgba(12, 31, 22, .58) 0%,
            rgba(12, 31, 22, .40) 42%,
            rgba(12, 31, 22, .16) 72%,
            rgba(12, 31, 22, .06) 100%
        ),
        var(--htm-hero-image);
    background-size: cover;
    background-position: center;
}

.htm-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 20, 14, .14), transparent 48%);
    pointer-events: none;
}

.htm-hero-inner {
    position: relative;
    z-index: 2;
}

.htm-hero-copy {
    max-width: 720px;
    padding: 72px 0;
}

.htm-hero .htm-eyebrow {
    margin-bottom: 22px;
    color: #dbe5c9;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .14em;
}

.htm-hero h1 {
    max-width: 720px;
    margin: 0 0 28px;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(54px, 6vw, 82px);
    font-weight: 500;
    line-height: .99;
    letter-spacing: -.035em;
}

.htm-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, .94);
    font-size: 22px;
    line-height: 1.62;
}

.htm-hero .htm-button {
    margin-top: 36px;
}


/* ==========================================================
   BENEFIT BAR
========================================================== */

.htm-benefit-bar {
    width: 100%;
    background: var(--htm-cream);
    color: var(--htm-dark-green);
}

.htm-benefit-inner {
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.htm-benefit-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 108px;
    padding: 22px;
    border-right: 1px solid rgba(23, 57, 42, .14);
}

.htm-benefit-item:last-child {
    border-right: 0;
}

.htm-benefit-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1.25px solid rgba(23, 57, 42, .38);
    border-radius: 50%;
    color: var(--htm-dark-green);
}

.htm-benefit-icon svg {
    display: block;
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.htm-benefit-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.htm-benefit-text strong {
    color: var(--htm-dark-green);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .02em;
}

.htm-benefit-text span {
    color: var(--htm-muted);
    font-size: 13px;
    line-height: 1.45;
}


/* ==========================================================
   SHARED SECTION HEADING
========================================================== */

.htm-section-heading {
    width: min(720px, 100%);
    margin: 0 auto 54px;
    text-align: center;
}

.htm-section-heading h2,
.htm-review-heading h2,
.htm-final-inner h2 {
    margin: 0;
    color: var(--htm-dark-green);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(44px, 4.8vw, 62px);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -.03em;
}

.htm-section-heading p {
    max-width: 650px;
    margin: 18px auto 0;
    color: var(--htm-muted);
    font-size: 17px;
    line-height: 1.7;
}


/* ==========================================================
   MATCHA YOUR WAY — SPLIT SHOPPING LAYOUT
========================================================== */

.htm-choose-matcha {
    padding: 105px 0 120px;
    background: var(--htm-white);
    scroll-margin-top: 90px;
}

.htm-choose-matcha .htm-section-heading .htm-eyebrow {
    margin-bottom: 18px;
    font-size: 22px;
    letter-spacing: .10em;
}

.htm-matcha-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
}

.htm-matcha-column {
    min-width: 0;
}

.htm-column-heading {
    min-height: 158px;
    margin-bottom: 30px;
    padding: 28px 30px;
    border-radius: 20px;
    background: var(--htm-cream);
}

.htm-matcha-column--flavored .htm-column-heading {
    background: #f6ebe8;
}

.htm-column-heading h3 {
    margin: 0 0 12px;
    color: var(--htm-dark-green);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 2.5vw, 38px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.02em;
}

.htm-column-heading p {
    max-width: 520px;
    margin: 0;
    color: var(--htm-muted);
    font-size: 15px;
    line-height: 1.65;
}

.htm-choice-kicker {
    margin-bottom: 12px;
    color: var(--htm-green);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.15;
    text-transform: uppercase;
}

/* Two products per row inside each side. */
.htm-side-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
}

.htm-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(23, 57, 42, .09);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(23, 57, 42, .07);
    transition: transform .3s ease, box-shadow .3s ease;
}

.htm-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 48px rgba(23, 57, 42, .12);
}

.htm-product-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 235px;
    padding: 18px;
    overflow: hidden;
    background: #f7f7f2;
    text-decoration: none !important;
}

.htm-matcha-column--flavored .htm-product-image {
    background: #fbf5f2;
}

.htm-product-art {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 190px !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    object-position: center !important;
    transition: transform .35s ease !important;
}

.htm-product-card:hover .htm-product-art {
    transform: scale(1.03);
}

.htm-sale-badge {
    position: absolute;
    z-index: 3;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--htm-dark-green);
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.htm-product-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 20px 18px 19px;
}

.htm-product-body h3 {
    margin: 0 0 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.22;
}

.htm-product-body h3 a {
    color: var(--htm-dark-green) !important;
    text-decoration: none !important;
}

.htm-product-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.htm-product-title-row h3 {
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 0;
}

.htm-usda-organic-logo {
    flex: 0 0 auto;
    display: block;
    width: 50px;
    height: 50px !important;
    max-width: 50px !important;
    object-fit: contain;
}

.htm-product-price {
    margin-bottom: 16px;
    color: #59645b;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.htm-product-price del {
    color: #989e98;
}

.htm-product-price ins {
    color: var(--htm-dark-green);
    text-decoration: none;
}

.htm-product-action {
    margin-top: auto;
}

.htm-product-button,
.htm-product-button.button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    margin: 0 !important;
    padding: 10px 13px !important;
    border: 1px solid var(--htm-dark-green) !important;
    border-radius: 999px !important;
    background: var(--htm-dark-green) !important;
    color: #ffffff !important;
    box-shadow: none !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: .065em;
    text-decoration: none !important;
    text-transform: uppercase;
}

.htm-product-button:hover,
.htm-product-button.button:hover {
    border-color: var(--htm-green) !important;
    background: var(--htm-green) !important;
    color: #ffffff !important;
}

.htm-no-products {
    margin: 0;
    padding: 24px;
    border-radius: 16px;
    background: var(--htm-cream);
    color: var(--htm-muted);
    text-align: center;
    font-size: 15px;
}

/* Matcha bowl + whisk divider.
   IMPORTANT: CSS-only enhancement. The PHP template remains the last working version. */
.htm-matcha-divider {
    position: relative;
    min-height: 100%;
    display: block;
    padding: 4px 0;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 50px auto;
    background-image: url("https://s4yscqfece-staging.onrocket.site/wp-content/uploads/2026/09/matcha-divider-option5-brush-v2.png");
}

.htm-matcha-divider::before,
.htm-matcha-divider::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(113, 139, 53, .72);
}

.htm-matcha-divider::before {
    top: 4px;
    bottom: calc(50% + 34px);
}

.htm-matcha-divider::after {
    top: calc(50% + 34px);
    bottom: 4px;
}

.htm-matcha-divider-image {
    display: none !important;
}

/* ==========================================================
   WHY MATCHA — CUSTOMER-REVIEW-INSPIRED STYLE
========================================================== */

.htm-why-matcha {
    padding: 105px 0 120px;
    background: #fffefb;
}

.htm-why-matcha .htm-section-heading {
    max-width: 760px;
    margin: 0 auto 55px;
    text-align: center;
}

.htm-why-matcha .htm-section-heading .htm-eyebrow {
    margin-bottom: 18px;
    color: var(--htm-green);
    font-size: 21px;
    letter-spacing: .09em;
}

.htm-why-matcha .htm-section-heading h2 {
    color: var(--htm-dark-green);
}

.htm-why-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 1120px;
    margin: 0 auto;
}

.htm-why-grid article {
    display: flex;
    flex-direction: column;
    min-height: 300px;
    padding: 38px 34px 34px;
    border: 1px solid rgba(23, 57, 42, .10);
    border-radius: 20px;
    background: var(--htm-cream);
    box-shadow: 0 18px 42px rgba(23, 57, 42, .08);
}

.htm-why-grid span {
    display: block;
    margin-bottom: 24px;
    color: var(--htm-green);
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .10em;
}

.htm-why-grid h3 {
    margin: 0 0 16px;
    color: var(--htm-dark-green);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px;
    font-weight: 500;
    line-height: 1.1;
}

.htm-why-grid p {
    margin: 0;
    color: var(--htm-muted);
    font-size: 16px;
    line-height: 1.7;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1100px) {
}

@media (max-width: 900px) {
    .htm-benefit-inner {
        width: min(900px, calc(100% - 40px));
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .htm-benefit-item:nth-child(2) {
        border-right: 0;
    }

    .htm-benefit-item:nth-child(-n+2) {
        border-bottom: 1px solid rgba(23, 57, 42, .14);
    }

    .htm-why-grid {
        grid-template-columns: 1fr;
    }

    .htm-why-grid article {
        min-height: 0;
    }
}

@media (max-width: 767px) {
    .htm-container {
        width: calc(100% - 32px);
    }

    .htm-hero {
        min-height: 520px;
    }

    .htm-hero-copy {
        padding: 80px 0;
    }

    .htm-hero h1 {
        font-size: 48px;
    }

    .htm-hero .htm-eyebrow {
        font-size: 14px;
    }

    .htm-hero p {
        font-size: 19px;
        line-height: 1.6;
    }

    .htm-why-matcha .htm-section-heading .htm-eyebrow {
        font-size: 18px;
    }

    .htm-choose-matcha,
    .htm-why-matcha {
        padding: 72px 0 78px;
    }

    .htm-section-heading {
        margin-bottom: 38px;
    }

    .htm-product-image {
        height: 250px;
    }
}

@media (max-width: 600px) {
    .htm-benefit-inner {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .htm-benefit-item {
        justify-content: flex-start;
        min-height: 88px;
        padding: 18px 24px;
        border-right: 0;
        border-bottom: 1px solid rgba(23, 57, 42, .14);
    }

    .htm-benefit-item:last-child {
        border-bottom: 0;
    }

    .htm-product-image {
        height: 330px;
    }

    .htm-product-art {
        max-width: 250px !important;
    }
}


/* ==========================================================
   MATCHA SPLIT — RESPONSIVE OVERRIDES
========================================================== */

@media (max-width: 1100px) {
    .htm-matcha-divider {
        background-size: 38px auto;
    }

    .htm-matcha-split {
        grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
        gap: 20px;
    }

    .htm-side-product-grid {
        grid-template-columns: 1fr;
    }

    .htm-product-image {
        height: 275px;
    }

    .htm-product-art {
        max-width: 220px !important;
    }
}

@media (max-width: 767px) {
    .htm-choose-matcha .htm-section-heading .htm-eyebrow {
        font-size: 18px;
    }

    .htm-choice-kicker {
        font-size: 17px;
    }

    .htm-matcha-split {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .htm-matcha-divider {
        width: 100%;
        height: 82px;
        min-height: 82px;
        padding: 0;
        background-size: 64px auto;
        background-position: center center;
    }

    .htm-matcha-divider::before,
    .htm-matcha-divider::after {
        top: 50%;
        bottom: auto;
        height: 2px;
        width: calc(50% - 43px);
        transform: translateY(-50%);
    }

    .htm-matcha-divider::before {
        left: 0;
    }

    .htm-matcha-divider::after {
        left: auto;
        right: 0;
    }

    .htm-matcha-divider-image {
        display: none !important;
    }

    .htm-side-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 12px;
    }

    .htm-column-heading {
        min-height: 0;
        padding: 24px;
    }

    .htm-product-image {
        height: 220px;
        padding: 14px;
    }

    .htm-product-art {
        max-width: 170px !important;
    }
}

@media (max-width: 520px) {
    .htm-side-product-grid {
        grid-template-columns: 1fr;
    }

    .htm-product-image {
        height: 315px;
    }

    .htm-product-art {
        max-width: 240px !important;
    }
}

/* ==========================================================
   RESPONSIVE HARDENING — 2026-09-28
   Keeps the approved desktop design while protecting tablet/mobile.
========================================================== */

.htm-matcha-page img,
.htm-matcha-page video,
.htm-matcha-page iframe {
    max-width: 100%;
}

.htm-matcha-page img,
.htm-matcha-page video {
    height: auto;
}

.htm-matcha-page section,
.htm-matcha-page article,
.htm-matcha-page div {
    min-width: 0;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .htm-container {
        width: min(1240px, calc(100% - 40px));
    }
}

@media (max-width: 767px) {
    .htm-container {
        width: calc(100% - 28px);
    }

    .htm-matcha-page h1,
    .htm-matcha-page h2,
    .htm-matcha-page h3,
    .htm-matcha-page p,
    .htm-matcha-page a,
    .htm-matcha-page span {
        overflow-wrap: break-word;
    }
}

/* ==========================================================
   MATCHA PRODUCT CERTIFICATION LOGO
========================================================== */
@media (max-width: 767px) {
    .htm-product-title-row {
        gap: 10px;
    }

    .htm-usda-organic-logo {
        width: 46px;
        height: 46px !important;
        max-width: 46px !important;
    }
}

/* ==========================================================
   FINAL CTA — SAME LOOK AS HOME V5 / LOOSE-LEAF TEA
========================================================== */
.htm-final-cta {
    position: relative;
    width: 100%;
    padding: 32px 0;
    overflow: hidden;
    background: var(--htm-dark-green);
}

.htm-final-cta::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    top: -250px;
    right: -150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .035);
}

.htm-final-cta::after {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    bottom: -240px;
    left: -100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .03);
}

.htm-final-inner {
    position: relative;
    z-index: 2;
    max-width: 1080px;
    text-align: center;
}

.htm-final-eyebrow {
    margin-bottom: 8px;
    color: #cdd9b8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.htm-final-inner h2 {
    margin: 0 auto 10px;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 4.4vw, 60px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -.035em;
    white-space: nowrap;
}

.htm-final-inner p {
    max-width: 680px;
    margin: 0 auto;
    color: rgba(255, 255, 255, .78);
    font-size: 16px;
    line-height: 1.55;
}

.htm-final-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 16px;
}

.htm-final-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: all .2s ease;
}

.htm-final-button-light {
    background: #ffffff;
    color: var(--htm-dark-green) !important;
}

.htm-final-button-light:hover {
    background: #e8eedb;
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .htm-final-cta {
        padding: 28px 0;
    }

    .htm-final-inner h2 {
        font-size: clamp(34px, 10vw, 46px);
        white-space: normal;
    }

    .htm-final-actions {
        flex-direction: column;
    }

    .htm-final-button {
        width: 100%;
    }
}



/* VNEXT: equal benefit boxes; keep each title and supporting line on one line on desktop. */
@media (min-width: 1320px) {
    .htm-benefit-inner { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .htm-benefit-item { gap: 10px; padding: 18px 12px; }
    .htm-benefit-text strong,
    .htm-benefit-text span { white-space: nowrap; }
}
@media (min-width: 769px) and (max-width: 1319px) {
    .htm-benefit-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .htm-benefit-item:nth-child(2) { border-right: 0; }
    .htm-benefit-item:nth-child(-n+2) { border-bottom: 1px solid rgba(23,57,42,.14); }
    .htm-benefit-text strong,
    .htm-benefit-text span { white-space: nowrap; }
}
