/* Product listing and detail surfaces for tea storefront */

.product-page-hero {
    position: relative;
    width: min(1320px, calc(100% - 48px));
    min-height: clamp(260px, 28vw, 328px);
    margin: 24px auto 0;
    display: flex;
    align-items: center;
    background-image: url('/images/banner2.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden;
    border-radius: 24px;
    background-color: #10291f;
    box-shadow: 0 24px 60px rgba(22, 58, 45, 0.12);
}

.product-page-hero::before {
    content: none;
}

.product-page-hero .container {
    position: relative;
    z-index: 1;
}

.product-page-hero h1 {
    max-width: 760px;
    margin: 12px 0 16px;
    color: #fffaf2 !important;
    font-family: 'Inter', Arial, sans-serif !important;
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: 0;
    text-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.product-page-hero span {
    display: inline-flex;
    color: #f4d38a !important;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.product-page-hero p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 250, 242, 0.88) !important;
    font-family: 'Inter', Arial, sans-serif;
    font-size: clamp(15px, 1.35vw, 18px);
    font-weight: 500;
    line-height: 1.7;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.product-page-media-hero.has-video {
    background: transparent;
    background-image: none;
}

.product-page-hero-video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.42s ease;
}

.product-page-media-hero.is-video-ready .product-page-hero-video {
    opacity: 1;
}

.product-listing {
    padding-top: 42px;
}

.listing-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.listing-toolbar h2 {
    margin: 4px 0 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 34px;
}

.result-label {
    margin: 0;
    color: var(--tea-clay);
    font-weight: 700;
}

.category-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
}

.product-grid-item {
    min-width: 0;
}

.category-strip a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid var(--tea-line);
    border-radius: 8px;
    background: var(--tea-cream);
    color: var(--tea-ink);
    text-decoration: none;
    font-weight: 600;
}

.category-strip a:hover,
.category-strip a.active {
    background: var(--tea-green-dark);
    border-color: var(--tea-green-dark);
    color: #fff;
}

.product-price-filter {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 12px;
    margin: -10px 0 28px;
    padding: 12px;
    border: 1px solid rgba(22, 58, 45, 0.1);
    border-radius: 16px;
    background: rgba(255, 253, 248, 0.94);
    box-shadow: 0 12px 28px rgba(17, 31, 24, 0.06);
}

