
/* Additional styles for deals page */
.deals-hero {
    background: linear-gradient(135deg, var(--primary-color), #333);
    color: white;
    padding: 6rem 0 4rem;
}

.deals-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
}

.deals-hero p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 0;
    font-weight: 600;
}

.filters-section {
    background: white;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    top: 0;
    z-index: 100;
}

.filter-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
}

.filter-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.filter-checkbox:hover {
    background: var(--light-gray);
}

.filter-checkbox input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.filter-checkbox label {
    cursor: pointer;
    margin: 0;
    font-weight: 500;
    color: var(--charcoal);
}

.deals-grid {
    padding: 2rem 0;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-count {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 500;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.view-toggle {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.view-toggle button {
    padding: 0.5rem 1rem;
    border: none;
    background: white;
    color: #6c757d;
    cursor: pointer;
    transition: var(--transition);
}

.view-toggle button.active {
    background: var(--primary-color);
    color: white;
}

.deal-item {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    margin-bottom: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.deal-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.deal-image {
    position: relative;
    height: auto;
    overflow: hidden;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.deal-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}



.deal-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, var(--primary-color), #333);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

.deal-content {
    padding: 0.8rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.store-name {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.deal-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.deal-description {
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    flex-grow: 1;
}

.deal-meta {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
}

.deal-savings {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.deal-expiry {
    font-size: 0.875rem;
    color: #dc3545;
    font-weight: 600;
}

.deal-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-get-deal {
    background: var(--secondary-dark);
    border: none;
    color: white;
    padding: 0.7rem 1.3rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-get-deal:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 22, 22, 0.3);
}

.pagination-wrapper {
    padding: 3rem 0 2rem;
    text-align: center;
}

.pagination .page-link {
    border: none;
    color: var(--charcoal);
    font-weight: 600;
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: var(--transition);
}

.pagination .page-link:hover {
    background: var(--primary-color);
    color: white;
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.filter-mobile-toggle {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: var(--shadow-hover);
    z-index: 1000;
}

.no-deals {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.no-deals i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #dee2e6;
}

.clear-filters {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 1rem;
    cursor: pointer;
}

.clear-filters:hover {
    background: var(--secondary-color);
    color: white;
}

.filter-quick {
    cursor: pointer;
}

.filter-quick.active {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

/* List View Styles */
.deals-list-view .deal-item {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.deals-list-view .deal-image {
    width: 250px;
    flex-shrink: 0;
}

.deals-list-view .deal-content {
    padding: 1.5rem;
    flex: 1;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .filter-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        z-index: 1050;
        overflow-y: auto;
        padding: 2rem;
    }
    
    .filter-sidebar.show {
        display: block;
    }
    
    .filter-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .deals-hero {
        padding: 2rem 0 1rem;
    }
    
    .deals-hero h1 {
        font-size: 2rem;
    }
    
    .filters-section {
        padding: 1rem 0;
    }
    
    .results-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .deals-list-view .deal-item {
        flex-direction: column;
    }
    
    .deals-list-view .deal-image {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 576px) {
    .deal-actions {
        flex-direction: column;
    }
    
    .btn-get-deal {
        width: 100%;
    }
    
    
    
    .sort-controls {
        flex-direction: column;
        width: 100%;
    }
    
    .view-toggle {
        width: 100%;
    }
    
    .view-toggle button {
        flex: 1;
    }
}

/* Pulse animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Custom notification styles */
.custom-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    border: none;
    font-weight: 600;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}



/* Hero Section */
.coupons-hero {
    background: linear-gradient(135deg, var(--primary-color), #333);
    padding-top: 2.5rem;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 2rem;
}

/* Section Styles */
.coupons-section {
    padding: 4rem 0;
}

.coupons-section.bg-light {
    background-color: var(--light-gray);
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-subtitle {
    color: #6c757d;
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Updated Coupon Card Design */
.coupon-card {
    background: white;
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.coupon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(255, 111, 0, 0.05) 100%);
    opacity: 0;
    transition: var(--transition);
}

.coupon-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.coupon-card:hover::before {
    opacity: 1;
}

/* Deal Header */
.deal-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #dee2e6;
    position: relative;
    z-index: 2;
}

.deal-source {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 600;
    margin: 0;
}

/* Product Section */
.product-section {
    padding: 0.5rem;
    flex-grow: 1;
    display: flex;
    position: relative;
    z-index: 2;
}

.product-image {
    flex-shrink: 0;
    margin-right: 1.5rem;
}

.product-section1 {
    padding: 0.5rem 1rem;
    display: flex;
    position: relative;
    z-index: 2;
    align-content: center;
    flex-direction: column;
}

.product-image1 {
    width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
}


.product-img1 {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    
}
.product-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

.product-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.price-section {
    margin-bottom: 1rem;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-right: 0.75rem;
}

.original-price {
    font-size: 1.1rem;
    color: #6c757d;
    text-decoration: line-through;
    margin-right: 0.75rem;
}

.discount-badge {
    background: linear-gradient(135deg, var(--primary-color), #333);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    display: inline-block;
}

.shopping-tip {
    background: var(--primary-light);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem;
    margin-bottom: 1rem;
    width: 150px;
}

.shopping-tip-icon {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.shopping-tip-text {
    font-size: 0.875rem;
    color: var(--primary-dark);
    font-weight: 600;
    margin: 0;
}

.product-link {
    color: var(--charcoal);
    text-decoration: underline;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Footer Section */
.coupon-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #dee2e6;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.expiry-section {
    display: flex;
    flex-direction: column;
}

.expiry-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.expiry-date {
    font-size: 0.9rem;
    color: #dc3545;
    font-weight: 700;
}

.deal-button {
    background: var(--secondary-color);
    border: none;
    font-weight: 700;
    transition: var(--transition);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 2rem;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    color: #fff !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

.deal-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: var(--primary-color);
    color: #fff;
}

.deal-button i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.deal-button:hover i {
    transform: translateX(3px);
}



/* Responsive Design */
@media (max-width: 768px) {
    .product-section {
        flex-direction: column;
        padding: 1rem;
    }

    .product-image {
        align-self: center;
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .coupon-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem;
    }

    .deal-button {
        width: 100%;
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    .coupons-hero {
        padding-top: 2.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .coupons-section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .coupon-card {
        padding: 1.5rem;
    }

    .coupon-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .coupon-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .brand-logo, .category-icon img {
        width: 100%;
        height: auto;
        
    }
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.coupon-btn{
    background: var(--secondary-dark);
    border: none;
    font-weight: 600;
    transition: var(--transition);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    color: #fff !important;
    text-decoration: none !important;
}

.coupon-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: var(--primary-color);
    transition: var(--transition);
    color: #fff;
}

.breadcrumb-item, a{
    color: var(--charcoal);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
}


.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.brand-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #000;
    transition: transform 0.2s ease;
}

.brand-item:hover {
    transform: translateY(-2px);
}

.brand-logo {
    width: 60px;
    height: 60px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.brand-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.brand-name {
    font-family: 'Arial', sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
}

.brand-arrow {
    margin-left: 5px;
    font-size: 16px;
}

/* Responsive design */
@media (max-width: 768px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px 15px;
    }
    
    .brand-logo {
        width: 50px;
        height: 50px;
    }
    
    .brand-logo img {
        width: 50px;
        height: 50px;
    }
    
    .brand-name {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .brands-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .brands-section {
        padding: 30px 15px;
    }
}