.coupon-layout {
    display: grid;
    grid-template-columns:1fr 400px;
    gap: 2rem;
    align-items: start;
    font-size: 80px;
}

.coupon-hero-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    /*overflow: hidden;*/
    margin-bottom: 1.5rem;
}

.chc-header {
    /*display: none/;*/
    background: var(--gold-grad);
    padding: .1rem;
    text-align: center;
    color: #fff;
}
.hero-image{
    width:100%;
    height:320px;
    object-fit:cover;
    border-radius:16px 16px 0 0;
    object-position:center;
}

.chc-logo {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    margin-top: 1px;
}

.chc-store {
    font-size: 1.2rem;
    font-weight: 700;
}

.chc-discount {
    
    /*display: inline-block;*/
    /*display: none/;*/
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.25);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1rem;
}

.chc-body {
    padding: 1.5rem 2rem;
}

.chc-title {
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: 0.8rem;
}

.chc-desc {
    color: var(--muted);
    font-size: 1.2rem;
    line-height: 1.7;
}

.chc-expiry {
    font-size: 2rem;
    color: var(--muted);
    margin-top: 0.8rem;
    margin-bottom: 0.8rem;
}

.chc-expiry span {
    color: var(--primary);
}

.section-title {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--surface-2);
}

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

.img-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.2s;
    background: var(--surface);
    border: 1px solid var(--border);
}

.img-card:hover {
    transform: translateY(-4px);
}

.img-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.img-caption {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.coupon-sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.2rem;
    font-size: 35px;
}

.sidebar-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--surface-2);
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.5rem;
}

.info-table td {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.info-table td:first-child {
    color: var(--muted);
    width: 40%;
}

#img-overlay {
    display: none;
}

#img-overlay.open {
    display: flex !important;
}

@media (max-width: 768px) {
    .coupon-layout {
        grid-template-columns:minmax(0, 1fr);
    }

    .coupon-sidebar {
        position: static;
    }

    .images-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .coupon-layout {
        grid-template-columns:minmax(0, 1fr);
    }

    .coupon-sidebar {
        position: static;
    }

    .images-grid {
        grid-template-columns: 1fr 1fr;
    }
}


.chc-header {
    position: relative;
    /*height: 300px;*/
    aspect-ratio: 16 / 6;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b42828;
}

.bg-slider {
    position: absolute;
    inset: 0;
}

.slide {
    position: absolute;
    inset: 0;

    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease;
    transform: scale(1.05);
}

.slide.active {
    opacity: 1;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
            rgba(0, 0, 0, .15),
            rgba(0, 0, 0, .15)
    );
}

.header-content {
    padding: 5px;
    display: none;
    /*position: relative;*/
    z-index: 2;
    /*text-align: center;*/
}

.chc-logo {
    width: 90px;
    height: 90px;
    padding: 25px;
    border-radius: 18px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: auto;
    color: #000;
}

.chc-store {
    margin-top: 15px;
    font-size: 34px;
    font-weight: 700;
}

.chc-discount {
    margin-top: 10px;
    display: inline-block;
    padding: 8px 18px;
    border-radius: 30px;
    background: #ffd400;
    color: #222;
    font-weight: bold;
}


.sidebar-list{
    font-size: 1.2rem;
    line-height: 25px;
    /*color: chocolate;*/
}

@media (max-width: 550px) {
    .coupon-layout {
        grid-template-columns:minmax(0, 1fr);
    }
    .chc-header{
        aspect-ratio:16/9;
        width:100%;
    }
    .chc-store{
        color: cornflowerblue;
        text-align: right;
    }
    .header-content{
        display: none;
        font-size: 10px;
        padding: 1px;
    }
    .chc-desc{
        background-color: coral;
        padding: 1PX;
    }
    .chc-logo {
        font-size: 1.2rem;
    }

    .coupon-sidebar {
        position: static;
    }

    .images-grid {
        grid-template-columns: 1fr 1fr;
    }
}