.price-filter-label,
.price-filter-custom,
.price-filter-custom label,
.price-filter-presets {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.price-filter-label {
    min-height: 38px;
    padding: 0 8px;
    color: #14392a;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.price-filter-label i {
    color: var(--tea-clay);
}

.price-filter-presets {
    min-width: 0;
    flex-wrap: wrap;
}

.price-filter-chip {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border: 1px solid rgba(22, 58, 45, 0.12);
    border-radius: 999px;
    background: #fff;
    color: #14392a;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.price-filter-chip:hover,
.price-filter-chip.active {
    background: #14392a;
    border-color: #14392a;
    color: #fffaf2;
    box-shadow: 0 8px 16px rgba(20, 57, 42, 0.14);
}

.price-filter-custom {
    grid-column: 2 / 3;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.price-filter-custom label {
    min-width: 0;
    margin: 0;
    color: #6f7469;
    font-size: 12px;
    font-weight: 700;
}

.price-filter-custom input {
    width: 136px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(22, 58, 45, 0.14);
    border-radius: 10px;
    background: #fff;
    color: #14392a;
    font: inherit;
    font-size: 14px;
}

.price-filter-custom input:focus {
    border-color: rgba(22, 58, 45, 0.46);
    box-shadow: 0 0 0 0.18rem rgba(22, 58, 45, 0.1);
    outline: none;
}

.price-filter-custom .btn {
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    background: #14392a;
    border-color: #14392a;
    font-weight: 800;
    white-space: nowrap;
}

.price-filter-clear {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 999px;
    color: #14392a;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.price-filter-clear:hover {
    background: rgba(20, 57, 42, 0.08);
    color: #14392a;
}

@media (max-width: 991.98px) {
    .product-price-filter {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .price-filter-custom {
        grid-column: auto;
        justify-content: flex-start;
    }

    .price-filter-clear {
        width: fit-content;
    }
}

@media (max-width: 767.98px) {
    .product-page-hero {
        width: calc(100% - 24px);
        min-height: clamp(210px, 52vw, 260px);
        margin-top: 14px;
        border-radius: 18px;
    }

    .product-page-hero h1 {
        font-size: clamp(32px, 9vw, 42px);
        line-height: 1.04;
    }

    .category-strip {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
        margin-bottom: 18px;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        touch-action: pan-x pan-y;
    }

    .category-strip::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
        background: transparent;
    }

    .category-strip a {
        flex: 0 0 auto;
        min-height: 36px;
        white-space: nowrap;
    }

    .product-price-filter {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin: -4px 0 18px;
        padding: 10px;
        border-radius: 14px;
    }

    .price-filter-label {
        padding: 0;
    }

    .price-filter-presets {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .price-filter-chip {
        width: 100%;
        min-height: 38px;
        padding: 0 8px;
        font-size: 12px;
    }

    .price-filter-custom {
        grid-column: auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        justify-content: stretch;
    }

    .price-filter-custom label {
        display: grid;
        gap: 5px;
    }

    .price-filter-custom input {
        width: 100%;
    }

    .price-filter-custom .btn,
    .price-filter-clear {
        width: 100%;
        justify-content: center;
    }

    .price-filter-custom .btn,
    .price-filter-clear {
        grid-column: 1 / -1;
    }
}

.product-card,
.product-hot-card {
    border: 1px solid var(--tea-line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--tea-cream);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover,
.product-hot-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 30px rgba(31, 34, 29, 0.1);
}

.product-img-wrapper,
.product-hot-img {
    position: relative;
    display: block;
    width: 100%;
    height: 235px;
    overflow: hidden;
    background: #efe6d3;
}

.product-img-wrapper > img,
.product-hot-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
}

.product-card:hover .product-img-wrapper img,
.product-hot-card:hover .product-hot-img img {
    transform: scale(1.04);
}

.hot-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 8px;
    background: var(--tea-clay);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.product-body,
.product-hot-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-items: center;
    text-align: center;
}

.product-meta {
    min-height: 18px;
    margin-bottom: 6px;
    color: var(--tea-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
}

.product-name,
.product-hot-name {
    min-height: 44px;
    color: var(--tea-ink);
    font-family: 'Inter', Arial, sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;
    overflow: hidden;
    text-align: center;
}

.product-price,
.product-hot-price {
    margin: 10px 0 14px;
    color: var(--tea-clay);
    font-size: 16px;
    font-weight: 800;
    text-align: center;
}

.product-actions,
.product-hot-actions {
    margin-top: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.product-actions .btn,
.product-hot-actions .btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-align: center;
    padding: 0 12px;
}

.empty-state {
    max-width: 560px;
    margin: 40px auto;
    padding: 34px;
    border: 1px solid var(--tea-line);
    border-radius: 8px;
    background: var(--tea-cream);
    text-align: center;
}

.empty-state i {
    color: var(--tea-clay);
    font-size: 30px;
}

.empty-state h3 {
    margin: 14px 0 8px;
    font-family: 'Playfair Display', Georgia, serif;
}

.empty-state p {
    color: var(--tea-muted);
}

.product-listing .pagination {
    gap: 8px;
    margin-top: 34px;
}

.product-listing .pagination .page-item {
    margin: 0;
}

.product-listing .pagination .page-link {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(22, 58, 45, 0.14);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.92);
    color: var(--tea-green-dark);
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 10px 22px rgba(16, 29, 23, 0.06);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.product-listing .pagination .page-link:hover,
.product-listing .pagination .page-link:focus {
    border-color: rgba(22, 58, 45, 0.28);
    background: #edf4ef;
    color: var(--tea-green-dark);
    box-shadow: 0 14px 26px rgba(16, 29, 23, 0.1);
    transform: translateY(-1px);
}

.product-listing .pagination .page-item.active .page-link {
    border-color: var(--tea-green-dark);
    background: linear-gradient(180deg, #214b3a 0%, var(--tea-green-dark) 100%);
    color: #fff;
    box-shadow: 0 14px 28px rgba(22, 58, 45, 0.22);
}

.product-detail-page {
    padding-top: 54px;
}

.product-detail-shell {
    padding-top: 34px;
}

.detail-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--tea-muted);
    font-size: 14px;
}

.detail-breadcrumb a {
    color: var(--tea-muted);
    text-decoration: none;
}

.detail-breadcrumb strong {
    color: var(--tea-ink);
    font-weight: 700;
}

.product-detail-top {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 420px);
    gap: 32px;
    align-items: start;
}

.product-gallery-card,
.product-buy-card,
.detail-content-card {
    border: 1px solid var(--tea-line);
    border-radius: 8px;
    background: #fff;
}

.product-gallery-card {
    padding: 18px;
}

.product-gallery-grid {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
}

.product-gallery-thumbs {
    display: grid;
    gap: 10px;
    align-content: start;
}

.thumb-button {
    padding: 0;
    border: 1px solid var(--tea-line);
    border-radius: 8px;
    overflow: hidden;
    background: #fffaf2;
}

.thumb-button.active,
.thumb-button:hover {
    border-color: var(--tea-clay);
}

.thumb-button img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.detail-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    overflow: hidden;
    border-radius: 8px;
    background: #efe6d3;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform .25s ease;
}

