/**
 * Product catalog page palette (loads after Vite bundle on /product only).
 * Solid green accents + homepage brand gradient for prominent surfaces.
 */
.page-product {
    --product-green: #0db59d;
    --product-green-deep: #038771;
}

.page-product .product-slider,
.page-product .product-slider__frame {
    background: var(--gradient-brand);
}

.page-product .product-slider__bar-track {
    background: rgb(255 255 255 / 0.32);
}

.page-product .product-catalog {
    background:
        radial-gradient(ellipse 120% 42% at 50% -8%, rgb(31 79 255 / 0.08), transparent 58%),
        linear-gradient(180deg, #f8fafc 0%, #fff 14rem);
}

.page-product .product-slider__arrow:hover {
    background: var(--product-green);
    border-color: rgb(13 181 157 / 0.35);
    color: #fff;
}

.page-product .product-search__input:focus {
    border-color: var(--product-green);
    box-shadow: 0 0 0 4px rgb(13 181 157 / 0.18), 0 8px 24px rgb(0 15 159 / 0.08);
}

.page-product .product-search__clear:hover {
    background: rgb(13 181 157 / 0.12);
    color: var(--product-green-deep);
}

.page-product .product-search__option:hover {
    background: rgb(13 181 157 / 0.08);
}

.page-product .product-browse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: clamp(1rem, 2.2vw, 1.35rem);
    width: 100%;
    max-width: 86rem;
    margin-inline: auto;
    padding: 1.15rem clamp(1.25rem, 3vw, 2.25rem) 0;
    margin-bottom: clamp(1.35rem, 2.6vw, 2rem);
}

.page-product .product-dosage-wrap {
    width: 100%;
    max-width: 86rem;
    margin-inline: auto;
    margin-bottom: clamp(1.35rem, 2.6vw, 2rem);
    padding-inline: clamp(1.25rem, 3vw, 2.25rem);
    box-sizing: border-box;
}

.page-product .product-dosage {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.page-product .product-browse-panel {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-width: 0;
    padding: clamp(1.15rem, 2.2vw, 1.5rem);
    border-radius: 1.25rem;
    box-shadow: 0 16px 40px rgb(0 15 159 / 0.14);
}

.page-product .product-browse-panel--areas {
    background: var(--gradient-brand);
    color: #fff;
}

.page-product .product-browse-panel--generics {
    background: var(--product-green);
    color: #fff;
}

.page-product .product-browse-panel .product-browse__heading {
    color: #fff;
}

.page-product .product-browse-panel--areas .product-browse__chip {
    border-color: rgb(255 255 255 / 0.38);
    background: rgb(255 255 255 / 0.12);
    color: #fff;
}

.page-product .product-browse-panel--areas .product-browse__chip.is-active {
    border-color: #fff;
    background: #fff;
    color: #000f9f;
}

.page-product .product-browse-panel--generics .product-browse__chip {
    border-color: rgb(255 255 255 / 0.38);
    background: rgb(255 255 255 / 0.14);
    color: #fff;
}

.page-product .product-browse-panel--generics .product-browse__chip.is-active {
    border-color: #fff;
    background: #fff;
    color: var(--product-green-deep);
}

.page-product .product-browse-panel--generics .product-generics__box {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    align-items: flex-start;
    height: clamp(10.75rem, 21vh, 12.75rem);
    max-height: clamp(10.75rem, 21vh, 12.75rem);
    padding: 0.65rem 0.45rem 0.65rem 0.75rem;
    overflow-x: hidden;
    overflow-y: auto;
    border-color: rgb(255 255 255 / 0.28);
    background: rgb(255 255 255 / 0.1);
    box-shadow: none;
    scrollbar-width: thin;
    scrollbar-color: rgb(255 255 255 / 0.45) transparent;
}

.page-product .product-browse-panel--generics .product-generics__box::-webkit-scrollbar {
    width: 0.45rem;
    height: auto;
}

.page-product .product-browse-panel--generics .product-generics__box::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgb(255 255 255 / 0.45);
}

