/* Kampanyalar (Yds): urun kartinda rozet ve kalan sure, urun sayfasi kutusu, sepette tesvik ve uygulanan kampanya,
   Kampanyalar ve kampanya detay sayfalari. Renkler temanin kirmizi (#bd1a20) ve morundan (#4f3075). */

:root {
    --cmp-purple: #4f3075;
    --cmp-purple-soft: #f3eff8;
    --cmp-purple-line: #d9d0e6;
    --cmp-red: #bd1a20;
    --cmp-red-soft: #fde8e8;
    --cmp-ink: #3c4858;
    --cmp-muted: #717b96;
    --cmp-green: #1e7a45;
    --cmp-green-soft: #e8f7ee;
}

/* urun karti: gorselin ustu */
.cmp-on-image {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.cmp-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--cmp-purple);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    border-radius: 10px;
    padding: 6px 12px;
    box-shadow: 0 4px 12px rgba(79, 48, 117, .35);
    max-width: calc(100% - 24px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cmp-badge--red {
    background: var(--cmp-red);
    box-shadow: 0 4px 12px rgba(189, 26, 32, .3);
}

.cmp-timer {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    color: var(--cmp-purple);
    font-size: 12px;
    font-weight: 700;
    border-radius: 10px;
    padding: 5px 10px;
    box-shadow: 0 4px 12px rgba(60, 72, 88, .18);
    font-variant-numeric: tabular-nums;
}

.cmp-timer--hot {
    color: var(--cmp-red);
}

/* urun sayfasi kutusu */
.cmp-box {
    background: var(--cmp-purple-soft);
    border-radius: 16px;
    padding: 16px;
    margin: 16px 0;
    text-align: left;
}

.cmp-box__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cmp-box__title {
    font-weight: 800;
    color: var(--cmp-purple);
    font-size: 17px;
}

.cmp-box__label {
    font-size: 11px;
    font-weight: 700;
    color: var(--cmp-muted);
    letter-spacing: .05em;
    white-space: nowrap;
}

.cmp-box__text {
    margin: 8px 0 12px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--cmp-ink);
}

.cmp-box__foot {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.cmp-box__link {
    margin-left: auto;
    font-size: 14px;
    font-weight: 700;
    color: var(--cmp-purple);
    text-decoration: none;
}

.cmp-box__link:hover {
    color: var(--cmp-red);
}

.cmp-clock {
    display: inline-flex;
    gap: 6px;
}

.cmp-clock span {
    background: #fff;
    border-radius: 10px;
    min-width: 50px;
    padding: 6px 4px;
    text-align: center;
    font-size: 10px;
    color: var(--cmp-muted);
    font-weight: 700;
    text-transform: uppercase;
}

/* son 24 saatte gun yerine saniye; detay sayfasinda saniye her zaman */
.cmp-clock .cmp-clock__s {
    display: none;
}

.cmp-clock--last-day .cmp-clock__d {
    display: none;
}

.cmp-clock--last-day .cmp-clock__s,
.cmp-clock--seconds .cmp-clock__s {
    display: block;
}

.cmp-clock b {
    display: block;
    font-size: 20px;
    color: var(--cmp-purple);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

/* sepet: kampanyaya bir urun kaldi */
.cmp-nudge {
    background: var(--cmp-purple-soft);
    border: 2px dashed var(--cmp-purple);
    border-radius: 20px;
    padding: 18px 20px;
    margin-bottom: 16px;
}

.cmp-nudge__head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cmp-nudge__title {
    font-weight: 700;
    font-size: 18px;
    color: var(--cmp-purple);
}

.cmp-nudge__text {
    font-size: 14px;
    color: var(--cmp-ink);
    margin-top: 3px;
}

.cmp-progress {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

.cmp-progress i {
    width: 30px;
    height: 8px;
    border-radius: 4px;
    background: var(--cmp-purple-line);
}

.cmp-progress i.is-on {
    background: var(--cmp-purple);
}

.cmp-progress-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--cmp-purple);
    margin-top: 5px;
    text-align: right;
    white-space: nowrap;
}

.cmp-sugs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.cmp-sug {
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.cmp-sug__top {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.cmp-sug__img {
    width: 52px;
    height: 52px;
    flex: none;
    border-radius: 12px;
    object-fit: cover;
    background: #eef0f7;
}

.cmp-sug__kind {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    color: var(--cmp-purple);
    background: var(--cmp-purple-soft);
    border-radius: 6px;
    padding: 2px 6px;
}

.cmp-sug__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--cmp-ink);
    line-height: 1.3;
    margin-top: 4px;
    height: 34px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-decoration: none;
}

.cmp-sug__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}

.cmp-sug__old {
    font-size: 12px;
    color: var(--cmp-muted);
    text-decoration: line-through;
    height: 16px;
}

.cmp-sug__price {
    font-size: 16px;
    font-weight: 700;
    color: var(--cmp-ink);
    white-space: nowrap;
}

.cmp-sug__add {
    background: var(--cmp-purple);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.cmp-sug__add:hover {
    background: #3a2257;
}

.cmp-sug__add:disabled {
    opacity: .6;
}

.cmp-nudge__all {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--cmp-purple);
    text-decoration: none;
}

/* sepet: kampanya uygulandi */
.cmp-applied {
    background: var(--cmp-green-soft);
    border-radius: 16px;
    padding: 14px 18px;
    color: var(--cmp-green);
    font-size: 15px;
    margin-bottom: 16px;
}

.cmp-tag {
    display: inline-block;
    align-self: flex-start;
    margin-top: 8px;
    border-radius: 8px;
    padding: 3px 9px;
    font-size: 12px;
    font-weight: 700;
    background: var(--cmp-purple-soft);
    color: var(--cmp-purple);
}

