/**
 * Wowuchers homepage — Figma node 99-3164
 * https://www.figma.com/design/TagZgzRQ2dpS6NgxLhaHy9/Wowuchers?node-id=99-3164&m=dev
 */
:root {
    /* Figma Home Page 99-3164 — Dev Mode export */
    --hf-figma-file: TagZgzRQ2dpS6NgxLhaHy9;
    --hf-figma-node: 99-3164;
    --hf-page-max: 1440px;
    --hf-content-max: 1324px;
    --hf-page-bg: #fafbfb;
    --hf-brand-dark: #2a4a4b;
    --hf-primary: #0d9488;
    --hf-promo-orange: #e67a34;
    --hf-cta-orange: #ef813a;
    --hf-teal-100: #c1e6e5;
    --hf-teal-featured: #a3d2d1;
    --hf-teal-panel: #80b3b2;
    --hf-exclusive-card-panel: #86a3a3;
    --hf-offer-grey: #eef1f1;
    --hf-header-bg: #fafaf8;
    --hf-header-border: #eef1f1;
    --hf-search-bg: rgba(236, 241, 241, 0.6);
    --hf-search-border: #d7e0e0;
    --hf-gray-50: #fafbfb;
    --hf-text-dark: #121a1d;
    --hf-text-body: #1d1d1d;
    --hf-success: #2bae66;
    --hf-section-title-lg: 3rem;
    --hf-section-title-md: 2rem;
    --hf-section-title-weight: 600;
    --hf-gap-section: 32px;
    --hf-gap-cards: 33px;
    --hf-exclusive-grid-gap: 48px;
    --hf-gap-popular-row: 32px;
    --hf-gap-popular-tabs: 64px;
    --hf-category-tab-gap: 20px;
    --hf-category-tab-pad-y: 14px;
    --hf-category-tab-pad-x: 28px;
    --hf-category-tab-min-h: 52px;
    --hf-category-tab-font: 1.0625rem;
    --hf-view-all-w: 87px;
    --hf-view-all-h: 44px;
    /* Navbar — Figma 1440 frame */
    --hf-header-pad-x: 58px;
    --hf-header-pad-y: 12px;
    --hf-header-logo-search-gap: 2.5rem;
    --hf-header-search-max: 380px;
    --hf-header-search-min: 200px;
    --hf-header-nav-gap: 2.5rem;
    --hf-header-actions-gap: 2rem;
    --hf-header-auth-gap: 1.5rem;
    --hf-header-nav-size: 1.25rem;
    --hf-header-auth-size: 1rem;
    --hf-header-signup-h: 51px;
    --hf-header-signup-px: 24px;
    --hf-header-auth-btn-radius: 8px;
    --hf-header-logo-w: 187px;
    --hf-header-logo-h: 42px;
    --hf-header-logo-mark-w: 46px;
    --hf-header-logo-wordmark-w: 126px;
    /* legacy aliases */
    --hf-teal-500: var(--hf-brand-dark);
    --hf-orange-400: var(--hf-cta-orange);
    --hf-orange: var(--hf-promo-orange);
    --hf-gray-550: var(--hf-text-dark);
}

body.home-page-v2 {
    background: var(--hf-page-bg);
    font-family: 'Raleway', 'Inter', system-ui, sans-serif;
}

/* Figma Home Page content width — all sections */
body.home-page-v2 .header.header--home .container {
    max-width: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

body.home-page-v2 .hf-trending-section .container,
body.home-page-v2 .hf-best-offers-section .container,
body.home-page-v2 .hf-exclusive .container,
body.exclusive-coupons-page .exclusive-coupons-page-wrap .container,
body.home-page-v2 .hf-popular-section .container,
body.home-page-v2 .recent-blogs-section .container,
body.home-page-v2 .footer.footer--figma .container {
    max-width: var(--hf-content-max);
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Section titles — unified with Exclusive Coupons (Figma 48px / 56px lh) */
body.home-page-v2 .hf-section-head h2,
body.home-page-v2 .hf-section-head h3,
body.home-page-v2 .hf-trending-section .hf-section-head h2,
body.home-page-v2 .hf-best-offers-section .hf-section-head h2,
body.home-page-v2 .hf-popular-section .hf-section-head h2,
body.home-page-v2 .recent-blogs-section .hf-section-head h2,
body.home-page-v2 .recent-blogs-section .section-header h3,
body.home-page-v2 .featured-stores-section .section-header h3,
body.home-page-v2 .brand-strip .section-header h3,
body.exclusive-coupons-page .hf-section-head h1,
body.exclusive-coupons-page .hf-section-head h2,
body.exclusive-coupons-page .exclusive-coupons-title {
    font-family: 'Raleway', 'Inter', system-ui, sans-serif;
    font-size: clamp(1.75rem, 3.33vw, var(--hf-section-title-lg));
    font-weight: var(--hf-section-title-weight);
    line-height: 1.167;
    letter-spacing: 0;
    margin: 0;
}

body.home-page-v2 .hf-trending-section .hf-section-head h2,
body.home-page-v2 .hf-best-offers-section .hf-section-head h2,
body.home-page-v2 .hf-popular-section .hf-section-head h2,
body.home-page-v2 .recent-blogs-section .hf-section-head h2,
body.home-page-v2 .recent-blogs-section .section-header h3,
body.home-page-v2 .featured-stores-section .section-header h3,
body.home-page-v2 .brand-strip .section-header h3 {
    color: var(--hf-text-dark);
}

/* Promo bar — Top Strip 1440×45 (full viewport width on all pages) */
.home-promo-bar,
#wowuchersPromoBar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0 1rem;
    background: var(--hf-promo-orange, #e67a34);
    color: var(--hf-gray-50, #fff);
    position: relative;
    z-index: 1002;
    text-align: center;
    min-height: 45px;
    height: 45px;
    font-family: 'Raleway', 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    box-sizing: border-box;
    border: none;
}

/* No white gap between promo strip and navbar */
.home-promo-bar + .header.header--home,
#wowuchersPromoBar + .header.header--home {
    margin-top: 0 !important;
}

/* Header — full viewport width: logo flush left, auth flush right */
body.home-page-v2 .header.header--home,
body.wowuchers-site .header.header--home {
    background: var(--hf-header-bg);
    border-top: none !important;
    border-bottom: 1px solid var(--hf-header-border);
    box-shadow: none !important;
    width: 100%;
    max-width: 100vw;
    margin-top: 0;
    overflow: visible;
    position: sticky;
    top: 0;
    z-index: 1000;
}

body.home-page-v2 .header.header--home .container,
body.wowuchers-site .header.header--home .container,
body.home-page-v2 .header--home .header-content,
body.wowuchers-site .header--home .header-content,
body.home-page-v2 .header--home .search-container,
body.wowuchers-site .header--home .search-container,
body.home-page-v2 .header--home .search-bar,
body.wowuchers-site .header--home .search-bar {
    overflow: visible;
}

body.home-page-v2 .header.header--home .container,
body.wowuchers-site .header.header--home .container {
    position: relative;
    max-width: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    overflow: visible;
}

/* Navbar row — single line (Figma 1440); flex so logo↔search gap can shrink on narrow viewports */
body.home-page-v2 .header--home .header-content,
body.wowuchers-site .header--home .header-content {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    max-width: var(--hf-page-max);
    margin: 0 auto;
    padding: var(--hf-header-pad-y) var(--hf-header-pad-x);
    box-sizing: border-box;
    min-width: 0;
}

body.home-page-v2 .header--home .header-actions,
body.wowuchers-site .header--home .header-actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    flex: 0 0 auto;
    gap: var(--hf-header-actions-gap);
    margin-left: auto;
    min-width: 0;
}

body.home-page-v2 .header--home .header-actions::before,
body.wowuchers-site .header--home .header-actions::before {
    display: none !important;
    content: none !important;
}

/* No legacy secondary nav strip on Figma header */
body.home-page-v2 .header--home .main-nav.mobile-only,
body.wowuchers-site .header--home .main-nav.mobile-only {
    border-top: none !important;
    background: transparent !important;
}

body.home-page-v2 .header--home .logo,
body.wowuchers-site .header--home .logo {
    flex: 0 0 auto;
    flex-shrink: 0;
    margin: 0;
    min-width: var(--hf-header-logo-w);
    overflow: visible;
}

body.home-page-v2 .header--home .search-container,
body.wowuchers-site .header--home .search-container {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    max-width: var(--hf-header-search-max);
    margin-left: var(--hf-header-logo-search-gap);
    margin-right: var(--hf-header-logo-search-gap);
}

body.home-page-v2 .header--home .search-container:focus-within,
body.wowuchers-site .header--home .search-container:focus-within {
    z-index: 30;
}

body.home-page-v2 .header--home .header-nav-links,
body.wowuchers-site .header--home .header-nav-links {
    display: flex;
    align-items: center;
    gap: var(--hf-header-nav-gap);
    flex-wrap: nowrap;
    white-space: nowrap;
    flex: 0 0 auto;
}

body.home-page-v2 .header--home .auth-buttons,
body.wowuchers-site .header--home .auth-buttons {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: var(--hf-header-auth-gap);
    flex: 0 0 auto;
    margin-left: 0;
    white-space: nowrap;
}

body.home-page-v2 .header--home .search-bar,
body.wowuchers-site .header--home .search-bar {
    background: var(--hf-search-bg);
    border: 1px solid var(--hf-search-border);
    border-radius: 16px;
    width: 100%;
    max-width: var(--hf-header-search-max);
    min-height: 38px;
}

body.home-page-v2 .header--home .search-bar input,
body.wowuchers-site .header--home .search-bar input {
    font-family: 'Raleway', 'Inter', system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--hf-text-body);
}

