:root {
    --primary-color: #002e5b;
    --secondary-color: #004080;
    --accent-red: #ff4d4d;
    --accent-blue: #007bff;
    --text-color: #333;
    --text-muted: #777;
    --bg-color: #ffffff;
    --white: #ffffff;
    --border-color: #eeeeee;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-lg: 12px;
    --radius-md: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Outfit", sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

.container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Section */
.deals-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.deals-header h1 {
    font-size: 45px;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.deals-header p {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    font-weight: 400;
}

@media (max-width: 992px) {
    .deals-header h1 {
        font-size: 36px;
    }

    .deals-header p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .deals-header {
        padding: 60px 0;
    }

    .deals-header h1 {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .deals-header h1 {
        font-size: 24px;
    }

    .deals-header p {
        font-size: 16px;
    }
}

.container-second {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container-second {
        margin: 20px auto;
    }
}

/* Layout */
.voucher-layout {
    display: flex;
    gap: 30px;
}

@media (max-width: 992px) {
    .voucher-layout {
        flex-direction: column;
    }
}

/* Sidebar */
.sidebar {
    width: 280px;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .sidebar {
        width: 100%;
    }
}

.sidebar-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.sidebar-card h3 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clear-all {
    font-size: 12px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 400;
}

.search-box {
    position: relative;
    margin-bottom: 24px;
}

.search-box input {
    width: 100%;
    padding: 10px 40px 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.search-box button {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.categories-list {
    list-style: none;
}

.categories-list li {
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Main Content */
.main-content {
    flex-grow: 1;
}

.top-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .top-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.small-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.small-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    display: flex;
    padding: 15px;
    gap: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.small-card-img {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.small-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-badge-mini {
    position: absolute;
    top: 10px;
    left: 10px;
    background: white;
    padding: 4px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.brand-badge-mini img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.small-card-info h4 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 500;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.old-price {
    text-decoration: line-through;
    color: var(--accent-red);
    font-size: 12px;
}

.new-price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
}

.validity {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.view-deal-btn {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

@media (max-width: 480px) {
    .small-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .small-card-img {
        width: 100%;
        max-width: 250px;
        height: 180px;
    }
}

/* Large Card */
.large-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.large-card-main {
    display: flex;
    padding: 30px;
    gap: 30px;
}

.large-card-img {
    width: 220px;
    height: 180px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.large-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.large-card-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.large-card-info .desc {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 15px;
}

.large-card-footer {
    border-top: 1px solid var(--border-color);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}

.brand-logo-large {
    height: 35px;
}

.brand-logo-large img {
    height: 100%;
    max-width: 120px;
    object-fit: contain;
}

.user-count {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-muted);
}

.avatars {
    display: flex;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -10px;
    overflow: hidden;
}

.avatar:first-child {
    margin-left: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-actions {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
}

.card-actions i {
    cursor: pointer;
    font-size: 20px;
}

@media (max-width: 768px) {
    .large-card-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .large-card-img {
        width: 100%;
        max-width: 350px;
        height: 220px;
    }

    .large-card-footer {
        flex-direction: column;
        gap: 25px;
        padding: 25px 20px;
    }

    .brand-info,
    .user-count,
    .card-actions {
        width: 100%;
        justify-content: center;
    }
}

/* Pagination */
.pagination-wrapper {
    margin: 50px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pagination-wrapper nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.pagination-wrapper .pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    flex-wrap: wrap;
    padding: 0;
}

.pagination-wrapper .page-item a,
.pagination-wrapper .page-item span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    color: var(--primary-color);
    background: white;
    font-size: 14px;
}

.pagination-wrapper .page-item.active span {
    background: var(--primary-color);
    color: white;
}

@media (max-width: 576px) {
    .pagination-wrapper .page-item a,
    .pagination-wrapper .page-item span {
        min-width: 35px;
        height: 35px;
        font-size: 13px;
    }
}

.heart-btn.active {
    color: var(--accent-red) !important;
}

.section-heading {
    font-size: 28px;
    font-weight: 600;
    margin: 40px 0 25px;
}

@media (max-width: 576px) {
    .section-heading {
        font-size: 22px;
        text-align: center;
    }
}

.badge-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.badge {
    background: #f0f4f8;
    color: #446084;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.promo-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.promo-banner > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 48, 102, 0.9);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
