/* Cleradol Products page — restrained editorial catalogue aligned with About, FAQ and Contact. */

.cl-products {
    --cl-products-max: 1240px;
    overflow: clip;
    background: #050505;
    color: #ffffff;
}

.cl-products :where(h1, h2, h3, p) { margin-top: 0; }
.cl-products section[id] { scroll-margin-top: 8.5rem; }
.cl-products em { font-style: italic; font-weight: 400; }

.cl-products .cl-eyebrow {
    margin: 0 0 1rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.cl-products-link {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    margin-top: 1.5rem;
    color: #17120b;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-decoration: none;
    text-transform: uppercase;
}

.cl-products-link span { font-size: 1rem; transition: transform .2s ease; }
.cl-products-link:hover span { transform: translateX(.3rem); }

/* COMPACT INNER-PAGE HERO */
.cl-products-hero {
    display: grid;
    min-height: clamp(11rem, 22vw, 15rem);
    align-items: center;
    padding: clamp(2.25rem, 4vw, 3.5rem) max(var(--cl-page-gutter), calc((100% - var(--cl-products-max)) / 2));
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    background:
        radial-gradient(circle at 82% 18%, rgba(203, 163, 66, .13), transparent 27%),
        linear-gradient(135deg, #050505 0%, #0b0906 100%);
}

.cl-products-hero__inner {
    width: min(100%, var(--cl-products-max));
    margin-inline: auto;
}

.cl-products-hero .cl-eyebrow { color: #d3a84c; }

.cl-products-hero h1 {
    max-width: 16ch;
    margin: 0;
    font-family: var(--wp--preset--font-family--display);
    font-size: clamp(2.6rem, 4.6vw, 4.7rem);
    font-weight: 400;
    letter-spacing: -.055em;
    line-height: .91;
}

.cl-products-hero h1 em {
    background: var(--cl-gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* PRODUCT RANGE */
.cl-products-range {
    padding: clamp(4.5rem, 8vw, 7.5rem) max(var(--cl-page-gutter), calc((100% - var(--cl-products-max)) / 2));
    background: #f7f3ef;
    color: #17120b;
}

.cl-products-range__head,
.cl-products-routine__head,
.cl-products-ingredients__head {
    width: min(100%, 52rem);
    margin: 0 0 clamp(2.25rem, 4vw, 3.5rem);
}

.cl-products-range .cl-eyebrow,
.cl-products-routine .cl-eyebrow { color: #8c6817; }

.cl-products-range__head h2,
.cl-products-routine h2,
.cl-products-ingredients h2 {
    max-width: 18ch;
    margin: 0;
    font-family: var(--wp--preset--font-family--display);
    font-size: clamp(2.65rem, 4.2vw, 4.5rem);
    font-weight: 400;
    letter-spacing: -.05em;
    line-height: .94;
}

.cl-products-range__grid {
    display: grid;
    gap: .8rem;
    width: min(100%, var(--cl-products-max));
    margin-inline: auto;
    align-items: start;
}

.cl-product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-self: start;
    overflow: hidden;
    border: 1px solid #ded5cc;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 .8rem 2.5rem rgba(52, 39, 24, .05);
    color: #17120b;
}

.cl-product-card__media {
    position: relative;
    width: 100%;
    min-height: 0;
    aspect-ratio: 1 / 1.02;
    overflow: hidden;
}

.cl-product-card--advance .cl-product-card__media { background: linear-gradient(145deg, #17120b, #30200d); }
.cl-product-card--daily .cl-product-card__media { background: linear-gradient(145deg, #f4e1e1, #d7ad61 130%); }
.cl-product-card--cream .cl-product-card__media { background: linear-gradient(145deg, #d8b05f, #f2dfb4); }

.cl-product-card__number {
    position: absolute;
    top: 1rem;
    left: 1.1rem;
    color: rgba(255, 255, 255, .2);
    font-family: var(--wp--preset--font-family--display);
    font-size: clamp(3.8rem, 6vw, 5.5rem);
    line-height: 1;
}

.cl-product-card--daily .cl-product-card__number,
.cl-product-card--cream .cl-product-card__number { color: rgba(23, 18, 11, .12); }

.cl-product-card__image {
    position: absolute;
    inset: 6% 9% 0;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: contain;
    filter: drop-shadow(0 1.6rem 1.8rem rgba(0, 0, 0, .28));
    transition: transform .35s ease;
}

.cl-product-card:hover .cl-product-card__image { transform: translateY(-.35rem) scale(1.01); }
.cl-product-card--advance .cl-product-card__image { background-image: url('../../images/advance-corrective-serum.png'); }
.cl-product-card--daily .cl-product-card__image { background-image: url('../../images/daily-defense-serum.png'); }
.cl-product-card--cream .cl-product-card__image { background-image: url('../../images/radiance-moisturizing-cream.png'); }

.cl-product-card__body {
    display: flex;
    min-height: 14.5rem;
    flex: 1;
    flex-direction: column;
    padding: clamp(1.35rem, 2vw, 1.75rem);
}

.cl-product-card__role {
    margin: 0 0 .7rem;
    color: #8d6817;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.cl-product-card h3 {
    max-width: 13ch;
    margin: 0;
    font-family: var(--wp--preset--font-family--display);
    font-size: clamp(1.8rem, 2.6vw, 2.6rem);
    font-weight: 400;
    letter-spacing: -.04em;
    line-height: 1;
    color: #17120b;
}

.cl-product-card__body > p:not(.cl-product-card__role) {
    margin: 1rem 0 0;
    color: #675f58;
    font-size: .93rem;
    line-height: 1.65;
}

.cl-product-card__size {
    display: inline-block;
    margin-top: auto;
    padding-top: .7rem;
    border-top: 1px solid #d9d1c9;
    color: #756d66;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* FORMULATION STRIP */
.cl-products-clean {
    display: grid;
    gap: .45rem 2rem;
    padding: clamp(2rem, 3.5vw, 3rem) max(var(--cl-page-gutter), calc((100% - var(--cl-products-max)) / 2));
    border-top: 1px solid rgba(255, 255, 255, .12);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    background: #050505;
}

.cl-products-clean p {
    margin: 0;
    font-family: var(--wp--preset--font-family--display);
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    line-height: 1.25;
}

.cl-products-clean p:last-child { color: #cba342; }

/* ROUTINE */
.cl-products-routine {
    padding: clamp(4.5rem, 8vw, 7.5rem) max(var(--cl-page-gutter), calc((100% - var(--cl-products-max)) / 2));
    background: #ffffff;
    color: #17120b;
}

.cl-products-routine h2 em { color: #956d13; }

.cl-products-routine__head > p:last-child {
    max-width: 36rem;
    margin: 1.25rem 0 0;
    color: #6d645c;
    line-height: 1.7;
}

.cl-products-routine__steps {
    display: grid;
    gap: .75rem;
    width: min(100%, var(--cl-products-max));
    margin-inline: auto;
}

.cl-products-routine__steps article {
    display: flex;
    min-height: 11.75rem;
    flex-direction: column;
    padding: 1.2rem;
    border: 1px solid #ded5cc;
    border-radius: .8rem;
    background: #f8f6f2;
}

.cl-products-routine__steps article > span {
    color: #9b751f;
    font-family: var(--wp--preset--font-family--display);
    font-size: 1.6rem;
}

.cl-products-routine__steps article > div {
    margin-top: 2rem;
}

.cl-products-routine__steps h3 {
    margin: 0 0 .45rem;
    font-family: var(--wp--preset--font-family--display);
    font-size: 1.65rem;
    font-weight: 400;
}

.cl-products-routine__steps p {
    margin: 0;
    color: #6d645c;
    font-size: .88rem;
    line-height: 1.55;
}

.cl-products-routine__step--focus { border-color: #cba342 !important; background: #cba342 !important; }
.cl-products-routine__step--blush { border-color: #ddbfc2 !important; background: #f4e1e1 !important; }
.cl-products-routine__step--focus > span { color: rgba(23, 18, 11, .5) !important; }
.cl-products-routine__step--focus p { color: #493d2c; }

/* INGREDIENTS */
.cl-products-ingredients {
    padding: clamp(4.5rem, 8vw, 7.5rem) max(var(--cl-page-gutter), calc((100% - var(--cl-products-max)) / 2));
    background: #f4e1e1;
    color: #17120b;
}

.cl-products-ingredients .cl-eyebrow { color: #805f17; }

.cl-products-ingredients__grid {
    display: grid;
    gap: .75rem;
    width: min(100%, var(--cl-products-max));
    margin-inline: auto;
}

.cl-products-ingredients__grid article {
    min-height: 0;
    padding: clamp(1.4rem, 2.5vw, 2rem);
    border: 1px solid rgba(23, 18, 11, .18);
    border-radius: .8rem;
    background: rgba(255, 255, 255, .28);
}

.cl-products-ingredients__grid article > span {
    display: block;
    margin-bottom: 1.75rem;
    color: rgba(23, 18, 11, .22);
    font-family: var(--wp--preset--font-family--display);
    font-size: 3rem;
    line-height: .9;
}

.cl-products-ingredients__scope {
    margin: 0 0 .6rem;
    color: #805f17;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.cl-products-ingredients h3 {
    margin: 0 0 .65rem;
    font-family: var(--wp--preset--font-family--display);
    font-size: clamp(1.9rem, 2.7vw, 2.7rem);
    font-weight: 400;
}

.cl-products-ingredients__grid article > p:last-child {
    max-width: 24rem;
    margin: 0;
    color: #665b52;
    font-size: .93rem;
    line-height: 1.65;
}

/* CLOSING CTA */
.cl-products-close {
    position: relative;
    display: grid;
    min-height: 23rem;
    place-items: center;
    overflow: hidden;
    padding: clamp(4.5rem, 8vw, 7rem) max(var(--cl-page-gutter), calc((100% - var(--cl-products-max)) / 2));
    background:
        radial-gradient(circle at 50% 45%, rgba(203, 163, 66, .2), transparent 26%),
        #050505;
    text-align: center;
}

.cl-products-close__ghost {
    position: absolute;
    top: 50%;
    left: 50%;
    color: rgba(255, 255, 255, .03);
    font-family: var(--wp--preset--font-family--display);
    font-size: clamp(6rem, 16vw, 13rem);
    letter-spacing: -.08em;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

.cl-products-close__inner {
    position: relative;
    z-index: 1;
    width: min(100%, 48rem);
}

.cl-products-close .cl-eyebrow { color: #cba342; }

.cl-products-close h2 {
    margin: 0;
    font-family: var(--wp--preset--font-family--display);
    font-size: clamp(2.7rem, 4.8vw, 5rem);
    font-weight: 400;
    letter-spacing: -.05em;
    line-height: .94;
}

.cl-products-close p:not(.cl-eyebrow) {
    max-width: 36rem;
    margin: 1.2rem auto 1.75rem;
    color: #aaa39c;
    line-height: 1.7;
}

@media (min-width: 680px) {
    .cl-products-clean { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
    .cl-products-clean p:last-child { text-align: right; }
    .cl-products-routine__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 760px) {
    .cl-products-range__grid,
    .cl-products-ingredients__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1040px) {
    .cl-products-routine__steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 679px) {
    .cl-products-hero { min-height: 10rem; }
    .cl-products-hero h1 { font-size: clamp(2.55rem, 12vw, 3.55rem); }
    .cl-product-card__media { aspect-ratio: 1 / .95; }
    .cl-product-card__body { min-height: 13.5rem; }
    .cl-products-clean p:last-child { margin-top: .2rem; }
    .cl-products-routine__steps article { min-height: 0; }
    .cl-products-close { min-height: 20rem; }
}

@media (prefers-reduced-motion: reduce) {
    .cl-product-card__image,
    .cl-products-link span { transition: none; }

    .cl-product-card:hover .cl-product-card__image { transform: none; }
}