body.home-page-v2 .header--home .search-bar input::placeholder,
body.wowuchers-site .header--home .search-bar input::placeholder {
    color: rgba(15, 29, 30, 0.5);
}

/* Search bar stays above dropdown panel */
body.home-page-v2 .header--home .search-bar,
body.wowuchers-site .header--home .search-bar {
    position: relative;
    z-index: 3;
    overflow: visible;
}

/*
 * Dropdown lives in .container (not inside .search-bar) so a wide panel
 * is not clipped by the narrow search field / flex item.
 */
body.home-page-v2 .header--home > .container > .search-dropdown,
body.wowuchers-site .header--home > .container > .search-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    right: auto;
    margin: 0 !important;
    transform: translateX(-50%);
    z-index: 1100;
    overflow-x: visible;
    overflow-y: auto;
    min-width: min(920px, calc(100vw - 2.5rem));
    max-width: calc(100vw - 2.5rem);
    width: max-content;
    box-sizing: border-box;
}

body.home-page-v2 .header--home > .container > .search-dropdown.show,
body.wowuchers-site .header--home > .container > .search-dropdown.show {
    animation: hfSearchDropdownIn 0.2s ease-out !important;
}

@keyframes hfSearchDropdownIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

body.home-page-v2 .header--home > .container > .search-dropdown .trending-section,
body.wowuchers-site .header--home > .container > .search-dropdown .trending-section {
    padding: 1.25rem 1.5rem;
    box-sizing: border-box;
}

@media (min-width: 769px) and (max-width: 1400px) {
    body.home-page-v2 .header--home > .container > .search-dropdown,
    body.wowuchers-site .header--home > .container > .search-dropdown {
        min-width: min(900px, calc(100vw - 2.5rem));
    }
}

@media (max-width: 1024px) {
    body.home-page-v2 .header--home > .container > .search-dropdown,
    body.wowuchers-site .header--home > .container > .search-dropdown {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: min(100%, calc(100vw - 2rem)) !important;
        min-width: 0 !important;
        max-width: calc(100vw - 2rem) !important;
    }

    body.home-page-v2 .header--home > .container > .search-dropdown.show,
    body.wowuchers-site .header--home > .container > .search-dropdown.show {
        animation: hfSearchDropdownIn 0.2s ease-out !important;
    }
}

body.home-page-v2 .header--home .header-nav-link,
body.wowuchers-site .header--home .header-nav-link {
    font-family: 'Raleway', 'Inter', system-ui, sans-serif;
    font-size: var(--hf-header-nav-size);
    line-height: 1.15;
    font-weight: 400;
    color: var(--hf-text-body);
    text-decoration: none;
}

body.home-page-v2 .header--home .header-nav-link.active,
body.wowuchers-site .header--home .header-nav-link.active {
    font-weight: 700;
    color: var(--hf-brand-dark);
}

body.home-page-v2 .main-nav.mobile-only .nav-link.active,
body.wowuchers-site .main-nav.mobile-only .nav-link.active {
    font-weight: 700;
    color: var(--hf-brand-dark);
}

body.home-page-v2 .header--home .notification-icon,
body.wowuchers-site .header--home .notification-icon {
    display: none;
}

/* Header auth — matched size/padding (Figma pair) */
body.home-page-v2 .header--home .auth-buttons .auth-btn,
body.wowuchers-site .header--home .auth-buttons .auth-btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: var(--hf-header-signup-h);
    height: var(--hf-header-signup-h);
    padding: 0 var(--hf-header-signup-px);
    border-radius: var(--hf-header-auth-btn-radius);
    font-family: 'Raleway', 'Inter', system-ui, sans-serif;
    font-size: var(--hf-header-auth-size);
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none !important;
    transform: none !important;
}

body.home-page-v2 .header--home .auth-buttons .auth-btn::before,
body.wowuchers-site .header--home .auth-buttons .auth-btn::before {
    display: none !important;
}

body.home-page-v2 .header--home .auth-buttons .auth-btn:hover,
body.wowuchers-site .header--home .auth-buttons .auth-btn:hover {
    transform: none !important;
    box-shadow: none !important;
}

body.home-page-v2 .header--home .signup-btn--home,
body.wowuchers-site .header--home .signup-btn--home {
    background: var(--hf-brand-dark) !important;
    color: #fcfcfc !important;
    border: 1px solid var(--hf-brand-dark) !important;
}