.detail-image:hover img {
    transform: scale(1.03);
}

.detail-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-top: 12px;
    padding-bottom: 2px;
}

.detail-thumbs img {
    width: 76px;
    height: 76px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
}

.detail-thumbs img:hover {
    border-color: var(--tea-clay);
}

.product-gallery-main .detail-image,
.product-gallery-main #mainImage {
    width: 100%;
    aspect-ratio: 1 / 1;
}

.product-gallery-main #mainImage {
    object-fit: cover;
    display: block;
    border-radius: 8px;
    background: #efe6d3;
    cursor: zoom-in;
}

.product-buy-card {
    position: sticky;
    top: 130px;
    padding: 24px;
}

.detail-category {
    color: var(--tea-clay);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.detail-name {
    margin: 10px 0 14px;
    color: var(--tea-ink);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 36px;
    line-height: 1.15;
}

.detail-review-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--tea-muted);
    margin-bottom: 14px;
}

.review-stars {
    color: #d6a33f;
}

.detail-meta-grid {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--tea-muted);
}

.detail-fact-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--tea-line);
    border-radius: 8px;
    background: #fffaf2;
}

.detail-fact-list > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.detail-fact-list span {
    color: var(--tea-muted);
}

.detail-fact-list strong {
    color: var(--tea-ink);
    text-align: right;
}

.detail-price {
    color: var(--tea-clay);
    font-size: 28px;
    font-weight: 800;
}

.detail-code {
    margin-top: 8px;
    color: var(--tea-muted);
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.detail-actions-stacked .btn {
    width: 100%;
}

.detail-commitments {
    margin: 18px 0 0;
    padding-left: 18px;
    color: var(--tea-muted);
    line-height: 1.8;
}

.product-related-section,
.product-detail-content-section {
    padding-top: 32px;
}

.detail-page-section {
    padding-top: 32px;
    padding-bottom: 24px;
}

.detail-tab-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.detail-tab-strip a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--tea-line);
    border-radius: 8px;
    background: var(--tea-cream);
    color: var(--tea-ink);
    text-decoration: none;
    font-weight: 700;
}

