/* ==========================================================================
   Gleneagles Gift Voucher Browsing Site — Main Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   § 1. CSS RESET
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    line-height: 1.2;
}

p {
    overflow-wrap: break-word;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

fieldset {
    border: none;
}

/* Remove default search input styling */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
}


/* --------------------------------------------------------------------------
   § 2. BASE / GLOBAL STYLES
   -------------------------------------------------------------------------- */

body {
    font-family: var(--body-font-family);
    color: var(--body-font-color);
    background-color: var(--body-background-color);
    font-size: 16px;
    font-weight: 400;
}

/* Skip-to-content (accessibility) */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10000;
    padding: 12px 24px;
    background-color: var(--button-primary-bg-color);
    color: var(--button-primary-font-color);
    font-family: var(--button-global-font-family);
    font-weight: 600;
    text-transform: var(--button-global-text-transform);
    border-radius: 0 0 4px 4px;
    transition: top 0.2s ease;
}

.skip-to-content:focus {
    top: 0;
    outline: 2px solid var(--anchor-hover-color);
    outline-offset: 2px;
}

/* Focus-visible for all interactive elements */
:focus-visible {
    outline: 2px solid var(--anchor-hover-color);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}


/* --------------------------------------------------------------------------
   § 3. TYPOGRAPHY
   -------------------------------------------------------------------------- */

h1 {
    font-family: var(--heading-1-font-family);
    color: var(--heading-1-font-color);
    text-transform: var(--heading-1-text-transform);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    letter-spacing: -0.01em;
}

h2 {
    font-family: var(--heading-2-font-family);
    color: var(--heading-2-font-color);
    text-transform: var(--heading-2-text-transform);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 400;
    letter-spacing: -0.01em;
}

h3 {
    font-family: var(--heading-3-font-family);
    color: var(--heading-3-font-color);
    text-transform: var(--heading-3-text-transform);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 400;
}

h4 {
    font-family: var(--heading-4-font-family);
    color: var(--heading-4-font-color);
    text-transform: var(--heading-4-text-transform);
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 400;
}

a {
    color: var(--anchor-font-color);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--anchor-hover-color);
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.section-subtitle {
    font-family: var(--body-font-family);
    font-size: 1rem;
    color: var(--body-font-color);
    opacity: 0.7;
    margin-top: 0.5rem;
}


/* --------------------------------------------------------------------------
   § 4. LAYOUT UTILITIES
   -------------------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 16px;
}

@media (min-width: 768px) {
    .container {
        padding-inline: 32px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-inline: 48px;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* --------------------------------------------------------------------------
   § 5. BUTTONS
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--button-global-font-family);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: var(--button-global-text-transform);
    border-radius: 2px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.25s ease,
                color 0.25s ease,
                border-color 0.25s ease,
                box-shadow 0.25s ease;
    white-space: nowrap;
    line-height: 1;
}

.btn--primary {
    background-color: var(--button-primary-bg-color);
    color: var(--button-primary-font-color);
    border-color: var(--button-primary-border-color);
}

.btn--primary:hover {
    background-color: var(--anchor-hover-color);
    border-color: var(--anchor-hover-color);
    color: var(--button-primary-bg-color);
}

.btn--secondary {
    background-color: var(--button-secondary-bg-color);
    color: var(--button-secondary-font-color);
    border-color: var(--button-secondary-border-color);
}

.btn--secondary:hover {
    background-color: var(--button-primary-bg-color);
    color: var(--button-primary-font-color);
    border-color: var(--button-primary-bg-color);
}

.btn--outline {
    background-color: transparent;
    color: var(--button-primary-bg-color);
    border-color: var(--button-primary-border-color);
}

.btn--outline:hover {
    background-color: var(--button-primary-bg-color);
    color: var(--button-primary-font-color);
}

.btn--sm {
    padding: 8px 20px;
    font-size: 0.78rem;
}

.btn--lg {
    padding: 16px 36px;
    font-size: 0.9rem;
}

.btn--full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}


/* --------------------------------------------------------------------------
   § 6. HEADER
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   § 6a. PROMO BANNER (thin top strip)
   -------------------------------------------------------------------------- */

.promo-banner {
    background-color: var(--button-primary-bg-color);
    color: var(--button-primary-font-color);
    font-family: var(--body-font-family);
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    line-height: 1.4;
    padding: 8px 0;
}

.promo-banner__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.promo-banner__text {
    text-align: center;
}

.promo-banner__text strong {
    font-weight: 700;
    letter-spacing: 0.06em;
}

.promo-banner__link {
    color: var(--anchor-hover-color);
    text-decoration: underline;
    font-weight: 600;
    margin-left: 6px;
    transition: opacity 0.2s ease;
}

.promo-banner__link:hover {
    opacity: 0.8;
}

