@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
body{font-family: "Open Sans", sans-serif;}
.home-tile-image {
  
    margin: 40px auto 40px;
}
.store-slider .store-slider-image {

    object-fit: contain;
  
    padding: 20px 10px;
}


/* Top Promotions Slider */
.top-promotions {
    padding: 18px 0 0;
    background: #fff;
}

/* Store slider (below promotions) */
.featured-stores-slider {
    padding: 10px 0 0;
    background: #fff;
}

.store-slider {
    margin: 10px 0 22px;
    padding: 0 20px;
}

.store-slider .fc-card {
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-color: rgba(0,0,0,0.06);
    width: 210px; /* matches existing .fc-card width used by the JS slider */
}

.store-slider .store-slider-image {
    width: 100%;
    height: 110px;
    object-fit: contain;
    display: block;
    padding: 12px 15px;
}

@media (max-width: 600px) {
    .store-slider .store-slider-image {
        height: 95px;
    }
}

.promo-slider {
    position: relative;
    border-radius: 0px;
    overflow: hidden;
    background: #f3f4f6;
}

.promo-viewport {
    overflow: hidden;
    width: 100%;
}

.promo-track {
    display: flex;
    width: auto;
    transform: translateX(0);
    transition: transform 450ms ease;
}

.promo-slide {
    position: relative;
    flex: 0 0 33.333333%;
    display: block;
    background: #fff;
}

.promo-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.promo-badge {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    z-index: 2;
}

.promo-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.95);
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    color: #333;
}

.promo-arrow:hover {
    background: #fff;
}

.promo-arrow:disabled {
    opacity: 0.45;
    cursor: default;
}

.promo-arrow-prev { left: 10px; }
.promo-arrow-next { right: 10px; }

.promo-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 3;
}

.promo-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 0;
    background: rgba(255,255,255,0.65);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.promo-dot.is-active {
    background: rgba(255,255,255,0.95);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .promo-image { height: 180px; }
    .promo-arrow {
        width: 34px;
        height: 34px;
        font-size: 24px;
    }
}

@media (max-width: 900px) {
    .promo-slide {
        flex: 0 0 50%;
    }
}

@media (max-width: 600px) {
    .promo-slide {
        flex: 0 0 100%;
    }
}

/* Featured Coupon Slider (above Featured Discounts) */
.featured-coupon-slider {
    position: relative;
    margin: 10px 0 22px;
    padding: 0 42px;
}

.fc-viewport {
    overflow: hidden;
    width: 100%;
}

.fc-track {
    display: flex;
    gap: 14px;
    transform: translateX(0);
    transition: transform 420ms ease;
    will-change: transform;
}

.fc-card {
    flex: 0 0 auto;
    width: 210px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    text-align: center;
    padding: 14px 12px 12px;
    position: relative;
}

.fc-badge {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-50%);
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.fc-logo-wrap {
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
}

