@import url("./main.css");

.catalog-section--test-offer {
    padding-top: 10px;
}

.test-offer-layout {
    display: grid;
    gap: 58px;
    width: min(100%, 1180px);
    margin: 0 auto;
}

.test-offer-feature-row,
.test-offer-composition {
    display: grid;
    gap: 30px;
}

.test-offer-feature-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.test-offer-composition {
    grid-template-columns: minmax(0, 1.36fr) minmax(240px, 0.72fr);
    align-items: start;
}

.test-offer-side-stack {
    display: grid;
    gap: 26px;
    align-content: start;
}

.test-offer-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    color: var(--ink);
    text-align: center;
}

.test-offer-card--featured,
.test-offer-card--hero,
.test-offer-card--compact {
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
}

.test-offer-card--hero {
    min-height: 0;
}

.test-offer-card--compact {
    min-height: 0;
}

.js-enhanced .catalog-section--test-offer [data-reveal-card] {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition:
        opacity 520ms ease,
        transform 640ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-card-delay, 0ms);
    will-change: opacity, transform;
}

.catalog-section--test-offer [data-reveal-card].is-revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.test-offer-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 390px);
    margin: 0 auto 14px;
}

.test-offer-card--hero .test-offer-image-wrap {
    width: min(100%, 440px);
}

.test-offer-board-image {
    display: block;
    width: 100%;
    max-height: 560px;
    height: auto;
    object-fit: contain;
    object-position: center;
    filter: none;
}

.test-offer-compact-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 238px);
    margin: 0 auto 10px;
}

.test-offer-card--sac-paket .test-offer-compact-media {
    width: min(100%, 268px);
    margin-left: -5px;
}

.test-offer-compact-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    filter: none;
}

.test-offer-copy {
    width: 100%;
    max-width: 420px;
}

.test-offer-title,
.test-offer-price {
    margin: 0;
}

.test-offer-title {
    font-family: var(--font-display);
    font-size: 2.05rem;
    font-weight: 800;
    line-height: 1;
    text-transform: none;
    overflow-wrap: anywhere;
}

