.thb-rv,
.thb-rv-directory {
    color: #1e1b18;
    font-family: Muller, Arial, sans-serif;
}

.thb-rv {
    margin: 25px 0;
    padding: 16px 0;
    border-block: 1px solid #e6e1d9;
    scroll-margin-top: 110px;
    text-align: left;
}

.thb-rv-heading,
.thb-rv-byline {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px 14px;
}

.thb-rv-heading {
    margin-bottom: 12px;
}

.thb-rv-heading h2,
.thb-rv-directory h1,
.thb-rv-directory h2 {
    margin: 0;
    font: inherit;
    text-transform: uppercase;
}

.thb-rv article {
    padding: 10px 0;
    overflow-wrap: anywhere;
}

.thb-rv article + article,
.thb-rv-extra {
    border-top: 1px solid #eee9e2;
}

.thb-rv-stars {
    display: inline-block;
    color: #8b7045;
    font-family: Arial, sans-serif;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

@supports (background-clip: text) {
    .thb-rv-stars {
        background: linear-gradient(to right, #8b7045 var(--thb-review-percent), #999087 var(--thb-review-percent));
        background-clip: text;
        color: transparent;
    }
}

.thb-rv-review-title {
    display: block;
}

.thb-rv-byline {
    color: #655e55;
    font-size: 0.85em;
}

.thb-rv-verified {
    color: #765d36;
}

.thb-rv-sr-only {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
}

.thb-rv-more,
.thb-rv-link,
.thb-rv-directory a {
    background: none;
    border: 0;
    color: inherit;
    font: inherit;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.thb-rv-more,
.thb-rv-link {
    cursor: pointer;
    text-transform: none;
}

.thb-rv-more {
    margin-top: 10px;
    text-align: left;
}

.thb-rv-more[hidden],
.thb-rv-extra[hidden] {
    display: none !important;
}

.thb-rv-directory {
    margin: 0 auto;
    max-width: 1100px;
    padding: 44px 16px;
    text-align: center;
}

.thb-rv-directory h1,
.thb-rv-directory h2 {
    font-size: 20px;
}

.thb-rv-ornament {
    align-items: center;
    color: #8b7045;
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 12px 0 22px;
}

.thb-rv-ornament::before,
.thb-rv-ornament::after {
    background: #bba481;
    content: "";
    height: 1px;
    width: 46px;
}

.thb-rv-directory-note {
    color: #655e55;
    margin: 0 0 18px;
}

.thb-rv-cards {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    text-align: left;
}

.thb-rv-card {
    background: #fff;
    border: 1px solid #e6e1d9;
    border-radius: 5px;
    overflow-wrap: anywhere;
    padding: 16px;
}

.thb-rv-card h3 {
    color: #765d36;
    font: inherit;
    margin: 0 0 6px;
}

.thb-rv-card p {
    margin: 8px 0 12px;
}

.thb-rv-card a,
.thb-rv-all {
    display: inline-block;
    margin-top: 10px;
}

.thb-rv-all,
.thb-rv-pagination {
    margin-top: 22px;
}

.thb-rv-pagination {
    display: flex;
    gap: 18px;
    justify-content: center;
}

@media (max-width: 767px) {
    .thb-rv-directory {
        padding-inline: 16px;
    }

    .thb-rv-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .thb-rv-home .thb-rv-cards {
        grid-auto-columns: 88%;
        grid-auto-flow: column;
        grid-template-columns: none;
        overflow-x: auto;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
    }

    .thb-rv-home .thb-rv-card {
        scroll-snap-align: start;
    }
}

/* Prevent the existing floating promotion from covering review content. */
.thb-discount-tab.thb-rv-discount-clear {
    visibility: hidden !important;
    pointer-events: none !important;
}

/* THB homepage reviews design 2026-12-03; scoped to homepage only. */
@font-face {
    font-family: "THB Review Jost";
    src: url("../fonts/thb-review-jost-italic.ttf") format("truetype");
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
}
.thb-rv-home { padding: 14px 16px 36px; }
.thb-rv-home #thb-rv-directory-title { scroll-margin-top: 150px; }
.thb-rv-home-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 445px;
    height: 24px;
    margin: 12px auto 22px;
}
.thb-rv-home-ornament::before, .thb-rv-home-ornament::after {
    content: "";
    display: block;
    height: 1px;
    flex: 1 1 0;
    background: linear-gradient(90deg, transparent 0%, #b89a79 21%, #b89a79 79%, transparent 100%);
}
.thb-rv-home-ornament img { width: 19px; height: 21px; flex: 0 0 19px; object-fit: contain; }
.thb-rv-home .thb-rv-card {
    display: flex;
    flex-direction: column;
    padding: 22px 20px 17px;
}
.thb-rv-home .thb-rv-card > .thb-rv-stars {
    align-self: center;
    font-size: 17px;
    letter-spacing: 0.13em;
}
.thb-rv-home .thb-rv-card .thb-rv-home-quote {
    font-family: "THB Review Jost", Muller, Arial, sans-serif;
    font-weight: 300;
    font-style: italic;
    font-size: 16px;
    line-height: 26px;
    color: #4b5563;
    text-align: center;
    margin: 16px 0 12px;
    overflow-wrap: anywhere;
}
.thb-rv-home .thb-rv-home-quote.thb-rv-home-clamped {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
    max-height: 130px;
}
.thb-rv-home .thb-rv-home-actions {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    font-family: Muller, Arial, sans-serif;
    font-size: 12px;
}
.thb-rv-home .thb-rv-home-actions a,
.thb-rv-home .thb-rv-home-more {
    display: inline-block;
    margin: 0;
    padding: 5px 0;
    border: 0;
    background: none;
    color: #765d36;
    font: inherit;
    text-transform: none;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.thb-rv-home .thb-rv-home-more { margin-left: auto; }
.thb-rv-home .thb-rv-home-more[hidden] { display: none !important; }
.thb-rv-home .thb-rv-card .thb-rv-home-name {
    color: #343332;
    text-align: center;
    border-top: 1px solid #e6e1d9;
    margin: 12px 0 0;
    padding: 13px 0 0;
    font: inherit;
    font-weight: 500;
}
.thb-rv-before-home .main { padding-bottom: 0 !important; }
.thb-rv-before-home .col-main { margin-bottom: 0 !important; padding-bottom: 0 !important; }
@supports selector(:has(+ *)) {
    .main-container:has(+ .thb-rv-home) .main { padding-bottom: 0 !important; }
    .main-container:has(+ .thb-rv-home) .col-main { margin-bottom: 0 !important; padding-bottom: 0 !important; }
}
@media (max-width: 767px) {
    .thb-rv-home { padding-top: 12px; padding-bottom: 28px; }
    .thb-rv-home-ornament { width: calc(100% - 4px); gap: 9px; }
    .thb-rv-home .thb-rv-cards { align-items: start; }
    .thb-rv-home .thb-rv-card { padding: 20px 18px 16px; }
}

/* Homepage reviews: one full mobile card, equal collapsed card heights. */
.thb-rv-home .thb-rv-card { min-width: 0; box-sizing: border-box; }
.thb-rv-home .thb-rv-card .thb-rv-home-quote { min-height: 130px; }
.thb-rv-home-carousel { position: relative; min-width: 0; }
.thb-rv-home-arrow { display: none; }
@media (max-width: 767px) {
    .thb-rv-home .thb-rv-cards {
        grid-auto-columns: 100%;
        column-gap: 12px;
        align-items: stretch;
        padding-bottom: 0;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
    }
    .thb-rv-home .thb-rv-cards::-webkit-scrollbar { display: none; }
    .thb-rv-home-carousel.has-navigation { padding: 0 28px; }
    .thb-rv-home-carousel.has-navigation .thb-rv-home-arrow {
        display: flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 44px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #765d36;
        cursor: pointer;
    }
    .thb-rv-home-arrow-prev { left: 0; }
    .thb-rv-home-arrow-next { right: 0; }
    .thb-rv-home-arrow svg { width: 16px; height: 24px; }
    .thb-rv-home-arrow:disabled { opacity: .35; cursor: default; }
    .thb-rv-home .thb-rv-card { width: 100%; }
}

/* Homepage review typography and touch gesture refinement. */
@font-face {
    font-family: "THB Review Jost";
    src: url("../fonts/thb-review-jost-normal.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}
.thb-rv-home .thb-rv-card .thb-rv-home-quote {
    font-size: 15px;
    line-height: 24.375px;
    letter-spacing: normal;
    min-height: 121.875px;
}
.thb-rv-home .thb-rv-home-quote.thb-rv-home-clamped { max-height: 121.875px; }
.thb-rv-home .thb-rv-card .thb-rv-home-name {
    font-family: "THB Review Jost", Muller, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    line-height: 24px;
    letter-spacing: normal;
    color: #8b7045;
}
.thb-rv-home .thb-rv-home-actions a,
.thb-rv-home .thb-rv-home-actions a:hover,
.thb-rv-home .thb-rv-home-actions a:visited,
.thb-rv-home .thb-rv-home-more { color: #000; text-decoration-color: #000; }
@media (max-width: 767px) {
    .thb-rv-home .thb-rv-cards { touch-action: pan-y; }
}

/* Homepage: chronological carousel of all approved product reviews. */
.thb-rv-home .thb-rv-home-actions a,
.thb-rv-home .thb-rv-home-actions a:hover,
.thb-rv-home .thb-rv-home-actions a:visited,
.thb-rv-home .thb-rv-home-more { color: #765d36; text-decoration-color: #765d36; }
.thb-rv-home-rating-space { display: block; min-height: 20px; }
.thb-rv-home .thb-rv-cards { align-items: stretch; }
@media (min-width: 768px) {
    .thb-rv-home .thb-rv-cards {
        grid-auto-flow: column;
        grid-auto-columns: calc((100% - 28px) / 3);
        grid-template-columns: none;
        gap: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
    }
    .thb-rv-home .thb-rv-cards::-webkit-scrollbar { display: none; }
    .thb-rv-home .thb-rv-card { scroll-snap-align: start; width: 100%; }
    .thb-rv-home-carousel.has-navigation { padding: 0 28px; }
    .thb-rv-home-carousel.has-navigation .thb-rv-home-arrow {
        display: flex; position: absolute; top: 50%; transform: translateY(-50%);
        align-items: center; justify-content: center; width: 28px; height: 44px;
        padding: 0; border: 0; background: transparent; color: #765d36; cursor: pointer;
    }
    .thb-rv-home-arrow-prev { left: 0; }
    .thb-rv-home-arrow-next { right: 0; }
    .thb-rv-home-arrow svg { width: 16px; height: 24px; }
    .thb-rv-home-arrow:disabled { opacity: .35; cursor: default; }
    .thb-rv-home-carousel:not(.has-navigation) .thb-rv-home-arrow { display: none; }
}

/* THB product review accordion; does not change homepage card design. */
.thb-rv-product { margin: 0; padding: 0; border: 0; scroll-margin-top: 110px; }
.thb-rv-product-toggle {
    display: flex; align-items: center; justify-content: space-between;
    box-sizing: border-box; cursor: pointer; min-height: 41px; line-height: 40px;
    font: 600 12px/40px Muller, sans-serif; text-transform: uppercase;
    color: #000; border-top: 1px solid #e8e8e8; list-style: none;
    padding: 0; text-align: left;
}
.thb-rv-product-toggle::-webkit-details-marker { display:none; }
.thb-rv-product-chevron { width: 7px; height: 7px; border-right: 2px solid #b89a79; border-bottom: 2px solid #b89a79; transform: rotate(45deg); margin-right: 3px; flex:none; }
.thb-rv-product-details[open] .thb-rv-product-chevron { transform: rotate(225deg); }
.thb-rv-product-content { padding: 2px 0 0; }
.thb-rv-product article { padding: 14px 0 16px; }
.thb-rv-product article > .thb-rv-stars { font-size: 17px; }
.thb-rv-product .thb-rv-product-quote {
    font: italic 300 15px/24.375px "THB Review Jost", Muller, Arial, sans-serif;
    letter-spacing: normal; color: #4b5563; margin: 8px 0 10px;
}
.thb-rv-product .thb-rv-byline { align-items: baseline; }
.thb-rv-product .thb-rv-byline strong {
    font: 400 16px/24px "THB Review Jost", Muller, Arial, sans-serif;
    color: #8b7045; letter-spacing: normal;
}
.thb-rv-product .thb-rv-month { font-size: 12px; }
.thb-mobile-product-meta { display: none; }
@media (min-width: 771px) {
    .thb-rv-home { padding-top: 0; }
    .catalog-product-view .product-essential form > .description-wrapper.thb-v10:not(.thb-description-expanded) > .thb-description-body { min-height: var(--thb-description-fit-min, 0px); }
}
@media (max-width: 770px) {
    .catalog-product-view .product-essential form > .thb-mobile-product-meta {
        display: block !important; float:none; width:100%; box-sizing:border-box;
        padding: 12px 0 0; margin: 0; clear:both;
    }
    .catalog-product-view .product-essential form > .thb-mobile-product-meta > .sku { margin-bottom: 3px; }
    .catalog-product-view .product-essential form > .thb-mobile-product-meta + .cart-actions-wrapper { padding-top: 0; margin-top: 0; }
}

/* Center the review summary below the product title on desktop only. */
@media (min-width: 771px) {
    .catalog-product-view .product-essential .description-wrapper.visible-xs-up .product-name .thb-rv-link {
        display: block;
        width: fit-content;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
}
