/**
 * PrestaHU
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Commercial License
 * you can't distribute, modify or sell this code
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file
 * If you need help please contact info@presta.hu
 *
 * @author    PrestaHU <info@presta.hu>
 * @copyright PrestaHU
 * @license   commercial
 */
/* Termékoldal: „Csomagban olcsóbb” kártya a „Kosárba” sor alatt (pages/product-page.md). Fehér phu-card; soronként
   a csomag moduljainak képe, neve, kedvezménye, ára a teljes ár mellett és a megtakarítás. Csak elrendezés, minden
   érték token. */
.pshubd-offer {
    padding: var(--ph-space-4) var(--ph-space-5);
}

/* under the buttons (no video); under the clip the .phu-hero__aside gap spaces it */
.phu-hero__body .pshubd-offer {
    margin-top: var(--ph-stack-sm);
}

.pshubd-offer__head {
    display: flex;
    align-items: center;
    gap: var(--ph-space-2);
    margin: 0 0 var(--ph-space-1);
    font-size: var(--ph-type-small);
    line-height: var(--ph-type-small-lh);
    font-weight: var(--ph-weight-semibold);
    color: var(--ph-brand-strong);
}

.pshubd-offer__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pshubd-offer__list > li + li {
    border-top: var(--ph-border-w) solid var(--ph-border);
}

/* képek · név + modulok · ár · nyíl; telefonon egymás alatt: képek a nyíllal, név, ár */
.pshubd-offer__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "thumbs arrow" "body body" "price price";
    align-items: center;
    column-gap: var(--ph-space-3);
    row-gap: var(--ph-space-2);
    padding: var(--ph-space-3) 0;
    color: var(--ph-ink);
    text-decoration: none;
}

.pshubd-offer__item:focus-visible {
    outline: 2px solid var(--ph-brand);
    outline-offset: 2px;
    border-radius: var(--ph-radius-sm);
}

@media (min-width: 640px) {
    .pshubd-offer__item {
        grid-template-columns: auto minmax(0, 1fr) auto auto;
        grid-template-areas: "thumbs body price arrow";
    }
}

.pshubd-offer__thumbs {
    grid-area: thumbs;
    display: flex;
    align-items: center;
}

.pshubd-offer__thumbs > img,
.pshubd-offer__more {
    width: 40px;
    height: 40px;
    flex: none;
    border: 2px solid var(--ph-surface-card);
    border-radius: var(--ph-radius-sm);
    background: var(--ph-surface-card);
    box-shadow: var(--ph-shadow-sm);
}

.pshubd-offer__thumbs > img {
    object-fit: cover;
}

.pshubd-offer__thumbs > * + * {
    margin-left: calc(-1 * var(--ph-space-3));
}

.pshubd-offer__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ph-surface-band);
    font-size: var(--ph-type-caption);
    font-weight: var(--ph-weight-semibold);
    color: var(--ph-ink-muted);
}

.pshubd-offer__body {
    grid-area: body;
    display: grid;
    gap: var(--ph-space-1);
    min-width: 0;
}

.pshubd-offer__title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ph-space-2);
}

.pshubd-offer__name {
    font-size: var(--ph-type-body);
    line-height: var(--ph-type-body-lh);
    font-weight: var(--ph-weight-semibold);
}

.pshubd-offer__item:hover .pshubd-offer__name,
.pshubd-offer__item:focus-visible .pshubd-offer__name {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pshubd-offer__summary {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: var(--ph-type-small);
    line-height: var(--ph-type-small-lh);
    color: var(--ph-ink-muted);
}

.pshubd-offer__price {
    grid-area: price;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: var(--ph-space-2);
    font-variant-numeric: tabular-nums;
}

@media (min-width: 640px) {
    .pshubd-offer__price {
        flex-direction: column;
        align-items: flex-end;
        text-align: right;
        white-space: nowrap;
    }
}

.pshubd-offer__now {
    font-size: var(--ph-type-title);
    line-height: var(--ph-type-title-lh);
    font-weight: var(--ph-weight-bold);
    color: var(--ph-ink);
}

.pshubd-offer__was {
    font-size: var(--ph-type-small);
    line-height: var(--ph-type-small-lh);
    color: var(--ph-ink-subtle);
}

.pshubd-offer__saving {
    font-size: var(--ph-type-caption);
    line-height: var(--ph-type-caption-lh);
    font-weight: var(--ph-weight-semibold);
    color: var(--ph-brand-strong);
}

.pshubd-offer__arrow {
    grid-area: arrow;
    color: var(--ph-brand-strong);
    transition: transform var(--ph-dur-fast) var(--ph-ease-out);
}

.pshubd-offer__item:hover .pshubd-offer__arrow {
    transform: translateX(2px);
}

@media (prefers-reduced-motion: reduce) {
    .pshubd-offer__arrow {
        transition: none;
    }
}

/* link a modul összes csomagjához, a kártya alján */
.pshubd-offer__all {
    display: inline-flex;
    align-items: center;
    gap: var(--ph-space-1);
    margin-top: var(--ph-space-1);
    font-size: var(--ph-type-small);
    line-height: var(--ph-type-small-lh);
    font-weight: var(--ph-weight-semibold);
    color: var(--ph-brand-strong);
    text-decoration: none;
}

.pshubd-offer__all:hover,
.pshubd-offer__all:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}
