.discount-shop-page {
    --brand-primary: #00a65a;
    --brand-primary-dark: #008f4d;
    --brand-primary-soft: #e8f8ef;
    --brand-primary-softer: #f4fcf8;
    --brand-ink: #1f2f3d;
    --brand-card: #ffffff;
    font-family: "Trebuchet MS", "Noto Sans Myanmar", "Gill Sans", sans-serif;
    color: var(--brand-ink);
}

.title-only {
    margin-bottom: 0.9rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid #d5efe2;
}

.title-only h2 {
    margin: 0;
    /* font-size: clamp(1.1rem, 2.4vw, 1.8rem); */
    font-weight: 800;
    line-height: 1.4;
    color: var(--brand-primary-dark);
}

.discount-filter {
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
    background: #ffffff;
    border: 1px solid #d4e4dc;
    margin-bottom: 1.4rem;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #42515d;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0;
    white-space: nowrap;
}

.filter-select {
    flex: 1;
    min-width: 130px;
    height: 36px;
    border: 1px solid #c9d7d0;
    border-radius: 8px;
    padding: 0 0.72rem;
    background: #fff;
    color: #2d3d4d;
    outline: none;
    font-size: 0.86rem;
}

.filter-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(0, 166, 90, 0.16);
}

.filter-btn {
    border: 0;
    border-radius: 8px;
    height: 36px;
    padding: 0 0.95rem;
    background: var(--brand-primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.filter-btn:hover {
    background: var(--brand-primary-dark);
}

.clear-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    height: 36px;
    padding: 0 0.75rem;
    border: 1px solid #c6d8cf;
    border-radius: 8px;
    font-size: 0.8rem;
    text-decoration: none;
    color: var(--brand-primary-dark);
    background: #fff;
}

.clear-filter:hover {
    color: #00703d;
    border-color: var(--brand-primary);
    background: var(--brand-primary-softer);
}

.discount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 0.9rem;
}

.shop-link {
    text-decoration: none;
    color: inherit;
}

.discount-card {
    background: var(--brand-card);
    border: 1px solid #ececec;
    border-radius: 18px;
    padding: 0.72rem;
    height: 100%;
    box-shadow: 0 8px 22px rgba(31, 47, 61, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    animation: couponRise 0.45s ease both;
    animation-delay: var(--delay, 0s);
}

.discount-card:hover {
    transform: translateY(-6px);
    border-color: #9fe1bf;
    box-shadow: 0 16px 30px rgba(0, 166, 90, 0.2);
}

.discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.58rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    background-color: var(--brand-primary-soft);
    color: var(--brand-primary-dark);
    margin-bottom: 0.7rem;
}

.card-photo {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    border: 1px solid #edf2f7;
    background: #f6f8fb;
}

.card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.discount-card:hover .card-photo img {
    transform: scale(1.05);
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, #e8f8ef, #f4fcf8);
    color: var(--brand-primary);
    font-size: 1.25rem;
    margin-bottom: 0.65rem;
}

.discount-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.45;
    color: #263645;
}

.discount-card p {
    margin-bottom: 0.85rem;
    color: #5b6875;
    font-size: 0.83rem;
    min-height: 2.4rem;
}

.clamp-1,
.clamp-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.clamp-1 {
    -webkit-line-clamp: 1;
    line-clamp: 1;
}

.clamp-2 {
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.detail-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--brand-primary-dark);
    letter-spacing: 0.02em;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    background: #fff;
    border: 1px dashed #d8e2ec;
    border-radius: 18px;
    padding: 2rem 1rem;
}

.empty-icon {
    font-size: 2rem;
    color: #bac7d4;
    margin-bottom: 0.55rem;
}

.empty-state h3 {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
    color: #31404f;
}

.empty-state p {
    color: #667585;
    margin-bottom: 0.85rem;
}

.empty-state a {
    color: var(--brand-primary-dark);
    text-decoration: none;
    font-weight: 700;
}

.empty-state a:hover {
    text-decoration: underline;
}

.pagination-wrap {
    margin-top: 1.15rem;
    display: flex;
    justify-content: center;
}

.pagination-wrap .pagination {
    margin-bottom: 0;
    gap: 0.35rem;
}

.pagination-wrap .page-link {
    border: 1px solid #dee8f2;
    border-radius: 10px !important;
    color: #506070;
}

.pagination-wrap .page-item.active .page-link {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}

@keyframes couponRise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-select,
    .filter-btn,
    .clear-filter {
        width: 100%;
    }

    .filter-btn {
        justify-content: center;
    }

    .clear-filter {
        justify-content: center;
    }

    .discount-card p {
        min-height: auto;
    }
}
