/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #0F172A;
    background-color: #F8FAFC;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: #0D9488;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: #FFFFFF;
}

.logo h1 {
    color: #0F172A;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.search-container {
    flex: 1;
    max-width: 500px;
    margin: 0 2rem;
}

.search-bar {
    position: relative;
    background: #F8FAFC;
    border-radius: 25px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.search-bar:hover {
    background: #F1F5F9;
    border-color: #E5E7EB;
}

.search-bar:focus-within {
    background: white;
    border-color: #0D9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.search-bar i {
    color: #6B7280;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-bar:hover i {
    color: #0D9488;
}

.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 1rem;
    color: #0F172A;
}

.search-bar input::placeholder {
    color: #6B7280;
}

/* Loading spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border: 1px solid #e1e5e9;
    z-index: 1000;
    max-height: 500px;
    overflow-y: auto;
    display: none;
    margin-top: 8px;
    min-width: 1200px;
    width: max-content;
}

.search-dropdown.show {
    display: block;
    animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Trending Section */
.trending-section {
    padding: 1.5rem;
}

.trending-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #0D9488;
    font-weight: 600;
}

.trending-header i {
    font-size: 1.1rem;
}

.trending-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #E5E7EB;
}

.trending-item:hover {
    background-color: #F8FAFC;
    border-color: #E5E7EB;
    transform: translateY(-1px);
}

.trending-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #F8FAFC;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trending-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.trending-logo i {
    color: #6B7280;
    font-size: 1rem;
}

.trending-content {
    flex: 1;
    min-width: 0;
}

.trending-store {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 0.25rem;
}

.trending-offer {
    font-size: 0.85rem;
    color: #6B7280;
    line-height: 1.4;
}

/* Search Results Layout */
.search-results {
    display: flex;
    min-height: 200px;
}

.search-results-left {
    flex: 4;
    padding: 1.5rem;
    border-right: 1px solid #E5E7EB;
}

.search-results-center {
    flex: 2;
    padding: 1.5rem;
    border-right: 1px solid #E5E7EB;
}

.search-results-right {
    flex: 2;
    padding: 1.5rem;
}

.section-header {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Offers Section */
.offer-result {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 0.75rem;
    border: 1px solid #E5E7EB;
}

.offer-result:hover {
    background-color: #F8FAFC;
    border-color: #E5E7EB;
}

.offer-result-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: #F8FAFC;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.offer-result-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.offer-result-logo i {
    color: #6B7280;
    font-size: 1.4rem;
}

.offer-result-content {
    flex: 1;
    min-width: 0;
}

.offer-result-store {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 0.25rem;
}

.offer-result-title {
    font-size: 0.85rem;
    color: #6B7280;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.offer-result-details {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #6B7280;
}

.offer-result-discount {
    font-weight: 600;
    color: #0D9488;
}

.offer-result-expiry {
    color: #6B7280;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 2rem 1rem;
    color: #6B7280;
}

.no-results-icon {
    font-size: 2rem;
    color: #E5E7EB;
    margin-bottom: 1rem;
}

.no-results-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #0F172A;
}

.no-results-suggestions {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 1rem;
}

.no-results-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.no-results-suggestions li {
    margin-bottom: 0.25rem;
}

.no-results-suggestions li:before {
    content: "•";
    color: #0D9488;
    margin-right: 0.5rem;
}

/* Brands and Categories */
.brand-item, .category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.75rem;
    border: 1px solid #E5E7EB;
}

.brand-item:hover, .category-item:hover {
    background-color: #F8FAFC;
    border-color: #E5E7EB;
    transform: translateY(-1px);
}

.brand-name, .category-name {
    font-size: 0.9rem;
    color: #0F172A;
    font-weight: 600;
    flex: 1;
}

.brand-count, .category-count {
    font-size: 0.8rem;
    color: #0D9488;
    font-weight: 700;
    background: #F0FDFA;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

.no-items {
    text-align: center;
    padding: 1rem;
    color: #6B7280;
    font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-dropdown {
        min-width: 100%;
        left: 0;
        right: 0;
        transform: none;
    }
    
    .search-results {
        flex-direction: column;
    }
    
    .search-results-left {
        border-right: none;
        border-bottom: 1px solid #E5E7EB;
    }
    
    .search-results-center {
        border-right: none;
        border-bottom: 1px solid #E5E7EB;
    }
    
    .trending-grid {
        grid-template-columns: 1fr;
    }
    
    /* Hide header nav links on mobile */
    .header-nav-links {
        display: none;
    }
    
    /* Show mobile nav on mobile */
    .main-nav.mobile-only {
        display: block;
    }
    
    /* Adjust auth buttons for mobile */
    .header-actions {
        gap: 1rem;
    }
    
    .header-actions::before {
        display: none;
    }
    
    .auth-buttons {
        gap: 0.5rem;
    }
    
    .auth-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .signup-btn {
        padding: 0.5rem 1.1rem;
    }
    
    .notification-icon {
        display: none;
    }
}

@media (max-width: 1400px) {
    .search-dropdown {
        min-width: 1000px;
    }
}

@media (min-width: 1600px) {
    .search-dropdown {
        min-width: 1400px;
    }
}

@media (max-width: 1200px) {
    .search-dropdown {
        min-width: 800px;
    }
}

@media (max-width: 1024px) {
    .search-dropdown {
        min-width: 600px;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    position: relative;
}

.header-actions::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 30px;
    background: linear-gradient(180deg, transparent, #E2E8F0, transparent);
}

.header-nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0 0.5rem;
}

.header-nav-link {
    text-decoration: none;
    color: #0F172A;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.header-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0D9488, #0F766E);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.header-nav-link:hover {
    color: #0D9488;
}

.header-nav-link:hover::after {
    width: 100%;
}

.header-nav-link.active {
    color: #0D9488;
    font-weight: 600;
}

.header-nav-link.active::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-left: 0.5rem;
}