.fc-logo {
    max-height: 34px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.fc-logo-fallback {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #333;
}

.fc-pill {
    display: inline-block;
    margin: 10px 0 8px;
    padding: 4px 12px;
    border-radius: 999px;
    background: #efefef;
    color: #333;
    font-weight: 700;
    font-size: 10px;
}

.fc-title {
    font-weight: 700;
    font-size: 15px;
    color: #222;
    line-height: 1.2;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.fc-actions {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fc-btn {
    width: 100%;
    border-radius: 999px;
    border: 1px solid #d7d7d7;
    padding: 9px 12px;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.fc-btn:active {
    transform: translateY(1px);
}

.fc-btn-share {
    background: #2ecc71;
    border-color: #2ecc71;
    color: #fff;
}

.fc-btn-share:hover {
    background: #28b463;
}

.fc-btn-copy {
    background: #fff;
    color: #333;
}

.fc-btn-copy:hover {
    background: #f7f7f7;
}

.fc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 60px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.98);
    box-shadow: 0 4px 14px rgba(0,0,0,0.10);
    cursor: pointer;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    color: #333;
}

.fc-arrow:disabled {
    opacity: 0.4;
    cursor: default;
}

.fc-arrow-prev { left: 0; }
.fc-arrow-next { right: 0; }

@media (max-width: 968px) {
    .featured-coupon-slider { padding: 0 38px; }
    .fc-card { width: 200px; }
}

@media (max-width: 600px) {
    .featured-coupon-slider { padding: 0 34px; }
    .fc-card { width: 190px; }
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* Screen reader only - accessibility */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    word-wrap: normal;
}

/* Header Styles - Red Background */
.site-header {
    background: #e74c3c;
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-logo a {
    display: flex;
    align-items: baseline;
    color: #fff;
    font-weight: bold;
}

.logo-big {
    font-size: 32px;
    font-weight: 700;
}

.logo-savings {
    font-size: 24px;
    font-weight: 600;
    margin-left: 5px;
}

.logo-image {
    width: 170px;
    height: auto;
    object-fit: contain;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.main-navigation a:hover {
    opacity: 0.8;
}

.header-search {
    flex: 1;
    max-width: 400px;
}

.header-search-form {
    position: relative;
    width: 100%;
}

.header-search-form input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    background: #fff;
    color: #333;
}

.header-search-form input::placeholder {
    color: #999;
}

.header-search-form::before {
    content: "🔍";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    z-index: 1;
}

.login-btn {
    background: #fff;
    color: #e74c3c;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.login-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* Featured Offers Section */
.featured-offers {
    padding: 60px 0;
    background: #fff;
}

.offers-section-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
}

.offers-content {
    flex: 1;
}

.offers-ad-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #000;
    text-align: left;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.offer-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: block;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.offer-image {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.offer-overlay {
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    padding: 30px 20px 20px;
    color: #fff;
}

.offer-percentage {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.offer-title {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    text-transform: capitalize;
}

/* Coupon Featured Image Section */
.coupon-featured-image {
    padding: 40px 0 0;
    background: #fff;
}

.coupon-featured-img {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Featured Discounts and Stores Section (Side by Side) */
.featured-discounts-stores {
    padding: 60px 0;
    background: #fff;
}

.discounts-stores-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}

/* Home page: featured stores sidebar removed, use single-column layout */
.discounts-stores-wrapper--single {
    grid-template-columns: 1fr;
}

.featured-discounts-column {
    flex: 1;
}

.featured-stores-column {
    width: 320px;
    flex-shrink: 0;
}

/* Featured Discounts Section */
.featured-discounts {
    padding: 60px 0;
    background: #fff;
}

.discounts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Home page coupon tiles (matches provided attachment layout) */
.home-coupons-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

@media (max-width: 1100px) {
    .home-coupons-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .home-coupons-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .home-coupons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.discount-card.discount-card--home-tile {
    padding: 0;
    margin-bottom: 0;
    background: transparent;
    box-shadow: none;
    transition: none;
    overflow: hidden;
    border-radius: 14px;
}

.discount-card.discount-card--home-tile:hover {
    box-shadow: none;
}

.discount-card.discount-card--home-tile .home-tile {
    height: 100%;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
}

.home-tile-top {
    position: relative;
    background: linear-gradient(180deg, #ff6b6b 0%, #ff9f43 100%);
    padding: 12px 12px 8px;
    min-height: 92px;
}

.home-tile-brand {
    position: absolute;
    top: 10px;
    left: 12px;
    font-size: 12px;
    font-weight: 800;
    color: rgba(255,255,255,0.95);
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

.home-tile-image {
    width: 70%;
    height: 48px;
    object-fit: contain;
    display: block;
      margin: 40px auto 40px;
}

.home-tile-offer {
    font-size: 14px;
    font-weight: 800;
    color: rgba(255,255,255,0.95);
    margin-top: 6px;
    text-align: left;
}

.home-tile-bottom {
    background: #fff;
    padding: 10px 12px 12px;
}

.home-tile-metrics {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 10px;
}

.home-tile-metric {
    flex: 1;
}

.home-tile-metric-label {
    font-size: 9.5px;
    font-weight: 700;
    color: #888;
    letter-spacing: 0.3px;
}

.home-tile-metric-value {
    font-size: 12px;
    font-weight: 700;
    color: #111;
    margin-top: 2px;
}

.home-tile-actions {
    display: flex;
    gap: 10px;
}

.home-tile-btn.fc-btn {
    flex: 1;
    width: auto;
    padding: 9px 8px;
    font-size: 10px;
    border-radius: 10px;
}

.discount-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    transition: box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.discount-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.discount-star-icon {
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 36px;
    color: #e74c3c;
    z-index: 1;
    line-height: 1;
}

.discount-content {
    display: grid;
    grid-template-columns: 70px 1fr 140px;
    gap: 20px;
    align-items: center;
}

.discount-store-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.store-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.store-logo-img.site-logo-fallback {
    width: 50px;
    height: 50px;
    object-fit: contain;
    padding: 5px;
}

.store-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #333;
    background: #f8f9fa;
}

.discount-info {
    flex: 1;
}

.discount-info .store-name {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.discount-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #000;
    line-height: 1.4;
}

.discount-stats {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #666;
    flex-wrap: wrap;
}

.discount-stats span {
    display: flex;
    align-items: center;
}

.verified-text {
    color: #27ae60 !important;
    font-weight: 600;
}

.discount-action {
    display: flex;
    align-items: center;
}

.get-code-btn-yellow {
    background: #ffd700;
    color: #000;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    max-width: 140px;
    white-space: nowrap;
}

.get-code-btn-yellow:hover {
    background: #ffed4e;
    transform: translateY(-2px);
}

.get-code-btn-yellow .btn-text {
    font-weight: 700;
    font-size: 14px;
}

.get-code-btn-yellow .btn-code {
    display: none;
}

/* Featured Stores Section */
.featured-stores {
    padding: 60px 0;
    background: #f8f9fa;
}

.stores-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.store-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.store-logo {
    width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
    border-radius: 8px;
}

.store-logo-placeholder-large {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
    color: #666;
}

/* Layout Options */
.layout-grid .discounts-list {
    grid-template-columns: 1fr;
}

.layout-gallery .discounts-list {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.layout-gallery .discount-content {
    grid-template-columns: 1fr;
    text-align: center;
}

.layout-gallery .discount-store-logo {
    margin: 0 auto;
}

.layout-carousel {
    overflow: hidden;
}

.carousel-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
}

.carousel-container .discount-card {
    min-width: 400px;
    scroll-snap-align: start;
}

.layout-tall .discounts-list {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.layout-tall .discount-content {
    grid-template-columns: 1fr;
    text-align: center;
}

.layout-tall .discount-store-logo {
    margin: 0 auto;
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.footer-widget a:hover {
    color: #fff;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
}

.newsletter-form button {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.newsletter-form button:hover {
    background: #c0392b;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Search Section */
.search-section {
    background: #fff;
    padding: 40px 0;
    border-bottom: 1px solid #e0e0e0;
}

.search-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.search-form input {
    flex: 1;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
}

.search-form button {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 968px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .site-logo {
        order: 1;
        width: 100%;
        text-align: left;
    }
    
    .header-search {
        order: 3;
        max-width: 100%;
        width: 100%;
    }
    
    .main-navigation {
        order: 2;
    }
    
    .header-auth {
        order: 4;
    }
    
    .discounts-stores-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .featured-stores-column {
        width: 100%;
    }
    
    .stores-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .discount-content {
        grid-template-columns: 70px 1fr 140px;
    }
}

@media (max-width: 768px) {
    .discount-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }
    
    .discount-store-logo {
        margin: 0 auto;
    }
    
    .discount-action {
        justify-content: center;
    }
    
    /* Coupon Details Page Mobile Styles */
    .coupon-details-content {
        display: flex;
        flex-direction: column;
        position: relative;
        padding-bottom: 80px;
    }
    
    .coupon-details-action {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        padding: 15px 20px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 999;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .coupon-details-action .get-code-btn-yellow {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    
    .coupon-featured-img {
        height: 250px !important;
    }
    
    .featured-discounts-stores {
        padding: 30px 0 100px !important;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .discount-card {
        padding: 15px;
    }
    
    .discount-title {
        font-size: 20px;
    }
    
    h1.discount-title {
        font-size: 24px;
    }
    
    .store-name {
        font-size: 14px;
    }
    
    .discount-stats {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .discount-stats span {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .site-logo {
        order: 1;
        width: 100%;
        text-align: left;
    }
    
    .site-logo a {
        justify-content: flex-start;
    }
    
    .logo-image {
        width: 140px !important;
    }
    
    .main-navigation ul {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .offers-grid {
        grid-template-columns: 1fr;
    }
    
    .stores-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .header-auth {
        order: 2;
    }
    
    .main-navigation {
        order: 3;
        width: 100%;
    }
    
    .header-search {
        order: 4;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #27ae60;
    color: #fff;
    padding: 15px 25px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10000;
    display: none;
}

.notification.show {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Legacy styles for backward compatibility */
.coupon-code {
    background: #f8f9fa;
    border: 2px dashed #e74c3c;
    padding: 15px 25px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.coupon-code:hover {
    background: #e74c3c;
    color: #fff;
}

.coupon-code.copied {
    background: #27ae60;
    border-color: #27ae60;
    color: #fff;
}

.get-code-btn {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.get-code-btn:hover {
    background: #c0392b;
}

.verified-badge {
    display: inline-block;
    background: #27ae60;
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

/* Coupon Popup Modal */
.coupon-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.coupon-popup-overlay.show {
    display: flex;
}

.coupon-popup-modal {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.3s ease;
}

@keyframes popupSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.coupon-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.coupon-popup-close:hover {
    background: #f0f0f0;
    color: #333;
}

.coupon-popup-content {
    text-align: center;
}

.coupon-popup-subtitle {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
    font-weight: 400;
}

.coupon-popup-title {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
    line-height: 1.2;
}

.coupon-popup-description {
    font-size: 16px;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.6;
}

.coupon-popup-code-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.coupon-popup-code {
    border: 2px dashed #e74c3c;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #e74c3c;
    background: #fff;
    flex: 1;
    min-width: 200px;
    text-align: center;
    letter-spacing: 2px;
    position: relative;
}

.coupon-code-blurred {
    filter: blur(8px);
    -webkit-filter: blur(8px);
    user-select: none;
    -webkit-user-select: none;
    transition: filter 0.3s ease, -webkit-filter 0.3s ease;
    display: inline-block;
    color: #e74c3c;
    font-weight: 700;
    letter-spacing: 2px;
}

.coupon-code-blurred.revealed {
    filter: blur(0);
    -webkit-filter: blur(0);
    user-select: text;
    -webkit-user-select: text;
}

.coupon-popup-view-copy-btn {
    background: #ffd700;
    color: #000;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.coupon-popup-view-copy-btn:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
    .coupon-popup-modal {
        padding: 30px 20px;
    }
    
    .coupon-popup-code-wrapper {
        flex-direction: column;
    }
    
    .coupon-popup-code {
        width: 100%;
    }
    
    .coupon-popup-view-copy-btn {
        width: 100%;
    }
}

/* Google Ads Styling */
.google-ad-container {
    margin: 20px 0;
    text-align: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.google-ad-container.ad-offers-right {
    position: sticky;
    top: 100px;
}

.google-ad-container.ad-above-stores {
    margin-bottom: 30px;
}

.google-ad-container.ad-above-footer {
    margin: 40px 0;
    padding: 30px;
}

.google-ad-container.ad-coupon-list {
    margin: 30px 0;
    padding: 25px;
    background: #fff;
    border: 2px dashed #e0e0e0;
}

.google-ad-container iframe,
.google-ad-container ins,
.google-ad-container script {
    max-width: 100%;
}

@media (max-width: 968px) {
    .offers-section-wrapper {
        grid-template-columns: 1fr;
    }
    
    .offers-ad-sidebar {
        width: 100%;
        position: static;
    }
    
    .google-ad-container.ad-offers-right {
        position: static;
    }
}

/* Small mobile optimizations */
@media (max-width: 480px) {
    .site-header {
        padding: 12px 0;
    }
    
    .header-content {
        gap: 10px;
    }
    
    .featured-offers {
        padding: 30px 0;
    }
    
    .featured-discounts-stores {
        padding: 30px 0 90px !important;
    }
    
    .section-title {
        font-size: 22px;
        margin-bottom: 24px;
        text-align: left;
    }
    
    .discount-card {
        padding: 12px;
        border-radius: 10px;
    }
    
    .discount-title {
        font-size: 18px;
    }
    
    h1.discount-title {
        font-size: 22px;
    }
    
    .store-name {
        font-size: 13px;
    }
    
    .stores-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .coupon-popup-modal {
        padding: 24px;
        width: 94%;
    }
}

.promo-slider .slick-slide {
    padding: 0 12.5px; /* half of 25px */
}

.promo-slider .slick-list {
    margin: 0 -12.5px; /* fix outer spacing */
}

.slick-slide img {
    display: block;
    height: 350px;
    object-fit: cover;
    width: 100%;
    object-position: top;
}
.promo-arrow.next{ right:0}


.home-tile-brand {     position: absolute;
    top: 0;
    left: 0;
    font-size: 12px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.2px;
    text-transform: uppercase;
    background: linear-gradient(180deg, #ff6b6b 0%, #ff9f43 100%);
    padding: 12px 12px 8px;
    width: 100%;
    height: auto;}
	
.home-tile-top {
    position: relative;
     background: none; 
     padding:0px; 
     min-height: inherit; 
    padding-top: 67px;
}	
.home-tile-image {
    width: 96%;
    height: 51px;
    object-fit: contain;
    display: block;
    margin: 5px auto 4px;
}
.home-tile-offer {
    font-size: 13px;
    font-weight: 700;
    color: #000;
    margin-top: 6px;
    text-align: left;
    padding: 15px;

}
.home-coupons-section{ padding-bottom:80px}


/* slides wrapper */
.profolio__slider > .slides {
  display: flex;
  overflow: hidden;
}

.profolio__slider > .slides.slick-initialized {
  display: block;
}

.profolio__slider > .slides > .slide-item {
  width: 551px;
  min-width: 551px;
  margin: 0 10px;
}

.profolio__slider > .slides > .slide-item a img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 5px;
  display: block;
}

