:root {
    --primary-blue: #00aeef;
    --text-dark: #333333;
    --text-muted: #666666;
    --bg-light: #f9fafb;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body {
    background-color: var(--bg-light);
    font-family: "Poppins", sans-serif;
}

.brands-page {
    /* padding: 40px 0; */
}

.brand-hero {
    height: auto;
    min-height: 120px;
    width: 100%;
    background-color: #e6f7fd;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 1rem;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.brand-hero-img {
    max-width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
}

@media (min-width: 768px) {
    .brand-hero {
        height: 160px;
        justify-content: flex-end;
        align-items: flex-end;
        padding: 0 8% 0 0;
    }

    .brand-hero-img {
        max-height: 140px;
    }
}

@media (min-width: 1024px) {
    .brand-hero {
        height: 200px;
    }

    .brand-hero-img {
        max-height: 180px;
    }
}

.brands-container {
    display: flex;
    gap: 30px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sidebar Styling */
.sidebar {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid #eee;
}

.sidebar-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

/* Today's Top Offers */
.top-offers-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.top-offers-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-dark);
}

.top-offers-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 8px;
    height: 8px;
    background-color: var(--primary-blue);
    border-radius: 50%;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 12px;
}

.stats-label {
    color: var(--text-muted);
}

.stats-value {
    font-weight: 600;
    color: var(--text-dark);
}

/* Dropdown styling */
.select-wrapper {
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.sidebar-select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #00aeef;
    background-color: #fff;
    color: var(--text-dark);
    font-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2300AEEF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    cursor: pointer;
}

/* Main Content Styling */
.brands-grid-section {
    flex: 1;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px 20px;
    margin-top: 20px;
}

@media (min-width: 1200px) {
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.brand-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    border: none;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    margin-top: 30px;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.brand-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 5px;
}

.brand-logo-box {
    position: absolute;
    top: -30px;
    left: 1px;
    width: 80px;
    height: 80px;
    background-color: var(--primary-blue);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-shadow: 0 6px 20px rgba(0, 174, 239, 0.2);
    z-index: 2;
}

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

.brand-info {
    margin-left: 95px;
    min-height: 50px;
    display: flex;
    align-items: center;
}

.brand-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.coupon-count {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-top: 10px;
    margin-bottom: 20px;
}

.show-coupons-btn {
    margin-top: auto;
    background-color: var(--primary-blue);
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
    width: 100%;
}

.show-coupons-btn:hover {
    background-color: #009bd6;
}

/* Responsive */
@media (max-width: 992px) {
    .brands-container {
        flex-direction: column;
    }

    .sidebar {
        flex: none;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 600px) {
    .sidebar {
        grid-template-columns: 1fr;
    }

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