.auth-btn {
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.signin-btn {
    background: #FFFFFF;
    color: #0F172A;
    border: 1.5px solid #E2E8F0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.signin-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.05), transparent);
    transition: left 0.5s ease;
}

.signin-btn:hover {
    background: #F8FAFC;
    border-color: #0D9488;
    color: #0D9488;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
}

.signin-btn:hover::before {
    left: 100%;
}

.signup-btn {
    background: linear-gradient(135deg, #0D9488 0%, #0F766E 100%);
    color: white;
    border: 1.5px solid transparent;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

.signup-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.signup-btn:hover {
    background: linear-gradient(135deg, #0F766E 0%, #0D9488 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
}

.signup-btn:hover::before {
    left: 100%;
}

.signup-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

.notification-icon {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
}

.notification-icon:hover {
    background: #F0FDFA;
}

.notification-icon i {
    font-size: 1.2rem;
    color: #0F172A;
    transition: color 0.3s ease;
}

.notification-icon:hover i {
    color: #0D9488;
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: linear-gradient(135deg, #0D9488 0%, #0F766E 100%);
    color: #FFFFFF;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.4);
    border: 2px solid #FFFFFF;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 6px rgba(13, 148, 136, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 2px 10px rgba(13, 148, 136, 0.6);
    }
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-link {
    text-decoration: none;
    color: #0F172A;
    font-weight: 500;
    font-size: 0.9rem;
}

.auth-link:hover {
    color: #0D9488;
}

.auth-link.admin-link {
    background: #0D9488;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-link.admin-link:hover {
    background: #0F766E;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
    color: white !important;
}

.auth-separator {
    color: #E5E7EB;
    font-size: 0.9rem;
}

/* Main Navigation */
.main-nav {
    background: #F8FAFC;
    border-top: 1px solid #E5E7EB;
    position: relative;
}

.main-nav.mobile-only {
    display: none;
}

.main-nav .container {
    position: relative;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    cursor: pointer;
    padding: 0;
    margin: 1rem 0;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: #0F172A;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links {
    display: flex;
    gap: 2rem;
    padding: 0.75rem 0;
    overflow-x: auto;
}

.nav-link {
    text-decoration: none;
    color: #0F172A;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #0D9488;
}

/* Live Coupons Header Bar */
.live-coupons-bar {
    background: #0F766E;
    padding: 0.75rem 0;
    color: white;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
}

.live-coupons-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.live-coupons-text {
    color: white;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #10B981;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    height: 450px;
    overflow: hidden;
    background: #F8FAFC;
    padding: 0;
    box-sizing: border-box;
}

.hero-carousel .container {
    height: 100%;
    padding: 0 20px;
    margin: 0 auto;
    max-width: 1400px;
    box-sizing: border-box;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100% !important;
    min-height: 100% !important;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100% !important;
    min-height: 100% !important;
    box-sizing: border-box;
}

.carousel-slide {
    min-width: 100%;
    width: 100%;
    height: 100% !important;
    min-height: 100% !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    box-sizing: border-box;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}

/* Modern Banner Design (Two-Column Layout) */
.modern-banner {
    border-radius: 12px;
    overflow: hidden;
}

.modern-banner-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
    padding: 2rem;
    gap: 2rem;
    position: relative;
}

.modern-banner-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.modern-banner-logo {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #0F172A;
    margin-bottom: 1.5rem;
}

.modern-banner-logo img {
    max-width: 120px;
    max-height: 60px;
    object-fit: contain;
}

.modern-banner-sale-text {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #1E293B;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.modern-banner-image-left {
    margin-top: auto;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
}

.modern-banner-image-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modern-banner-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.modern-banner-image-right {
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
    position: relative;
}

.modern-banner-image-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modern-banner-badge {
    position: absolute;
    bottom: 60px;
    left: 1rem;
    background: #1E293B;
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modern-banner-extra {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modern-banner-code {
    background: rgba(30, 41, 59, 0.9);
    border: 2px solid white;
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-align: center;
    max-width: fit-content;
}

/* Responsive Design for Modern Banners */
@media (max-width: 968px) {
    .modern-banner-content {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .modern-banner-sale-text {
        font-size: 2.5rem;
    }
    
    .modern-banner-image-left,
    .modern-banner-image-right {
        height: 180px;
    }
    
    .modern-banner-badge {
        position: relative;
        bottom: auto;
        left: auto;
        display: inline-block;
        margin-bottom: 1rem;
    }
}

@media (max-width: 640px) {
    .modern-banner-content {
        padding: 1rem;
        gap: 1rem;
    }
    
    .modern-banner-logo {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .modern-banner-logo img {
        max-width: 80px;
        max-height: 40px;
    }
    
    .modern-banner-sale-text {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .modern-banner-image-left,
    .modern-banner-image-right {
        height: 150px;
    }
    
    .modern-banner-extra {
        font-size: 0.95rem;
    }
    
    .modern-banner-code {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
    
    .live-coupons-bar {
        font-size: 0.85rem;
        padding: 0.5rem 0;
    }
    
    .live-badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1); /* Reduced from 0.4 to 0.1 for less dullness */
    z-index: 1;
}

/* Enhance banner image brightness and vibrancy */
.carousel-slide img {
    filter: brightness(1.1) contrast(1.1) saturate(1.15);
    transition: filter 0.3s ease;
}

.carousel-slide:hover img {
    filter: brightness(1.15) contrast(1.15) saturate(1.2);
}

.carousel-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
}

.carousel-logo {
    width: 90px;
    height: 90px;
    background: white;
    border-radius: 10px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.carousel-logo img {
    max-width: 70px;
    max-height: 70px;
    object-fit: contain;
}

.carousel-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.carousel-btn {
    background: #0D9488;
    color: #FFFFFF;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.carousel-btn:hover {
    background: #0F766E;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.4);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 3;
}

.carousel-nav:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 20px;
}

.carousel-nav.next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #0D9488;
    transform: scale(1.2);
}

/* Hero Features Section */
.hero-features {
    background: #fff;
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
}

.features-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    max-width: 300px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #0D9488;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(13, 148, 136, 0.3);
}

.feature-icon i {
    font-size: 1.5rem;
    color: #FFFFFF;
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.feature-subtitle {
    font-size: 0.9rem;
    color: #6B7280;
    font-weight: 400;
}

/* Separator dots between features */
.feature-card:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #E5E7EB;
    border-radius: 50%;
}

/* Responsive Design for Hero Features */
@media (max-width: 1024px) {
    .features-grid {
        gap: 2rem;
    }
    
    .feature-card {
        max-width: 250px;
    }
    
    .feature-title {
        font-size: 1rem;
    }
    
    .feature-subtitle {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .hero-features {
        padding: 1.5rem 0;
    }
    
    .features-grid {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .feature-card {
        max-width: 100%;
        justify-content: center;
    }
    
    .feature-card:not(:last-child)::after {
        display: none;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .feature-icon i {
        font-size: 1.2rem;
    }
    
    .feature-title {
        font-size: 1rem;
    }
    
    .feature-subtitle {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-features {
        padding: 1rem 0;
    }
    
    .features-grid {
        gap: 1rem;
    }
    
    .feature-card {
        gap: 0.75rem;
    }
    
    .feature-icon {
        width: 45px;
        height: 45px;
    }
    
    .feature-icon i {
        font-size: 1rem;
    }
    
    .feature-title {
        font-size: 0.9rem;
    }
    
    .feature-subtitle {
        font-size: 0.8rem;
    }
}

/* Search Section */
.search-section {
    background: white;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-section .search-bar {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.search-section .search-bar:hover {
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    border-color: #ddd;
}

.search-section .search-bar:focus-within {
    border-color: #0D9488;
    box-shadow: 0 6px 25px rgba(13, 148, 136, 0.2);
}

.search-section .search-bar input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1rem;
    outline: none;
    background: white;
}

.search-section .search-bar button {
    background: #0D9488;
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-section .search-bar button:hover {
    background: #0F766E;
    transform: scale(1.05);
}

/* Categories */
.categories {
    padding: 3rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.categories h3 {
    font-size: 2rem;
    color: #0F172A;
    margin: 0;
}

.view-all-btn {
    background: #0D9488;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
    border: none;
    display: inline-block;
    cursor: pointer;
}

.view-all-btn:visited {
    color: white;
}

.view-all-btn:hover {
    background: #0F766E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
    color: white;
    text-decoration: none;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.category-card i {
    font-size: 2.5rem;
    color: #0D9488;
    margin-bottom: 1rem;
    display: block;
}

.category-card img {
    width: 100%;
    max-width: 80px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    margin: 0 auto 1rem;
    display: block;
}

.category-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0F172A;
    margin-top: 0.5rem;
}

/* Top Offers - no min-height so no gap before Featured Category */
.top-offers {
    padding: 4rem 0;
    background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
    position: relative;
}

.top-offers::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #E2E8F0, transparent);
}

.top-offers .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.top-offers .section-header h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #0F172A;
}

/* Top Offers Page Header */
.top-offers-header {
    text-align: center;
    margin-bottom: 3.5rem;
    padding: 3rem 0 2rem;
    position: relative;
}

.top-offers-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, #0D9488, #14B8A6, #0D9488);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}

.top-offers-header::after {
    content: '✨';
    position: absolute;
    top: -10px;
    left: calc(50% - 60px);
    font-size: 1.5rem;
    opacity: 0.6;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.top-offers-header .header-content-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1rem;
}

.top-offers .page-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 1.25rem 0;
    line-height: 1.2;
    background: linear-gradient(135deg, #0F172A 0%, #0D9488 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.top-offers .page-subtitle {
    font-size: 1.15rem;
    color: #64748B;
    margin: 0;
    line-height: 1.7;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile Offers Carousel */
.mobile-offers-carousel {
    display: none;
    position: relative;
    background: white;
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.mobile-carousel-container {
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.mobile-carousel-track {
    display: flex;
    transition: transform 0.3s ease;
    will-change: transform;
}

.mobile-carousel-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 0.5rem;
}

.mobile-carousel-slide .offer-card,
.mobile-carousel-slide .featured-coupon-card {
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-carousel-slide .offer-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mobile-carousel-slide .get-deal-btn,
.mobile-carousel-slide .featured-reveal-btn {
    margin-top: auto;
}

.mobile-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mobile-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-carousel-dot.active {
    background: #0D9488;
    transform: scale(1.2);
}

.mobile-carousel-nav {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.mobile-carousel-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #333;
}

.mobile-carousel-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.mobile-carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.mobile-carousel-btn.prev {
    margin-left: 0.5rem;
}

.mobile-carousel-btn.next {
    margin-right: 0.5rem;
}

/* Legacy h3 styling - keep for backward compatibility but override for page title */
.top-offers h3:not(.page-title) {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #0F172A;
}

/* Ensure top-offers page uses the new card design */
.top-offers .offers-grid .featured-coupon-card,
#allTopOffersGrid .featured-coupon-card {
    background: white !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    display: flex !important;
    flex-direction: column !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.top-offers .offers-grid .featured-coupon-card:hover,
#allTopOffersGrid .featured-coupon-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
}

/* New Card Design - Image at Bottom */
.featured-coupon-card.new-design {
    background: white !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    display: flex !important;
    flex-direction: column !important;
    cursor: pointer !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    height: auto !important;
}

.featured-coupon-card.new-design:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
}

/* Today's Top Offers: banner on top, compact footer below (minimize whitespace) */
.featured-coupon-card.top-offer-card {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    min-height: 0 !important;
}

.featured-coupon-card.top-offer-card .top-offer-banner {
    position: relative;
    min-height: 160px;
    height: 160px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.6rem 0.75rem;
    background: linear-gradient(135deg, #0f766e 0%, #134e4a 50%, #0c4a6e 100%);
    color: #fff;
    text-align: center;
    overflow: hidden;
}

/* When image is uploaded: show image at 100% opacity, brighten, no overlay text */
.featured-coupon-card.top-offer-card .top-offer-banner-img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    filter: brightness(1.2);
    z-index: 0;
    display: block;
}

/* Overlay: gradient when no image; no overlay when image present (clean image) */
.featured-coupon-card.top-offer-card .top-offer-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 118, 110, 0.75) 0%, rgba(12, 74, 110, 0.8) 100%);
    z-index: 1;
    pointer-events: none;
}

.featured-coupon-card.top-offer-card .top-offer-banner:has(.top-offer-banner-img)::after {
    background: none;
}

/* Hide date and headline when banner has uploaded image (no text on image) */
.featured-coupon-card.top-offer-card .top-offer-banner:has(.top-offer-banner-img) .top-offer-date,
.featured-coupon-card.top-offer-card .top-offer-banner:has(.top-offer-banner-img) .top-offer-headline {
    display: none !important;
}

.featured-coupon-card.top-offer-card .top-offer-date {
    position: relative;
    z-index: 2;
    align-self: flex-start;
    font-size: 0.7rem;
    opacity: 0.95;
    margin-bottom: 0.25rem;
}

.featured-coupon-card.top-offer-card .top-offer-headline {
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.featured-coupon-card.top-offer-card .top-offer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #fff;
    flex-shrink: 0;
    min-height: 0;
}

.featured-coupon-card.top-offer-card .top-offer-title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #0f172a;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.featured-coupon-card.top-offer-card .top-offer-logo {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 6px;
}

.featured-coupon-card.top-offer-card .top-offer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.featured-coupon-card.top-offer-card .top-offer-logo i {
    font-size: 1.25rem;
    color: #94a3b8;
}

/* Top Section - Logo and Title (legacy new-design when not top-offer-card) */
.featured-coupon-top {
    padding: 1.5rem 1.25rem !important;
    background: white !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    min-height: 180px !important; /* Ensure top section takes about 2/3 of card */
}

.featured-coupon-store-logo {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 0.5rem !important;
}

.featured-coupon-store-logo img {
    width: 60px !important;
    height: 60px !important;
    object-fit: contain !important;
    object-position: left center !important;
    max-width: 60px !important;
    max-height: 60px !important;
}

.featured-coupon-store-logo i {
    font-size: 2rem !important;
    color: #CBD5E1 !important;
}

.featured-coupon-title {
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: #0F172A !important;
    line-height: 1.5 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 !important;
}

/* Bottom Section - Promotional Image */
.featured-coupon-image-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 0 !important;
    padding-bottom: 35% !important; /* Approximately 1/3 of card height */
    overflow: hidden !important;
    background: #F1F5F9 !important;
    flex-shrink: 0 !important;
}

.featured-coupon-promo-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

.featured-coupon-image-placeholder {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #F1F5F9 !important;
    color: #CBD5E1 !important;
}

.featured-coupon-image-placeholder i {
    font-size: 3rem !important;
}

/* Circular CTA Icon Overlay - REMOVED */

/* Hide old elements in new design */
.featured-coupon-card.new-design .featured-coupon-banner,
.featured-coupon-card.new-design .featured-coupon-logo,
.featured-coupon-card.new-design .featured-coupon-description,
.featured-coupon-card.new-design .featured-reveal-btn,
.featured-coupon-card.new-design .revealed-code-section {
    display: none !important;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Keep card width consistent when filtering top offers (avoid full-width stretch) */
.offers-grid.fixed-cards {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem; /* Reduced gap for smaller cards */
}

/* Top Offers Page Grid Styling */
.top-offers .offers-grid.fixed-cards {
    gap: 2rem;
    margin-top: 2rem;
    padding: 0;
}

/* Empty state styling */
.top-offers .offers-grid.fixed-cards:empty::before {
    content: 'No top offers available at the moment.';
    display: block;
    text-align: center;
    padding: 4rem 2rem;
    color: #94A3B8;
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

@media (max-width: 1200px) {
    .offers-grid.fixed-cards { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .offers-grid.fixed-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .offers-grid.fixed-cards { grid-template-columns: 1fr; }
    
    /* New card design mobile adjustments */
    .featured-coupon-top {
        padding: 1.25rem 1rem !important;
    }
    
    .featured-coupon-store-logo img {
        width: 50px !important;
        height: 50px !important;
        max-width: 50px !important;
        max-height: 50px !important;
    }
    
    .featured-coupon-title {
        font-size: 0.9rem !important;
        -webkit-line-clamp: 2 !important;
    }
    
    .featured-coupon-image-wrapper {
        padding-bottom: 45% !important;
    }
    
    /* Top offer card mobile */
    .featured-coupon-card.top-offer-card .top-offer-banner {
        min-height: 130px;
        height: 130px;
        padding: 0.5rem 0.6rem;
    }
    .featured-coupon-card.top-offer-card .top-offer-headline {
        font-size: 1.25rem;
    }
    .featured-coupon-card.top-offer-card .top-offer-footer {
        padding: 0.45rem 0.6rem;
    }
    .featured-coupon-card.top-offer-card .top-offer-title {
        font-size: 0.8rem;
    }
    .featured-coupon-card.top-offer-card .top-offer-logo {
        width: 40px;
        height: 40px;
    }
}

/* Card styling for Featured Category section - original design */
.featured-category-section .featured-coupon-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-category-section .featured-coupon-banner {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-weight: 700;
}

.featured-category-section .featured-coupon-logo {
    padding: 1.25rem 1rem;
    gap: 1rem;
    display: flex;
    align-items: center;
}

.featured-category-section .featured-coupon-logo img {
    width: 50px !important;
    height: 50px !important;
    flex-shrink: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    max-width: 50px !important;
    max-height: 50px !important;
    background: white !important;
    border-radius: 4px !important;
}

.featured-category-section .featured-coupon-logo i {
    display: none !important;
    font-size: 2.5rem !important;
    color: #CBD5E1 !important;
    flex-shrink: 0 !important;
}

/* Show icon when image is hidden or doesn't exist */
.featured-category-section .featured-coupon-logo img[style*="display: none"] ~ i {
    display: block !important;
}

/* Show icon if no image element exists */
.featured-category-section .featured-coupon-logo:not(:has(img)) i {
    display: block !important;
}

.featured-category-section .featured-store-name {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #0F172A !important;
    flex: 1 !important;
    display: block !important;
    margin: 0 !important;
}

.featured-category-section .featured-coupon-description {
    padding: 0 1rem;
    font-size: 0.9rem;
    color: #64748B;
    min-height: 50px;
    margin-bottom: 1rem;
    -webkit-line-clamp: 2;
}

.featured-category-section .featured-reveal-btn {
    width: calc(100% - 2rem) !important;
    margin: 0 1rem 1rem !important;
    margin-top: auto !important;
    padding: 0.875rem 1rem !important;
    background: #0D9488 !important;
    font-size: 0.95rem !important;
    border-radius: 8px !important;
    color: white !important;
    border: none !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.featured-category-section .featured-reveal-btn:hover {
    background: #0F766E !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.4) !important;
}

.featured-category-section .revealed-code-section {
    padding: 0.75rem 1rem;
    margin: 0 1rem 0.75rem;
}

.featured-category-section .revealed-code {
    font-size: 1.1rem;
}

/* Old offer-card styles - only apply if not using featured-coupon-card */
.offer-card:not(.featured-coupon-card),
.offers-grid .offer-card:not(.featured-coupon-card) {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    max-width: 100%;
    width: 100%;
}

.offer-card:not(.featured-coupon-card):hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.16);
}

.offer-image {
    width: 100%;
    height: 180px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ccc;
    overflow: hidden;
}

.offer-image img {
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.offer-content {
    padding: 1.5rem;
}

.offer-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.vip {
    background: #0D9488;
    color: #FFFFFF;
}

.badge.exclusive {
    background: #DC2626;
    color: white;
}

.badge.top {
    background: #0D9488;
    color: #fff;
}

.offer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #0F172A;
}

.offer-discount {
    font-size: 1.2rem;
    font-weight: 700;
    color: #DC2626;
    margin-bottom: 0.5rem;
}

.offer-store {
    color: #6B7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.get-deal-btn {
    width: 100%;
    background: #0D9488;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
}

.get-deal-btn:hover {
    background: #0F766E;
}

/* Show Code Button - Teal with peel effect */
.show-code-btn {
    width: 100%;
    background: #0D9488;
    color: #FFFFFF;
    border: none;
    padding: 0.75rem;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.show-code-btn:hover {
    background: #0F766E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.show-code-btn::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: #0D9488;
    transform: rotate(45deg) translate(7px, -7px);
    border: 2px dashed #fff;
    border-radius: 2px;
}

/* Coupon Code Modal */
.coupon-code-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coupon-code-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.coupon-code-modal .modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.coupon-code-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid #e9ecef;
}

.coupon-code-modal .modal-header h3 {
    margin: 0;
    color: #0F172A;
    font-size: 1.5rem;
}

.coupon-code-modal .modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6B7280;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.coupon-code-modal .modal-close:hover {
    background: #F8FAFC;
    color: #0F172A;
}

.coupon-code-modal .modal-body {
    padding: 2rem;
}

.coupon-code-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #F8FAFC;
    border-radius: 8px;
    border: 2px dashed #E5E7EB;
}

.coupon-code {
    font-size: 1.5rem;
    font-weight: 700;
    color: #DC2626;
    letter-spacing: 2px;
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    background: white;
    border-radius: 4px;
    border: 1px solid #E5E7EB;
}

.copy-btn {
    background: #16A34A;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.copy-btn:hover {
    background: #15803D;
}

.coupon-instructions {
    color: #6B7280;
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.modal-actions .btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-actions .btn-primary {
    background: #007bff;
    color: white;
}

.modal-actions .btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Featured Category Reveal Modal (coupon details when user clicks Reveal; affiliate opens in new tab) */
.featured-reveal-modal .featured-reveal-modal-content {
    position: relative;
    max-width: 440px;
    padding: 0;
    text-align: center;
}
.featured-reveal-modal .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1;
}
.featured-reveal-modal-body {
    padding: 2rem 2rem 1.5rem;
}
.featured-reveal-modal-logo {
    margin-bottom: 1rem;
}
.featured-reveal-modal-logo img {
    max-height: 48px;
    max-width: 160px;
    object-fit: contain;
}
.featured-reveal-store-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F172A;
}
.featured-reveal-offer {
    font-size: 1rem;
    color: #0F172A;
    margin: 0 0 1.25rem;
    line-height: 1.5;
}
.featured-reveal-code-wrap {
    margin-bottom: 1.25rem;
}
.featured-reveal-code-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}
.featured-reveal-code-box:hover {
    opacity: 0.95;
    transform: scale(1.02);
}
.featured-reveal-code-box .featured-reveal-code {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.featured-reveal-code-box .featured-reveal-code-copy-hint {
    font-size: 0.75rem;
    opacity: 0.9;
}
.featured-reveal-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}
.featured-reveal-link {
    color: #6B7280;
    text-decoration: none;
    font-size: 0.9rem;
}
.featured-reveal-link:hover {
    color: #0F172A;
    text-decoration: underline;
}
.featured-reveal-link.go-to-store {
    border-bottom: 1px dashed #6B7280;
}
.featured-reveal-disclaimer {
    background: #EFF6FF;
    color: #1e40af;
    font-size: 0.8rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    text-align: left;
}


/* Brands */
.brands {
    padding: 3rem 0;
}

.featured-stores-section {
    background: #F8FAFC;
    padding: 3rem 0;
}

.featured-stores-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.featured-stores-section h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
}

.featured-stores-section .view-all-btn {
    background: #FFFFFF;
    color: #0F172A;
    border: 1px solid #E5E7EB;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-stores-section .view-all-btn:hover {
    background: #F8FAFC;
    border-color: #0D9488;
    color: #0D9488;
}

.brands-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Featured Store Card */
.featured-store-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 352px; /* Exactly matches 2 rows of brand cards (120px + 48px padding) * 2 + 16px gap */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #E2E8F0;
}

.featured-store-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.featured-store-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.featured-store-stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.3) 2px, transparent 2px),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.2) 1.5px, transparent 1.5px),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.25) 1px, transparent 1px),
        radial-gradient(circle at 60% 20%, rgba(255, 255, 255, 0.2) 2px, transparent 2px);
    background-size: 100px 100px, 80px 80px, 120px 120px, 90px 90px;
    background-position: 0 0, 50px 50px, 100px 100px, 150px 30px;
    opacity: 0.6;
}