.promo-banner__close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--button-primary-font-color);
    opacity: 0.6;
    transition: opacity 0.2s ease;
    margin-left: 12px;
}

.promo-banner__close:hover {
    opacity: 1;
}

.promo-banner--hidden {
    display: none;
}

/* --------------------------------------------------------------------------
   § 6b. SALE BANNER
   -------------------------------------------------------------------------- */

.sale-banner {
    background-color: var(--button-primary-bg-color);
    color: var(--button-primary-font-color);
    text-align: center;
    padding: 3rem 0;
}

.sale-banner__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.sale-banner__tag {
    display: inline-block;
    padding: 4px 16px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    color: var(--button-primary-font-color);
}

.sale-banner__title {
    font-family: var(--heading-2-font-family);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
    color: var(--button-primary-font-color);
}

.sale-banner__text {
    font-family: var(--body-font-family);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 480px;
    opacity: 0.85;
    margin: 0;
}

.sale-banner__cta {
    margin-top: 0.5rem;
    background-color: #fff;
    color: var(--button-primary-bg-color);
    border-color: #fff;
}

.sale-banner__cta:hover {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

/* --------------------------------------------------------------------------
   § 6c. FEATURED DEALS
   -------------------------------------------------------------------------- */

.featured-deals {
    padding: 4rem 0;
    background-color: var(--body-background-color);
}

.featured-deals .section-subtitle {
    text-align: center;
    margin-bottom: 2rem;
}

.featured-deals__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 48px;
}

.featured-deals__grid .voucher-card {
    opacity: 1;
}

/* Deal price styling — strikethrough original + sale price */
.price--original {
    text-decoration: line-through;
    opacity: 0.5;
    font-size: 0.85em;
    font-weight: 400;
    margin-right: 4px;
}

.price--discount {
    color: #b3432a;
    font-weight: 700;
}

/* Sale badge on featured deal cards */
.voucher-card__sale-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #b3432a;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
    z-index: 2;
}

@media (max-width: 1024px) {
    .featured-deals__grid {
        grid-template-columns: repeat(2, 1fr);
        padding-inline: 32px;
    }
}

@media (max-width: 767px) {
    .featured-deals__grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 16px;
        padding: 8px 16px 16px;
        gap: 16px;
        scrollbar-width: thin;
        scrollbar-color: var(--button-secondary-bg-color) transparent;
    }

    .featured-deals__grid::-webkit-scrollbar { height: 6px; }
    .featured-deals__grid::-webkit-scrollbar-track { background: transparent; }
    .featured-deals__grid::-webkit-scrollbar-thumb {
        background-color: var(--button-secondary-bg-color);
        border-radius: 3px;
    }

    .featured-deals__grid .voucher-card {
        flex: 0 0 260px;
        scroll-snap-align: start;
    }
}

@media (max-width: 480px) {

    .sale-banner {
        padding: 2rem 0;
    }
}

/* --------------------------------------------------------------------------
   § 7. HEADER
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--header-background-color);
    border-bottom: 1px solid var(--button-secondary-border-color);
    transition: box-shadow 0.3s ease;
}

.site-header--scrolled {
    box-shadow: 0 2px 12px rgba(19, 57, 48, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

@media (min-width: 768px) {
    .header-inner {
        height: 72px;
    }
}

/* Logo */
.header-logo {
    flex-shrink: 0;
}

.header-logo img {
    height: 28px;
    width: auto;
}

@media (min-width: 768px) {
    .header-logo img {
        height: 34px;
    }
}

/* Desktop Navigation */
.header-nav {
    display: none;
}

@media (min-width: 768px) {
    .header-nav {
        display: flex;
        align-items: center;
        gap: 32px;
    }
}

.header-nav__link {
    font-family: var(--header-font-family);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: var(--header-text-transform);
    color: var(--header-font-color);
    padding: 4px 0;
    position: relative;
    transition: color 0.2s ease;
}

.header-nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--anchor-hover-color);
    transition: width 0.3s ease;
}

.header-nav__link:hover::after,
.header-nav__link--active::after {
    width: 100%;
}

.header-nav__link:hover {
    color: var(--anchor-hover-color);
}

/* Header Actions (search, basket) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (min-width: 768px) {
    .header-actions {
        gap: 20px;
    }
}

.header-action-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--header-font-color);
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.header-action-btn:hover {
    background-color: var(--button-secondary-bg-color);
}

.header-action-btn svg,
.header-action-btn img {
    width: 20px;
    height: 20px;
}

/* Basket badge */
.basket-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background-color: var(--button-primary-bg-color);
    color: var(--button-primary-font-color);
    font-family: var(--body-font-family);
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    pointer-events: none;
}

.basket-badge--bounce {
    animation: badge-bounce 0.4s ease;
}

