@import url("partials/_parfume_horizontal_grid-tMfmRMn.css");

.product-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;

    &.product-container--without-image {
        grid-template-columns: minmax(0, 1fr);
    }

    @media (max-width: 767.98px) {
        grid-template-columns: 5.5rem minmax(0, 1fr);
        column-gap: 1rem;
        row-gap: 1.25rem;

        &.product-container--without-image {
            grid-template-columns: minmax(0, 1fr);
        }

        .product-image-container {
            grid-column: 1;
            grid-row: 1;
            padding: 0 !important;

            img {
                max-height: 7rem;
                object-fit: contain;
            }
        }

        .product-info-container {
            display: contents !important;
        }

        .product-title {
            grid-column: 2;
            grid-row: 1;
            margin: 0;
        }

        &.product-container--without-image .product-title {
            grid-column: 1 / -1;
        }

        .variation-min-prices {
            grid-column: 1 / -1;
            margin-top: 0;
        }
    }
}

.product-container .best-offers-title {
    font-size: 0.95rem;
}

.product-container .brand-name {
    font-size: 1.375rem;
    font-weight: 400;

    @media (max-width: 767.98px) {
        font-size: 1rem;
        line-height: 1.2;
    }
}

.product-container .parfume-name {
    @media (max-width: 767.98px) {
        font-size: clamp(2rem, 9vw, 2.5rem);
        line-height: 1;
    }
}

.product-container .parfume-type {
    font-size: 1.1875rem;

    @media (max-width: 767.98px) {
        font-size: 1rem;
    }
}

.offers-container .offer .store-logo img,
.product-container .store-logo img {
    max-height: 1.375rem;
    max-width: min(100%, 10rem);
    object-fit: contain;
}

.offers-container .offer .store-logo {
    align-items: center;
    display: inline-flex;
    flex: 0 1 10rem;
    min-width: 0;
}

.offers-container .offer {
    align-items: center;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    padding: 1rem 3rem;
}

.offers-container .offer-summary,
.offers-container .offer-price-group {
    align-items: center;
    display: flex;
}

.offers-container .offer-summary {
    flex: 1;
    gap: 3rem;
    min-width: 0;
}

.offers-container .offer-price-group {
    gap: 0.75rem;
}

.product-container .variation-offer-details {
    flex: 1 1 auto;
    min-width: 0;
}

.product-container .variation-min-price {
    column-gap: 1.5rem;
}