.featured-store-logo {
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
    text-align: center;
}

.featured-store-logo img {
    max-width: 200px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Featured store card name (for Popular Brands section) */
.featured-store-card .featured-store-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: 0.05em;
}

.featured-store-label {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 1rem;
}

.featured-month {
    color: #0F172A;
    font-weight: 600;
    font-size: 1rem;
    margin-right: 0.5rem;
}

.featured-text {
    color: #EA580C;
    font-weight: 600;
    font-size: 1rem;
}

.featured-store-button {
    position: relative;
    z-index: 1;
    width: 100%;
    background: #0F172A;
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.featured-store-button:hover {
    background: #1E293B;
}

/* Other Stores Grid */
.other-stores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 0 1rem;
}

.brand-card-small {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 120px;
}

.brand-card-small:hover {
    border-color: #0D9488;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.brand-card-small img {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.brand-fallback-small {
    font-size: 2rem;
    font-weight: 700;
    color: #CBD5E1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .brands-grid {
        grid-template-columns: 300px 1fr;
    }
    
    .other-stores-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 968px) {
    .brands-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .featured-store-card {
        height: auto;
        min-height: 300px;
    }
    
    .other-stores-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 640px) {
    .other-stores-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 1rem;
        padding: 0.5rem 1rem;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .other-stores-grid::-webkit-scrollbar {
        display: none;
    }
    
    .brand-card-small {
        min-width: 140px;
        max-width: 140px;
        min-height: 140px;
        padding: 1rem;
        flex-shrink: 0;
        scroll-snap-align: start;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .brand-card-small img {
        max-width: 80%;
        max-height: 60px;
    }
    
    .featured-store-card {
        padding: 1rem;
        height: auto;
        min-height: 250px;
    }
    
    .featured-store-logo img {
        max-width: 120px;
        max-height: 60px;
    }
    
    .featured-store-name {
        font-size: 1.8rem;
    }
}

.brand-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.brand-card:hover {
    transform: translateY(-3px);
}

.brand-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 0.5rem;
}