@keyframes badge-bounce {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.35); }
    70%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    gap: 5px;
    cursor: pointer;
}

@media (min-width: 768px) {
    .hamburger {
        display: none;
    }
}

.hamburger__line {
    display: block;
    width: 22px;
    height: 1.5px;
    background-color: var(--header-font-color);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger--active .hamburger__line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.hamburger--active .hamburger__line:nth-child(2) {
    opacity: 0;
}

.hamburger--active .hamburger__line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}


/* --------------------------------------------------------------------------
   § 7. MOBILE MENU (slide-out)
   -------------------------------------------------------------------------- */

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(19, 57, 48, 0.4);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay--open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100%;
    background-color: var(--body-background-color);
    z-index: 1200;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 80px 24px 32px;
}

.mobile-menu--open {
    transform: translateX(0);
}

.mobile-menu__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--body-font-color);
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-menu__link {
    display: block;
    padding: 16px 0;
    font-family: var(--heading-3-font-family);
    font-size: 1.25rem;
    color: var(--body-font-color);
    border-bottom: 1px solid var(--button-secondary-border-color);
    transition: color 0.2s ease;
}

.mobile-menu__link:hover {
    color: var(--anchor-hover-color);
}

@media (min-width: 768px) {
    .mobile-menu,
    .mobile-menu-overlay {
        display: none;
    }
}


/* --------------------------------------------------------------------------
   § 8. PAGE VIEWS / TRANSITIONS
   -------------------------------------------------------------------------- */

.page-view {
    display: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.page-view--active {
    display: block;
}

.page-view--visible {
    opacity: 1;
}


/* --------------------------------------------------------------------------
   § 9. HERO SECTION
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero {
        height: 60vh;
    }
}

@media (min-width: 1024px) {
    .hero {
        height: 70vh;
        min-height: 480px;
    }
}

.hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(19, 57, 48, 0.7) 0%,
        rgba(19, 57, 48, 0.5) 70%,
        rgba(19, 57, 48, 0.5) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 640px;
    padding: 0 24px;
}

.hero__title {
    color: #ffffff;
    margin-bottom: 16px;
    font-size: clamp(2rem, 6vw, 3.75rem);
}

.hero__subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--body-font-family);
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    margin-bottom: 28px;
    line-height: 1.6;
}

.hero__cta {
    margin-top: 8px;
}


/* --------------------------------------------------------------------------
   § 10. CATEGORY SHOWCASE GRID (Homepage)
   -------------------------------------------------------------------------- */

.category-showcase {
    padding: 48px 0;
}

@media (min-width: 768px) {
    .category-showcase {
        padding: 72px 0;
    }
}

.category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 2rem;
}

@media (min-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (min-width: 768px) {
    .category-grid {
        gap: 20px;
    }

    .category-grid__item--featured,
    .category-card.featured {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .category-grid__item--featured,
    .category-card.featured {
        grid-column: span 2;
    }
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    height: 220px;
    cursor: pointer;
}

@media (min-width: 480px) {
    .category-card {
        height: 240px;
    }
}

@media (min-width: 768px) {
    .category-card {
        height: 280px;
    }

    .category-grid__item--featured .category-card,
    .category-card.featured {
        height: 320px;
    }
}

.category-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover .category-card__image {
    transform: scale(1.05);
}

.category-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(19, 57, 48, 0.7) 0%,
        rgba(19, 57, 48, 0.15) 60%
    );
    transition: background 0.3s ease;
}

.category-card:hover .category-card__overlay {
    background: linear-gradient(
        to top,
        rgba(19, 57, 48, 0.55) 0%,
        rgba(19, 57, 48, 0.08) 60%
    );
}

.category-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 1;
}

.category-card__name {
    font-family: var(--heading-3-font-family);
    color: #ffffff;
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.category-card__count {
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--body-font-family);
    font-size: 0.82rem;
    letter-spacing: 0.03em;
}


/* --------------------------------------------------------------------------
   § 11. PROMOTED VOUCHERS SECTION (Horizontal scroll)
   -------------------------------------------------------------------------- */

.promoted-section {
    padding: 48px 0;
}

@media (min-width: 768px) {
    .promoted-section {
        padding: 72px 0;
    }
}

.promoted-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 16px;
    padding: 8px 16px 16px;
    max-width: 1280px;
    margin-inline: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--button-secondary-bg-color) transparent;
}

.promoted-scroll::-webkit-scrollbar {
    height: 6px;
}

.promoted-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.promoted-scroll::-webkit-scrollbar-thumb {
    background-color: var(--button-secondary-bg-color);
    border-radius: 3px;
}

@media (min-width: 768px) {
    .promoted-scroll {
        scroll-padding: 32px;
        padding: 8px 32px 16px;
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .promoted-scroll {
        scroll-padding: 48px;
        padding: 8px 48px 16px;
    }
}

.promoted-scroll .voucher-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
}