.detail-tab-strip a.active,
.detail-tab-strip a:hover {
    background: var(--tea-green-dark);
    border-color: var(--tea-green-dark);
    color: #fff;
}

.detail-content-layout {
    display: grid;
    gap: 18px;
}

.detail-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 24px;
    align-items: start;
}

.detail-page-main {
    min-width: 0;
}

.detail-page-sidebar {
    position: sticky;
    top: 120px;
}

.detail-tab-strip-plain {
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--tea-line);
}

.detail-tab-strip-plain a {
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--tea-ink);
    font-size: 15px;
    text-transform: uppercase;
}

.detail-tab-strip-plain a.active,
.detail-tab-strip-plain a:hover {
    background: transparent;
    border-color: transparent;
    color: var(--tea-clay);
}

.detail-extra-section {
    padding-top: 24px;
    padding-bottom: 24px;
}

.detail-extra-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.voucher-grid {
    display: grid;
    gap: 16px;
}

.voucher-card {
    position: relative;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #eadfd6;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #fffaf6 100%);
    box-shadow: 0 18px 40px rgba(58, 42, 31, 0.08);
}

.voucher-card::before,
.voucher-card::after {
    content: "";
    position: absolute;
    left: 98px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #f3efe9;
    border: 1px solid #eadfd6;
}

.voucher-card::before {
    top: -11px;
}

.voucher-card::after {
    bottom: -11px;
}

.voucher-icon-pane {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 152px;
    background: linear-gradient(180deg, #fff7f0 0%, #fff 100%);
    border-right: 1px dashed #d7c4b6;
}

.voucher-icon-pane i {
    font-size: 34px;
}

.voucher-accent-red .voucher-icon-pane i,
.voucher-accent-red .voucher-copy-btn {
    color: #a2232d;
}

.voucher-accent-wine .voucher-icon-pane i,
.voucher-accent-wine .voucher-copy-btn {
    color: #8f1f2c;
}

.voucher-accent-earth .voucher-icon-pane i,
.voucher-accent-earth .voucher-copy-btn {
    color: #9b5533;
}

.voucher-accent-gold .voucher-icon-pane i,
.voucher-accent-gold .voucher-copy-btn {
    color: #9d6b1b;
}

.voucher-body {
    display: grid;
    gap: 14px;
    padding: 18px 20px 18px 18px;
}

.voucher-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.voucher-head strong {
    display: block;
    margin-bottom: 4px;
    font-size: 21px;
    line-height: 1.2;
    color: var(--tea-ink);
}

.voucher-head span {
    color: #5f5147;
}

.voucher-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #4c4c4c;
}

.voucher-meta {
    display: grid;
    gap: 4px;
}

.voucher-meta span {
    color: var(--tea-muted);
}

.voucher-meta b {
    font-size: 20px;
    letter-spacing: 0.04em;
}

.voucher-meta small {
    color: #6d6259;
}

.voucher-actions {
    display: flex;
    justify-content: flex-end;
}

.voucher-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 144px;
    padding: 10px 18px;
    border: 0;
    border-radius: 999px;
    background: currentColor;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.voucher-copy-btn:hover {
    transform: translateY(-1px);
    opacity: 0.94;
}

.voucher-copy-btn.copied {
    background: #1d6f42;
    color: #fff;
}

.voucher-copy-toast {
    position: sticky;
    bottom: 18px;
    width: fit-content;
    margin: 18px 0 0 auto;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(29, 111, 66, 0.94);
    color: #fff;
    font-size: 14px;
    box-shadow: 0 10px 24px rgba(29, 111, 66, 0.18);
}

.voucher-copy-toast.show {
    animation: voucherToastIn 0.2s ease;
}

.voucher-grid-compact {
    gap: 12px;
}

.voucher-card-compact {
    grid-template-columns: 68px minmax(0, 1fr);
    border-radius: 12px;
    box-shadow: none;
}

.voucher-card-compact::before,
.voucher-card-compact::after {
    left: 57px;
    width: 16px;
    height: 16px;
}

