/* ==========================================================================
   Laser Polyclinic: offers list (archive-offer.php) and offer page (single-offer.php)
   Shared type and blocks (.lp-page, .lp-card, .lp-section, .lp-chips, .lp-prose,
   .lp-info…) and the page header (.lp-page-head, .lp-crumbs, .lp-h1) live in site.css.
   ========================================================================== */

.lp-page dl,
.lp-page dd,
.lp-page ol {
    margin: 0;
}

/* ---------- Shared: discount badge, price, end date ---------- */

.lp-offer-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: var(--lp-radius-pill);
    background: var(--lp-gold-300);
    color: var(--lp-ink);
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
}

.lp-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
}

.lp-price__now {
    font-size: 26px;
    line-height: 38px;
    font-weight: 700;
    color: var(--lp-ink);
}

.lp-price__cur {
    display: inline-flex;
}

/* Official Saudi Riyal sign (inline SVG from lp_riyal()), sized to the surrounding text. */
.lp-riyal {
    display: inline-block;
    width: 0.73em;
    height: 0.82em;
    vertical-align: -0.04em;
    flex-shrink: 0;
}

.lp-money {
    white-space: nowrap;
}

.lp-price__was {
    font-size: 16px;
    line-height: 24px;
    color: var(--lp-ink-muted);
}

/* Old price: one line across the number and the sign (text-decoration skips inline SVG). */
.lp-price__was,
.lp-offer-info__was s {
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) no-repeat 0 55% / 100% 1.5px;
}

.lp-offer-valid {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 24px;
    color: var(--lp-ink-muted);
}

.lp-offer-valid .lp-icon {
    color: var(--lp-gold-700);
}

/* ---------- Offer card (template-parts/offer-card.php) ---------- */

.lp-offers-list {
    padding-top: 48px;
}

.lp-offers-list__inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.lp-offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
    gap: 24px;
}

.lp-offer-card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.lp-offer-card[hidden] {
    display: none;
}

.lp-offer-card__media {
    position: relative;
    height: 260px;
    background: var(--lp-gold-200);
    color: var(--lp-gold-700);
    overflow: hidden;
}

.lp-offer-card__img {
    display: block;
    width: 100%;
    height: 100%;
}

.lp-offer-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lp-offer-card__img .lp-icon {
    stroke-width: 1.5;
}

.lp-offer-card__dept,
.lp-offer-card__badge {
    position: absolute;
    top: 14px;
    z-index: 1;
}

.lp-offer-card__dept {
    inset-inline-start: 14px;
}

.lp-offer-card__badge {
    inset-inline-end: 14px;
}

.lp-offer-card__body {
    flex-grow: 1;
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lp-page .lp-offer-card__title {
    font-family: var(--lp-font);
    font-size: 20px;
    line-height: 32px;
    font-weight: 700;
}

.lp-offer-card__title a,
.lp-offer-card__title a:visited {
    color: var(--lp-ink);
    text-decoration: none;
}

.lp-offer-card__title a:hover {
    color: var(--lp-gold-700);
}

.lp-offer-card__summary {
    flex-grow: 1;
    font-size: 15px;
    line-height: 26px;
    color: var(--lp-ink-muted);
}

.lp-offer-card .lp-price {
    padding-top: 4px;
}

/* Without a summary, push the price and button to the bottom so buttons line up. */
.lp-offer-card__title + .lp-price,
.lp-offer-card__title + .lp-offer-valid {
    margin-top: auto;
}

.lp-offer-card__cta {
    margin-top: 6px;
}

/* ---------- Terms (template-parts/offer-terms.php) ---------- */

.lp-offer-terms {
    padding-block: clamp(40px, 5vw, 64px);
}

.lp-offer-terms__inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lp-page .lp-offer-terms .lp-h2 {
    font-size: clamp(24px, 2.2vw, 28px);
}

.lp-offer-terms__list {
    padding-inline-start: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--lp-ink-muted);
}

.lp-offer-terms__list li {
    margin: 0;
}

/* ---------- Offer page ---------- */

.lp-offer-hero {
    background: var(--lp-surface-cream);
    border-bottom: 1px solid var(--lp-line);
    padding-block: 32px clamp(48px, 6vw, 80px);
}

.lp-offer-hero__inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.lp-offer-hero__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px 64px;
}

.lp-offer-hero__media {
    position: relative;
    flex: 1 1 480px;
    max-width: 560px;
    min-width: 0;
    aspect-ratio: 4 / 3;
    border-radius: var(--lp-radius-xl);
    border: 1px solid var(--lp-line);
    background: var(--lp-gold-200);
    overflow: hidden;
}