@media (min-width: 480px) {
    .promoted-scroll .voucher-card {
        flex: 0 0 300px;
    }
}

@media (min-width: 768px) {
    .promoted-scroll .voucher-card {
        flex: 0 0 320px;
    }
}


/* --------------------------------------------------------------------------
   § 12. MONETARY CALLOUT BANNER
   -------------------------------------------------------------------------- */

.monetary-callout {
    background-color: var(--button-primary-bg-color);
    padding: 48px 0;
    text-align: center;
}

@media (min-width: 768px) {
    .monetary-callout {
        padding: 72px 0;
    }
}

.monetary-callout__title {
    color: #ffffff;
    font-family: var(--heading-2-font-family);
    margin-bottom: 12px;
}

.monetary-callout__text {
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--body-font-family);
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

.monetary-callout .btn--primary {
    background-color: var(--anchor-hover-color);
    border-color: var(--anchor-hover-color);
    color: var(--button-primary-bg-color);
}

.monetary-callout .btn--primary:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    color: var(--button-primary-bg-color);
}


/* --------------------------------------------------------------------------
   § 13. CATEGORY PAGE — Banner
   -------------------------------------------------------------------------- */

.category-banner {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--button-primary-bg-color);
}

@media (min-width: 768px) {
    .category-banner {
        height: 260px;
    }
}

.category-banner__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: 0;
}

.category-banner .hero__overlay {
    z-index: 1;
}

.category-banner__title {
    z-index: 2;
}

.category-banner__count {
    z-index: 2;
}

.category-banner__title {
    position: relative;
    z-index: 2;
    color: #ffffff;
    text-align: center;
    padding: 0 24px;
}


/* --------------------------------------------------------------------------
   § 14. CATEGORY PAGE — Layout (sidebar + grid)
   -------------------------------------------------------------------------- */

.category-layout {
    padding-top: 32px;
    padding-bottom: 64px;
}

@media (min-width: 1024px) {
    .category-layout {
        display: grid;
        grid-template-columns: 250px 1fr;
        gap: 40px;
        align-items: start;
    }
}

/* Sort / filter toolbar (above grid) */
.grid-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.grid-toolbar__count {
    font-size: 0.9rem;
    color: var(--body-font-color);
    opacity: 0.7;
}

.sort-select {
    appearance: none;
    -webkit-appearance: none;
    padding: 8px 36px 8px 14px;
    font-family: var(--body-font-family);
    font-size: 0.85rem;
    color: var(--body-font-color);
    background-color: #ffffff;
    border: 1px solid var(--button-secondary-border-color);
    border-radius: 2px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23133930' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

.sort-select:focus {
    border-color: var(--button-primary-bg-color);
}

/* Active filter pills / chips */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-family: var(--body-font-family);
    font-size: 0.8rem;
    background-color: #ffffff;
    border: 1px solid var(--button-secondary-border-color);
    border-radius: 20px;
    cursor: default;
    transition: background-color 0.2s ease;
}

.filter-chip__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 0.7rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.15s ease;
}

.filter-chip__remove:hover {
    background-color: var(--button-secondary-bg-color);
}

.active-filters__clear {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--anchor-font-color);
    text-decoration: underline;
    cursor: pointer;
    padding: 6px 0;
    transition: color 0.2s ease;
}

.active-filters__clear:hover {
    color: var(--anchor-hover-color);
}


/* --------------------------------------------------------------------------
   § 15. FILTER SIDEBAR (desktop)
   -------------------------------------------------------------------------- */

.filter-sidebar {
    display: none;
}

@media (min-width: 1024px) {
    .filter-sidebar {
        display: block;
        position: sticky;
        top: 96px;
    }
}

.filter-sidebar__title {
    font-family: var(--heading-4-font-family);
    font-size: 1.1rem;
    color: var(--heading-4-font-color);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--button-secondary-border-color);
}

/* Filter sections */
.filter-section {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--button-secondary-border-color);
    padding-bottom: 20px;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
    padding: 4px 0;
    font-family: var(--body-font-family);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--body-font-color);
    text-align: left;
}

.filter-section__toggle {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
    font-size: 0.75rem;
}

.filter-section--collapsed .filter-section__toggle {
    transform: rotate(-90deg);
}

.filter-section__body {
    margin-top: 12px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 500px;
    opacity: 1;
}

.filter-section--collapsed .filter-section__body {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

/* Checkboxes */
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    cursor: pointer;
    font-size: 0.88rem;
}

.filter-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--button-secondary-border-color);
    border-radius: 2px;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.filter-checkbox input[type="checkbox"]:checked {
    background-color: var(--button-primary-bg-color);
    border-color: var(--button-primary-bg-color);
}