body.home-page-v2 .header--home .signup-btn--home:hover,
body.wowuchers-site .header--home .signup-btn--home:hover {
    background: var(--hf-teal-100, #2a4a4b) !important;
    border-color: var(--hf-teal-100, #2a4a4b) !important;
    color: #fcfcfc !important;
}

body.home-page-v2 .header--home .signin-btn,
body.home-page-v2 .header--home .signin-btn--home,
body.wowuchers-site .header--home .signin-btn,
body.wowuchers-site .header--home .signin-btn--home {
    background: #fff !important;
    color: var(--hf-brand-dark) !important;
    border: 1px solid var(--hf-search-border, #d7e0e0) !important;
}

body.home-page-v2 .header--home .signin-btn--home:hover,
body.wowuchers-site .header--home .signin-btn--home:hover {
    background: var(--hf-gray-50, #f5f5f5) !important;
    border-color: var(--hf-brand-dark) !important;
    color: var(--hf-brand-dark) !important;
}

/* Header logo — Figma Navbar Frame 1 (187×42): scissors mark + WoWuchers wordmark */
body.home-page-v2 .home-brand-logo,
body.wowuchers-site .home-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    width: var(--hf-header-logo-w);
    min-width: var(--hf-header-logo-w);
    max-width: var(--hf-header-logo-w);
    height: var(--hf-header-logo-h);
    flex-shrink: 0;
    text-decoration: none;
    box-sizing: border-box;
}

body.home-page-v2 .home-brand-logo__mark,
body.wowuchers-site .home-brand-logo__mark {
    display: block;
    width: var(--hf-header-logo-mark-w);
    min-width: var(--hf-header-logo-mark-w);
    height: auto !important;
    max-height: 34px;
    flex-shrink: 0;
    object-fit: contain;
}

body.home-page-v2 .home-brand-logo__wordmark,
body.wowuchers-site .home-brand-logo__wordmark {
    display: block;
    width: var(--hf-header-logo-wordmark-w);
    min-width: var(--hf-header-logo-wordmark-w);
    height: auto !important;
    max-height: 15px;
    flex-shrink: 0;
    object-fit: contain;
}

/* Override legacy style.css .logo img { height: 50px } — keep Figma dimensions */
body.wowuchers-site .header--home .logo .home-brand-logo__mark,
body.home-page-v2 .header--home .logo .home-brand-logo__mark {
    width: var(--hf-header-logo-mark-w) !important;
    height: auto !important;
    max-height: 34px;
}

body.wowuchers-site .header--home .logo .home-brand-logo__wordmark,
body.home-page-v2 .header--home .logo .home-brand-logo__wordmark {
    width: var(--hf-header-logo-wordmark-w) !important;
    height: auto !important;
    max-height: 15px;
}

/* Section headers */
.hf-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    gap: 1rem;
}

.hf-section-head h2,
.hf-section-head h3 {
    margin: 0;
    font-family: 'Raleway', 'Inter', system-ui, sans-serif;
    font-size: clamp(1.75rem, 3.33vw, var(--hf-section-title-lg));
    font-weight: var(--hf-section-title-weight);
    line-height: 1.167;
    color: var(--hf-text-dark, #121a1d);
}

body.home-page-v2 .hf-view-all,
body.home-page-v2 a.hf-view-all:hover,
body.home-page-v2 a.hf-view-all:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--hf-view-all-w);
    height: var(--hf-view-all-h);
    padding: 16px 24px;
    box-sizing: border-box;
    background: var(--hf-primary);
    color: #fcfcfc;
    font-family: 'Raleway', 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.1875;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
}

.hf-view-all:hover {
    background: #0b7a72;
    color: #fcfcfc;
}

/*
 * Hero carousel — Figma: center 844×422 (square corners); peek slides ~85% height, 16px radius.
 */
body.home-page-v2 {
    --hf-carousel-gap: 48px;
    --hf-carousel-poster-w: 844px;
    --hf-carousel-poster-h: 422px;
    --hf-carousel-peek-scale: 0.85;
    --hf-carousel-peek-h: calc(var(--hf-carousel-poster-h) * var(--hf-carousel-peek-scale));
    --hf-carousel-peek-w: max(72px, calc((100vw - var(--hf-carousel-poster-w) - 2 * var(--hf-carousel-gap)) / 2));
}

body.home-page-v2 .hero-carousel.hero-carousel--figma {
    padding: 11px 0 20px;
    background: var(--hf-page-bg);
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible;
    position: relative;
    z-index: 1;
}

body.home-page-v2 .hero-carousel.hero-carousel--figma .container,
body.home-page-v2 .hero-carousel .carousel-figma-container {
    position: relative;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    height: auto !important;
    min-height: 0 !important;
}

/* Full-width viewport so peek wings can reach left/right screen edges */
body.home-page-v2 .carousel-figma-viewport {
    position: relative;
    overflow: hidden;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
}

body.home-page-v2 .carousel-track {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--hf-carousel-gap);
    height: var(--hf-carousel-poster-h) !important;
    min-height: var(--hf-carousel-poster-h) !important;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    box-sizing: border-box;
}

body.home-page-v2 .hero-carousel--figma .carousel-slide {
    flex: 0 0 var(--hf-carousel-poster-w) !important;
    width: var(--hf-carousel-poster-w) !important;
    min-width: 0 !important;
    max-width: var(--hf-carousel-poster-w) !important;
    position: relative !important;
    background-size: unset !important;
}

/* Left/right neighbors: screen edge + shorter than center (Figma) */
body.home-page-v2 .hero-carousel--figma .carousel-slide.is-peek-wing {
    flex: 0 0 var(--hf-carousel-peek-w) !important;
    width: var(--hf-carousel-peek-w) !important;
    max-width: none !important;
    height: var(--hf-carousel-peek-h) !important;
    min-height: var(--hf-carousel-peek-h) !important;
    border-radius: 16px;
    align-self: center;
}

body.home-page-v2 .carousel-slide {
    height: var(--hf-carousel-poster-h) !important;
    min-height: var(--hf-carousel-poster-h) !important;
    border-radius: 16px;
    overflow: hidden;
    background: transparent;
    opacity: 1;
    transform: none;
    transition: height 0.55s cubic-bezier(0.4, 0, 0.2, 1), border-radius 0.35s ease;
    box-shadow: none;
}

/* Center — full height, rounded corners */
body.home-page-v2 .hero-carousel--figma .carousel-slide.is-active {
    flex: 0 0 var(--hf-carousel-poster-w) !important;
    width: var(--hf-carousel-poster-w) !important;
    height: var(--hf-carousel-poster-h) !important;
    min-height: var(--hf-carousel-poster-h) !important;
    border-radius: 16px;
    z-index: 2;
    box-shadow: none;
}

body.home-page-v2 .carousel-slide::before {
    display: none;
}

body.home-page-v2 .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    filter: none;
}

/* Center poster — full bleed in frame (no letterbox background) */
body.home-page-v2 .carousel-slide.is-active img {
    object-fit: cover;
    object-position: center center;
}

/* Peek wings show the inward-facing portion of each banner */
body.home-page-v2 .carousel-slide.is-peek-left img {
    object-fit: cover;
    object-position: right center;
}

body.home-page-v2 .carousel-slide.is-peek-right img {
    object-fit: cover;
    object-position: left center;
}

@media (max-width: 992px) {
    body.home-page-v2 {
        --hf-carousel-poster-w: min(844px, calc(100vw - 160px));
        --hf-carousel-peek-w: max(48px, calc((100vw - var(--hf-carousel-poster-w) - 2 * var(--hf-carousel-gap)) / 2));
    }
}

@media (max-width: 768px) {
    body.home-page-v2 {
        --hf-carousel-gap: 24px;
        --hf-carousel-poster-w: min(844px, calc(100vw - 2 * var(--hf-carousel-gap) - 104px));
        --hf-carousel-poster-h: clamp(200px, 50vw, 422px);
        --hf-carousel-peek-w: max(40px, calc((100vw - var(--hf-carousel-poster-w) - 2 * var(--hf-carousel-gap)) / 2));
    }
}

@media (max-width: 480px) {
    body.home-page-v2 {
        --hf-carousel-gap: 16px;
        --hf-carousel-poster-h: clamp(180px, 56vw, 360px);
    }
}

body.home-page-v2 .carousel-nav {
    display: none;
}

/* Figma dots — below carousel posters (not on top of banner art) */
body.home-page-v2 .carousel-dots.carousel-dots--figma {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px auto 0;
    padding: 0;
    z-index: 2;
    width: 100%;
    max-width: var(--hf-carousel-poster-w);
    pointer-events: none;
}

body.home-page-v2 .carousel-dots.carousel-dots--figma .carousel-dot {
    pointer-events: auto;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #e3e7e8;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, border-radius 0.3s ease;
    flex-shrink: 0;
}