.page-product .product-browse-panel--generics .product-generics__empty {
    color: rgb(255 255 255 / 0.88);
}

@media (max-width: 900px) {
    .page-product .product-browse-grid {
        grid-template-columns: 1fr;
    }
}

.page-product .product-browse-panel--dosage {
    background: var(--gradient-brand);
    color: #fff;
}

.page-product .product-browse-panel--dosage .product-browse__heading {
    color: #fff;
}

.page-product .product-browse-panel--dosage .product-dosage__item {
    border-color: rgb(255 255 255 / 0.35);
    background: transparent;
    color: #fff;
    box-shadow: none;
}

.page-product .product-browse-panel--dosage .product-dosage__item:hover {
    border-color: rgb(255 255 255 / 0.55);
    background: rgb(255 255 255 / 0.1);
}

.page-product .product-browse-panel--dosage .product-dosage__item.is-active {
    border-color: #2fd897;
    background: rgb(255 255 255 / 0.12);
    color: #fff;
    box-shadow: 0 0 0 2px rgb(47 216 151 / 0.35);
}

.page-product .product-browse-panel--dosage .product-dosage__media {
    background: transparent;
}

.page-product .product-browse-panel--dosage .product-dosage__item.is-active .product-dosage__media {
    background: transparent;
}

.page-product .product-alpha__strip {
    scrollbar-color: rgb(13 181 157 / 0.4) transparent;
}

.page-product .product-alpha__letter:hover:not(:disabled) {
    background: rgb(13 181 157 / 0.12);
}

.page-product .product-alpha__letter.is-active {
    background: var(--product-green);
    color: #fff;
}

.page-product .product-catalog__listing {
    width: 100%;
    background: var(--gradient-brand);
    padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 3vw, 2.25rem) clamp(4rem, 8vw, 6rem);
}

.page-product .product-catalog__body {
    max-width: 86rem;
    margin-inline: auto;
    padding: 0;
}

.page-product .product-catalog__title {
    color: #fff;
}

.page-product .product-alpha {
    background: transparent;
}

.page-product .product-alpha-section__heading {
    padding-bottom: 0;
    border-bottom: 0;
    color: transparent;
    -webkit-text-stroke: 0.07em var(--product-green);
    font-weight: 800;
}

.page-product .product-catalog__status,
.page-product .product-catalog__empty {
    color: rgb(255 255 255 / 0.88);
}

.page-product .product-catalog__card:hover {
    border-color: rgb(13 181 157 / 0.28);
    box-shadow: 0 14px 32px rgb(13 181 157 / 0.12);
}

.page-product .product-catalog__media {
    background: linear-gradient(180deg, rgb(13 181 157 / 0.06) 0%, #f8fafc 100%);
}

.page-product .product-modal__dialog {
    background: var(--gradient-brand);
}

.page-product .product-modal__media {
    width: min(28rem, 86%);
    padding: 1.65rem;
}

.page-product .product-modal__info {
    flex: 1;
    background: transparent;
}

.page-product .product-modal__fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 2rem;
}

.page-product .product-modal__field dt {
    margin-bottom: 0.4rem;
    color: rgb(255 255 255 / 0.88);
    font-size: clamp(1rem, 1.25vw, 1.2rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
}

.page-product .product-modal__field dd {
    font-size: clamp(1.25rem, 1.75vw, 1.5625rem);
    font-weight: 600;
    line-height: 1.35;
}

.page-product .product-modal__more {
    align-self: flex-start;
    margin-inline: 0;
    padding: 0.95rem 2rem;
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.page-product .product-modal__more:hover {
    background: rgb(255 255 255 / 0.92);
    border-color: #fff;
    color: #000f9f;
}

@media (max-width: 900px) {
    .page-product .product-modal__media {
        width: min(22rem, 88%);
        padding: 1.35rem;
    }

    .page-product .product-modal__fields {
        grid-template-columns: 1fr;
        gap: 1.15rem;
    }
}
