
.products-page {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--sky) 0%, #EFF6FD 55%, #F6FAFD 100%);
    min-height: 100vh;
    padding: clamp(3rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 2rem) clamp(2rem, 6vw, 4rem);
}

.products-inner {
    position: relative;
    z-index: 5;
    max-width: var(--maxw);
    margin: 0 auto;
}

.prod-p1 { top:  4%; left: -3%; width: clamp(140px, 16vw, 300px); opacity: .55; --dur: 10.63s; --delay: -7s; --petal-rotate: -10deg; }
.prod-p2 { top: 10%; right: -2%; width: clamp(150px, 18vw, 340px); --dur: 11.88s; --delay: -3s; --petal-rotate: -18deg; }
.prod-p3 { top: 60%; left: -4%; width: clamp(110px, 13vw, 240px); opacity: .7; --dur: 12.5s; --delay: -9s; --petal-rotate: 22deg; }
.prod-p4 { top: 45%; right: 4%; width: clamp(160px, 20vw, 380px); opacity: .4; --dur: 11.88s; --delay: -4s; --petal-rotate: -5deg; }
.prod-p5 { top: 82%; right: 12%; width: clamp(90px, 11vw, 200px); --dur: 10.63s; --delay: -9s; --petal-rotate: -35deg; }

.products-header {
    text-align: center;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.products-header h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 500;
    line-height: 1.1;
    margin: 0;
    letter-spacing: -0.5px;
}

.products-header .cyan {
    color: #29ABE2;
}

.products-header .navy {
    color: var(--navy);
}

.filters-container {
    margin-bottom: clamp(1rem, 3vw, 1.75rem);
}

.filters-main {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1.5rem, 4vw, 2.75rem);
    justify-content: center;
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
}

.filters-main .filter-btn {
    padding: 0 0 0.5rem;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: var(--navy);
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    font-weight: 600;
    font-family: var(--font-text);
    cursor: pointer;
    transition: color var(--t), border-color var(--t);
}

.filters-main .filter-btn:hover {
    transform: none;
    box-shadow: none;
    color: #29ABE2;
}

.filters-main .filter-btn.active {
    color: #29ABE2;
    border-bottom-color: #29ABE2;
}

.filters-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    padding: 1rem 0;
    min-height: 44px;
}

.filter-btn.sub {
    padding: 0.625rem 1.5rem;
    border: none;
    border-radius: 24px;
    font-size: 0.9375rem;
    font-weight: 700;
    font-family: var(--font-text);
    cursor: pointer;
    transition: all var(--t);
    background-color: var(--navy);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 21, 94, 0.1);
}

.filter-btn.sub:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 21, 94, 0.14);
}

.filter-btn.sub.active {
    background-color: #29ABE2;
}

.product-display {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(2rem, 5vw, 4rem);
    margin-bottom: clamp(1rem, 3vw, 1.75rem);
}

.product-slider {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 0 clamp(48px, 4.5vw, 64px);
}

.product-slider .ps-btn.prev { left: 0; }
.product-slider .ps-btn.next { right: 0; }
.product-slider .ps-btn[hidden] { display: none; }

.slider-image-container {
    width: clamp(240px, 26vw, 420px);
    max-width: 560px;
    height: clamp(280px, 34vw, 480px);
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.slider-image-container img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.product-details {
    flex: 0 1 460px;
    max-width: 460px;
    padding: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.5rem) 0;
    text-align: left;
}

@media (min-width: 901px) {
    .product-display { align-items: flex-start; }

    .product-details {
        flex: 0 1 640px;
        max-width: 640px;
    }
}

.product-details h2 {
    color: var(--navy);
    font-size: clamp(1.5rem, 2.4vw, 1.875rem);
    font-weight: 500;
    line-height: 1.25;
    margin: 0;
}

.product-details .subtitle {
    color: var(--navy);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 clamp(.8125rem, 1.95vw, 1.1375rem);
}

