/* ============================================================
   Products — listing (products/index.html) and
   detail pages (products/*.html)
   ============================================================ */

/* ============================================================
   Detail pages — legacy page body (not yet revamped to v2)
   ============================================================ */

.pageBody {
    max-width: 1250px;
    margin: 7rem auto 4.6rem;
}

@media (max-width: 1679px) {
    .pageBody {
        padding-left: 9.5%;
        padding-right: 9.5%;
    }
}

@media (max-width: 853px) {
    .pageBody {
        padding-left: 6.5%;
        padding-right: 6.5%;
    }
}

/* Heading sizes for legacy detail pages (not scoped to main — v2 main styles override) */
h1,
h2 {
    margin: 8px 0px;
}
h1 {
    font-size: 1.35rem;
}
h2 {
    font-size: 1.1rem;
}

@media screen and (min-width: 991px) {
    h1 {
        font-size: 1.3rem;
    }
    h2 {
        font-size: 1.15rem;
    }
}

@media screen and (min-width: 1679px) {
    h1,
    h2,
    p {
        margin: 15px 0px;
    }
    h1 {
        font-size: 1.35rem;
    }
    h2 {
        font-size: 1.2rem;
    }
}

/* ============================================================
   Detail pages — image gallery
   ============================================================ */

.model-name-margin-top {
    margin-bottom: 1.2rem;
}

@media screen and (max-width: 991px) {
    .model-name-margin-top {
        margin-top: 2rem;
        margin-bottom: 1rem;
    }
}

.fixed-row {
    max-width: 970px;
    margin: auto;
}

.imgBox {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25rem;
    height: 25rem;
    margin: 0.2rem 0rem 1rem 0rem;
}

.imgBox img {
    max-height: 23rem;
    border-radius: 0.4rem;
    text-align: center;
}

@media screen and (max-width: 460px) {
    .imgBox {
        width: 23rem;
        height: 23rem;
    }
    .imgBox img {
        max-height: 21rem;
    }
    .thumb img {
        max-height: 3.6rem;
    }
}

@media screen and (max-width: 430px) {
    .imgBox {
        width: 21rem;
        height: 21rem;
    }
    .imgBox img {
        max-height: 19rem;
    }
    .thumb img {
        max-height: 3.6rem;
    }
}

@media screen and (max-width: 385px) {
    .imgBox {
        width: 19rem;
        height: 19rem;
    }
    .imgBox img {
        max-height: 17rem;
    }
    .thumb img {
        max-height: 3.6rem;
    }
}

.thumbnail {
    list-style: none;
    margin: 0.2rem;
    width: 3.8rem;
    height: 3.8rem;
    overflow: hidden;
    display: inline-block;
    border-radius: 0.2rem;
}

.thumbnail a {
    display: flex;
    justify-content: center;
    align-items: center;
}

.thumb img {
    max-height: 3.6rem;
}

@media (max-width: 991px) {
    .thumb {
        text-align: center;
    }
    .imgBox {
        margin: 0.2rem auto;
    }
}

@media screen and (min-width: 500px) {
    .scaleImgBox {
        max-width: 26.5rem;
        max-height: 25rem;
        margin: 0.2rem;
    }
}

@media screen and (min-width: 500px) {
    .ukon-ingredient-pic {
        max-width: 30rem;
        max-height: 26rem;
        padding: 0.5rem;
    }
}

.mr-custom {
    margin-right: 1.5rem;
}
.mt-custom {
    margin-top: 0.5rem;
}

@media screen and (max-width: 364px) {
    .mt-custom {
        margin-top: 0.2rem;
    }
}

@media screen and (max-width: 391px) {
    .mr-custom {
        margin-right: 0;
    }
}

.end-text {
    text-align: center;
}

.imgBox .img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: none;
}

.thumbnail .img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: none;
}

/* ============================================================
   Product Detail pages — v2
   Requires <main> wrapper. Scoped so legacy .pageBody pages
   are completely unaffected.
   ============================================================ */

/* ---- Overview: 2-col image + info ---- */
main .pd-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

main .pd-main-img {
    background: var(--cream);
    border-radius: var(--r);
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

main .pd-main-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.15s ease;
}

main .pd-main-img img.pd-main-img--fading {
    opacity: 0;
}