.brand-card p {
    color: #0D9488;
    font-weight: 500;
}

/* Save More Every Day Section */
.save-more-section {
    background: #0D9488;
    color: white;
    padding: 4rem 0;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.save-more-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
    pointer-events: none;
}

.save-more-content {
    position: relative;
    z-index: 1;
}

.save-more-header {
    text-align: center;
    margin-bottom: 3rem;
}

.save-more-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.save-more-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Flexible Text Content Areas */
.save-more-text-content {
    margin: 3rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.text-block {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.text-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.text-block h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.text-block p {
    line-height: 1.7;
    margin-bottom: 1.25rem;
    opacity: 0.95;
    font-size: 1rem;
}

.text-block p:last-child {
    margin-bottom: 0;
}

/* Single column text blocks for full-width content */
.save-more-text-content.full-width {
    grid-template-columns: 1fr;
}

.save-more-text-content.full-width .text-block {
    max-width: 800px;
    margin: 0 auto;
}

.save-more-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.save-more-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.save-more-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.save-more-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.save-more-card:hover::before {
    opacity: 1;
}

.save-card-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.save-card-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.save-card-content p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.save-card-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.save-card-features li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
}

.save-more-stats {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.save-more-cta {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.save-more-cta h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.save-more-cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 180px;
    justify-content: center;
}

.cta-btn.primary {
    background: white;
    color: #0D9488;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-btn.primary:hover {
    background: #F8FAFC;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.cta-btn.secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Responsive Design for Save More Section */
@media (max-width: 768px) {
    .save-more-section {
        padding: 3rem 0;
        margin: 2rem 0;
    }
    
    .save-more-header h2 {
        font-size: 2rem;
    }
    
    .save-more-subtitle {
        font-size: 1.1rem;
    }
    
    .save-more-text-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .text-block {
        padding: 1.5rem;
    }
    
    .text-block h3 {
        font-size: 1.3rem;
    }
    
    .text-block p {
        font-size: 0.95rem;
    }
    
    .save-more-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .save-more-card {
        padding: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .save-more-header h2 {
        font-size: 1.8rem;
    }
    
    .save-more-subtitle {
        font-size: 1rem;
    }
    
    .save-more-text-content {
        margin: 1.5rem 0;
    }
    
    .text-block {
        padding: 1.25rem;
    }
    
    .text-block h3 {
        font-size: 1.2rem;
    }
    
    .text-block p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .save-more-card {
        padding: 1.25rem;
    }
    
    .save-card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .save-more-cta {
        padding: 2rem 1.5rem;
    }
}

/* Footer */
.footer {
    background: #0F172A;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #0D9488;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #1E293B;
    color: #6B7280;
}

/* Brand strip */
.brand-strip {
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 1.5rem 0;
}

.brand-strip .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.brand-strip .section-header h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #0F172A;
}

.brand-strip-inner {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 0.5rem 0;
}

.brand-chip {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 1rem 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    position: relative;
    overflow: hidden;
}

.brand-chip:hover {
    background: #fff;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #0D9488;
}

.brand-chip .brand-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    border-radius: 6px;
}

.brand-chip .brand-name {
    font-weight: 600;
    color: #0F172A;
    font-size: 0.85rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.brand-chip .brand-fallback {
    width: 50px;
    height: 50px;
    background: #0D9488;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: bold;
    font-size: 1.3rem;
}

/* Slider */
.slider { background:#fff; padding: 0; border-bottom:1px solid #eee; }
.slider .container { max-width: 100%; padding: 0; }
.slider-wrapper { position: relative; overflow: hidden; }
.slider-track { display: flex; transition: transform 0.5s ease; }
.slide { min-width: 100%; position: relative; height: 520px; }
.slide img { width:100%; height:100%; object-fit: cover; display:block; }
.slide-overlay { position:absolute; inset:0; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.15)); display:flex; align-items:center; backdrop-filter: saturate(1.2) brightness(0.95); }
.slide-content { color:#fff; padding: 2rem; max-width: 1000px; display:flex; align-items:center; gap:1.25rem; }
.slide-logo { width: 92px; height: 92px; border-radius: 8px; overflow:hidden; background:#fff; display:flex; align-items:center; justify-content:center; }
.slide-logo img { width:100%; height:100%; object-fit:contain; }
.slide-title { font-size:2.4rem; font-weight:800; margin-bottom:.5rem; letter-spacing:.3px; }
.slide-sub { opacity:.9; margin-bottom:1rem; }
.slide-btn { background:#0D9488; color:#FFFFFF; border:none; padding:.75rem 1.25rem; border-radius:6px; font-weight:700; cursor:pointer; }
.slider-nav { position:absolute; top:50%; transform:translateY(-50%); background:rgba(0,0,0,.5); color:#fff; border:none; width:40px; height:40px; border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.slider-nav.prev { left:10px; }
.slider-nav.next { right:10px; }
.slider-nav:hover { background:rgba(0,0,0,.7); }
/* Slider dots */
.slider-dots { position:absolute; left:50%; bottom:14px; transform:translateX(-50%); display:flex; gap:8px; }
.slider-dot { width:10px; height:10px; border-radius:50%; background:rgba(255,255,255,.6); cursor:pointer; transition:transform .2s ease, background .2s ease; }
.slider-dot.active { background:#0D9488; transform:scale(1.2); }

/* Top filter */
.top-filter { display:flex; gap:.5rem; flex-wrap:wrap; margin: 0 0 1rem; }
.top-chip { padding:.4rem .8rem; border:1px solid #eee; border-radius:999px; background:#f8f9fa; cursor:pointer; font-weight:600; font-size:.9rem; }
.top-chip.active, .top-chip:hover { background:#fff; border-color:#0D9488; color:#0D9488; }

/* Category groups */
.category-section { padding: 2rem 0; }
.category-section h3 { margin-bottom: 1rem; }
.category-list { display:grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }

/* Loading Spinner */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #F8FAFC;
    border-top: 4px solid #0D9488;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile-First Responsive Design */

/* Desktop - Show grid, hide carousel */
@media (min-width: 769px) {
    .offers-grid.desktop-grid {
        display: grid !important;
    }
    
    .mobile-offers-carousel {
        display: none !important;
    }
}

/* Tablet - Show grid, hide carousel */
@media (min-width: 769px) and (max-width: 1024px) {
    .offers-grid.desktop-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }
}

/* Mobile - Hide desktop grid, show carousel */
@media (max-width: 768px) {
    .offers-grid.desktop-grid {
        display: none !important;
    }
    
    .mobile-offers-carousel {
        display: block !important;
        border: 3px solid #0D9488 !important;
        background: #F0FDFA !important;
        border-radius: 12px !important;
        padding: 1rem !important;
        margin: 1rem 0 !important;
        min-height: 350px !important;
    }
}

/* Large screens and up */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
}

/* Tablet and below */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-carousel .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .search-container {
        order: 3;
        width: 100%;
        margin: 0;
        max-width: none;
    }
    
    .hero-carousel {
        height: 400px;
    }
    
    .carousel-content {
        padding: 2rem;
    }
    
    .carousel-title {
        font-size: 2rem;
    }
    
    .carousel-subtitle {
        font-size: 1rem;
    }
}

/* Mobile landscape and below */
@media (max-width: 1024px) and (min-width: 769px) {
    /* Tablet - 4 brands per row */
    .brand-strip-inner {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }
    
    .brand-chip {
        min-height: 110px;
        padding: 1.25rem 0.75rem;
    }
    
    .brand-chip .brand-logo {
        width: 55px;
        height: 55px;
    }
    
    .brand-chip .brand-fallback {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    /* Header improvements */
    .header-content {
        padding: 0.75rem 0;
        flex-direction: column;
        align-items: stretch;
    }
    
    .logo {
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    .header-actions {
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .auth-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .search-container {
        margin: 0;
    }
    
    .search-bar {
        margin: 0;
        padding: 0.6rem 1rem;
    }
    
    /* Navigation */
    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1000;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 12px 12px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        max-height: 300px;
        padding: 1rem 0;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 1rem 2rem;
        border-radius: 0;
        background: transparent;
        border-bottom: 1px solid #f0f0f0;
        transition: all 0.3s ease;
        text-align: center;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: #0D9488;
        color: white;
    }
    
    /* Hero section */
    .hero-carousel {
        height: 350px;
    }
    
    .carousel-content {
        padding: 1.5rem;
        text-align: center;
    }
    
    .carousel-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .carousel-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .carousel-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .carousel-logo img {
        max-height: 40px;
    }
    
    /* Hero features */
    .hero-features {
        padding: 2rem 0;
    }
    
    .features-grid {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .feature-card {
        max-width: 280px;
        padding: 1rem;
        text-align: center;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
    
    .feature-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-subtitle {
        font-size: 0.85rem;
    }
    
    /* Search section */
    .search-section {
        padding: 1.5rem 0;
    }
    
    .search-section .search-bar {
        margin: 0 1rem;
        max-width: none;
    }
    
    .search-section .search-bar input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Content sections */
    .top-offers,
    .categories,
    .brands {
        padding: 2rem 0;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .section-header h3 {
        font-size: 1.5rem;
        margin: 0;
    }
    
    /* Mobile Offers Carousel - 2x2 Grid (4 coupons) */
    .mobile-carousel-slide {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0 0.25rem;
        min-height: 400px;
    }
    
    .mobile-carousel-slide .offer-card {
        border-radius: 8px;
    }
    
    .mobile-carousel-slide .offer-image {
        height: 120px;
    }
    
    .mobile-carousel-slide .offer-content {
        padding: 0.75rem;
    }
    
    .mobile-carousel-slide .offer-title {
        font-size: 0.9rem;
        line-height: 1.2;
        margin-bottom: 0.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .mobile-carousel-slide .offer-discount {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .mobile-carousel-slide .offer-store {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .mobile-carousel-slide .get-deal-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        margin-top: 0.5rem;
    }
    
    /* Mobile carousel navigation improvements */
    .mobile-carousel-nav {
        padding: 0 1rem;
    }
    
    .mobile-carousel-btn {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .mobile-carousel-btn:active {
        transform: scale(0.95);
    }
    
    /* Improve touch area for dots */
    .mobile-carousel-dot {
        min-width: 32px;
        min-height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }
    
    .mobile-carousel-dot::before {
        content: '';
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: currentColor;
        transition: all 0.3s ease;
    }
    
    .mobile-carousel-dot.active::before {
        transform: scale(1.5);
    }
    
    /* Smooth scrolling for carousel */
    .mobile-carousel-track {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Loading state for carousel */
    .mobile-carousel-loading {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 200px;
        color: #666;
    }
    
    .mobile-carousel-loading i {
        font-size: 2rem;
        animation: spin 1s linear infinite;
    }
    
    /* Grids */
    .category-grid,
    .offers-grid,
    .brands-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .featured-store-card {
        margin-bottom: 1.5rem;
    }
    
    .other-stores-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 1rem;
        padding: 0.5rem 1rem;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .other-stores-grid::-webkit-scrollbar {
        display: none;
    }
    
    .brand-card-small {
        min-width: 140px;
        max-width: 140px;
        min-height: 140px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }
    
    /* Offer cards */
    .offer-card {
        margin-bottom: 1rem;
    }
    
    .offer-image {
        height: 200px;
    }
    
    .offer-title {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .offer-discount {
        font-size: 1.2rem;
    }
    
    .get-deal-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        margin-top: 1rem;
    }
    
    /* Brand strip */
    .brand-strip-inner {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .brand-chip {
        min-height: 100px;
        padding: 1rem 0.5rem;
    }
    
    .brand-chip .brand-logo {
        width: 50px;
        height: 50px;
    }
    
    .brand-chip .brand-fallback {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .brand-chip .brand-name {
        font-size: 0.8rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        text-align: left;
    }
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-section ul li {
        margin-bottom: 0.5rem;
    }
    
    .footer-section ul li a {
        font-size: 0.9rem;
    }
    
    /* Modal improvements */
    .modal-content {
        margin: 5% auto;
        width: 95%;
        max-width: 500px;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .modal-actions .btn {
        width: 100%;
        padding: 1rem;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-carousel .container {
        padding: 0 10px;
    }
    
    /* Header */
    .logo img {
        height: 35px;
    }
    
    .auth-links {
        font-size: 0.85rem;
    }
    
    .admin-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    /* Navigation */
    .nav-links {
        gap: 0.5rem;
        padding: 0.75rem 0;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Hero */
    .hero-carousel {
        height: 280px;
    }
    
    .carousel-content {
        padding: 1rem;
    }
    
    .carousel-title {
        font-size: 1.3rem;
    }
    
    .carousel-subtitle {
        font-size: 0.85rem;
    }
    
    .carousel-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    /* Features */
    .feature-card {
        max-width: 100%;
        padding: 1rem 0.5rem;
    }
    
    .feature-icon {
        width: 45px;
        height: 45px;
    }
    
    .feature-title {
        font-size: 0.9rem;
    }
    
    .feature-subtitle {
        font-size: 0.8rem;
    }
    
    /* Content sections */
    .top-offers {
        padding: 2rem 0;
    }
    
    .top-offers-header {
        padding: 1.5rem 0 1rem;
        margin-bottom: 2rem;
    }
    
    .top-offers-header::before {
        width: 60px;
        height: 3px;
    }
    
    .top-offers .page-title {
        font-size: 2rem;
    }
    
    .top-offers .page-subtitle {
        font-size: 0.95rem;
        padding: 0 1rem;
    }
    
    .top-offers .offers-grid.fixed-cards {
        gap: 1.5rem;
    }
    
    .categories,
    .brands {
        padding: 1.5rem 0;
    }
    
    .section-header h3 {
        font-size: 1.3rem;
    }
    
    /* Mobile carousel adjustments for small screens - 2x2 Grid */
    .mobile-carousel-slide {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0 0.125rem;
        min-height: 350px;
    }
    
    .mobile-carousel-slide .offer-card {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .mobile-carousel-slide .offer-image {
        height: 80px;
        flex-shrink: 0;
    }
    
    .mobile-carousel-slide .offer-content {
        padding: 0.5rem;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .mobile-carousel-slide .offer-title {
        font-size: 0.8rem;
        line-height: 1.2;
        margin-bottom: 0.25rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .mobile-carousel-slide .offer-discount {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
        font-weight: 600;
    }
    
    .mobile-carousel-slide .offer-store {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
        color: #666;
    }
    
    .mobile-carousel-slide .get-deal-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
        margin-top: auto;
        border-radius: 6px;
    }
    
    .mobile-carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .mobile-carousel-dots {
        gap: 0.375rem;
        margin-bottom: 0.5rem;
    }
    
    .mobile-carousel-dot {
        min-width: 28px;
        min-height: 28px;
    }
    
    /* Cards */
    .offer-card,
    .category-card,
    .brand-card {
        border-radius: 8px;
    }
    
    .offer-image {
        height: 180px;
    }
    
    .offer-content {
        padding: 1rem;
    }
    
    .offer-title {
        font-size: 1rem;
    }
    
    .offer-discount {
        font-size: 1.1rem;
    }
    
    .get-deal-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-section {
        padding: 1rem 0;
        border-bottom: 1px solid #eee;
    }
    
    .footer-section:last-child {
        border-bottom: none;
    }
    
    /* Touch improvements */
    .btn,
    .get-deal-btn,
    .show-code-btn,
    .nav-link,
    .filter-btn,
    .auth-link {
        min-height: 44px; /* iOS recommended touch target */
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation; /* Prevents double-tap zoom */
    }
    
    /* Form improvements */
    input,
    select,
    textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
        -webkit-appearance: none;
        border-radius: 8px;
    }
    
    /* Improve tap targets for mobile */
    .offer-card,
    .category-card,
    .brand-card {
        cursor: pointer;
        touch-action: manipulation;
    }
    
    /* Better spacing for mobile */
    .offer-content {
        padding: 1.2rem;
    }
    
    .offer-badges {
        margin-bottom: 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    /* Improve search dropdown for mobile */
    .search-dropdown {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        transform: none !important;
        min-width: auto !important;
        max-height: none !important;
        border-radius: 0 !important;
        z-index: 9999 !important;
        background: white;
        overflow-y: auto;
        padding: 1rem;
    }
    
    .search-dropdown.show {
        display: block;
    }
    
    /* Add close button for mobile search */
    .search-dropdown::before {
        content: '×';
        position: fixed;
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
        color: #666;
        cursor: pointer;
        z-index: 10000;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f8f9fa;
        border-radius: 50%;
    }
}

/* Search results grid */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 0.5rem;
}

@media (max-width: 1200px) {
    .search-results-grid { grid-template-columns: repeat(3, minmax(260px, 1fr)); }
}

@media (max-width: 900px) {
    .search-results-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
}

@media (max-width: 600px) {
    .search-results-grid { grid-template-columns: 1fr; }
}
.square-cards .offer-image { height: 260px; }
.square-cards .offer-title { font-size: 1.3rem; display:-webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.square-cards .offer-discount { font-size: 1.35rem; }
.square-cards .offer-card { aspect-ratio: 1 / 1; display:flex; flex-direction:column; }
.square-cards .offer-content { flex:1; display:flex; flex-direction:column; }
.square-cards .get-deal-btn { margin-top:auto; }
.square-cards .offer-badges { margin-bottom: .5rem; }
#offersGrid h3 { margin-bottom: 1rem; }

/* Category Groups Section */
.category-groups {
    padding: 3rem 0;
    background: #F8FAFC;
}

/* Featured Category Section - New Design */
.featured-category-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.featured-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.featured-category-title {
    color: #0F172A;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.view-all-link {
    color: #0D9488;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: #0F766E;
    text-decoration: underline;
}

.featured-category-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Category Sidebar */
.featured-category-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.featured-category-btn {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    color: #0F172A;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.featured-category-btn:hover {
    border-color: #0D9488;
    background: #F0FDFA;
}

.featured-category-btn.active {
    background: #0F172A;
    color: white;
    border-color: #0F172A;
    font-weight: 600;
}

/* Coupon Grid */
.featured-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: start;
}

/* Featured Coupon Card - New Design */
.featured-coupon-card,
.offers-grid .featured-coupon-card,
.top-offers .featured-coupon-card,
#offersGrid .featured-coupon-card {
    background: white !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    cursor: pointer !important;
    display: flex !important;
    flex-direction: column !important;
    max-width: 100% !important;
    width: 100% !important;
    /* Override any old offer-card styles */
    height: auto !important;
    min-height: auto !important;
}

.featured-coupon-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.featured-coupon-banner {
    padding: 0.875rem 1rem !important;
    color: white !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    text-align: center !important;
    border-radius: 12px 12px 0 0 !important;
    background: #1a202c !important;
}

.featured-coupon-banner.black {
    background: #1a202c;
}

.featured-coupon-banner.gray {
    background: #4a5568;
}

.featured-coupon-logo,
.offers-grid .featured-coupon-logo,
.top-offers .featured-coupon-logo,
#offersGrid .featured-coupon-logo {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: 1.25rem 1rem !important;
    background: white !important;
    justify-content: flex-start !important;
    /* Override any old offer-image styles */
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
}

.featured-coupon-logo img,
.offers-grid .featured-coupon-logo img,
.top-offers .featured-coupon-logo img,
#offersGrid .featured-coupon-logo img {
    width: 50px !important;
    height: 50px !important;
    object-fit: contain !important;
    object-position: center !important;
    flex-shrink: 0 !important;
    max-width: 50px !important;
    max-height: 50px !important;
}

/* Featured store name in coupon cards (not the featured store card) */
.featured-coupon-card .featured-store-name,
.featured-coupon-logo .featured-store-name {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #0F172A !important;
    flex: 1 !important;
    display: block !important;
    margin: 0 !important;
}

.featured-coupon-logo i,
.featured-category-section .featured-coupon-logo i {
    font-size: 2.5rem;
    color: #CBD5E1;
    flex-shrink: 0;
    display: block;
}

.featured-coupon-description {
    padding: 0 1rem !important;
    font-size: 0.9rem !important;
    color: #64748B !important;
    line-height: 1.5 !important;
    margin-bottom: 1rem !important;
    min-height: 50px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* Revealed Code Section */
.revealed-code-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #D1FAE5;
    margin: 0 1rem 0.75rem;
    border-radius: 8px;
    position: relative;
}

.revealed-code-section::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: url("data:image/svg+xml,%3Csvg width='100' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,8 Q25,0 50,4 T100,0' stroke='%23D1FAE5' fill='%23D1FAE5'/%3E%3C/svg%3E") repeat-x;
    background-size: 100px 8px;
}

.revealed-code-section i {
    color: #059669;
    font-size: 0.9rem;
}

.revealed-code {
    font-weight: 700;
    font-size: 1.1rem;
    color: #059669;
    letter-spacing: 1px;
}

/* Reveal Button */
.featured-reveal-btn {
    width: calc(100% - 2rem) !important;
    margin: 0 1rem 1rem !important;
    margin-top: auto !important;
    padding: 0.875rem 1rem !important;
    background: #0D9488 !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.featured-reveal-btn::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: url("data:image/svg+xml,%3Csvg width='100' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,8 Q25,0 50,4 T100,0' stroke='%230D9488' fill='%230D9488'/%3E%3C/svg%3E") repeat-x;
    background-size: 100px 8px;
}

.featured-reveal-btn:hover {
    background: #0F766E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.4);
}

.featured-reveal-btn.revealed,
.offers-grid .featured-reveal-btn.revealed,
.top-offers .featured-reveal-btn.revealed,
#offersGrid .featured-reveal-btn.revealed {
    background: #10B981 !important;
}

.featured-reveal-btn.revealed:hover,
.offers-grid .featured-reveal-btn.revealed:hover,
.top-offers .featured-reveal-btn.revealed:hover,
#offersGrid .featured-reveal-btn.revealed:hover {
    background: #059669 !important;
}

.featured-reveal-btn.revealed::before {
    display: none;
}

.no-coupons {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #64748B;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .featured-category-content {
        grid-template-columns: 200px 1fr;
    }
    
    .featured-category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 968px) {
    .featured-category-content {
        grid-template-columns: 1fr;
    }
    
    .featured-category-sidebar {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .featured-category-btn {
        white-space: nowrap;
        min-width: 150px;
    }
    
    .featured-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .featured-category-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-category-title {
        font-size: 1.5rem;
    }
}

/* Legacy category section styles (for backward compatibility) */
.category-groups .category-section {
    margin-bottom: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.category-groups .category-section:last-child {
    margin-bottom: 0;
}

.category-groups h3 {
    color: #0F172A;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.category-groups .offers-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1200px) {
    .category-groups .offers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .category-groups .offers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .category-groups .offers-grid {
        grid-template-columns: 1fr;
    }
}

.category-groups .btn-secondary {
    background: #0D9488;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
    border: none;
    display: inline-block;
}

.category-groups .btn-secondary:hover {
    background: #0F766E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
}
