@import url("partials/_parfume_horizontal_grid-wmxc-cz.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 {
    overflow-wrap: anywhere;

    @media (max-width: 767.98px) {
        font-size: 1.5rem;
        font-weight: 600;
        line-height: 1.25;
    }
}

.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) {
    .parfume-catalogue-breadcrumb {
        min-height: 2.75rem;
    }

    .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;
}

.parfume-details {
    align-items: start;
    display: grid;
    gap: 2rem;
}

.parfume-details > * {
    min-width: 0;
}

.parfume-details-notes,
.parfume-details-related {
    grid-column: 1 / -1;
}

@media (min-width: 1200px) {
    .parfume-details {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        gap: 3rem 1.5rem;
    }

    .parfume-details--with-sidebar .parfume-details-related {
        grid-column: 2;
        grid-row: 1;
    }
}

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

.note .note-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(4.375rem, 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;
    overflow-wrap: anywhere;
}

.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;
    margin-top: 0.5rem;
    max-width: 48rem;
}

.price-comparison-method summary {
    cursor: pointer;
    min-height: 44px;
    padding-block: 0.5rem;
    width: fit-content;
}

.price-comparison-method summary:hover {
    color: var(--bs-link-color);
}

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

.price-comparison-method p:last-child {
    margin-bottom: 0;
}

.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: 7rem;
    overflow: hidden;
    pointer-events: none;
    position: relative;
    user-select: none;
}

.parfume-description__remainder--collapsed::after {
    background: linear-gradient(to bottom, transparent 20%, 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: minmax(0, 1fr);
}

.related-parfumes > li + li {
    border-top: 1px solid var(--bs-border-color);
}

.related-parfume {
    align-items: start;
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem 0;
    color: var(--bs-body-color);
    text-decoration: none;
}

.related-parfumes > li:first-child .related-parfume {
    padding-top: 0;
}

.related-parfumes > li:last-child .related-parfume {
    padding-bottom: 0;
}

.related-parfume--without-image {
    grid-template-columns: minmax(0, 1fr);
}

.related-parfume-details {
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    gap: 0.5rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

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

.related-parfume img {
    width: 5rem;
    height: 6rem;
    object-fit: contain;
}

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

.breadcrumbs .breadcrumb-brand-link {
    overflow-wrap: anywhere;
}

.product-title .brand-link {
    align-self: flex-start;
    color: inherit;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.product-title .brand-link:hover,
.product-title .brand-link:focus-visible {
    text-decoration: underline;
}

.parfume-catalogue-section-content {
    align-items: center;
    display: grid;
    gap: 1.5rem 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.parfume-catalogue-section-content > .parfume-horizontal-grid {
    grid-column: 1 / -1;
}

.parfume-catalogue-link {
    color: var(--bs-body-color);
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    min-height: 44px;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.parfume-catalogue-link:hover {
    color: var(--bs-body-color);
    text-decoration-thickness: 2px;
}

.parfume-catalogue-section .parfume-grid-image {
    align-items: center;
    display: flex;
    height: 10rem;
    justify-content: center;
}

.parfume-catalogue-section .parfume-grid-image img {
    height: 100%;
    object-fit: contain;
}

.parfume-catalogue-section .parfume-grid-content {
    flex: 1;
    min-width: 0;
}

.parfume-catalogue-section .brand-name {
    color: var(--bs-secondary-color);
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.35;
}

.parfume-catalogue-section .parfume-name {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.35;
}

.parfume-catalogue-section .price {
    margin-top: auto;
}

.parfume-catalogue-section .price.price-unavailable {
    color: var(--bs-secondary-color);
    font-size: 0.875rem;
    font-weight: 400;
}

@media (min-width: 992px) {
    /* Six cards fill the smaller grids; desktop keeps a single row of five. */
    .parfume-catalogue-section .parfume-horizontal-grid > a:nth-child(n + 6) {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .parfume-catalogue-section-content {
        gap: 1.25rem;
        grid-template-columns: minmax(0, 1fr);
    }

    .parfume-catalogue-link {
        border: 1px solid var(--bs-border-color);
        border-radius: var(--bs-border-radius);
        font-size: 1rem;
        grid-column: 1;
        grid-row: auto;
        justify-content: space-between;
        justify-self: stretch;
        min-height: 48px;
        padding-inline: 1rem;
        text-decoration: none;
    }

    .parfume-catalogue-link:hover {
        background-color: var(--bs-tertiary-bg);
        text-decoration: none;
    }

    .parfume-catalogue-section .parfume-horizontal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem 0.75rem;
    }

    .parfume-catalogue-section .parfume-horizontal-grid a {
        border-radius: 1rem;
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .parfume-catalogue-section .parfume-grid-image {
        height: 7rem;
    }

    .parfume-catalogue-section .parfume-grid-image img {
        padding-inline: 0;
    }

    .parfume-catalogue-section .parfume-name {
        font-size: 1rem;
    }

    .parfume-catalogue-section .type,
    .parfume-catalogue-section .gender {
        font-size: 0.75rem;
        letter-spacing: 0;
        line-height: 1.4;
    }

    .parfume-catalogue-section .price {
        font-size: 1rem;
        font-weight: 600;
    }

    .offer-price-context {
        grid-area: context;
    }

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

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

    .related-parfume {
        grid-template-columns: 4rem minmax(0, 1fr);
        gap: 0.75rem;
    }

    .related-parfume--without-image {
        grid-template-columns: minmax(0, 1fr);
    }

    .related-parfume img {
        width: 4rem;
        height: 5rem;
    }
}