/* Thumbnail strip — visible only when multiple images are present */
main .pd-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

main .pd-thumb {
    width: 64px;
    height: 64px;
    background: var(--cream);
    border: 1px solid var(--rule);
    border-radius: var(--r);
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s;
    overflow: hidden;
}

main .pd-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

main .pd-thumb:hover,
main .pd-thumb--active {
    border-color: var(--navy);
}

/* Info column */
main .pd-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

main .pd-tag {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--navy);
    background: var(--navy-tint);
    border-radius: var(--r);
    padding: 6px 12px;
}

main .pd-info-heading {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 2.6vw, 2.4rem);
    font-weight: 500;
    color: var(--navy-ink);
    margin: 0 0 20px;
    text-wrap: balance;
}

main .pd-info p {
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink-mute);
    margin-bottom: 16px;
    text-wrap: pretty;
}

main .pd-info .pd-water-uses {
    margin-bottom: 16px;
}

main .pd-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 32px;
}

/* ---- Feature tiles: 3-up grid ---- */
main .pd-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

main .pd-feature {
    background: var(--white);
    border: 1px solid var(--rule);
    border-top: 3px solid var(--gold);
    border-radius: var(--r);
    padding: 36px 32px;
}

main .pd-feature-icon {
    width: 40px;
    height: 40px;
    color: var(--gold);
    margin-bottom: 20px;
}

main .pd-feature-icon svg {
    width: 40px;
    height: 40px;
}

main .pd-feature h3 {
    font-family: var(--serif);
    font-size: 1.22rem;
    font-weight: 600;
    color: var(--navy-ink);
    margin: 0 0 10px;
    text-wrap: balance;
    line-height: 1.3;
}

main .pd-feature p {
    font-family: var(--sans);
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--ink);
    margin: 0;
    text-wrap: pretty;
    font-weight: 400;
}

/* ---- Stat highlight: big serif number + gold accent ----
   Drops into a .pd-feature tile to surface one figure before the
   supporting copy, or stands alone as a .pd-stat-grid strip. */
main .pd-stat-row {
    margin: 4px 0 14px;
}

main .pd-stat-number {
    display: block;
    font-family: var(--serif);
    font-size: 2.6rem;
    font-weight: 500;
    color: var(--gold);
    line-height: 1;
    letter-spacing: -0.01em;
}

main .pd-stat-label {
    display: block;
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--navy-ink);
    opacity: 0.6;
    margin-top: 4px;
}

main .pd-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

main .pd-stat-card {
    background: var(--cream);
    border-radius: var(--r);
    padding: 32px 28px;
    text-align: center;
}

main .pd-stat-card .pd-stat-number {
    font-size: 3rem;
}

main .pd-water-uses {
    list-style: none;
    padding: 0;
    margin: 0;
}

main .pd-water-uses li {
    font-family: var(--sans);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ink-mute);
    padding-left: 16px;
    position: relative;
}

main .pd-water-uses li + li {
    margin-top: 6px;
}

main .pd-water-uses li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 4px;
    height: 4px;
    border-radius: var(--r-circle);
    background: var(--gold);
}

main .pd-feature .pd-water-uses {
    margin-top: 14px;
}

/* ---- Specifications: 2-col image + list ---- */
main .pd-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

main .pd-specs-img {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
}

main .pd-specs-img img {
    max-width: 100%;
    border-radius: var(--r);
    display: block;
}

main .pd-spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

main .pd-spec-list li {
    font-family: var(--sans);
    font-size: 0.95rem;
    color: var(--ink);
    line-height: 1.5;
    padding: 16px 0;
    border-bottom: 1px solid var(--rule);
    display: flex;
    align-items: center;
    gap: 12px;
}

main .pd-spec-list li:first-child {
    border-top: 1px solid var(--rule);
}

main .pd-spec-list li::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: var(--r-circle);
    background: var(--gold);
    flex-shrink: 0;
}

main .pd-spec-list--plain li::before {
    display: none;
}