.voucher-card-compact::before {
    top: -8px;
}

.voucher-card-compact::after {
    bottom: -8px;
}

.voucher-card-compact .voucher-icon-pane {
    min-height: 100px;
}

.voucher-card-compact .voucher-icon-pane i {
    font-size: 20px;
}

.voucher-card-compact .voucher-body {
    gap: 8px;
    padding: 12px 12px 12px 10px;
}

.voucher-card-compact .voucher-head {
    gap: 8px;
}

.voucher-card-compact .voucher-head strong {
    margin-bottom: 2px;
    font-size: 14px;
}

.voucher-card-compact .voucher-head span,
.voucher-card-compact .voucher-meta small,
.voucher-card-compact .voucher-meta span {
    font-size: 11px;
    line-height: 1.4;
}

.voucher-card-compact .voucher-meta b {
    font-size: 13px;
}

.voucher-card-compact .voucher-info-btn {
    width: 22px;
    height: 22px;
    font-size: 12px;
}

.voucher-card-compact .voucher-copy-btn {
    min-width: 92px;
    padding: 7px 10px;
    font-size: 10px;
}

.detail-side-card {
    padding: 16px;
}

.detail-side-card h2 {
    margin-bottom: 14px;
    font-size: 20px;
}

.detail-side-posts a {
    font-size: 14px;
    line-height: 1.5;
}

@keyframes voucherToastIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-summary-box {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    margin-bottom: 20px;
    border: 1px solid var(--tea-line);
    border-radius: 8px;
    background: #fffaf2;
}

.review-score {
    min-width: 92px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 48px;
    line-height: 1;
    color: var(--tea-clay);
}

.review-stars.large {
    font-size: 18px;
}

.review-summary-box p {
    margin: 8px 0 0;
    color: var(--tea-muted);
}

.review-form {
    padding: 18px;
    border: 1px solid var(--tea-line);
    border-radius: 8px;
    background: #fff;
}

.review-list {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.review-item {
    padding: 18px;
    border: 1px solid var(--tea-line);
    border-radius: 8px;
    background: #fffaf2;
}

.review-item-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: var(--tea-muted);
}

.review-item h3 {
    margin: 10px 0 8px;
    font-size: 18px;
}

.review-item p {
    margin: 0;
}

.detail-description-wrap {
    margin-top: 24px;
}

.detail-description-heading {
    max-width: 720px;
    margin: 0 0 18px;
}

.detail-description-heading span,
.brewing-guide-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--tea-clay);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.detail-description-heading h2 {
    margin: 0;
    color: var(--tea-ink);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.12;
}

.detail-description-collapsible {
    position: relative;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.detail-description-collapsible.is-collapsed {
    max-height: 520px;
}

.detail-description-collapsible.is-collapsed::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 110px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 82%);
    pointer-events: none;
}

.brewing-guide {
    margin: 0 0 26px;
    padding: 22px 24px;
    border: 1px solid rgba(168, 97, 61, .18);
    border-left: 4px solid var(--tea-clay);
    border-radius: 16px;
    background: linear-gradient(180deg, #fffaf2 0%, #f8f0e4 100%);
}

.brewing-guide h3 {
    margin: 0 0 10px;
    color: var(--tea-ink);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    line-height: 1.2;
}

.brewing-guide p {
    max-width: 760px;
    margin: 0;
    color: #4f5d55;
    font-size: 15px;
    line-height: 1.9;
}

.description-content {
    max-width: 760px;
    color: #34443b;
}

.description-content p,
.description-content li {
    color: #34443b;
    font-size: 16px;
    line-height: 1.92;
}

.description-content p {
    margin: 0 0 18px;
}

.description-content h2,
.description-content h3,
.description-content h4 {
    margin: 28px 0 12px;
    color: var(--tea-ink);
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.2;
}

.description-content h2 {
    font-size: 30px;
}

.description-content h3 {
    font-size: 24px;
}

.description-content ul,
.description-content ol {
    margin: 0 0 18px;
    padding-left: 22px;
}

.description-content strong {
    color: var(--tea-ink);
}

.description-auto-specs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 4px 0 24px;
    overflow: hidden;
    border: 1px solid rgba(22, 58, 45, 0.12);
    border-radius: 14px;
    background: #fffdf8;
}