.lp-offer-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lp-offer-hero__media .lp-icon {
    stroke-width: 1.2;
}

.lp-offer-hero__badge {
    position: absolute;
    top: 18px;
    inset-inline-end: 18px;
    padding: 8px 18px;
    font-size: 16px;
    line-height: 24px;
}

.lp-offer-hero__copy {
    flex: 1 1 400px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.lp-offer-hero__dept {
    border: 1px solid var(--lp-line);
    font-size: 14px;
    line-height: 24px;
    padding: 4px 14px;
}

.lp-price--lg .lp-price__now {
    font-size: 40px;
    line-height: 56px;
}

.lp-price--lg .lp-price__was {
    font-size: 20px;
    line-height: 30px;
}

.lp-offer-hero .lp-offer-valid {
    font-size: 16px;
    line-height: 28px;
}

.lp-offer-hero .lp-actions {
    padding-top: 0;
}

.lp-offer-details__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 32px 56px;
}

.lp-offer-details__body {
    flex: 1 1 520px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lp-offer-info__was {
    color: var(--lp-ink-muted);
}

/* ---------- Phones ---------- */

@media (max-width: 767px) {
    .lp-offers-list {
        padding-block: 20px 40px;
    }

    .lp-offers-list__inner {
        gap: 16px;
    }

    .lp-offers-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .lp-offer-card__media {
        height: 200px;
    }

    .lp-offer-card__dept,
    .lp-offer-card__badge {
        top: 12px;
    }

    .lp-offer-card__dept {
        inset-inline-start: 12px;
    }

    .lp-offer-card__badge {
        inset-inline-end: 12px;
        padding: 5px 12px;
        font-size: 13px;
    }

    .lp-offer-card__body {
        padding: 16px;
        gap: 8px;
    }

    .lp-page .lp-offer-card__title {
        font-size: 19px;
        line-height: 30px;
    }

    .lp-price {
        gap: 4px 10px;
    }

    .lp-price__now {
        font-size: 24px;
        line-height: 36px;
    }

    .lp-price__was {
        font-size: 15px;
    }

    .lp-offer-card .lp-price {
        padding-top: 0;
    }

    .lp-offer-card__cta.lp-btn {
        height: 48px;
    }

    .lp-offer-terms {
        padding-block: 32px;
    }

    .lp-offer-terms__inner {
        gap: 12px;
    }

    .lp-page .lp-offer-terms .lp-h2 {
        font-size: 22px;
        line-height: 34px;
    }

    .lp-offer-terms__list {
        gap: 6px;
        font-size: 15px;
        line-height: 26px;
    }

    .lp-offer-hero {
        padding-block: 16px 32px;
    }

    .lp-offer-hero__inner,
    .lp-offer-hero__row {
        gap: 16px;
    }

    .lp-offer-hero__media {
        flex-basis: 100%;
        max-width: none;
        border-radius: var(--lp-radius-lg);
    }

    .lp-offer-hero__badge {
        top: 12px;
        inset-inline-end: 12px;
        padding: 6px 14px;
        font-size: 14px;
        line-height: 20px;
    }

    .lp-offer-hero__copy {
        flex-basis: 100%;
        gap: 10px;
    }

    .lp-page .lp-offer-hero .lp-h1 {
        font-size: 30px;
        line-height: 46px;
    }

    .lp-price--lg .lp-price__now {
        font-size: 32px;
        line-height: 46px;
    }

    .lp-price--lg .lp-price__was {
        font-size: 17px;
    }

    .lp-offer-hero .lp-actions {
        align-self: stretch;
        flex-direction: column;
        gap: 10px;
        padding-top: 8px;
    }

    .lp-offer-hero .lp-actions .lp-btn {
        height: 48px;
    }

    .lp-offer-details {
        padding-block: 40px;
    }

    .lp-offer-details__inner {
        gap: 24px;
    }

    .lp-offer-details__body {
        gap: 16px;
    }

    .lp-offer-others {
        padding-block: 40px 48px;
    }

    .lp-offer-others .lp-stack {
        gap: 16px;
    }

    .lp-offer-others .lp-section-head--split {
        flex-wrap: nowrap;
        align-items: center;
    }

    .lp-offer-others .lp-h2 {
        font-size: 22px;
        line-height: 34px;
    }

    .lp-offer-others .lp-link {
        flex-shrink: 0;
    }
}
