/* Offers landing — scoped to .offers-page */

.offers-page {
  background: #f6f7fb;
}

.offers-page__content {
  padding-top: calc(var(--bmga-sticky-top-height, 108px) + 1.25rem);
  padding-bottom: max(5rem, env(safe-area-inset-bottom, 0px));
}

.offers-page__head {
  text-align: center;
  margin-bottom: 1.25rem;
}

.offers-page__title {
  font-size: clamp(1.5rem, 5.5vw, 2rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.offers-page__lead {
  font-size: 0.9375rem;
  color: #64748b;
  margin: 0 auto;
  max-width: 32rem;
}

@media (min-width: 992px) {
  .offers-page__content {
    padding-top: 1.5rem;
  }

  .offers-page__head {
    text-align: left;
  }

  .offers-page__lead {
    margin-left: 0;
  }
}

.offers-toolbar {
  border-radius: 16px;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

.offers-toolbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.offers-toolbar__label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary, #1e293b);
  margin: 0;
}

/* ===== Modern Design System ===== */
        :root {
            --primary: #D4483B;
            --primary-light: #FFF2F0;
            --secondary: #1E293B;
            --accent: #3B82F6;
            --success: #10B981;
            --gray-100: #F8FAFC;
            --gray-200: #E2E8F0;
            --gray-500: #64748B;
            --gray-700: #334155;
            --shadow-sm: 0 2px 4px rgba(16, 24, 40, 0.05);
            --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.08);
            --shadow-lg: 0 16px 40px rgba(16, 24, 40, 0.12);
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --radius-xl: 20px;
        }

        /* Search Section */
        .search-section {
            max-width: 640px;
            margin: 0 auto 2rem;
        }
        
        .search-container {
            position: relative;
            display: flex;
            align-items: stretch;
            width: 100%;
            min-width: 0;
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: var(--shadow-md);
            transition: box-shadow 0.3s ease;
            background: #fff;
        }
        
        .search-container:focus-within {
            box-shadow: var(--shadow-lg);
        }
        
        .search-icon {
            padding: 1rem 1.25rem;
            background: white;
            border: none;
            flex: 0 0 auto;
            display: flex;
            align-items: center;
        }
        
        .search-input {
            border: none;
            padding: 1rem 0;
            font-size: 1rem;
            flex: 1 1 auto;
            min-width: 0;
            width: 1%;
        }
        
        .search-input:focus {
            box-shadow: none;
            outline: none;
        }
        
        .search-btn {
            border: none;
            background: var(--primary);
            color: white;
            padding: 0 1.5rem;
            flex: 0 0 auto;
            white-space: nowrap;
            transition: background 0.3s ease;
        }

        .search-btn:hover {
            background: #B53A2F;
        }

        /* Hero Carousel */
        .hero-carousel {
            border-radius: var(--radius-xl);
            overflow: hidden;
            margin-bottom: 3rem;
            box-shadow: var(--shadow-md);
        }
        
        .hero-slide {
            height: 380px;
            background-size: cover;
            background-position: center;
            position: relative;
        }
        
        @media (min-width: 1200px) {
            .hero-slide {
                height: 460px;
            }
        }
        
        .hero-overlay {
            background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 60%);
            height: 100%;
            width: 100%;
            display: flex;
            align-items: flex-end;
            padding: 2rem;
        }
        
        .hero-content {
            color: white;
            max-width: 600px;
        }
        
        .hero-title {
            font-size: 2.25rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }
        
        .hero-subtitle {
            font-size: 1.25rem;
            opacity: 0.9;
            margin-bottom: 1.5rem;
        }
        
        .hero-cta {
            background: white;
            color: var(--primary);
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: var(--radius-md);
            font-weight: 600;
            transition: all 0.3s ease;
        }
        
        .hero-cta:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }
        
        .carousel-indicators [data-bs-target] {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.5);
            margin: 0 5px;
            border: none;
        }
        
        .carousel-indicators .active {
            background-color: white;
            width: 30px;
            border-radius: 5px;
        }

        /* Section Headers */
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-bottom: 1.5rem;
        }
        
        .section-title {
            font-size: 1.75rem;
            font-weight: 700;
            color: var(--secondary);
            margin-bottom: 0.5rem;
        }
        
        .section-subtitle {
            color: var(--gray-500);
            margin-bottom: 0;
        }
        
        .filter-select {
            border: 1px solid var(--gray-200);
            border-radius: var(--radius-md);
            padding: 0.5rem 1rem;
            font-size: 0.9rem;
            background: white;
        }

        /* Category Filters */
        .category-filters {
            display: flex;
            gap: 0.5rem;
            flex-wrap: nowrap;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            margin-bottom: 2rem;
            padding-bottom: 0.25rem;
        }

        .category-filters::-webkit-scrollbar {
            display: none;
        }
        
        .category-btn {
            padding: 0.6rem 1.25rem;
            border-radius: 50px;
            border: 1px solid var(--gray-200);
            background: white;
            color: var(--gray-700);
            font-size: 0.9rem;
            transition: all 0.3s ease;
            flex: 0 0 auto;
            white-space: nowrap;
            text-decoration: none;
        }
        
        .category-btn:hover, .category-btn.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        /* Offer Cards */
        .offers-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
            margin-bottom: 3rem;
        }
        
        .offer-card {
            background: white;
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            transition: all 0.3s ease;
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        
        .offer-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-lg);
        }
        
        .offer-image {
            height: 180px;
            width: 100%;
            object-fit: cover;
        }
        
        .offer-content {
            padding: 1.25rem;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }
        
        .offer-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--secondary);
        }
        
        .offer-subtitle {
            color: var(--gray-500);
            font-size: 0.9rem;
            margin-bottom: 1rem;
            flex-grow: 1;
        }
        
        .offer-badge {
            display: inline-block;
            background: var(--primary-light);
            color: var(--primary);
            padding: 0.25rem 0.75rem;
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: 600;
            margin-bottom: 1rem;
        }
        
        .code-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: var(--gray-100);
            border-radius: var(--radius-md);
            padding: 0.75rem 1rem;
            margin-bottom: 1rem;
        }
        
        .code-text {
            font-weight: 600;
            color: var(--secondary);
            font-family: monospace;
            font-size: 1rem;
        }
        
        .copy-btn {
            background: none;
            border: none;
            color: var(--primary);
            font-weight: 600;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: color 0.3s ease;
            padding: 0.25rem;
        }
        
        .copy-btn:hover {
            color: #B53A2F;
        }
        
        .offer-meta {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--gray-500);
            font-size: 0.85rem;
        }

        /* Exclusive Offers Section */
        .exclusive-section {
            background: linear-gradient(135deg, #FF5A7A 0%, #FF813A 50%, #F053D3 100%);
            border-radius: var(--radius-xl);
            padding: 3rem 2rem;
            margin-bottom: 3rem;
            color: white;
            text-align: center;
        }
        
        .exclusive-title {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }
        
        .exclusive-subtitle {
            opacity: 0.9;
            margin-bottom: 2rem;
        }
        
        .exclusive-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1.5rem;
        }
        
        .exclusive-card {
            position: relative;
            border-radius: var(--radius-lg);
            overflow: hidden;
            height: 250px;
        }
        
        .exclusive-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: 1;
        }
        
        .exclusive-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
            z-index: 2;
        }
        
        .exclusive-card-content {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            padding: 1.5rem;
            z-index: 3;
            color: white;
        }
        
        .exclusive-tag {
            display: inline-block;
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            color: white;
            padding: 0.4rem 0.8rem;
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: 600;
            margin-bottom: 0.75rem;
        }

        /* Bank Offers Section */
        .bank-section {
            background: linear-gradient(180deg, #E0F2FE 0%, #F0F9FF 100%);
            padding: 3rem 0;
            margin-bottom: 3rem;
            border-radius: var(--radius-xl);
        }
        
        .bank-header {
            text-align: center;
            margin-bottom: 2rem;
        }
        
        .bank-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1rem;
        }
        
        .bank-card {
            background: white;
            border-radius: var(--radius-lg);
            padding: 1.5rem;
            box-shadow: var(--shadow-md);
            position: relative;
            transition: transform 0.3s ease;
        }
        
        .bank-card:hover {
            transform: translateY(-5px);
        }
        
        .bank-ribbon {
            position: absolute;
            top: 1rem;
            left: 1rem;
            background: var(--success);
            color: white;
            padding: 0.3rem 0.8rem;
            border-radius: 50px;
            font-size: 0.75rem;
            font-weight: 600;
        }
        
        .bank-image {
            width: 100%;
            height: 140px;
            object-fit: contain;
            margin-bottom: 1rem;
            border-radius: var(--radius-md);
            background: var(--gray-100);
            padding: 1rem;
        }
        
        .bank-perks {
            margin: 1rem 0;
        }
        
        .bank-perk {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
        }
        
        .bank-perk i {
            color: var(--success);
        }

        /* Flash Deals Section */
        .flash-section {
            background: #FFF8F8;
            padding: 3rem 0;
            margin-bottom: 3rem;
        }
        
        .flash-header {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 2rem;
        }
        
        .flash-icon {
            background: var(--primary);
            color: white;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
        }
        
        .flash-badge {
            background: var(--primary);
            color: white;
            padding: 0.4rem 1rem;
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: 600;
        }
        
        .flash-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
        }
        
        .flash-card {
            background: white;
            border: 2px solid var(--primary);
            border-radius: var(--radius-lg);
            padding: 1.5rem;
            text-align: center;
            transition: all 0.3s ease;
        }
        
        .flash-card:hover {
            box-shadow: var(--shadow-lg);
            transform: translateY(-3px);
        }
        
        .flash-tag {
            display: inline-block;
            background: var(--primary);
            color: white;
            padding: 0.4rem 1rem;
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: 600;
            margin-bottom: 1rem;
        }
        
        .flash-timer {
            font-size: 1.75rem;
            font-weight: 700;
            color: var(--primary);
            letter-spacing: 1px;
            margin: 1rem 0;
            font-family: monospace;
        }
        
        .flash-btn {
            border: 1px solid var(--primary);
            color: var(--primary);
            background: transparent;
            padding: 0.5rem 1.5rem;
            border-radius: var(--radius-md);
            font-weight: 600;
            transition: all 0.3s ease;
        }
        
        .flash-btn:hover {
            background: var(--primary);
            color: white;
        }

        /* Brands Section */
        .brands-section {
            margin-bottom: 4rem;
        }
        
        .brands-header {
            text-align: center;
            margin-bottom: 2rem;
        }
        
        .brands-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
        }
        
        .brand-card {
            background: white;
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            transition: all 0.3s ease;
        }
        
        .brand-card:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-md);
        }
        
        .brand-image-container {
            position: relative;
            height: 140px;
            overflow: hidden;
        }
        
        .brand-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .brand-badge {
            position: absolute;
            top: 0.75rem;
            right: 0.75rem;
            background: var(--primary);
            color: white;
            padding: 0.3rem 0.7rem;
            border-radius: 50px;
            font-size: 0.75rem;
            font-weight: 600;
        }
        
        .brand-content {
            padding: 1rem;
        }
        
        .brand-meta {
            display: flex;
            justify-content: space-between;
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
        }
        
        .brand-name {
            font-weight: 600;
            color: var(--secondary);
        }
        
        .brand-count {
            color: var(--gray-500);
        }
        
        .brand-discount {
            color: var(--primary);
            font-weight: 600;
            font-size: 0.9rem;
        }

        /* Pagination */
        .pagination-container {
            display: flex;
            justify-content: center;
            margin-top: 2rem;
        }
        
        /* Responsive adjustments */
        @media (max-width: 991.98px) {
            .offers-page__content > .container,
            .offers-page__content .container {
                padding-left: 1rem;
                padding-right: 1rem;
            }

            .offers-page__head {
                text-align: center;
            }

            .search-section {
                margin-bottom: 1rem;
            }

            .search-container {
                flex-direction: row;
                align-items: center;
                border-radius: 14px;
                padding: 0.35rem 0.35rem 0.35rem 0;
            }

            .search-icon {
                display: flex;
                padding: 0 0.5rem 0 0.85rem;
            }

            .search-input {
                width: 100%;
                padding: 0.75rem 0;
                border-bottom: none;
            }

            .search-btn {
                width: auto;
                flex-shrink: 0;
                padding: 0.6rem 1rem;
                border-radius: 10px;
                font-size: 0.875rem;
            }

            .offers-toolbar__sort,
            .filter-select.offers-toolbar__sort {
                width: auto;
                min-width: 7.5rem;
                flex-shrink: 0;
            }

            .offers-toolbar__row {
                flex-wrap: nowrap;
            }

            .category-filters {
                margin-bottom: 0;
            }
            
            .hero-title {
                font-size: 1.75rem;
            }
            
            .hero-subtitle {
                font-size: 1.1rem;
            }
            
            .offers-grid {
                grid-template-columns: 1fr;
            }

            .offers-empty {
                grid-column: 1 / -1;
            }
            
            .exclusive-grid {
                grid-template-columns: 1fr;
            }
            
            .bank-grid {
                grid-template-columns: 1fr;
            }
            
            .flash-grid {
                grid-template-columns: 1fr;
            }
            
            .brands-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .flash-header {
                flex-wrap: wrap;
            }

            body.page-offers .back-to-top-icon {
                bottom: 5.5rem;
            }
        }
        
        @media (max-width: 576px) {
            .hero-slide {
                height: 300px;
            }
            
            .brands-grid {
                grid-template-columns: 1fr;
            }

            .offers-toolbar__row {
                flex-wrap: wrap;
            }

            .offers-toolbar__sort {
                width: 100%;
            }
        }

@media (min-width: 992px) {
  .offers-page__head {
    text-align: left;
  }

  .offers-page__lead {
    margin-left: 0;
  }
}