body.home-page-v2 .carousel-dots.carousel-dots--figma .carousel-dot.active {
    width: 48px;
    height: 23px;
    border-radius: 11px;
    background: var(--hf-primary);
}

/* Trending Stores — Figma padding 22px 58px 32px, gap 40, Stores Cards gap 33 */
body.home-page-v2 .hf-trending-section {
    padding: 22px 0 32px;
    font-family: 'Raleway', 'Inter', system-ui, sans-serif;
    position: relative;
    z-index: 1;
}

body.home-page-v2 .hf-trending-section .hf-section-head {
    margin-bottom: 40px;
    min-height: 62px;
}

body.home-page-v2 .hf-trending-layout {
    display: flex;
    align-items: stretch;
    gap: var(--hf-gap-cards);
}

body.home-page-v2 .hf-trending-featured {
    position: relative;
    flex: 0 0 343px;
    width: 343px;
    max-width: 100%;
    min-height: 422px;
    border-radius: 16px;
    background: var(--hf-teal-featured);
    padding: 1.75rem 1.25rem 1.25rem;
    box-sizing: border-box;
}

body.home-page-v2 .hf-trending-featured-scissors {
    position: absolute;
    top: 1.75rem;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--hf-teal-featured);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hf-brand-dark);
    font-size: 0.8rem;
    z-index: 2;
    pointer-events: none;
}

body.home-page-v2 .hf-trending-featured-frame {
    position: relative;
    height: 100%;
    min-height: 360px;
    border: 1px dashed #000;
    border-radius: 8px;
    padding: 1.75rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
}

body.home-page-v2 .hf-trending-featured-title {
    margin: 0 0 1.25rem;
    padding: 0 0.35rem;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    color: #000;
    flex-shrink: 0;
}

body.home-page-v2 .hf-month-pill {
    display: inline-block;
    margin-left: 0.15rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: #475569;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    vertical-align: middle;
}

body.home-page-v2 .hf-trending-featured-body {
    flex: 1 1 auto;
    width: 100%;
    margin-top: auto;
    background: var(--hf-brand-dark);
    border-radius: 24px 24px 8px 8px;
    padding: 1.75rem 1rem 1.35rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-sizing: border-box;
}

body.home-page-v2 .hf-trending-featured-body .hf-trending-featured-logo,
body.home-page-v2 .hf-trending-featured-body .media-logo-wrap.hf-trending-featured-logo {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto !important;
    height: auto !important;
    max-width: 180px;
    min-height: 48px;
    margin: 0 auto 0.35rem;
    padding: 0.5rem 0.85rem;
    background: #fff !important;
    border-radius: 10px;
    box-sizing: border-box;
}

body.home-page-v2 .hf-trending-featured-logo-img {
    display: block;
    width: auto;
    height: auto;
    max-height: 44px;
    max-width: 140px;
    object-fit: contain;
    filter: none;
}

body.home-page-v2 .hf-trending-featured-logo.is-logo-failed .hf-trending-featured-logo-img {
    display: none !important;
}

body.home-page-v2 .hf-trending-featured-logo-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 32px;
    color: var(--hf-brand-dark);
    font-size: 1.35rem;
    font-weight: 700;
    background: transparent;
}

body.home-page-v2 .hf-trending-featured-logo.is-logo-failed .hf-trending-featured-logo-fallback {
    display: flex !important;
}

body.home-page-v2 .hf-trending-featured-name {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #fff;
    text-transform: uppercase;
}

body.home-page-v2 .hf-trending-featured-meta {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.3;
    color: #cbd5e1;
}

body.home-page-v2 a.hf-trending-visit,
body.home-page-v2 a.hf-trending-visit:hover,
body.home-page-v2 a.hf-trending-visit:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    min-width: 201px;
    height: 48px;
    padding: 0 1.5rem;
    box-sizing: border-box;
    background: var(--hf-cta-orange);
    color: var(--hf-text-dark);
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

body.home-page-v2 a.hf-trending-visit:hover {
    background: #e07f3a;
    color: #111827;
}

body.home-page-v2 .hf-trending-grid {
    flex: 1;
    min-width: 0;
    min-height: 422px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 1fr 1fr;
    gap: var(--hf-gap-popular-row);
}

body.home-page-v2 a.hf-trending-card {
    text-decoration: none;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: var(--hf-teal-100);
    display: flex;
    flex-direction: column;
    min-height: 0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.home-page-v2 a.hf-trending-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

body.home-page-v2 .hf-trending-card-top {
    flex: 1;
    background: var(--hf-teal-100);
    border: 2px solid transparent;
    padding: 1rem 0.65rem 0.5rem;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

body.home-page-v2 .hf-trending-card-top .hf-trending-card-logo,
body.home-page-v2 .hf-trending-card-top .media-logo-wrap.hf-trending-card-logo {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    min-width: 120px;
    min-height: 72px;
    padding: 0.65rem 1rem;
    background: #fff !important;
    border-radius: 10px;
    box-sizing: border-box;
}

body.home-page-v2 .hf-trending-card-logo,
body.home-page-v2 .hf-trending-card-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
}

body.home-page-v2 .hf-trending-card-logo-img {
    display: block;
    width: auto;
    height: auto;
    max-height: 56px;
    max-width: 150px;
    object-fit: contain;
    filter: none;
}

body.home-page-v2 .hf-trending-card-logo-fallback {
    min-height: 56px;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--hf-brand-dark);
}

body.home-page-v2 .hf-trending-card-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--hf-brand-dark);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
}

body.home-page-v2 .hf-trending-card-bottom {
    flex-shrink: 0;
    background: var(--hf-orange-400);
    color: #1e293b;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    padding: 0.7rem 0.5rem;
    line-height: 1.2;
}

body.home-page-v2 a.hf-trending-card .hf-trending-card-bottom,
body.home-page-v2 a.hf-trending-card:hover .hf-trending-card-bottom,
body.home-page-v2 a.hf-trending-card:focus .hf-trending-card-bottom {
    color: #1e293b;
}

/* Best Offers — Figma 343×422, gap 33; center card scaled + tilted (peek carousel) */
body.home-page-v2 .hf-best-offers-section {
    --hf-best-offer-w: 343px;
    --hf-best-offer-h: 422px;
    --hf-best-offer-radius: 20px;
    --hf-best-offer-scale-side: 0.9;
    --hf-best-offer-scale-center: 1.1;
    --hf-best-offer-tilt: 3deg;
    padding: 24px 0 32px;
}

body.home-page-v2 .hf-best-offers-section .hf-section-head {
    margin-bottom: 40px;
}

body.home-page-v2 .hf-best-offers-empty {
    margin: 0;
    padding: 2rem 1rem;
    text-align: center;
    color: var(--hf-text-body);
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.75;
}

body.home-page-v2 .hf-best-offers-section .container {
    overflow: visible;
}

/* Extra horizontal room so tilted/scaled center card is not clipped */
body.home-page-v2 .hf-best-offers-stage {
    overflow: hidden;
    width: 100%;
    margin-left: -40px;
    margin-right: -40px;
    padding: 28px 40px 32px;
    box-sizing: border-box;
}

body.home-page-v2 .hf-best-offers-viewport {
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
}

body.home-page-v2 .hf-best-offers-track,
body.home-page-v2 #bestOffersTrack.hf-best-offers-track {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--hf-gap-cards);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

body.home-page-v2 .hf-best-offer-card {
    flex: 0 0 var(--hf-best-offer-w);
    width: var(--hf-best-offer-w);
    height: var(--hf-best-offer-h);
    overflow: visible;
    background: transparent;
    display: block;
    flex-shrink: 0;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    box-sizing: border-box;
    opacity: 0.82;
    z-index: 1;
    transition: opacity 0.45s ease;
}