.filter-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-checkbox__label {
    flex: 1;
}

.filter-checkbox__count {
    font-size: 0.78rem;
    opacity: 0.5;
}

/* Price range */
.filter-range {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.filter-range__input {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.85rem;
    border: 1px solid var(--button-secondary-border-color);
    border-radius: 2px;
    background-color: #ffffff;
    text-align: center;
}

.filter-range__separator {
    font-size: 0.85rem;
    opacity: 0.5;
}


/* --------------------------------------------------------------------------
   § 16. MOBILE FILTER SHEET
   -------------------------------------------------------------------------- */

.mobile-filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: sticky;
    top: 64px;
    z-index: 100;
    background-color: var(--body-background-color);
    border-bottom: 1px solid var(--button-secondary-border-color);
    padding: 10px 16px;
    margin: 0 -16px 24px;
}

@media (min-width: 1024px) {
    .mobile-filter-bar {
        display: none;
    }
}

.mobile-filter-bar__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--body-font-family);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--button-secondary-border-color);
    border-radius: 2px;
    background-color: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.mobile-filter-bar__btn:hover {
    border-color: var(--button-primary-bg-color);
}

/* Filter overlay / sheet */
.filter-sheet-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(19, 57, 48, 0.4);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.filter-sheet-overlay--open {
    opacity: 1;
    visibility: visible;
}

.filter-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 85vh;
    background-color: var(--body-background-color);
    z-index: 1200;
    border-radius: 12px 12px 0 0;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 24px 24px 100px;
}

.filter-sheet--open {
    transform: translateY(0);
}

.filter-sheet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--button-secondary-border-color);
}

.filter-sheet__title {
    font-family: var(--heading-3-font-family);
    font-size: 1.25rem;
}

.filter-sheet__close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-sheet__actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    background-color: var(--body-background-color);
    border-top: 1px solid var(--button-secondary-border-color);
    z-index: 1300;
}

.filter-sheet__actions .btn {
    flex: 1;
}

@media (min-width: 1024px) {
    .filter-sheet,
    .filter-sheet-overlay {
        display: none;
    }
}


/* --------------------------------------------------------------------------
   § 17. VOUCHER CARDS
   -------------------------------------------------------------------------- */

.voucher-card {
    background-color: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s ease;
    cursor: pointer;
}

.voucher-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 28px rgba(19, 57, 48, 0.1);
}

.voucher-card__image-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.voucher-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.voucher-card:hover .voucher-card__image {
    transform: scale(1.05);
}

.voucher-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    font-family: var(--body-font-family);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background-color: rgba(255, 255, 255, 0.92);
    color: var(--body-font-color);
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.voucher-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

@media (min-width: 768px) {
    .voucher-card__body {
        padding: 20px;
    }
}

.voucher-card__name {
    font-family: var(--heading-4-font-family);
    font-size: 1.05rem;
    color: var(--heading-4-font-color);
    margin-bottom: 8px;
    line-height: 1.35;
}

.voucher-card__description {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--body-font-color);
    opacity: 0.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
    flex: 1;
}

/* Option select dropdown on buying option cards */
.voucher-card__options {
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 12px;
    font-family: var(--body-font-family);
    font-size: 0.85rem;
    color: var(--body-font-color);
    background-color: var(--body-background-color);
    border: 1px solid var(--button-secondary-border-color);
    border-radius: 4px;
    cursor: pointer;
    appearance: auto;
}

.voucher-card__options:focus {
    outline: 2px solid var(--button-primary-bg-color);
    outline-offset: 1px;
}

.voucher-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.voucher-card__price {
    font-family: var(--body-font-family);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--body-font-color);
}

.voucher-card__price--from {
    font-size: 0.78rem;
    font-weight: 400;
    opacity: 0.6;
    margin-right: 4px;
}


/* --------------------------------------------------------------------------
   § 18. VOUCHER GRID (Category page)
   -------------------------------------------------------------------------- */

.voucher-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 480px) {
    .voucher-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .voucher-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

/* Load-more or pagination */
.grid-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}


/* --------------------------------------------------------------------------
   § 19. VOUCHER DETAIL PAGE
   -------------------------------------------------------------------------- */

.voucher-detail {
    padding: 32px 0 64px;
}

.voucher-detail__layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

@media (min-width: 768px) {
    .voucher-detail__layout {
        flex-direction: row;
        gap: 48px;
    }
}

/* Image column */
.voucher-detail__media {
    width: 100%;
}

@media (min-width: 768px) {
    .voucher-detail__media {
        width: 55%;
        flex-shrink: 0;
    }
}