.description-auto-spec-row {
    display: grid;
    grid-template-columns: minmax(130px, 0.34fr) minmax(0, 1fr);
    gap: 18px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(22, 58, 45, 0.09);
}

.description-auto-spec-row:last-child {
    border-bottom: 0;
}

.description-auto-spec-row span {
    color: #7b6a57;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.description-auto-spec-row strong {
    color: #24372e;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.72;
}

.description-auto-section {
    margin-top: 24px;
}

.description-auto-section h3 {
    margin: 0 0 10px;
    color: var(--tea-ink);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    line-height: 1.25;
}

.description-auto-section p {
    margin: 0 0 18px;
}

.detail-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    margin-top: 14px;
    padding: 10px 18px;
    border: 1px solid var(--tea-clay);
    border-radius: 999px;
    background: #fff;
    color: var(--tea-clay);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.detail-toggle-btn:hover {
    background: var(--tea-clay);
    color: #fff;
}

.detail-side-list {
    display: grid;
    gap: 12px;
}

.detail-side-list a {
    color: var(--tea-ink);
    text-decoration: none;
    line-height: 1.6;
    font-weight: 600;
}

.detail-recent-products {
    display: grid;
    gap: 14px;
}

.recent-product-item {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    color: var(--tea-ink);
    text-decoration: none;
}

.recent-product-item img {
    width: 78px;
    height: 78px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--tea-line);
}

.recent-product-item strong {
    display: block;
    line-height: 1.5;
}

.recent-product-item span {
    display: block;
    margin-top: 6px;
    color: var(--tea-clay);
    font-weight: 700;
}

.detail-content-card {
    padding: 24px;
}

.detail-content-card h2 {
    margin: 0 0 16px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 30px;
}

.detail-content-card p,
.detail-content-card li {
    color: var(--tea-muted);
    line-height: 1.85;
}

.detail-content-card ul {
    margin: 0;
    padding-left: 18px;
}

.detail-spec-table {
    display: grid;
    gap: 12px;
}

.detail-spec-table > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--tea-line);
}

.detail-spec-table span {
    color: var(--tea-muted);
}

.detail-spec-table strong {
    color: var(--tea-ink);
    text-align: right;
}

.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.86);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