.cmp-tag--free {
    background: var(--cmp-green-soft);
    color: var(--cmp-green);
}

/* Kampanyalar sayfasi: bilet gorunumlu kartlar */
.cmp-page-head {
    text-align: center;
    margin-bottom: 26px;
}

.cmp-page-head h1 {
    font-size: 34px;
    font-weight: 700;
    color: var(--cmp-ink);
    margin: 20px 0 6px;
}

.cmp-page-head h1 span {
    color: var(--cmp-red);
}

.cmp-page-head p {
    color: var(--cmp-muted);
    font-size: 16px;
    margin: 0;
}

.cmp-empty {
    background: #fff;
    border-radius: 24px;
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.cmp-empty__icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #fdecec;
    color: var(--cmp-red);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cmp-empty__title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #2b3445;
}

.cmp-empty__text {
    margin: 0;
    max-width: 460px;
    font-size: 16px;
    line-height: 1.5;
    color: #5b6478;
}

.cmp-empty__btn {
    margin-top: 6px;
    background: var(--cmp-red);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    padding: 14px 22px;
    text-decoration: none;
}

.cmp-empty__btn:hover {
    color: #fff;
    background: #8f1318;
}

/* Kampanyalar sayfasi: kart 4:3 kampanya gorselinin kendisi, iki sutun */
.cmp-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.cmp-cards--single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 880px;
    margin: 0 auto;
}

.cmp-card {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 24px;
    overflow: hidden;
    background-color: #2e1a47;
    background-size: cover;
    background-position: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(60, 72, 88, .16);
    transition: transform .15s, box-shadow .15s;
}

.cmp-card:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(60, 72, 88, .22);
}

.cmp-card--purple {
    background-image: linear-gradient(140deg, #4f3075, #2e1a47);
}

.cmp-card--red {
    background-image: linear-gradient(140deg, #bd1a20, #7d1015);
}

.cmp-card__art {
    position: absolute;
    top: 28px;
    right: 30px;
    max-width: 70%;
    text-align: right;
    font-size: 54px;
    font-weight: 800;
    line-height: 1;
    opacity: .95;
}

.cmp-card__art small {
    display: block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .75;
    margin-bottom: 10px;
}

.cmp-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(20, 10, 35, .88) 100%);
}

.cmp-card__badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background: var(--cmp-red);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    padding: 7px 13px;
}

.cmp-card__badge--soon {
    background: #fff;
    color: var(--cmp-purple);
}

.cmp-card__body {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cmp-card__name {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.15;
}

.cmp-card__desc {
    font-size: 15px;
    line-height: 1.45;
    opacity: .88;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cmp-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
}

.cmp-card__time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .16);
    border-radius: 10px;
    padding: 7px 12px;
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.cmp-card__go {
    margin-left: auto;
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 50%;
    background: #fff;
    color: var(--cmp-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

/* kampanya detay sayfasi */
.cmp-hero {
    background: linear-gradient(135deg, var(--cmp-purple), #2e1a47);
    border-radius: 26px;
    padding: 30px 34px;
    color: #fff;
    display: flex;
    gap: 30px;
    align-items: center;
    margin: 18px 0 24px;
}

/* kampanya gorseli (4:3): bandin solunda */
.cmp-hero__img {
    width: 300px;
    flex: none;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 18px;
    border: 3px solid rgba(255, 255, 255, .85);
}

.cmp-hero__badge {
    display: inline-block;
    background: var(--cmp-red);
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
}

.cmp-hero h1 {
    margin: 12px 0 0;
    font-size: 34px;
    font-weight: 800;
    color: #fff;
}

.cmp-hero p {
    margin: 8px 0 0;
    font-size: 16px;
    color: #e3d8f0;
    max-width: 640px;
    line-height: 1.55;
}

.cmp-hero__conds {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.cmp-hero__conds span {
    background: rgba(255, 255, 255, .14);
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
}

.cmp-hero__clock {
    text-align: center;
    flex: none;
}

.cmp-hero__clock .cmp-box__label {
    color: #e3d8f0;
}

.cmp-hero__clock .cmp-clock span {
    background: rgba(255, 255, 255, .14);
    color: #e3d8f0;
    min-width: 62px;
    padding: 10px 6px;
}

.cmp-hero__clock .cmp-clock b {
    font-size: 28px;
    color: #fff;
}

.cmp-hero__end {
    font-size: 13px;
    color: #e3d8f0;
    margin-top: 8px;
}

@media (max-width: 991px) {
    .cmp-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .cmp-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 20px;
    }

    .cmp-hero h1 {
        font-size: 26px;
    }

    .cmp-hero__img {
        width: 100%;
    }
}

@media (max-width: 767px) {
    /* telefonda 4:3 kartta metin sigmazsa kart uzar */
    .cmp-card {
        aspect-ratio: auto;
        min-height: 320px;
    }

    /* yalnizca gorselden olusan kart telefonda da 4:3 kalir */
    .cmp-card.cmp-card--photo {
        aspect-ratio: 4 / 3;
        min-height: 0;
    }

    .cmp-card__name {
        font-size: 21px;
    }

    .cmp-empty__title {
        font-size: 20px;
    }

    .cmp-card__art {
        font-size: 30px;
        top: 62px;
        right: 20px;
        white-space: nowrap;
    }

    .cmp-card__art small {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .cmp-card__body {
        left: 18px;
        right: 18px;
        bottom: 18px;
    }

    .cmp-sugs {
        grid-template-columns: minmax(0, 1fr);
    }

    .cmp-nudge__head {
        flex-wrap: wrap;
    }

    .cmp-box__link {
        margin-left: 0;
        width: 100%;
    }
}

.lesson-card__cover,
.lesson-card__img {
    position: relative;
}