.voucher-detail__image {
    width: 100%;
    border-radius: 4px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

/* Info column */
.voucher-detail__info {
    flex: 1;
}

.voucher-detail__badge {
    display: inline-block;
    padding: 4px 14px;
    font-family: var(--body-font-family);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background-color: var(--button-secondary-bg-color);
    color: var(--body-font-color);
    border-radius: 20px;
    margin-bottom: 16px;
}

.voucher-detail__title {
    margin-bottom: 12px;
}

.voucher-detail__description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--body-font-color);
    opacity: 0.8;
    margin-bottom: 24px;
}

/* Detail page option selector (buying options) */
.voucher-detail__options {
    margin-bottom: 24px;
}

.voucher-detail__options-label {
    display: block;
    font-family: var(--body-font-family);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--body-font-color);
    margin-bottom: 8px;
}

.voucher-detail__options-select {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--body-font-family);
    font-size: 0.95rem;
    color: var(--body-font-color);
    background-color: #ffffff;
    border: 1px solid var(--button-secondary-border-color);
    border-radius: 4px;
    cursor: pointer;
    appearance: auto;
}

.voucher-detail__options-select:focus {
    outline: 2px solid var(--button-primary-bg-color);
    outline-offset: 1px;
}

.voucher-detail__price-block {
    margin-bottom: 28px;
    padding: 20px 0;
    border-top: 1px solid var(--button-secondary-border-color);
    border-bottom: 1px solid var(--button-secondary-border-color);
}

.voucher-detail__price {
    font-family: var(--heading-2-font-family);
    font-size: 1.75rem;
    color: var(--heading-2-font-color);
}

.voucher-detail__price-note {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-top: 4px;
}

.voucher-detail__actions {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

/* Collapsible sections (T&Cs, long description) */
.collapsible {
    border-bottom: 1px solid var(--button-secondary-border-color);
}

.collapsible__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 0;
    font-family: var(--body-font-family);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--body-font-color);
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
}

.collapsible__trigger:hover {
    color: var(--anchor-hover-color);
}

.collapsible__icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
    font-size: 0.8rem;
}

.collapsible--open .collapsible__icon {
    transform: rotate(180deg);
}

.collapsible__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0;
}

.collapsible--open .collapsible__content {
    max-height: 1000px;
    padding-bottom: 20px;
}

.collapsible__content p {
    font-size: 0.88rem;
    line-height: 1.7;
    opacity: 0.75;
}

/* Mobile sticky add-to-basket */
.mobile-add-bar {
    display: none;
}

@media (max-width: 767px) {
    .mobile-add-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 900;
        background-color: #ffffff;
        padding: 12px 16px;
        border-top: 1px solid var(--button-secondary-border-color);
        box-shadow: 0 -4px 16px rgba(19, 57, 48, 0.08);
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }
}

.mobile-add-bar__price {
    font-family: var(--heading-3-font-family);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--body-font-color);
    white-space: nowrap;
}

.mobile-add-bar .btn {
    flex: 1;
    max-width: 240px;
}

/* Related vouchers */
.related-vouchers {
    padding: 48px 0;
    border-top: 1px solid var(--button-secondary-border-color);
    margin-top: 48px;
}

@media (min-width: 768px) {
    .related-vouchers {
        padding: 64px 0;
    }
}

.related-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 16px;
    padding: 8px 16px 16px;
    max-width: 1280px;
    margin-inline: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--button-secondary-bg-color) transparent;
}

.related-scroll::-webkit-scrollbar {
    height: 6px;
}

.related-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.related-scroll::-webkit-scrollbar-thumb {
    background-color: var(--button-secondary-bg-color);
    border-radius: 3px;
}

@media (min-width: 768px) {
    .related-scroll {
        padding: 8px 32px 16px;
    }
}

@media (min-width: 1024px) {
    .related-scroll {
        padding: 8px 48px 16px;
    }
}

.related-scroll .voucher-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
}

@media (min-width: 480px) {
    .related-scroll .voucher-card {
        flex: 0 0 280px;
    }
}


/* --------------------------------------------------------------------------
   § 20. SEARCH OVERLAY
   -------------------------------------------------------------------------- */

/* Desktop: dropdown panel */
.search-panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: 420px;
    max-height: 480px;
    background-color: #ffffff;
    border: 1px solid var(--button-secondary-border-color);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 12px 32px rgba(19, 57, 48, 0.12);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    overflow-y: auto;
}