@media (max-width: 991.98px) {
    .listing-toolbar {
        display: block;
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-detail-top {
        grid-template-columns: 1fr;
    }

    .product-buy-card {
        position: static;
    }

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

    .product-gallery-thumbs {
        grid-auto-flow: column;
        grid-auto-columns: 76px;
        overflow-x: auto;
    }

    .detail-page-grid,
    .detail-extra-grid,
    .voucher-grid {
        grid-template-columns: 1fr;
    }

    .detail-page-sidebar {
        position: static;
    }

    .voucher-card {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .voucher-card::before,
    .voucher-card::after {
        left: 81px;
    }

    .voucher-icon-pane {
        min-height: 140px;
    }

    .voucher-card-compact {
        grid-template-columns: 68px minmax(0, 1fr);
    }

    .voucher-card-compact .voucher-icon-pane {
        min-height: 96px;
    }
}

@media (max-width: 767.98px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .product-img-wrapper,
    .product-hot-img {
        height: 190px;
    }

    .product-body,
    .product-hot-body {
        padding: 12px;
    }

    .detail-name {
        font-size: 32px;
    }

    .detail-actions .btn {
        width: 100%;
    }

    .voucher-card {
        grid-template-columns: 1fr;
    }

    .voucher-card::before,
    .voucher-card::after {
        display: none;
    }

    .voucher-icon-pane {
        min-height: 84px;
        border-right: 0;
        border-bottom: 1px dashed #d7c4b6;
    }

    .voucher-body {
        padding: 16px;
    }

    .voucher-head strong {
        font-size: 18px;
    }

    .voucher-actions {
        justify-content: stretch;
    }

    .voucher-copy-btn {
        width: 100%;
    }

    .voucher-card-compact {
        grid-template-columns: 1fr;
    }

    .voucher-card-compact .voucher-icon-pane {
        min-height: 72px;
    }

    .detail-toggle-btn {
        width: 100%;
    }

    .detail-description-heading,
    .description-content {
        max-width: none;
    }

    .detail-description-heading h2 {
        font-size: 28px;
    }

    .brewing-guide {
        padding: 18px;
    }

    .brewing-guide h3 {
        font-size: 22px;
    }

    .description-content p,
    .description-content li {
        font-size: 15px;
        line-height: 1.86;
    }

    .description-auto-spec-row {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 13px 14px;
    }

    .description-auto-spec-row span {
        font-size: 11px;
    }

    .description-auto-section h3 {
        font-size: 22px;
    }
}

/* ================= PRODUCT DETAIL REFRESH ================= */

.product-detail-vouchers {
    margin-top: 16px;
}

.detail-content-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.detail-primary-column,
.detail-secondary-column {
    min-width: 0;
}

.detail-secondary-column {
    display: grid;
    gap: 24px;
}

.detail-side-sticky {
    position: sticky;
    top: 108px;
}

.detail-review-card {
    margin-top: 24px;
}

.detail-section-head {
    margin-bottom: 14px;
}

.detail-section-head h2 {
    margin: 0;
}

.voucher-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.voucher-card-horizontal {
    grid-template-columns: 48px minmax(0, 1fr);
    border-radius: 8px;
    box-shadow: none;
}

.voucher-card-horizontal::before,
.voucher-card-horizontal::after {
    left: 40px;
    width: 12px;
    height: 12px;
}

.voucher-card-horizontal::before {
    top: -6px;
}

.voucher-card-horizontal::after {
    bottom: -6px;
}

.voucher-card-horizontal .voucher-icon-pane {
    min-height: 78px;
}

.voucher-card-horizontal .voucher-icon-pane i {
    font-size: 14px;
}

.voucher-card-horizontal .voucher-body {
    gap: 4px;
    padding: 7px 8px 8px;
}

.voucher-card-horizontal .voucher-head strong {
    margin-bottom: 1px;
    font-size: 11px;
    line-height: 1.2;
}

.voucher-card-horizontal .voucher-head span,
.voucher-card-horizontal .voucher-meta small,
.voucher-card-horizontal .voucher-meta span {
    font-size: 9px;
    line-height: 1.25;
}

.voucher-card-horizontal .voucher-meta b {
    font-size: 11px;
}

.voucher-card-horizontal .voucher-info-btn {
    width: 16px;
    height: 16px;
    font-size: 9px;
}

.voucher-card-horizontal .voucher-copy-btn {
    min-width: 82px;
    min-height: 22px;
    padding: 4px 8px;
    font-size: 8px;
    letter-spacing: 0.02em;
}

.voucher-card-horizontal.voucher-accent-red .voucher-copy-btn {
    background: var(--tea-green-dark);
    color: #fff;
}

.voucher-card-horizontal.voucher-accent-wine .voucher-copy-btn {
    background: var(--tea-green);
    color: #fff;
}

.voucher-card-horizontal.voucher-accent-earth .voucher-copy-btn {
    background: #3f6f58;
    color: #fff;
}

.voucher-card-horizontal.voucher-accent-gold .voucher-copy-btn {
    background: #8f7a39;
    color: #fff;
}

.detail-side-post-list {
    display: grid;
    gap: 14px;
}

.detail-side-post-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    color: var(--tea-ink);
    text-decoration: none;
}

.detail-side-post-item img {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--tea-line);
}