main .pd-spec-list .pd-spec-line {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

main .water-type {
    font-weight: 600;
}

main .water-type--strong-kangen {
    color: var(--water-strong-kangen);
}

main .water-type--kangen {
    color: var(--water-kangen);
}

main .water-type--clean {
    color: var(--water-clean);
}

main .water-type--beauty {
    color: var(--water-beauty);
}

main .water-type--acidic {
    color: var(--water-acidic);
}

/* ---- Installation: 2-col text + image ---- */
main .pd-install {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

main .pd-install h2 {
    font-size: clamp(1.8rem, 2.8vw, 2.8rem);
    margin: 8px 0 20px;
}

main .pd-install-img img {
    max-width: 100%;
    border-radius: var(--r);
    display: block;
    margin: 0 auto;
}

/* ---- Trust & certifications: 4-up grid ---- */
main .pd-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

main .pd-trust-card {
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--r);
    padding: 28px 24px;
}

main .pd-trust-card .eyebrow {
    margin-bottom: 10px;
}

main .pd-trust-card h3 {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--navy-ink);
    margin: 0 0 10px;
    text-wrap: balance;
}

main .pd-trust-card p {
    font-family: var(--sans);
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--ink-mute);
    margin: 0;
    text-wrap: pretty;
}

/* ---- Credentialed spotlight quote ---- */
main .pd-quote {
    max-width: 760px;
    margin: 0 auto 56px;
    text-align: center;
}

main .pd-quote-mark {
    display: block;
    font-family: var(--serif);
    font-size: 4rem;
    line-height: 0.6;
    color: var(--gold);
    margin-bottom: 16px;
}

main .pd-quote p {
    font-family: var(--serif);
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 500;
    color: var(--navy-ink);
    line-height: 1.45;
    margin: 0 0 20px;
    text-wrap: balance;
}

main .pd-quote cite {
    display: block;
    font-family: var(--sans);
    font-size: 0.85rem;
    font-style: normal;
    color: var(--ink-mute);
}

main .pd-quote cite strong {
    color: var(--navy-ink);
}

/* ---- Testimonial tiles: 3-up grid ---- */
main .pd-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

main .pd-testimonial-card {
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--r);
    padding: 28px 24px;
}

main .pd-testimonial-mark {
    display: block;
    font-family: var(--serif);
    font-size: 2.2rem;
    line-height: 0.6;
    color: var(--gold);
    margin-bottom: 12px;
}

main .pd-testimonial-card h3 {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--navy-ink);
    margin: 0 0 8px;
    text-wrap: balance;
}

main .pd-testimonial-card p {
    font-family: var(--sans);
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--ink-mute);
    margin: 0;
    text-wrap: pretty;
}

/* ---- Audience segment cards: dark 3-up grid (emGuarde) ---- */
main .pd-audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

main .pd-audience-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--gold);
    border-radius: var(--r);
    padding: 36px 32px;
}

main .pd-audience-card h3 {
    font-family: var(--serif);
    font-size: 1.22rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 14px;
    text-wrap: balance;
    line-height: 1.3;
}

main .pd-audience-card p {
    font-family: var(--sans);
    font-size: 0.9rem;
    line-height: 1.68;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 18px;
    text-wrap: pretty;
}

main .pd-audience-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

main .pd-audience-card li {
    font-family: var(--sans);
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    padding-left: 16px;
    position: relative;
}

main .pd-audience-card li + li {
    margin-top: 6px;
}

main .pd-audience-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 4px;
    height: 4px;
    border-radius: var(--r-circle);
    background: var(--gold);
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
    main .pd-overview,
    main .pd-specs,
    main .pd-install {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    main .pd-features,
    main .pd-stat-grid,
    main .pd-trust-grid,
    main .pd-testimonial-grid,
    main .pd-audience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    main .pd-overview,
    main .pd-specs,
    main .pd-install {
        gap: 32px;
    }

    main .pd-main-img {
        padding: 32px;
    }

    main .pd-feature,
    main .pd-trust-card,
    main .pd-testimonial-card,
    main .pd-audience-card {
        padding: 24px 20px;
    }

    main .pd-features,
    main .pd-stat-grid,
    main .pd-trust-grid,
    main .pd-testimonial-grid,
    main .pd-audience-grid {
        grid-template-columns: 1fr;
    }

    main .pd-stat-number {
        font-size: 2.2rem;
    }

    main .pd-stat-card .pd-stat-number {
        font-size: 2.6rem;
    }

    main .pd-quote-mark {
        font-size: 3rem;
    }
}