.test-offer-price {
    margin-top: 12px;
    color: rgba(223, 189, 154, 0.86);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.test-offer-title--compact {
    font-size: 1.45rem;
}

.test-offer-price--compact {
    font-size: 0.94rem;
}

.test-offer-price .price-compare {
    align-items: center;
}

.test-offer-card:hover .test-offer-board-image,
.test-offer-card:focus-visible .test-offer-board-image,
.test-offer-card:hover .test-offer-compact-image,
.test-offer-card:focus-visible .test-offer-compact-image {
    transform: translateY(-4px);
}

.test-offer-board-image,
.test-offer-compact-image {
    transition: transform 180ms ease;
}

@media (min-width: 1024px) {
    .catalog-section--test-offer {
        padding-bottom: 112px;
    }
}

@media (max-width: 980px) {
    .test-offer-layout {
        gap: 44px;
    }

    .test-offer-feature-row,
    .test-offer-composition {
        gap: 20px;
    }

    .test-offer-composition {
        grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
    }

    .test-offer-side-stack {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .test-offer-board-image {
        max-height: 440px;
        width: auto;
    }

    .test-offer-card--hero .test-offer-board-image {
        max-height: 420px;
    }
}

@media (max-width: 620px) {
    .catalog-section--test-offer {
        width: min(100vw - 12px, 100%);
        padding-bottom: 82px;
    }

    .test-offer-layout {
        gap: 32px;
    }

    .test-offer-feature-row,
    .test-offer-composition {
        gap: 8px;
    }

    .test-offer-feature-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .test-offer-composition {
        grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
        align-items: stretch;
        --test-offer-mobile-copy-height: 42px;
        --test-offer-mobile-copy-gap: 5px;
        gap: 6px;
    }

    .test-offer-side-stack {
        gap: 8px;
        grid-template-rows: auto minmax(0, 1fr);
        align-content: stretch;
        height: 100%;
    }

    .test-offer-card--hero {
        display: grid;
        grid-template-rows: minmax(0, 1fr) var(--test-offer-mobile-copy-height);
        align-items: end;
        height: 100%;
        justify-content: stretch;
        justify-items: center;
    }

    .test-offer-card--jaja {
        display: grid;
        grid-template-rows: minmax(0, 1fr) var(--test-offer-mobile-copy-height);
        align-items: end;
        align-self: stretch;
        width: 100%;
        height: 100%;
        justify-content: stretch;
        justify-items: center;
    }

    .test-offer-card--hero .test-offer-copy,
    .test-offer-card--jaja .test-offer-copy {
        display: grid;
        grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
        align-self: start;
        row-gap: var(--test-offer-mobile-copy-gap);
        width: 100%;
        height: var(--test-offer-mobile-copy-height);
    }

    .test-offer-card--hero .test-offer-price,
    .test-offer-card--jaja .test-offer-price {
        margin-top: 0;
    }

    .test-offer-image-wrap,
    .test-offer-card--hero .test-offer-image-wrap,
    .test-offer-compact-media {
        width: 100%;
    }

    .test-offer-image-wrap {
        margin-bottom: 10px;
    }

    .test-offer-card--hero .test-offer-image-wrap {
        margin-bottom: 6px;
    }

    .test-offer-board-image {
        width: auto;
        max-width: 100%;
        max-height: 305px;
    }

    .test-offer-card--hero .test-offer-board-image {
        max-height: 300px;
    }

    .test-offer-card--compact .test-offer-copy {
        max-width: 100%;
    }

    .test-offer-title {
        font-size: clamp(0.9rem, 4.1vw, 1.05rem);
        line-height: 1.02;
    }

    .test-offer-price {
        margin-top: 7px;
        font-size: clamp(0.72rem, 3.25vw, 0.82rem);
        line-height: 1.2;
    }

    .test-offer-title--compact {
        font-size: clamp(0.8rem, 3.55vw, 0.92rem);
    }

    .test-offer-price--compact {
        margin-top: 5px;
        font-size: clamp(0.64rem, 2.95vw, 0.74rem);
    }

    .test-offer-card--compact .test-offer-title,
    .test-offer-card--compact .test-offer-price {
        white-space: nowrap;
    }

    .test-offer-card--jaja .test-offer-title--compact {
        font-size: clamp(0.9rem, 4.1vw, 1.05rem);
    }

    .test-offer-card--jaja .test-offer-price--compact {
        font-size: clamp(0.72rem, 3.25vw, 0.82rem);
    }

    .test-offer-compact-media {
        width: min(100%, 118px);
        margin-bottom: 6px;
    }

    .test-offer-card--sac-paket .test-offer-compact-media {
        width: min(100%, 154px);
        margin-bottom: 4px;
    }

    .test-offer-copy {
        max-width: 100%;
    }
}

@media (max-width: 400px) {
    .catalog-section--test-offer {
        width: min(100vw - 8px, 100%);
    }

    .test-offer-layout {
        gap: 26px;
    }

    .test-offer-feature-row,
    .test-offer-composition {
        gap: 7px;
    }

    .test-offer-composition {
        grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
        --test-offer-mobile-copy-height: 38px;
        --test-offer-mobile-copy-gap: 4px;
        gap: 5px;
    }

    .test-offer-title {
        font-size: clamp(0.86rem, 4.2vw, 1rem);
    }

    .test-offer-title--compact {
        font-size: clamp(0.72rem, 3.6vw, 0.9rem);
    }

    .test-offer-price {
        font-size: clamp(0.68rem, 3.25vw, 0.82rem);
    }

    .test-offer-price--compact {
        font-size: clamp(0.58rem, 2.9vw, 0.72rem);
    }

    .test-offer-card--jaja .test-offer-title--compact {
        font-size: clamp(0.86rem, 4.2vw, 1rem);
    }

    .test-offer-card--jaja .test-offer-price--compact {
        font-size: clamp(0.68rem, 3.25vw, 0.82rem);
    }

    .test-offer-board-image {
        max-height: 285px;
    }

    .test-offer-card--hero .test-offer-board-image {
        max-height: 282px;
    }

    .test-offer-compact-media {
        width: min(100%, 112px);
    }

    .test-offer-card--sac-paket .test-offer-compact-media {
        width: min(100%, 138px);
    }
}

@media (max-width: 340px) {
    .catalog-section--test-offer {
        width: min(100vw - 6px, 100%);
    }

    .test-offer-layout {
        gap: 22px;
    }

    .test-offer-feature-row,
    .test-offer-composition {
        gap: 6px;
    }

    .test-offer-composition {
        grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
        --test-offer-mobile-copy-height: 34px;
        --test-offer-mobile-copy-gap: 3px;
        gap: 4px;
    }

    .test-offer-title {
        font-size: 0.78rem;
    }

    .test-offer-title--compact {
        font-size: 0.66rem;
    }

    .test-offer-price {
        font-size: 0.62rem;
    }

    .test-offer-price--compact {
        font-size: 0.55rem;
    }

    .test-offer-card--jaja .test-offer-title--compact {
        font-size: 0.78rem;
    }

    .test-offer-card--jaja .test-offer-price--compact {
        font-size: 0.62rem;
    }

    .test-offer-compact-media {
        width: min(100%, 100px);
    }

    .test-offer-card--sac-paket .test-offer-compact-media {
        width: min(100%, 122px);
    }

    .test-offer-board-image {
        max-height: 255px;
    }

    .test-offer-card--hero .test-offer-board-image {
        max-height: 258px;
    }
}

.category-page--test-package .category-hero-image {
    width: min(100%, 460px);
    height: min(72vh, 680px);
    aspect-ratio: auto;
    border-radius: 28px;
    overflow: visible;
    background: transparent;
}

.category-page--test-package .category-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
}

.category-page--test-package .category-stock-card {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.category-page--test-package .category-page-title {
    text-transform: none;
}

.category-package-total {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 12px auto 0;
    color: rgba(223, 189, 154, 0.86);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.category-package-total strong {
    color: var(--ink);
    font-size: 1.04rem;
}

.category-package-contents {
    width: min(100%, 580px);
    max-width: none;
    margin: 24px auto 0;
    padding-top: 0;
    text-align: center;
}

.category-package-title {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.25rem, 2.6vw, 1.8rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.category-package-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 8px;
    margin-top: 22px;
}

.category-package-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    justify-items: center;
    gap: 5px;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
}

.category-package-item:nth-child(even) .category-package-item-media {
    order: 0;
}

.category-package-item:nth-child(even) .category-package-item-copy {
    order: 0;
    justify-items: center;
    text-align: center;
}

.category-package-item:last-child:nth-child(3n + 1) {
    grid-column: 2;
    justify-self: center;
}

.category-package-item:nth-last-child(2):nth-child(3n + 1) {
    grid-column: 1 / span 2;
    width: 50%;
    justify-self: end;
}

.category-package-item:nth-last-child(2):nth-child(3n + 1) + .category-package-item {
    grid-column: 2 / span 2;
    width: 50%;
    justify-self: start;
}

.category-package-item-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, clamp(74px, 22vw, 104px));
    max-width: none;
    height: auto;
    border-radius: 0;
    overflow: visible;
    background: transparent;
}