body.home-page-v2 .hf-best-offer-card.is-center {
    opacity: 1;
    z-index: 10;
}

body.home-page-v2 .hf-best-offer-card-face {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: var(--hf-best-offer-radius);
    overflow: hidden;
    background: #3e3333;
    transform-origin: center center;
    transform: scale(var(--hf-best-offer-scale-side)) rotate(0deg);
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.45s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

body.home-page-v2 .hf-best-offer-card.is-center .hf-best-offer-card-face {
    transform: scale(var(--hf-best-offer-scale-center)) rotate(var(--hf-best-offer-tilt));
    box-shadow: 10px 14px 32px rgba(0, 0, 0, 0.22);
}

body.home-page-v2 a.hf-best-offer-card:not(.is-center):hover .hf-best-offer-card-face {
    transform: scale(var(--hf-best-offer-scale-side)) rotate(0deg) translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.15);
}

body.home-page-v2 a.hf-best-offer-card.is-center:hover .hf-best-offer-card-face {
    transform: scale(var(--hf-best-offer-scale-center)) rotate(var(--hf-best-offer-tilt)) translateY(-2px);
    box-shadow: 12px 18px 36px rgba(0, 0, 0, 0.24);
}

body.home-page-v2 .hf-best-offer-card-face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Exclusive Coupons — 1440×818, #2A4A4B, cards 420.82×278.33, gap 30 */
body.home-page-v2 .exclusive-coupons-section.hf-exclusive,
body.exclusive-coupons-page .exclusive-coupons-page-wrap.hf-exclusive {
    --hf-exclusive-section-bg: var(--hf-brand-dark);
    background: var(--hf-exclusive-section-bg) !important;
    margin: 0 !important;
    padding: 2.5rem 0 3rem !important;
    position: relative;
    overflow: hidden;
}

body.home-page-v2 .exclusive-coupons-section.hf-exclusive::before,
body.exclusive-coupons-page .exclusive-coupons-page-wrap.hf-exclusive::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.14;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cpath d='M20 100c40-60 120-60 160 0s-120 60-160 0' fill='none' stroke='%23ffffff' stroke-width='1.5' opacity='0.35'/%3E%3C/svg%3E");
    background-size: 220px 220px;
    background-repeat: repeat;
}

body.home-page-v2 .hf-exclusive .exclusive-coupons-header,
body.home-page-v2 .hf-exclusive .hf-section-head,
body.exclusive-coupons-page .hf-exclusive .hf-section-head {
    position: relative;
    z-index: 1;
    margin-bottom: 40px !important;
    text-align: left !important;
}

body.home-page-v2 .hf-exclusive .exclusive-coupons-title,
body.home-page-v2 .hf-exclusive .hf-section-head h2,
body.exclusive-coupons-page .hf-section-head h1,
body.exclusive-coupons-page .hf-section-head h2,
body.exclusive-coupons-page .exclusive-coupons-title {
    color: var(--hf-gray-50);
}

body.home-page-v2 .hf-exclusive .exclusive-coupons-subtitle,
body.home-page-v2 .hf-exclusive .exclusive-star-icon {
    display: none !important;
}

body.home-page-v2 .hf-exclusive .exclusive-view-all-btn,
body.home-page-v2 .hf-exclusive .hf-view-all {
    background: var(--hf-primary);
    border: none;
    color: #fcfcfc;
}

/* Figma Stores Cards: 421×294 per card; horizontal gap increased for readability */
body.home-page-v2 .exclusive-coupons-section.hf-exclusive .exclusive-coupons-grid.hf-exclusive-grid,
body.home-page-v2 .hf-exclusive-grid,
body.exclusive-coupons-page .hf-exclusive-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: var(--hf-exclusive-grid-gap, 48px) !important;
    column-gap: var(--hf-exclusive-grid-gap, 48px) !important;
    row-gap: var(--hf-exclusive-grid-gap, 48px) !important;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1324px;
    margin-left: auto;
    margin-right: auto;
}