.detail-side-post-item strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
    line-height: 1.45;
}

.detail-side-post-item span {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--tea-muted);
    font-size: 13px;
    line-height: 1.55;
}

.detail-slider-section {
    margin-top: 24px;
}

.detail-card-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.detail-strip-card {
    border: 1px solid var(--tea-line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.detail-strip-image {
    display: block;
    aspect-ratio: 1 / 1;
    background: #fff;
}

.detail-strip-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-strip-body {
    padding: 14px;
}

.detail-strip-card .product-meta,
.detail-strip-card .product-name,
.detail-strip-card .product-price {
    text-align: center;
}

.detail-strip-card .product-name {
    min-height: 48px;
}

.detail-strip-card-recent .product-actions {
    display: none;
}

@media (max-width: 1199.98px) {
    .voucher-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-card-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .detail-content-with-sidebar {
        grid-template-columns: 1fr;
    }

    .detail-side-sticky {
        position: static;
    }

    .voucher-strip {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 6px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        touch-action: pan-x pan-y;
    }

    .voucher-strip::-webkit-scrollbar,
    .detail-card-strip::-webkit-scrollbar {
        display: none;
    }

    .voucher-strip .voucher-card-horizontal {
        flex: 0 0 220px;
        scroll-snap-align: start;
    }

    .detail-card-strip {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 14px;
        padding-bottom: 6px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        touch-action: pan-x pan-y;
    }

    .detail-strip-card {
        flex: 0 0 240px;
        scroll-snap-align: start;
    }
}

@media (max-width: 767.98px) {
    .detail-content-with-sidebar {
        gap: 18px;
    }

    .detail-review-card {
        margin-top: 18px;
    }

    .detail-side-post-item {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .detail-side-post-item img {
        width: 82px;
        height: 82px;
    }

    .detail-strip-card {
        flex-basis: 188px;
    }

    .voucher-strip .voucher-card-horizontal {
        flex-basis: 210px;
    }
}

/* ================= PRODUCT DETAIL VISUAL TUNE ================= */

.product-gallery-card {
    padding: 10px;
    overflow: hidden;
}

.product-gallery-grid {
    gap: 10px;
}

.product-gallery-main {
    overflow: hidden;
    border-radius: 10px;
    background: #f6efe2;
}

.product-gallery-main #mainImage {
    width: 100%;
    height: 100%;
    padding: 0 !important;
    border-radius: 0;
    background: transparent;
    object-fit: contain;
}

.thumb-button img {
    padding: 0 !important;
    object-fit: cover;
}

.detail-review-row {
    gap: 12px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.detail-review-row .review-stars,
.review-summary-box .review-stars,
.review-item .review-stars {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #c69a4b;
    letter-spacing: 0;
    font-size: 14px;
}

.review-summary-box {
    gap: 16px;
    align-items: center;
}

.review-score {
    min-width: 74px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--tea-clay);
}

.review-summary-box .review-stars.large {
    font-size: 15px;
}

.review-summary-box p {
    margin-top: 6px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
}

@media (max-width: 767.98px) {
    .product-gallery-card {
        padding: 8px;
    }

    .review-score {
        min-width: 64px;
        font-size: 32px;
    }
}

@media (max-width: 767.98px) {
    .category-strip,
    .detail-card-strip,
    .voucher-strip {
        background: transparent !important;
        background-color: transparent !important;
        border-color: transparent !important;
        box-shadow: none !important;
        outline: 0 !important;
        scrollbar-color: transparent transparent !important;
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }

    .category-strip::-webkit-scrollbar,
    .detail-card-strip::-webkit-scrollbar,
    .voucher-strip::-webkit-scrollbar,
    .category-strip::-webkit-scrollbar-track,
    .detail-card-strip::-webkit-scrollbar-track,
    .voucher-strip::-webkit-scrollbar-track {
        width: 0 !important;
        height: 0 !important;
        display: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }
}
