.coupon-page {
    color: #162443;
    background: #fff;
    padding-bottom: 56px;
    letter-spacing: 0;
}

.coupon-shell { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.coupon-hero { background: #e4f1ff; }
.coupon-hero__inner { display: flex; align-items: center; gap: 32px; padding-block: 28px; }
.coupon-hero__copy { flex: 1; min-width: 0; }
.coupon-hero__eyebrow { display: block; margin-bottom: 12px; color: #235ee7; font-size: 13px; font-weight: 700; }
.coupon-hero h1 { margin: 0; color: #0c2144; font-size: 44px; font-weight: 800; line-height: 1.2; }
.coupon-hero h2 { margin: 12px 0 0; color: #162c50; font-size: 23px; font-weight: 600; line-height: 1.4; }
.coupon-hero p { max-width: 560px; margin: 14px 0 0; color: #53617a; font-size: 14px; line-height: 1.7; letter-spacing: 0; }
.coupon-hero__image { flex: 0 1 40%; width: 40%; max-width: 410px; height: 260px; object-fit: contain; }
.coupon-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-block: 24px 30px; }
.coupon-tab { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 12px; border: 1px solid transparent; border-radius: 8px; background: #f0f5fd; color: #445e9a; font-size: 13px; font-weight: 600; text-align: center; text-decoration: none; }
.coupon-tab i { font-size: 17px; }
.coupon-tab:hover, .coupon-tab:focus { background: #e2ecff; color: #164fcd; text-decoration: none; }
.coupon-tab.is-active { background: #245ef5; color: #fff; box-shadow: 0 3px 10px #245ef530; }
.coupon-tab:focus-visible, .coupon-sort :focus-visible, .coupon-card a:focus-visible, .coupon-card button:focus-visible { outline: 2px solid #245ef5; outline-offset: 3px; }
.coupon-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.coupon-toolbar h2 { color: #253b7d; font-size: 25px; font-weight: 700; line-height: 1.3; }
.coupon-toolbar h2::after { content: ''; display: block; width: 38px; height: 2px; margin-top: 8px; background: #245ef5; }
.coupon-count { display: block; margin-top: 6px; color: #788298; font-size: 12px; }
.coupon-sort { display: flex; height: 40px; margin: 0; border: 1px solid #dfe4ec; border-radius: 6px; overflow: hidden; }
.coupon-sort select { max-width: 180px; min-width: 0; padding: 0 10px; border: 0; color: #53617a; background: #fff; font-size: 12px; }
.coupon-sort button { width: 36px; padding: 0; border: 0; border-inline-start: 1px solid #dfe4ec; background: #f6f9ff; color: #245ef5; }
.coupon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.coupon-card { --offer-color: #1260ed; --offer-tint: #eaf3ff; display: flex; align-items: flex-start; gap: 20px; min-width: 0; padding: 20px; border: 1px solid #e8ebf1; border-radius: 8px; box-shadow: 0 3px 12px #152a4a08; background: #fff; }
.coupon-card--digital { --offer-color: #d7195a; --offer-tint: #fff0f5; }
.coupon-card--physical { --offer-color: #078c39; --offer-tint: #edf9ef; }
.coupon-card--first_order { --offer-color: #8044d4; --offer-tint: #f5efff; }
.coupon-card--special_event { --offer-color: #dd5e0a; --offer-tint: #fff3e8; }
.coupon-card--premium { --offer-color: #00899a; --offer-tint: #e8f9fb; }
.coupon-card__discount { flex: 0 0 88px; width: 88px; display: grid; gap: 10px; text-align: center; color: var(--offer-color); }
.coupon-card__icon { display: grid; place-items: center; height: 80px; border-radius: 8px; background: var(--offer-tint); font-size: 35px; }
.coupon-card__discount strong { padding: 8px 3px; border-radius: 6px; background: var(--offer-tint); font-size: 16px; font-weight: 800; line-height: 1.3; }
.coupon-card__body { flex: 1; min-width: 0; }
.coupon-card__heading { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px; }
.coupon-card h3 { flex: 1; min-width: 0; color: #15191f; font-size: 16px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.coupon-card__badge { display: inline-block; max-width: 100%; padding: 4px 7px; border-radius: 4px; background: var(--offer-tint); color: var(--offer-color); font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.coupon-card p { letter-spacing: 0; font-size: 13px; line-height: 1.6; }
.coupon-card__saving { margin: 4px 0; color: #314366; }
.coupon-card__description { margin: 0 0 14px; color: #738097; overflow-wrap: anywhere; }
.coupon-card__code-row { display: flex; min-width: 0; height: 36px; margin-bottom: 12px; }
.coupon-card__code-row code { display: flex; flex: 1; min-width: 0; align-items: center; padding: 0 10px; border: 1px dashed var(--offer-color); border-radius: 4px 0 0 4px; background: #fff; color: #172033; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coupon-card__code-row button { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; border: 1px solid var(--offer-color); border-radius: 0 4px 4px 0; background: var(--offer-color); color: #fff; font-size: 12px; font-weight: 600; }
.coupon-card__footer { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.coupon-card__expiry { display: inline-flex; align-items: center; gap: 6px; color: #738097; font-size: 11px; }
.coupon-card__expiry i { color: var(--offer-color); }
.coupon-use { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 34px; padding: 6px 14px; border-radius: 6px; background: var(--offer-color); color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; }
.coupon-use:hover, .coupon-use:focus { filter: brightness(.92); color: #fff; text-decoration: none; }
.coupon-empty { grid-column: 1 / -1; padding: 45px 20px; text-align: center; }
.coupon-empty > i { font-size: 36px; color: #9babc7; }
.coupon-empty h3 { margin: 15px 0 8px; font-size: 22px; }
.coupon-empty p { font-size: 14px; }
.coupon-pagination { display: flex; justify-content: center; margin-top: 28px; }
.coupon-toast { position: fixed; z-index: 1400; bottom: 24px; inset-inline-end: 20px; max-width: calc(100% - 40px); padding: 12px 18px; border-radius: 6px; background: #24324a; color: #fff; opacity: 0; pointer-events: none; transition: opacity .15s; }
.coupon-toast.is-visible { opacity: 1; }
.rtl .coupon-page { direction: rtl; text-align: right; }
.rtl .coupon-card__code-row code { border-radius: 0 4px 4px 0; }
.rtl .coupon-card__code-row button { border-radius: 4px 0 0 4px; }
.rtl .coupon-use .fa-arrow-right, .rtl .coupon-sort .fa-arrow-right { transform: rotate(180deg); }
@media (max-width: 991px) {
    .coupon-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .coupon-hero h1 { font-size: 36px; }
    .coupon-hero h2 { font-size: 20px; }
    .coupon-card { gap: 12px; padding: 16px; }
    .coupon-card__discount { flex-basis: 66px; width: 66px; }
    .coupon-card__icon { height: 66px; font-size: 30px; }
    .coupon-card__discount strong { font-size: 13px; }
}
@media (max-width: 767px) {
    .coupon-hero__inner { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding-block: 24px 12px; }
    .coupon-hero h1 { font-size: 32px; }
    .coupon-hero h2 { font-size: 19px; }
    .coupon-hero p { font-size: 13px; }
    .coupon-hero__image { align-self: center; flex: none; width: 240px; max-width: 100%; height: 150px; }
    .coupon-tabs { gap: 8px; margin-block: 18px 24px; }
    .coupon-tab { gap: 6px; padding: 7px; font-size: 11px; }
    .coupon-tab i { font-size: 14px; }
    .coupon-toolbar { align-items: flex-start; }
    .coupon-toolbar h2 { font-size: 21px; }
    .coupon-sort select { max-width: 125px; }
    .coupon-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .coupon-card { gap: 14px; }
    .coupon-card__code-row button { padding-inline: 9px; }
    .coupon-toast { bottom: 115px; }
}
@media (max-width: 359px) {
    .coupon-shell { width: calc(100% - 24px); }
    .coupon-card { gap: 10px; padding: 12px; }
    .coupon-card__discount { flex-basis: 56px; width: 56px; }
    .coupon-card__icon { height: 56px; }
    .coupon-card__discount strong { font-size: 12px; }
    .coupon-sort select { max-width: 106px; padding-inline: 6px; font-size: 11px; }
}