body.home-page-v2 .hf-exclusive-card,
body.exclusive-coupons-page .hf-exclusive-card {
    cursor: pointer;
    --hf-exclusive-h: 278px;
    --hf-exclusive-split: 57%;
    --hf-exclusive-badge: 62px;
    --hf-exclusive-success: var(--hf-success);
    --hf-exclusive-warning: var(--hf-cta-orange);
    --hf-exclusive-bottom: var(--hf-exclusive-card-panel, #86a3a3);
    position: relative;
    width: 100%;
    height: var(--hf-exclusive-h);
    min-height: var(--hf-exclusive-h);
    max-height: var(--hf-exclusive-h);
}

/* Seam punch (section bg bites into card edge) */
body.home-page-v2 .hf-exclusive-card::before,
body.exclusive-coupons-page .hf-exclusive-card::before {
    content: '';
    position: absolute;
    right: 0;
    top: var(--hf-exclusive-split);
    transform: translate(50%, -50%);
    width: var(--hf-exclusive-badge);
    height: var(--hf-exclusive-badge);
    border-radius: 50%;
    background: var(--hf-exclusive-section-bg);
    z-index: 2;
    pointer-events: none;
}

body.home-page-v2 .hf-exclusive-card-body,
body.exclusive-coupons-page .hf-exclusive-card-body {
    height: 100%;
    border-radius: 32px;
    overflow: hidden;
    background: var(--hf-gray-50);
    border: 4px solid var(--hf-gray-50);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.home-page-v2 .hf-exclusive-card.is-active-card .hf-exclusive-card-body,
body.exclusive-coupons-page .hf-exclusive-card.is-active-card .hf-exclusive-card-body {
    border-color: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

body.home-page-v2 a.hf-exclusive-card-top-link,
body.exclusive-coupons-page a.hf-exclusive-card-top-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex: 0 0 var(--hf-exclusive-split);
    min-height: 0;
}

body.home-page-v2 .hf-exclusive-card-top,
body.exclusive-coupons-page .hf-exclusive-card-top {
    height: 100%;
    background: #fff;
    padding: 1.1rem 1.25rem 0.85rem;
    padding-right: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-sizing: border-box;
}

body.home-page-v2 .hf-exclusive-logo-slot,
body.exclusive-coupons-page .hf-exclusive-logo-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 88px;
    max-height: 100px;
    flex: 1 1 auto;
}

body.home-page-v2 .hf-exclusive-card-top img,
body.home-page-v2 .hf-exclusive-card-top .media-logo-wrap,
body.home-page-v2 .hf-exclusive-card-top .media-logo-wrap img,
body.home-page-v2 .hf-exclusive-card-top .store-hero-logo-letter,
body.exclusive-coupons-page .hf-exclusive-card-top img,
body.exclusive-coupons-page .hf-exclusive-card-top .media-logo-wrap,
body.exclusive-coupons-page .hf-exclusive-card-top .media-logo-wrap img,
body.exclusive-coupons-page .hf-exclusive-card-top .store-hero-logo-letter {
    max-height: 96px;
    max-width: 200px;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

body.home-page-v2 .hf-exclusive-card-top .media-logo-wrap,
body.exclusive-coupons-page .hf-exclusive-card-top .media-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    width: 100%;
}

body.home-page-v2 .hf-exclusive-store-name,
body.exclusive-coupons-page .hf-exclusive-store-name {
    display: none !important;
}

body.home-page-v2 .hf-exclusive-visit,
body.exclusive-coupons-page .hf-exclusive-visit {
    display: block;
    flex: 0 0 auto;
    font-family: 'Raleway', 'Inter', system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.25;
    color: #4b5563;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    margin: 0;
}

body.home-page-v2 a.hf-exclusive-card-top-link:hover .hf-exclusive-visit,
body.exclusive-coupons-page a.hf-exclusive-card-top-link:hover .hf-exclusive-visit {
    color: #121a1d;
}

body.home-page-v2 .hf-exclusive-card-bottom,
body.exclusive-coupons-page .hf-exclusive-card-bottom {
    flex: 1 1 auto;
    min-height: 0;
    background: var(--hf-exclusive-bottom);
    border-top: 4px solid var(--hf-gray-50);
    padding: 0.85rem 1.25rem 1rem;
    padding-right: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    box-sizing: border-box;
}

body.home-page-v2 .hf-exclusive-off,
body.exclusive-coupons-page .hf-exclusive-off {
    font-family: 'Raleway', 'Inter', system-ui, sans-serif;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--hf-text-dark, #121a1d);
    line-height: 1.12;
    margin: 0;
}

body.home-page-v2 .hf-exclusive-desc,
body.exclusive-coupons-page .hf-exclusive-desc {
    font-family: 'Raleway', 'Inter', system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--hf-text-body, #1d1d1d);
    line-height: 1.4;
    margin: 0;
    max-width: 92%;
}

/* Figma badge: dark ring → orange/green disc → white rounded square + check */
body.home-page-v2 button.hf-exclusive-check,
body.exclusive-coupons-page button.hf-exclusive-check {
    position: absolute;
    right: 0;
    top: var(--hf-exclusive-split);
    transform: translate(50%, -50%);
    width: var(--hf-exclusive-badge);
    height: var(--hf-exclusive-badge);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border: 4px solid var(--hf-brand-dark, #2a4a4b);
    background: var(--hf-exclusive-section-bg, var(--hf-brand-dark));
    box-shadow: none;
}

body.home-page-v2 button.hf-exclusive-check:focus-visible,
body.exclusive-coupons-page button.hf-exclusive-check:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

body.home-page-v2 .hf-exclusive-check-dot,
body.exclusive-coupons-page .hf-exclusive-check-dot {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.25s ease;
}

body.home-page-v2 .hf-exclusive-check-dot .hf-exclusive-check-icon,
body.exclusive-coupons-page .hf-exclusive-check-dot .hf-exclusive-check-icon {
    transition: color 0.25s ease;
}

body.home-page-v2 .hf-exclusive-check-dot.is-pending,
body.exclusive-coupons-page .hf-exclusive-check-dot.is-pending {
    background: var(--hf-exclusive-warning, #ef813a);
}

body.home-page-v2 .hf-exclusive-check-dot.is-active,
body.exclusive-coupons-page .hf-exclusive-check-dot.is-active {
    background: var(--hf-exclusive-success, #2bae66);
}

body.home-page-v2 .hf-exclusive-check-mark,
body.exclusive-coupons-page .hf-exclusive-check-mark {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

body.home-page-v2 .hf-exclusive-check-dot.is-pending .hf-exclusive-check-icon,
body.exclusive-coupons-page .hf-exclusive-check-dot.is-pending .hf-exclusive-check-icon {
    color: var(--hf-exclusive-warning, #ef813a);
}

body.home-page-v2 .hf-exclusive-check-dot.is-active .hf-exclusive-check-icon,
body.exclusive-coupons-page .hf-exclusive-check-dot.is-active .hf-exclusive-check-icon {
    color: var(--hf-exclusive-success, #2bae66);
}

body.home-page-v2 .hf-exclusive-check-icon,
body.exclusive-coupons-page .hf-exclusive-check-icon {
    width: 14px;
    height: 14px;
    display: block;
    flex-shrink: 0;
}

@media (max-width: 960px) {
    body.home-page-v2 .exclusive-coupons-section.hf-exclusive .exclusive-coupons-grid.hf-exclusive-grid,
    body.home-page-v2 .hf-exclusive-grid,
    body.exclusive-coupons-page .hf-exclusive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 560px) {
    body.home-page-v2 .exclusive-coupons-section.hf-exclusive .exclusive-coupons-grid.hf-exclusive-grid,
    body.home-page-v2 .hf-exclusive-grid,
    body.exclusive-coupons-page .hf-exclusive-grid {
        grid-template-columns: 1fr !important;
    }

    body.home-page-v2 .hf-exclusive-card,
    body.exclusive-coupons-page .hf-exclusive-card {
        --hf-exclusive-h: auto;
        min-height: 280px;
        max-height: none;
        height: auto;
    }
}

/* Popular Categories — tune spacing via --hf-gap-popular-tabs / --hf-gap-section in :root above */
body.home-page-v2 .hf-popular-section {
    padding: 40px 0 32px;
    background: var(--hf-page-bg);
}

body.home-page-v2 .hf-popular-section .hf-section-head {
    margin-bottom: var(--hf-gap-popular-tabs);
    min-height: 62px;
    align-items: center;
    gap: 1rem;
}

body.home-page-v2 .hf-popular-section .hf-view-all {
    flex-shrink: 0;
}

body.home-page-v2 .hf-category-tabs {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--hf-category-tab-gap, 20px);
    margin-bottom: var(--hf-gap-section);
    min-height: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

body.home-page-v2 .hf-category-tab {
    flex: 0 0 auto;
    padding: var(--hf-category-tab-pad-y, 14px) var(--hf-category-tab-pad-x, 28px);
    min-height: var(--hf-category-tab-min-h, 52px);
    border: 1px solid var(--hf-brand-dark);
    border-radius: 6px;
    background: #fff;
    color: var(--hf-brand-dark);
    font-family: 'Raleway', 'Inter', system-ui, sans-serif;
    font-size: var(--hf-category-tab-font, 1.0625rem);
    line-height: 1.25;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap;
}

body.home-page-v2 .hf-category-tab.active {
    background: var(--hf-brand-dark);
    border-color: var(--hf-teal-100);
    color: var(--hf-teal-100);
}

body.home-page-v2 .hf-popular-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    width: 100%;
    max-width: 1324px;
    margin: 0 auto;
}

body.home-page-v2 .hf-pop-card {
    width: 100%;
    max-width: 419px;
    height: 320px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--hf-brand-dark);
    border: 1px solid var(--hf-brand-dark);
    box-shadow: 5px 5px 3.5px 2px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
}

body.home-page-v2 .hf-pop-card-top {
    flex: 0 0 138px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    box-sizing: border-box;
    background: #fff;
}

body.home-page-v2 .hf-pop-top-left {
    flex: 1 1 50%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    box-sizing: border-box;
    border-right: 1px solid var(--hf-offer-grey);
}

body.home-page-v2 .hf-pop-top-right {
    flex: 1 1 50%;
    background: var(--hf-offer-grey);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.5rem 0.75rem;
    box-sizing: border-box;
}

body.home-page-v2 .hf-pop-offer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
}

body.home-page-v2 .hf-pop-top-left img,
body.home-page-v2 .hf-pop-top-left .hf-pop-brand-logo-img,
body.home-page-v2 .hf-pop-top-left .store-hero-logo-letter,
body.home-page-v2 .hf-pop-top-left .hf-pop-brand-logo-fallback {
    max-height: 88px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

body.home-page-v2 .hf-pop-top-left .hf-pop-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

body.home-page-v2 .hf-pop-brand-name {
    display: none;
}

body.home-page-v2 .hf-pop-top-rule {
    display: none;
}

body.home-page-v2 .hf-pop-off-main,
body.home-page-v2 .hf-pop-off-single {
    font-family: 'Raleway', 'Inter', system-ui, sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--hf-text-dark);
    display: block;
}

body.home-page-v2 .hf-pop-off-sub {
    font-family: 'Raleway', 'Inter', system-ui, sans-serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--hf-text-dark);
    display: block;
    margin-top: 0.125rem;
}

body.home-page-v2 .hf-pop-card-bottom {
    flex: 1 1 auto;
    min-height: 0;
    background: var(--hf-brand-dark);
    padding: 8px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Figma Frame 8 bottom: dashed frame, 2-line copy upper, Redeem Now at bottom */
body.home-page-v2 .hf-pop-card-frame {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 14px 14px 14px 14px;
    border: 1px dashed #fff;
    border-radius: 16px;
    box-sizing: border-box;
    min-height: 154px;
    width: 100%;
    height: 100%;
}

body.home-page-v2 .hf-pop-frame-body {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    padding: 6px 8px 0;
    box-sizing: border-box;
}

body.home-page-v2 .hf-pop-desc {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 100%;
    width: 100%;
}

body.home-page-v2 .hf-pop-desc-line {
    display: block;
    font-family: 'Raleway', 'Inter', system-ui, sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.15;
    text-align: center;
}

body.home-page-v2 .hf-pop-redeem {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    margin-top: auto;
    border: 3px solid transparent;
    border-radius: 8px;
    background: var(--hf-cta-orange);
    color: #121a1d;
    font-family: 'Raleway', 'Inter', system-ui, sans-serif;
    font-size: 1.125rem;
    line-height: 1.2;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    box-sizing: border-box;
    flex-shrink: 0;
    overflow: hidden;
}

body.home-page-v2 .hf-pop-redeem:hover:not(.is-copied) {
    background: #e07f3a;
}

body.home-page-v2 .hf-pop-redeem-label {
    display: block;
    width: 100%;
    max-width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.home-page-v2 .hf-pop-redeem-copied {
    display: none;
}

body.home-page-v2 .hf-pop-redeem.is-copied {
    background: var(--hf-success);
    color: #fff;
    border-color: #fcfcfc;
    border-width: 3px;
    min-height: 44px;
    padding: 6px 10px;
}

body.home-page-v2 .hf-pop-redeem.is-copied:hover {
    background: #259a59;
    color: #fff;
}

body.home-page-v2 .hf-pop-redeem.is-copied .hf-pop-redeem-default {
    display: none;
}

body.home-page-v2 .hf-pop-redeem.is-copied .hf-pop-redeem-copied {
    display: block;
    font-size: 0.875rem;
    line-height: 1.25;
    letter-spacing: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

@media (max-width: 1100px) {
    body.home-page-v2 .hf-pop-off-main {
        font-size: 2rem;
        line-height: 1.15;
    }

    body.home-page-v2 .hf-pop-off-sub {
        font-size: 1.5rem;
    }

    body.home-page-v2 .hf-pop-desc-line {
        font-size: 1.75rem;
    }

    body.home-page-v2 .hf-pop-redeem {
        font-size: 1rem;
        min-height: 40px;
    }
}

@media (max-width: 960px) {
    body.home-page-v2 .hf-popular-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    body.home-page-v2 .hf-category-tabs {
        gap: 14px;
    }

    body.home-page-v2 .hf-category-tab {
        font-size: 0.9375rem;
        min-height: 44px;
        padding: 10px 18px;
    }

    body.home-page-v2 .hf-pop-card {
        height: auto;
        min-height: 300px;
    }

    body.home-page-v2 .hf-pop-card-top {
        flex-direction: column;
        flex: 0 0 auto;
        min-height: 0;
    }

    body.home-page-v2 .hf-pop-top-left,
    body.home-page-v2 .hf-pop-top-right {
        flex: 1 1 auto;
        min-height: 100px;
    }

    body.home-page-v2 .hf-pop-off-main {
        font-size: 1.75rem;
    }

    body.home-page-v2 .hf-pop-desc-line {
        font-size: 1.5rem;
    }
}

/* Recent Blogs — Figma: padding 0 58px 32px, gap 33, cards 418×422 */
body.home-page-v2 .recent-blogs-section {
    padding: 0 0 32px;
    background: var(--hf-page-bg);
}

body.home-page-v2 .recent-blogs-section .hf-section-head {
    margin-bottom: 40px;
    min-height: 62px;
}

body.home-page-v2 .recent-blogs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--hf-gap-cards);
    width: 100%;
    max-width: var(--hf-content-max);
    margin: 0 auto;
}

body.home-page-v2 .recent-blog-card,
body.home-page-v2 a.recent-blog-card.hf-blog-card {
    width: 100%;
    max-width: 418px;
    height: 422px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--hf-brand-dark);
    box-shadow: 5px 5px 3.5px 2px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #fff;
    box-sizing: border-box;
}

body.home-page-v2 .hf-blog-card-img {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    background: #eef1f1;
}

body.home-page-v2 .hf-blog-card-img img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
}

body.home-page-v2 .hf-blog-card-img--placeholder {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #c1e6e5 0%, #eef1f1 100%);
    color: var(--hf-brand-dark);
    font-size: 2.5rem;
}

body.home-page-v2 .recent-blog-content {
    flex: 0 0 auto;
    padding: 1.25rem 1.5rem 1.5rem;
    text-align: center;
    background: #fff;
}

body.home-page-v2 .recent-blog-title {
    margin: 0;
    font-family: 'Raleway', 'Inter', system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.167;
    text-decoration: underline;
    color: #000;
}

body.home-page-v2 .recent-blog-excerpt,
body.home-page-v2 .recent-blog-meta,
body.home-page-v2 .recent-blog-read-more {
    display: none;
}

/* Hide legacy homepage blocks */
body.home-page-v2 .home-legacy-hide {
    display: none !important;
}

/* Kill legacy global footer/header styles from style.css */
body.home-page-v2 .footer.footer--figma .footer-content,
body.home-page-v2 .footer.footer--figma .footer-section {
    display: none;
}

body.home-page-v2 .header.header--home {
    box-shadow: none !important;
}

body.home-page-v2 .header--home .header-nav-link::after {
    display: none;
}

body.home-page-v2 .header--home .header-nav-link {
    color: #1a2e2d;
}

body.home-page-v2 .header--home .header-nav-link:hover,
body.home-page-v2 .header--home .header-nav-link.active {
    color: var(--hf-teal);
}

/* Navbar: stay one line — tighten logo↔search and nav spacing (Figma proportions scaled down) */
@media (max-width: 1400px) {
    body.home-page-v2,
    body.wowuchers-site {
        --hf-header-pad-x: clamp(1.25rem, 3.5vw, 48px);
        --hf-header-logo-search-gap: 1.75rem;
        --hf-header-search-max: 340px;
        --hf-header-nav-gap: 2rem;
        --hf-header-actions-gap: 1.5rem;
    }
}

@media (max-width: 1200px) {
    body.home-page-v2,
    body.wowuchers-site {
        --hf-header-logo-search-gap: 1.25rem;
        --hf-header-search-max: 300px;
        --hf-header-search-min: 140px;
        --hf-header-nav-gap: 1.5rem;
        --hf-header-actions-gap: 1.25rem;
        --hf-header-auth-gap: 1rem;
        --hf-header-nav-size: 1.125rem;
        --hf-header-logo-w: 170px;
        --hf-header-logo-h: 38px;
        --hf-header-logo-mark-w: 42px;
        --hf-header-logo-wordmark-w: 114px;
    }
}

@media (max-width: 1024px) {
    body.home-page-v2 .recent-blogs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Beat style.css .header-content { flex-wrap: wrap } on tablet */
    body.home-page-v2 .header--home .header-content,
    body.wowuchers-site .header--home .header-content {
        flex-wrap: nowrap !important;
        gap: 0 !important;
    }

    body.home-page-v2 .header--home .search-container,
    body.wowuchers-site .header--home .search-container {
        order: unset !important;
        flex: 1 1 auto !important;
    }

    body.home-page-v2,
    body.wowuchers-site {
        --hf-header-pad-x: clamp(12px, 2vw, 24px);
        --hf-header-logo-search-gap: 0.75rem;
        --hf-header-search-max: 260px;
        --hf-header-search-min: 120px;
        --hf-header-nav-gap: 1rem;
        --hf-header-actions-gap: 0.75rem;
        --hf-header-auth-gap: 0.5rem;
        --hf-header-nav-size: 1rem;
        --hf-header-signup-h: 44px;
        --hf-header-signup-px: 16px;
        --hf-header-auth-size: 0.9375rem;
        /* Logo stays readable — only search/nav tighten, not a tiny logo */
        --hf-header-logo-w: 158px;
        --hf-header-logo-h: 36px;
        --hf-header-logo-mark-w: 40px;
        --hf-header-logo-wordmark-w: 106px;
    }
}

@media (max-width: 900px) {
    body.home-page-v2,
    body.wowuchers-site {
        --hf-header-logo-search-gap: 0.5rem;
        --hf-header-search-max: 200px;
        --hf-header-search-min: 80px;
        --hf-header-nav-gap: 0.65rem;
        --hf-header-signup-h: 40px;
        --hf-header-signup-px: 12px;
        --hf-header-logo-w: 145px;
        --hf-header-logo-h: 34px;
        --hf-header-logo-mark-w: 36px;
        --hf-header-logo-wordmark-w: 98px;
    }
}

/* Mobile: single-row header — beat style.css column layout + search order:3 */
@media (max-width: 768px) {
    body.home-page-v2,
    body.wowuchers-site {
        --hf-header-pad-x: 12px;
        --hf-header-pad-y: 8px;
        --hf-header-logo-search-gap: 0.35rem;
        --hf-header-search-max: none;
        --hf-header-actions-gap: 0.35rem;
        --hf-header-auth-gap: 0.35rem;
        --hf-header-signup-h: 38px;
        --hf-header-signup-px: 10px;
        --hf-header-auth-size: 0.8125rem;
        --hf-header-logo-w: 118px;
        --hf-header-logo-h: 30px;
        --hf-header-logo-mark-w: 30px;
        --hf-header-logo-wordmark-w: 78px;
        --hf-mobile-menu-slot: 40px;
    }

    body.home-page-v2 .header.header--home .container,
    body.wowuchers-site .header.header--home .container {
        position: relative;
    }

    body.home-page-v2 .header--home .header-content,
    body.wowuchers-site .header--home .header-content {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: max(calc(var(--hf-mobile-menu-slot) + 8px), calc(env(safe-area-inset-left) + var(--hf-mobile-menu-slot) + 4px));
        padding-right: max(12px, env(safe-area-inset-right));
        min-height: 52px;
        gap: 0.35rem;
    }

    body.home-page-v2 .header--home .logo,
    body.wowuchers-site .header--home .logo {
        flex: 0 0 auto;
        margin: 0 !important;
        min-width: var(--hf-header-logo-w);
        justify-content: flex-start !important;
    }

    body.home-page-v2 .header--home .header-nav-links,
    body.wowuchers-site .header--home .header-nav-links {
        display: none !important;
    }

    body.home-page-v2 .header--home .search-container,
    body.wowuchers-site .header--home .search-container {
        order: unset !important;
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 0.25rem !important;
    }

    body.home-page-v2 .header--home .search-bar,
    body.wowuchers-site .header--home .search-bar {
        max-width: none;
        min-height: 36px;
    }

    body.home-page-v2 .header--home .header-actions,
    body.wowuchers-site .header--home .header-actions {
        display: flex !important;
        flex: 0 0 auto !important;
        margin: 0 0 0 auto !important;
        justify-content: flex-end !important;
    }

    body.home-page-v2 .header--home .auth-buttons,
    body.wowuchers-site .header--home .auth-buttons {
        display: flex !important;
    }

    /* Hamburger in header row (not a separate grey bar) */
    body.home-page-v2 .header--home .main-nav.mobile-only,
    body.wowuchers-site .header--home .main-nav.mobile-only {
        display: block !important;
        position: absolute;
        left: max(8px, env(safe-area-inset-left));
        top: 0;
        bottom: 0;
        width: var(--hf-mobile-menu-slot);
        margin: 0;
        padding: 0;
        background: transparent !important;
        border: none !important;
        z-index: 12;
        pointer-events: none;
    }

    body.home-page-v2 .header--home .main-nav.mobile-only .container,
    body.wowuchers-site .header--home .main-nav.mobile-only .container {
        position: static;
        height: 100%;
        padding: 0;
        margin: 0;
        max-width: none;
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: auto;
    }

    body.home-page-v2 .header--home .mobile-menu-toggle,
    body.wowuchers-site .header--home .mobile-menu-toggle {
        display: flex !important;
        position: static !important;
        transform: none !important;
        margin: 0 !important;
        width: 36px;
        height: 36px;
    }

    /* Closed menu must not paint a border line through the header row */
    body.home-page-v2 .header--home .main-nav.mobile-only .nav-links,
    body.wowuchers-site .header--home .main-nav.mobile-only .nav-links {
        display: none;
        position: fixed;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        border: none;
        box-shadow: none;
        background: var(--hf-header-bg);
        z-index: 1001;
    }

    body.home-page-v2 .header--home .main-nav.mobile-only .nav-links.active,
    body.wowuchers-site .header--home .main-nav.mobile-only .nav-links.active {
        display: flex;
        flex-direction: column;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--hf-header-border);
        box-shadow: 0 8px 24px rgba(18, 26, 29, 0.08);
    }

    body.home-page-v2 .header--home .main-nav.mobile-only .nav-link,
    body.wowuchers-site .header--home .main-nav.mobile-only .nav-link {
        font-family: 'Raleway', 'Inter', system-ui, sans-serif;
        font-size: 1rem;
        font-weight: 400;
        color: var(--hf-text-body);
        padding: 0.85rem 1.25rem;
        border-bottom: 1px solid var(--hf-header-border);
    }

    body.home-page-v2 .header--home .main-nav.mobile-only .nav-link:last-child,
    body.wowuchers-site .header--home .main-nav.mobile-only .nav-link:last-child {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    body.home-page-v2,
    body.wowuchers-site {
        --hf-header-logo-w: 100px;
        --hf-header-logo-mark-w: 26px;
        --hf-header-logo-wordmark-w: 66px;
        --hf-header-signup-px: 8px;
    }

}

@media (max-width: 640px) {
    body.home-page-v2 .recent-blogs-grid {
        grid-template-columns: 1fr;
    }

    body.home-page-v2 .recent-blog-card,
    body.home-page-v2 a.recent-blog-card.hf-blog-card {
        height: auto;
        min-height: 360px;
        max-width: 100%;
    }
}

@media (max-width: 1100px) {
    body.home-page-v2 .hf-trending-layout {
        flex-direction: column;
        gap: 1.5rem;
    }

    body.home-page-v2 .hf-trending-featured {
        flex: none;
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }
}

@media (max-width: 1024px) {
    body.home-page-v2 .hf-trending-grid,
    body.home-page-v2 .hf-exclusive-grid,
    body.home-page-v2 .hf-popular-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    body.home-page-v2 .hf-trending-grid,
    body.home-page-v2 .hf-exclusive-grid,
    body.home-page-v2 .hf-popular-grid {
        grid-template-columns: 1fr;
    }
}