.detail-group {
    margin-top: clamp(.8125rem, 1.95vw, 1.1375rem);
}

.detail-group h3 {
    color: var(--navy);
    font-size: clamp(1.125rem, 1.7vw, 1.375rem);
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0 0.4rem;
    text-transform: none;
}

.detail-group p {
    color: var(--navy);
    font-size: clamp(0.8125rem, 1vw, 0.9375rem);
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
}

#productEnergy {
    margin-top: 0.6rem;
}

.nutrients-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}

.nutrients-list li {
    color: var(--navy);
    font-size: clamp(0.8125rem, 1vw, 0.9375rem);
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 0.15rem;
}

.nutrients-list li::before {
    content: "• ";
}

.small-note {
    font-size: clamp(0.75rem, .9vw, 0.8125rem) !important;
    line-height: 1.6;
    margin-top: 1rem !important;
    opacity: 0.75 !important;
}

.products-gallery {
    padding: clamp(0.5rem, 1.5vw, 1rem) 0 clamp(1.5rem, 4vw, 2.5rem);
}

.gallery-scroll {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 0;
    overflow-x: auto;
    padding: 1rem 0 0.5rem;
    scroll-behavior: smooth;

        scrollbar-width: none;           -ms-overflow-style: none;    }

.gallery-scroll::-webkit-scrollbar {
    display: none;                    width: 0;
    height: 0;
}

.gallery-item {
    flex: 0 0 auto;
    width: auto;
    height: calc(clamp(69px, 8.4vw, 107px) * var(--scara, 1));
    display: flex;
    justify-content: center;
    align-items: flex-end;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0 0.5rem;
    margin: 0 -0.35rem;
    cursor: pointer;
    transition: transform var(--t), filter var(--t);
    overflow: visible;
    opacity: .55;
}

.gallery-item--square {
    height: calc(clamp(50px, 6vw, 77px) * var(--scara, 1));
}

.gallery-item--short {
    height: calc(clamp(59px, 7.1vw, 91px) * var(--scara, 1));
}

.gallery-item--cup {
    height: calc(clamp(46px, 5.5vw, 70px) * var(--scara, 1));
}

.gallery-item--tub {
    height: calc(clamp(58px, 7vw, 89px) * var(--scara, 1));
}

.gallery-item--bigtub {
    height: calc(clamp(64px, 7.8vw, 99px) * var(--scara, 1));
}

.gallery-item img {
        width: auto;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 10px rgba(0, 21, 94, 0.12));
}

.gallery-item:hover {
    transform: translateY(-6px) scale(1.08);
    opacity: .8;
    z-index: 2;
}

.gallery-item.active {
    opacity: 1;
    z-index: 3;
}

@media (max-width: 900px) {
    .product-display {
        flex-direction: column;
        gap: 2rem;
    }

    .product-slider { width: 100%; max-width: 480px; }
    .slider-image-container { width: 100%; }

    .product-details {
        flex-basis: auto;
        max-width: 480px;
        width: 100%;
        padding: 1.5rem;
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 21, 94, 0.08);
    }
}

@media (max-width: 640px) {
    .products-page {
        padding: 1.5rem 1.25rem;
    }

    .products-header h1 {
        font-size: 1.875rem;
    }

    .filter-btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }

    .gallery-item {
        width: clamp(80px, 20vw, 120px);
    }

    .product-details h2 {
        font-size: 1.5rem;
    }

    .detail-group {
        margin-bottom: .8125rem;
    }
}

#productIngredients::first-letter { text-transform: uppercase; }

#productIngredients.is-clamped:not(.is-open) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.ingr-toggle {
    margin-top: .35rem;
    padding: 0;
    color: var(--blue);
    font-size: clamp(0.8125rem, 1vw, 0.9375rem);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.ingr-toggle:hover { color: var(--navy); }
.ingr-toggle:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 2px; }