.product-container .variation-info-row {
    align-items: center;
    font-size: 1.1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;

    @media (max-width: 767.98px) {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .product-container .variation-min-price {
        align-items: center;
        column-gap: 0.75rem;
        display: grid !important;
        grid-template-areas:
            "size price cta"
            "store store store"
            "context context context";
        grid-template-columns: 3rem minmax(0, 1fr) auto;
        margin: 0 !important;
        padding: 0.75rem !important;
        row-gap: 0.35rem;
    }

    .product-container .variation-offer-details,
    .product-container .variation-info-row,
    .product-container .offer-price-details {
        display: contents !important;
    }

    .product-container .variation-name {
        align-self: center;
        font-size: 0.875rem;
        grid-area: size;
        white-space: nowrap;
    }

    .product-container .offer-price-primary {
        font-size: 1.125rem;
        grid-area: price;
        line-height: 1.1;
        white-space: nowrap;
    }

    .product-container .variation-min-price .store-logo {
        align-self: start;
        font-size: 0.9rem;
        grid-area: store;
        line-height: 1.2;
        min-width: 0;
    }

    .product-container .variation-cta {
        align-self: center;
        grid-area: cta;
    }

    .product-container .variation-cta .affiliate-offer-cta {
        display: block;
    }

    .product-container .variation-cta .offer-cta-button {
        font-size: 0.875rem;
        min-width: 6.75rem;
    }

    .product-container .variation-cta .offer-cta-button,
    .offers-container .offer-cta .offer-cta-button {
        gap: 0.25rem !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .offers-container .offers-variation-tabs {
        flex-wrap: nowrap;
        gap: 0.5rem !important;
        margin-right: -0.75rem;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        padding-right: 0.75rem;
        scrollbar-width: none;
    }

    .offers-container .offers-variation-tabs::-webkit-scrollbar {
        display: none;
    }

    .offers-container .offers-variation-tabs .nav-item {
        flex: 0 0 auto;
    }

    .offers-container .offer {
        align-items: center;
        column-gap: 0.75rem;
        display: grid;
        grid-template-areas:
            "price cta"
            "store store"
            "context context";
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 0.75rem;
        row-gap: 0.35rem;
    }

    .offers-container .offer-summary,
    .offers-container .offer-price-group,
    .offers-container .offer-price-details {
        display: contents;
    }

    .offers-container .offer-price-primary {
        grid-area: price;
    }

    .offers-container .offer .store-logo {
        align-self: start;
        grid-area: store;
    }

    .offers-container .offer-cta {
        align-self: center;
        grid-area: cta;
    }

    .offers-container .offer-cta .affiliate-offer-cta {
        display: block;
    }

    .offers-container .offer-cta .offer-cta-button {
        min-width: 6.75rem;
    }
}

.offers-container .offer,
.product-container .variation-min-price {
    border-radius: var(--bs-border-radius);
}

.offers-container .badge-lowest-price {
    font-size: 0.75rem;
}

.offer-cta-button {
    min-height: 2.25rem;
    white-space: nowrap;

    @media (max-width: 767.98px) {
        min-height: 2.5rem;
    }
}

.variation-cta,
.offer-cta {
    flex-shrink: 0;
}

.price-freshness-info {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--bs-secondary-color, #6c757d);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
    min-height: 24px;
    min-width: 24px;
    padding: 0;
}

.price-freshness-info:hover,
.price-freshness-info[aria-expanded="true"] {
    color: var(--bs-link-color);
}

.price-freshness-info[hidden] {
    display: none !important;
}

.price-freshness-popover {
    --bs-popover-body-padding-x: 0.5rem;
    --bs-popover-body-padding-y: 0.375rem;
    --bs-popover-font-size: 0.8125rem;
    --bs-popover-max-width: min(18rem, calc(100vw - 2rem));
}

@media (pointer: coarse) {
    .price-freshness-info {
        min-height: 44px;
        min-width: 44px;
    }
}

.offers-container .offers-variation-tabs .nav-link {
    font-size: 0.875rem;
}

.notes {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4rem;
    @media (max-width: 767.98px) {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.note .note-items {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 1rem;
    @media (max-width: 767.98px) {
        display: flex;
        flex-wrap: wrap;
        gap: 0.8rem;
        row-gap: 1rem;
    }
}

.note .note-items .note-item img {
    max-width: 70px;
    @media (max-width: 767.98px) {
        max-width: 50px;
    }
}

.note .note-items .note-item .note-item-name {
    font-size: 1rem;
    line-height: 1.1rem;
}

.offer-price-details,
.offer-price-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    min-width: 0;
}

.offer-price {
    white-space: nowrap;
}

.offer-price-context {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.35rem;
    color: var(--bs-secondary-color);
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
    white-space: normal;
}

.offer-price-context > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.price-comparison-method {
    color: var(--bs-secondary-color);
    font-size: 0.875rem;
    max-width: 48rem;
}

.price-comparison-method summary {
    color: var(--bs-link-color);
    cursor: pointer;
    padding-block: 0.5rem;
}

.price-comparison-method p {
    margin-top: 0.5rem;
}

.parfume-description {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 48rem;
}

.parfume-description p {
    margin-bottom: 0.75rem;
}

.parfume-description h3 {
    font-size: 1.125rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.parfume-description__remainder {
    display: flow-root;
}

.parfume-description__remainder > :first-child {
    margin-top: 0.75rem;
}

.parfume-description__remainder--collapsed {
    max-height: 62px;
    overflow: hidden;
    pointer-events: none;
    position: relative;
    user-select: none;
}

.parfume-description__remainder--collapsed::after {
    background: linear-gradient(to bottom, transparent, var(--bs-body-bg) 95%);
    content: '';
    inset: 0;
    position: absolute;
}

.parfume-description .parfume-description__toggle {
    align-items: center;
    display: flex;
    font-size: 1rem;
    gap: 0.35rem;
    min-height: 44px;
    padding: 0.5rem 0;
    text-align: left;
    text-decoration: none;
}

.parfume-description .parfume-description__toggle:hover {
    text-decoration: underline;
}

.parfume-description [hidden] {
    display: none !important;
}

.related-parfumes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.related-parfume {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--bs-body-color);
    text-decoration: none;
}

.related-parfume:hover {
    color: var(--bs-link-hover-color);
}

.related-parfume img {
    width: 100%;
    height: 10rem;
    object-fit: contain;
}

.related-parfume-kind,
.related-parfume-explanation {
    color: var(--bs-secondary-color);
    font-size: 0.875rem;
}

@media (max-width: 767.98px) {
    .offer-price-context {
        grid-area: context;
    }

    .store-logo {
        overflow-wrap: anywhere;
    }

    .product-container .offer-price {
        font-size: 1.125rem;
    }

    .related-parfumes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem 1rem;
    }
}