.category-package-item-media img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.category-package-item-copy {
    display: block;
    min-width: 0;
    max-width: 100%;
    color: var(--ink);
    font-size: clamp(0.66rem, 2.9vw, 0.78rem);
    font-weight: 700;
    line-height: 1.12;
    text-align: center;
    text-transform: uppercase;
    white-space: normal;
    overflow-wrap: anywhere;
}

.category-package-item-copy strong {
    color: rgba(223, 189, 154, 0.86);
    font-size: 0.92em;
    letter-spacing: 0.04em;
}

.category-package-item-copy strong::before {
    content: " · ";
}

.js-enhanced .category-package-item {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 620ms ease,
        transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--package-item-delay, 0ms);
}

.category-package-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.category-page--test-package .category-stock-head {
    margin-top: 24px;
}

.category-page--test-package .category-weight-list {
    grid-template-columns: minmax(0, 1fr);
    max-width: 280px;
    margin-right: auto;
    margin-left: auto;
}

.category-page--test-package .category-selection-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 96px));
    justify-content: center;
    align-items: start;
    gap: 14px 8px;
    margin-top: 20px;
    padding-top: 0;
    border-top: 0;
}

.category-page--test-package .category-selection-line {
    display: grid;
    justify-items: center;
    gap: 5px;
    min-width: 0;
    margin: 0;
    text-align: center;
}

.category-page--test-package .category-selection-label {
    color: rgba(223, 189, 154, 0.78);
    font-size: clamp(0.68rem, 1.5vw, 0.78rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.category-page--test-package .category-selection-value {
    color: var(--ink);
    font-size: clamp(0.9rem, 1.9vw, 1.04rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0.02em;
}

.category-page--test-package .category-add-to-cart {
    grid-column: 1 / -1;
    width: min(100%, 382px);
    justify-self: center;
    margin-top: 4px;
}

@media (max-width: 760px) {
    .category-page--test-package .category-hero-image {
        height: min(68vh, 520px);
    }

    .category-package-contents {
        width: 100%;
        max-width: none;
    }

    .category-package-grid {
        gap: 16px 8px;
        margin-top: 22px;
    }

    .category-page--test-package .category-selection-summary {
        grid-template-columns: repeat(3, minmax(0, 90px));
        gap: 12px 6px;
        margin-top: 18px;
    }
}

@media (max-width: 420px) {
    .category-page--test-package .category-hero-image {
        height: 430px;
    }

    .category-package-contents {
        width: calc(100% + 44px);
        max-width: none;
        margin-left: -22px;
        margin-right: -22px;
        margin-top: 22px;
    }

    .category-package-grid {
        gap: 12px 4px;
        margin-top: 20px;
    }

    .category-package-item {
        gap: 4px;
    }

    .category-package-item-media {
        width: min(100%, clamp(68px, 22vw, 82px));
    }

    .category-package-item-copy {
        font-size: clamp(0.62rem, 3.15vw, 0.7rem);
    }

    .category-package-item-copy strong {
        font-size: 0.92em;
    }

    .category-page--test-package .category-selection-summary {
        grid-template-columns: repeat(3, minmax(0, 82px));
        gap: 11px 4px;
        margin-top: 16px;
    }

    .category-page--test-package .category-selection-line {
        gap: 4px;
    }

    .category-page--test-package .category-selection-label {
        font-size: clamp(0.58rem, 2.7vw, 0.66rem);
        letter-spacing: 0.07em;
    }

    .category-page--test-package .category-selection-value {
        font-size: clamp(0.76rem, 3.35vw, 0.88rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .js-enhanced .catalog-section--test-offer [data-reveal-card],
    .js-enhanced .category-package-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