.search-panel--open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile: full-screen overlay */
@media (max-width: 767px) {
    .search-panel {
        position: fixed;
        inset: 0;
        width: 100%;
        max-height: none;
        border: none;
        border-radius: 0;
        transform: none;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .search-panel--open {
        transform: none;
    }
}

.search-panel__header {
    position: sticky;
    top: 0;
    background-color: #ffffff;
    padding: 16px 20px;
    border-bottom: 1px solid var(--button-secondary-border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-panel__input {
    flex: 1;
    padding: 10px 0;
    border: none;
    font-family: var(--body-font-family);
    font-size: 1rem;
    color: var(--body-font-color);
    background: transparent;
}

.search-panel__input::placeholder {
    color: var(--body-font-color);
    opacity: 0.4;
}

.search-panel__input:focus {
    outline: none;
}

.search-panel__close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-results {
    padding: 8px 0;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.search-result-item:hover {
    background-color: var(--alert-color);
}

.search-result-item__image {
    width: 56px;
    height: 40px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.search-result-item__info {
    flex: 1;
    min-width: 0;
}

.search-result-item__name {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-item__category {
    font-size: 0.78rem;
    opacity: 0.5;
    margin-top: 2px;
}

.search-result-item__price {
    font-size: 0.88rem;
    font-weight: 600;
    flex-shrink: 0;
}

.search-no-results {
    padding: 40px 20px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.5;
}


/* --------------------------------------------------------------------------
   § 21. FOOTER
   -------------------------------------------------------------------------- */

.site-footer {
    background-color: var(--footer-bg-color);
    color: var(--footer-font-color);
    padding: 48px 0 32px;
}

@media (min-width: 768px) {
    .site-footer {
        padding: 64px 0 40px;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

@media (min-width: 480px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
    }
}

.footer-col__title {
    font-family: var(--heading-4-font-family);
    font-size: 1rem;
    color: var(--footer-font-color);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.footer-col__link {
    display: block;
    padding: 4px 0;
    font-size: 0.88rem;
    color: var(--footer-link-color);
    transition: color 0.2s ease;
}

.footer-col__link:hover {
    color: var(--footer-link-color-hover);
}

.footer-contact p {
    font-size: 0.88rem;
    line-height: 1.7;
    opacity: 0.85;
}

/* Payment icons area */
.footer-payments {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.footer-payments img,
.footer-payments svg {
    height: 24px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.footer-payments img:hover,
.footer-payments svg:hover {
    opacity: 1;
}

/* Footer bottom / legal */
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom__copy {
    font-size: 0.8rem;
    opacity: 0.6;
}

.footer-bottom__links {
    display: flex;
    gap: 20px;
}

.footer-bottom__links a {
    font-size: 0.8rem;
    color: var(--footer-link-color);
    opacity: 0.6;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-bottom__links a:hover {
    opacity: 1;
    color: var(--footer-link-color-hover);
}


/* --------------------------------------------------------------------------
   § 22. TOAST / SNACKBAR
   -------------------------------------------------------------------------- */

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    z-index: 9000;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background-color: var(--button-primary-bg-color);
    color: var(--button-primary-font-color);
    font-family: var(--body-font-family);
    font-size: 0.9rem;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(19, 57, 48, 0.2);
    white-space: nowrap;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s ease;
    opacity: 0;
}

.toast--visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast__action {
    font-weight: 600;
    color: var(--anchor-hover-color);
    margin-left: 8px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    transition: opacity 0.2s ease;
}

.toast__action:hover {
    opacity: 0.8;
}

/* Push toast above mobile add bar when detail page is active */
@media (max-width: 767px) {
    .page-view--detail .toast {
        bottom: 80px;
    }
}


/* --------------------------------------------------------------------------
   § 23. LOADING / SKELETON STATES
   -------------------------------------------------------------------------- */

.skeleton {
    background: linear-gradient(
        90deg,
        var(--button-secondary-bg-color) 25%,
        #e0e4de 50%,
        var(--button-secondary-bg-color) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes skeleton-pulse {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton--text {
    height: 14px;
    margin-bottom: 8px;
    width: 80%;
}

.skeleton--text-sm {
    height: 12px;
    width: 50%;
}

.skeleton--image {
    aspect-ratio: 16 / 9;
    width: 100%;
}

.skeleton--heading {
    height: 24px;
    width: 60%;
    margin-bottom: 12px;
}


/* --------------------------------------------------------------------------
   § 24. EMPTY / ERROR STATES
   -------------------------------------------------------------------------- */

.empty-state {
    text-align: center;
    padding: 64px 24px;
}

.empty-state__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    opacity: 0.3;
}

.empty-state__title {
    font-family: var(--heading-3-font-family);
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.empty-state__text {
    font-size: 0.9rem;
    opacity: 0.6;
    max-width: 400px;
    margin: 0 auto 24px;
    line-height: 1.6;
}


/* --------------------------------------------------------------------------
   § 25. ANIMATIONS & TRANSITIONS
   -------------------------------------------------------------------------- */

/* Page fade transition */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fade-in 0.4s ease forwards;
}

/* Staggered card entrance (applied via JS with --delay custom property) */
.animate-card-in {
    opacity: 0;
    transform: translateY(16px);
    animation: card-enter 0.4s ease forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes card-enter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll-triggered reveal */
.reveal,
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal--visible,
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Body scroll lock (for overlays) */
.body--no-scroll {
    overflow: hidden;
}


/* --------------------------------------------------------------------------
   § 26. REDUCED MOTION
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .voucher-card:hover {
        transform: none;
    }

    .voucher-card:hover .voucher-card__image {
        transform: none;
    }

    .category-card:hover .category-card__image {
        transform: none;
    }

    .reveal,
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}


/* --------------------------------------------------------------------------
   § 27. PRINT STYLES
   -------------------------------------------------------------------------- */

@media print {
    .site-header,
    .site-footer,
    .mobile-add-bar,
    .mobile-filter-bar,
    .toast,
    .search-panel,
    .filter-sidebar,
    .hamburger {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .voucher-detail__layout {
        flex-direction: column;
    }

    .voucher-detail__media {
        width: 100%;
    }

    .hero {
        height: auto;
        min-height: 0;
        padding: 40px 0;
    }

    .hero__overlay {
        display: none;
    }

    .hero__title {
        color: #000;
    }
}


/* --------------------------------------------------------------------------
   § 28. ADDITIONAL — Breadcrumbs, search items, filter pills, etc.
   -------------------------------------------------------------------------- */

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--body-font-color);
    opacity: 0.7;
    flex-wrap: wrap;
}

.breadcrumb a,
.breadcrumb__link {
    color: var(--anchor-font-color);
    transition: color 0.2s ease;
}

.breadcrumb a:hover,
.breadcrumb__link:hover {
    color: var(--anchor-hover-color);
}

.breadcrumb__sep {
    opacity: 0.4;
}

.breadcrumb__current {
    font-weight: 500;
    opacity: 1;
}

/* Category card text */
.category-card__name {
    color: #ffffff;
    font-family: var(--heading-3-font-family);
    font-size: 1.35rem;
    margin-bottom: 4px;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .category-card__name {
        font-size: 1.6rem;
    }
}

.category-card__meta {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-family: var(--body-font-family);
}

/* Category card content (text area over image) */
.category-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 1;
}

/* Search list and items (inside search panel) */
.search-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.search-item:hover {
    background-color: rgba(19, 57, 48, 0.05);
}

.search-item__thumb {
    width: 56px;
    height: 40px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}

.search-item__info {
    flex: 1;
    min-width: 0;
}

.search-item__name {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--body-font-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-item__category {
    display: block;
    font-size: 0.78rem;
    color: var(--body-font-color);
    opacity: 0.55;
    margin-top: 2px;
}

.search-item__price {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--body-font-color);
    flex-shrink: 0;
}

.search-hint,
.search-empty,
.search-more {
    padding: 20px;
    text-align: center;
    color: var(--body-font-color);
    opacity: 0.55;
    font-size: 0.9rem;
}

/* Filter pills (active filters) */
.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-family: var(--body-font-family);
    background-color: var(--button-secondary-bg-color);
    color: var(--body-font-color);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.filter-pill:hover {
    background-color: var(--button-primary-bg-color);
    color: var(--button-primary-font-color);
}

.filter-pill__x {
    font-size: 1rem;
    line-height: 1;
}

.filter-pill--clear {
    background: transparent;
    text-decoration: underline;
    font-weight: 500;
}

.filter-pill--clear:hover {
    background: transparent;
    color: var(--anchor-hover-color);
}

/* Filter group (dynamically rendered) */
.filter-group {
    margin-bottom: 1rem;
}

.filter-group__title {
    font-family: var(--body-font-family);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
    color: var(--body-font-color);
}

/* Filter apply button (mobile) */
.filter-apply-btn {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
    padding: 12px;
    background-color: var(--button-primary-bg-color);
    color: var(--button-primary-font-color);
    border: none;
    border-radius: 4px;
    font-family: var(--button-global-font-family);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: var(--button-global-text-transform);
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.filter-apply-btn:hover {
    opacity: 0.9;
}

/* Voucher grid empty state */
.voucher-grid__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--body-font-color);
    opacity: 0.6;
    font-size: 1rem;
}

/* Voucher detail venue */
.voucher-detail__venue {
    display: block;
    font-size: 0.85rem;
    color: var(--body-font-color);
    opacity: 0.6;
    margin-bottom: 1rem;
}

/* Voucher detail badge */
.voucher-detail__badge {
    display: inline-block;
    padding: 4px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background-color: var(--button-secondary-bg-color);
    color: var(--body-font-color);
    border-radius: 20px;
    margin-bottom: 1rem;
}

.voucher-detail__badge:empty {
    display: none;
}

/* Mobile menu header */
.mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--button-secondary-bg-color);
}

.mobile-menu__title {
    font-family: var(--heading-3-font-family);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--body-font-color);
}
