/* === FINDIGO PRISM === */
/* Premium shopping portal — Light/Dark theme system */

/* Alpine.js cloak: hide elements until Alpine initializes */
[x-cloak] { display: none !important; }

/* Fonts loaded via <link> in layout.php */

/* === THEME: LIGHT (DEFAULT) === */
:root {
    --bg: #F7F8FC;
    --bg-deep: #EEF0F6;
    --surface: #FFFFFF;
    --card: #FFFFFF;
    --card-hover: #F8F9FE;
    --elevated: #FFFFFF;
    --border: #E2E8F0;
    --border-subtle: #F1F5F9;
    --text: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --primary: #6366F1;
    --primary-hover: #4F46E5;
    --primary-light: #EEF2FF;
    --primary-glow: rgba(99, 102, 241, 0.12);
    --primary-gradient: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    --emerald: #059669;
    --emerald-light: #ECFDF5;
    --emerald-glow: rgba(5, 150, 105, 0.12);
    --orange: #EA580C;
    --orange-light: #FFF7ED;
    --red: #DC2626;
    --red-light: #FEF2F2;
    --amber: #D97706;
    --amber-light: #FFFBEB;
    --blue: #2563EB;
    --blue-light: #EFF6FF;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.1);
    --nav-bg: rgba(255, 255, 255, 0.82);
    --nav-border: rgba(226, 232, 240, 0.8);
    --overlay: rgba(15, 23, 42, 0.4);
    --skeleton-from: #F1F5F9;
    --skeleton-to: #E2E8F0;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    --radius-full: 999px;
    --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
    --font-body: 'Outfit', -apple-system, sans-serif;
    --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* === THEME: DARK === */
html.dark {
    --bg: #0B0F1A;
    --bg-deep: #060912;
    --surface: #111827;
    --card: #1E293B;
    --card-hover: #253348;
    --elevated: #1E293B;
    --border: #334155;
    --border-subtle: #1E293B;
    --text: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #475569;
    --primary: #818CF8;
    --primary-hover: #6366F1;
    --primary-light: rgba(99, 102, 241, 0.15);
    --primary-glow: rgba(129, 140, 248, 0.15);
    --primary-gradient: linear-gradient(135deg, #818CF8 0%, #A78BFA 100%);
    --emerald: #34D399;
    --emerald-light: rgba(52, 211, 153, 0.12);
    --emerald-glow: rgba(52, 211, 153, 0.15);
    --orange: #FB923C;
    --orange-light: rgba(251, 146, 60, 0.12);
    --red: #F87171;
    --red-light: rgba(248, 113, 113, 0.12);
    --amber: #FBBF24;
    --amber-light: rgba(251, 191, 36, 0.12);
    --blue: #60A5FA;
    --blue-light: rgba(96, 165, 250, 0.12);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
    --shadow: 0 4px 16px rgba(0,0,0,0.3);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 30px rgba(129, 140, 248, 0.12);
    --nav-bg: rgba(11, 15, 26, 0.85);
    --nav-border: rgba(51, 65, 85, 0.6);
    --overlay: rgba(0, 0, 0, 0.6);
    --skeleton-from: #1E293B;
    --skeleton-to: #334155;
}

/* === VERTICAL: TRAVEL (orange theme) === */
html[data-vertical="travel"] {
    --primary: #EA580C;
    --primary-hover: #C2410C;
    --primary-light: #FFF7ED;
    --primary-glow: rgba(234, 88, 12, 0.12);
    --primary-gradient: linear-gradient(135deg, #EA580C 0%, #F97316 100%);
    --shadow-glow: 0 0 30px rgba(234, 88, 12, 0.1);
}
html.dark[data-vertical="travel"] {
    --primary: #FB923C;
    --primary-hover: #F97316;
    --primary-light: rgba(251, 146, 60, 0.12);
    --primary-glow: rgba(251, 146, 60, 0.15);
    --primary-gradient: linear-gradient(135deg, #FB923C 0%, #FDBA74 100%);
    --shadow-glow: 0 0 30px rgba(251, 146, 60, 0.12);
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color-scheme: light;
    transition: color-scheme 0.3s;
}
html.dark { color-scheme: dark; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    transition: background var(--transition-slow), color var(--transition);
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; height: auto; }
::selection { background: var(--primary-glow); color: var(--primary); }

/* === SCROLL PROGRESS BAR === */
.scroll-progress {
    position: fixed; top: 0; left: 0;
    width: 0%; height: 3px;
    background: var(--primary-gradient);
    z-index: 9999;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* === NAVIGATION === */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--nav-border);
    padding: 0 1.5rem;
    transition: background var(--transition-slow), border-color var(--transition);
}
.nav-inner {
    max-width: 1400px; margin: 0 auto;
    display: flex; align-items: center;
    justify-content: space-between;
    height: 64px; gap: 1rem;
}

/* Logo */
.nav-logo {
    display: flex; align-items: center; gap: 0.5rem;
    text-decoration: none; flex-shrink: 0;
}
.nav-logo svg { transition: transform var(--transition-bounce); }
.nav-logo:hover svg { transform: scale(1.08) rotate(-3deg); }
.nav-logo-text {
    font-family: var(--font-display);
    font-size: 1.4rem; font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
}
.nav-logo-text span { color: var(--primary); }
[data-vertical="travel"] .nav-logo-text span { color: #EA580C; }

/* Vertical switcher tabs */
.nav-verticals {
    display: flex; gap: 0.25rem; align-items: center;
    background: var(--bg-deep); border-radius: var(--radius-sm);
    padding: 0.2rem;
}
.nav-vertical-tab {
    padding: 0.35rem 0.75rem; border-radius: calc(var(--radius-sm) - 2px);
    font-size: 0.8rem; font-weight: 600; white-space: nowrap;
    color: var(--text-muted); transition: all var(--transition);
    text-decoration: none;
}
.nav-vertical-tab:hover { color: var(--text); }
.nav-vertical-tab.active {
    background: var(--primary-gradient); color: #fff;
    box-shadow: 0 2px 8px var(--primary-glow);
}

/* Nav links */
.nav-links {
    display: flex; gap: 0.25rem; list-style: none;
    align-items: center;
}
.nav-links a {
    color: var(--text-secondary);
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem; font-weight: 500;
    transition: all var(--transition);
    white-space: nowrap;
    position: relative;
}
.nav-links a:hover { color: var(--text); background: var(--primary-light); }
.nav-links a.active {
    color: var(--primary); background: var(--primary-light);
    font-weight: 600;
}
.nav-links .deals-link {
    color: var(--red); font-weight: 600;
}
.nav-links .deals-link::before {
    content: '';
    position: absolute; top: 6px; right: 6px;
    width: 6px; height: 6px;
    background: var(--red); border-radius: 50%;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* Nav Search */
.nav-search { position: relative; width: 340px; flex-shrink: 1; }
.nav-search input {
    width: 100%;
    padding: 0.55rem 1rem 0.55rem 2.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.875rem;
    outline: none;
    transition: all var(--transition);
}
.nav-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
    background: var(--card);
}
.nav-search input::placeholder { color: var(--text-muted); }
.nav-search .search-icon {
    position: absolute; left: 0.875rem; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted); width: 16px; height: 16px;
    transition: color var(--transition);
    pointer-events: none;
}
.nav-search:focus-within .search-icon { color: var(--primary); }

/* Nav Actions */
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }

/* Theme Toggle */
.theme-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer; color: var(--text-secondary);
    transition: all var(--transition);
    flex-shrink: 0;
}
.theme-toggle:hover {
    color: var(--primary); border-color: var(--primary);
    background: var(--primary-light);
}
.theme-toggle svg { width: 18px; height: 18px; transition: transform var(--transition-bounce); }
.theme-toggle:hover svg { transform: rotate(30deg); }
.theme-toggle .icon-moon { display: none; }
html.dark .theme-toggle .icon-sun { display: none; }
html.dark .theme-toggle .icon-moon { display: block; }

/* Mobile Menu Toggle */
.mobile-menu-btn {
    display: none;
    align-items: center; justify-content: center;
    width: 38px; height: 38px;
    background: none; border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer; color: var(--text-secondary);
    transition: all var(--transition);
}
.mobile-menu-btn:hover { border-color: var(--primary); color: var(--primary); }

/* === AUTOCOMPLETE === */
.autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    z-index: 200;
}
.autocomplete-item {
    display: flex; align-items: center;
    gap: 0.875rem; padding: 0.65rem 1rem;
    cursor: pointer;
    transition: background var(--transition);
    border-bottom: 1px solid var(--border-subtle);
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover, .autocomplete-item.active {
    background: var(--primary-light);
}
.autocomplete-item img {
    width: 44px; height: 44px;
    object-fit: cover; border-radius: var(--radius-sm);
    background: var(--bg); border: 1px solid var(--border-subtle);
}
.autocomplete-item .title {
    flex: 1; font-size: 0.875rem;
    white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; color: var(--text);
}
.autocomplete-item .price {
    font-family: var(--font-mono);
    font-size: 0.85rem; font-weight: 600;
    color: var(--primary);
}

/* === HERO === */
.hero {
    min-height: 75vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; padding: 4rem 2rem;
    position: relative; overflow: hidden;
}
.hero--fullscreen {
    min-height: 100vh; height: 100vh;
    justify-content: space-between;
    padding: 0 2rem;
    overflow: hidden;
}
.hero--fullscreen-content {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    width: 100%;
}

/* Stats bar at bottom of hero */
.hero-stats {
    display: flex; align-items: center; justify-content: center;
    gap: 0; flex-wrap: wrap;
    padding: 1.25rem 1.5rem;
    width: 100%;
    border-top: 1px solid var(--border-subtle);
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(8px);
}
.hero-stat {
    display: flex; flex-direction: column; align-items: center;
    padding: 0 1.25rem;
    gap: 0.15rem;
}
.hero-stat strong {
    font-family: var(--font-display);
    font-size: 1.1rem; font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}
.hero-stat span {
    font-size: 0.7rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.08em;
    font-weight: 500;
}
.hero-stat-divider {
    width: 1px; height: 28px;
    background: var(--border);
    opacity: 0.5;
}
.hero-stats--travel .hero-stat strong {
    color: #EA580C;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, var(--primary-glow), transparent),
        radial-gradient(ellipse 60% 40% at 80% 80%, var(--emerald-glow), transparent),
        radial-gradient(ellipse 40% 30% at 20% 60%, var(--primary-glow), transparent);
    pointer-events: none;
    animation: hero-shimmer 8s ease-in-out infinite;
}
@keyframes hero-shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 7vw, 5.5rem);
    font-weight: 800; line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1.25rem; position: relative;
}
.hero-title .accent {
    background: var(--primary-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.2rem; color: var(--text-secondary);
    max-width: 520px; margin-bottom: 2.5rem;
    font-weight: 400; line-height: 1.6;
}
.hero-counter {
    font-family: var(--font-mono);
    font-size: 0.85rem; color: var(--text-muted);
    margin-top: 2rem; letter-spacing: 0.05em;
}
.hero-counter strong {
    color: var(--primary); font-weight: 600;
    font-size: 0.95rem;
}

/* === SEARCH BAR (HERO) === */
.search-hero {
    position: relative; width: 100%; max-width: 640px;
}
.search-hero input {
    width: 100%; padding: 1.15rem 7.5rem 1.15rem 1.5rem;
    font-size: 1.05rem;
    background: var(--card);
    border: 2px solid var(--primary);
    border-radius: var(--radius-full);
    color: var(--text);
    font-family: var(--font-body);
    outline: none;
    transition: all var(--transition-slow);
    box-shadow: 0 0 0 6px var(--primary-glow), var(--shadow-lg);
}
.search-hero input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 6px var(--primary-glow), var(--shadow-lg);
}
/* Travel mode: orange ring */
.search-hero--travel input {
    border-color: #EA580C;
    box-shadow: 0 0 0 6px rgba(234, 88, 12, 0.12), var(--shadow-lg);
}
.search-hero--travel input:focus {
    border-color: #EA580C;
    box-shadow: 0 0 0 6px rgba(234, 88, 12, 0.15), var(--shadow-lg);
}
.search-hero input::placeholder { color: var(--text-muted); }
.search-hero .search-submit {
    position: absolute; right: 6px; top: 50%;
    transform: translateY(-50%);
    background: var(--primary-gradient);
    border: none; padding: 0.7rem 1.5rem;
    border-radius: var(--radius-full);
    color: #fff; font-weight: 600;
    font-size: 0.9rem; cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-body);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}
.search-hero .search-submit:hover {
    transform: translateY(-50%) scale(1.04);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

/* === TRENDING TAGS === */
.trending-tags {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    justify-content: center; margin-top: 1.75rem;
}
.trending-tag {
    padding: 0.4rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.8rem; font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
}
.trending-tag:hover {
    border-color: var(--primary); color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-1px);
}
.trending-tag--travel:hover {
    border-color: #EA580C; color: #EA580C;
    background: rgba(234, 88, 12, 0.1);
}

/* === VERTICAL SWITCHER === */
.vertical-switcher {
    display: inline-flex; position: relative;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-full); padding: 4px;
    margin-bottom: 1.75rem; gap: 0;
}
.vs-option {
    position: relative; z-index: 1;
    padding: 0.45rem 1.4rem; border: none; background: none;
    font-size: 0.85rem; font-weight: 600; cursor: pointer;
    color: var(--text-muted); transition: color 0.3s;
    font-family: var(--font-body); border-radius: var(--radius-full);
}
.vs-option--active { color: #fff; }
.vs-slider {
    position: absolute; top: 4px; left: 4px;
    width: calc(50% - 4px); height: calc(100% - 8px);
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.vs-slider--right {
    transform: translateX(100%);
    background: linear-gradient(135deg, #EA580C, #F97316);
}

/* Hero switcher: ensure spans don't stack side-by-side */
.hero-title > span,
.hero-subtitle > span { display: block; }

/* Travel accent color */
.hero-title .accent--travel {
    background: linear-gradient(135deg, #EA580C, #F97316);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.search-submit--travel {
    background: linear-gradient(135deg, #EA580C, #F97316) !important;
    box-shadow: 0 2px 10px rgba(234, 88, 12, 0.3) !important;
}
.search-submit--travel:hover {
    box-shadow: 0 4px 20px rgba(234, 88, 12, 0.4) !important;
}

/* === SECTIONS === */
.section {
    max-width: 1400px; margin: 0 auto; padding: 3rem 2rem;
}
.section-header {
    display: flex; align-items: baseline;
    justify-content: space-between; margin-bottom: 2rem;
}
.section-title {
    font-family: var(--font-display);
    font-size: 1.75rem; font-weight: 700;
    letter-spacing: -0.02em;
}
.section-link {
    font-size: 0.875rem; color: var(--primary);
    font-weight: 600;
    display: inline-flex; align-items: center; gap: 0.25rem;
    transition: gap var(--transition);
}
.section-link:hover { gap: 0.5rem; }

/* === PRODUCT GRID (CARD VIEW) === */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}
/* === TRAVEL CARDS === */
.travel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.travel-card {
    background: var(--card); border-radius: var(--radius); border: 1px solid var(--border);
    overflow: hidden; text-decoration: none; color: inherit;
    transition: all var(--transition); display: flex; flex-direction: column;
}
.travel-card:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.travel-card-image {
    position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-deep);
}
.travel-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.travel-card:hover .travel-card-image img { transform: scale(1.05); }
.travel-card-placeholder {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; color: var(--text-muted);
}
.travel-card-badge {
    position: absolute; top: 0.6rem; left: 0.6rem;
    background: var(--red); color: #fff; padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm); font-size: 0.7rem; font-weight: 700;
}
.travel-card-type {
    position: absolute; top: 0.6rem; right: 0.6rem;
    background: rgba(0,0,0,0.6); color: #fff; padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm); font-size: 0.7rem; font-weight: 500;
}
.travel-card-body { padding: 0.875rem; flex: 1; display: flex; flex-direction: column; }
.travel-card-destination {
    font-size: 0.75rem; font-weight: 600; color: var(--primary);
    text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.25rem;
}
.travel-card-title {
    font-family: var(--font-display); font-size: 0.95rem; font-weight: 600;
    line-height: 1.3; margin-bottom: 0.5rem; color: var(--text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.travel-card-details { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.75rem; }
.travel-card-detail {
    font-size: 0.72rem; color: var(--text-muted);
    padding: 0.15rem 0.45rem; background: var(--bg-deep);
    border-radius: var(--radius-sm);
}
.travel-card-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; }
.travel-card-old-price {
    text-decoration: line-through; color: var(--text-muted); font-size: 0.75rem;
    display: block;
}
.travel-card-current-price {
    font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--primary);
}
.travel-card-price-info { font-size: 0.7rem; color: var(--text-muted); }
.travel-card-operator { font-size: 0.7rem; color: var(--text-muted); }

/* === TRAVEL SEARCH PAGE === */
.travel-search-page {
    max-width: 1400px; margin: 0 auto;
    padding: 1.5rem 2rem 2rem;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    position: relative;
}
.travel-search-title {
    font-family: var(--font-display);
    font-size: 1.5rem; font-weight: 700;
    line-height: 1.2;
}
.travel-search-count {
    font-size: 0.825rem; color: var(--text-muted);
    font-weight: 400;
}
.travel-search-results { min-width: 0; }

/* Travel Filter Sidebar */
.travel-filters {
    position: sticky; top: 80px;
    max-height: calc(100vh - 96px);
    overflow-y: auto; overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(234,88,12,0.2) transparent;
    display: flex; flex-direction: column;
}
.travel-filters::-webkit-scrollbar { width: 4px; }
.travel-filters::-webkit-scrollbar-track { background: transparent; }
.travel-filters::-webkit-scrollbar-thumb { background: rgba(234,88,12,0.2); border-radius: 2px; }
.travel-filters-header {
    display: none; /* shown on mobile */
}
.travel-filters-body { flex: 1; overflow-y: auto; }
.travel-filters-footer { display: none; /* shown on mobile */ }

/* Travel Filter Group */
.tf-group {
    margin-bottom: 1.5rem; padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}
.tf-group:last-child { border-bottom: none; margin-bottom: 0; }
.tf-group-title {
    font-family: var(--font-display);
    font-size: 0.75rem; font-weight: 700;
    color: var(--text); text-transform: uppercase;
    letter-spacing: 0.08em; margin-bottom: 0.6rem;
    display: flex; align-items: center; gap: 0.4rem;
}
.tf-group-title svg { color: #EA580C; flex-shrink: 0; }
.tf-item {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.6rem;
    font-size: 0.825rem; cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.15s ease;
    border-radius: var(--radius-sm);
    margin: 0 -0.6rem;
    text-decoration: none;
}
.tf-item:hover { color: var(--text); background: var(--surface); }
.tf-item.active {
    color: #EA580C; font-weight: 600;
    background: rgba(234, 88, 12, 0.08);
}
.tf-count {
    font-family: var(--font-mono);
    font-size: 0.675rem; font-weight: 500;
    color: var(--text-muted);
    background: var(--surface);
    padding: 0.1rem 0.45rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
}
.tf-item.active .tf-count {
    background: rgba(234, 88, 12, 0.08);
    color: #EA580C;
    border-color: rgba(234, 88, 12, 0.2);
}
.tf-stars {
    font-size: 0.85rem; letter-spacing: 0.05em;
    color: #F59E0B;
}
.tf-hidden { display: none; }
.tf-expanded .tf-hidden { display: flex; }
.tf-toggle {
    display: block; width: 100%; padding: 0.45rem; margin-top: 0.25rem;
    background: none; border: 1px dashed var(--border-subtle); border-radius: var(--radius-sm);
    color: #EA580C; font-size: 0.75rem; cursor: pointer; text-align: center;
    transition: background 0.2s, border-color 0.2s;
}
.tf-toggle:hover { background: rgba(234, 88, 12, 0.04); border-color: #EA580C; }

/* Travel Price Range */
.tf-price-range {
    display: flex; gap: 0.4rem; align-items: center;
}
.tf-price-range input[type="number"] {
    width: 100%; padding: 0.45rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.8rem; text-align: center;
    outline: none;
    transition: border-color 0.15s;
}
.tf-price-range input:focus { border-color: #EA580C; }
.tf-price-sep { color: var(--text-muted); font-size: 0.8rem; }
.tf-price-btn {
    background: #EA580C; color: #fff;
    border: none; padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer; font-size: 0.8rem; font-weight: 600;
    transition: background 0.15s;
    flex-shrink: 0;
}
.tf-price-btn:hover { background: #C2410C; }

/* Travel Date Range */
.tf-date-range { display: flex; flex-direction: column; }
.tf-date-inputs {
    display: flex; gap: 0.4rem; align-items: center;
}
.tf-date-inputs input[type="date"] {
    width: 100%; padding: 0.45rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.8rem;
    outline: none;
    transition: border-color 0.15s;
}
.tf-date-inputs input:focus { border-color: #EA580C; }

/* Travel Filter Chips */
.tf-chips {
    display: flex; flex-wrap: wrap;
    gap: 0.4rem; margin-bottom: 1.25rem;
}
.tf-chip {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.3rem 0.75rem;
    background: rgba(234, 88, 12, 0.08);
    border: 1px solid rgba(234, 88, 12, 0.2);
    border-radius: var(--radius-full);
    color: #EA580C; font-size: 0.775rem;
    font-weight: 500; text-decoration: none;
    transition: all 0.15s;
    animation: chip-in 0.3s ease-out both;
}
.tf-chip:hover {
    background: #EA580C; color: #fff;
    border-color: #EA580C;
}
.tf-chip:hover svg { stroke: #fff; }
.tf-chip--clear {
    background: var(--red-light);
    border-color: rgba(220, 38, 38, 0.15);
    color: var(--red);
}
.tf-chip--clear:hover {
    background: var(--red); color: #fff;
    border-color: var(--red);
}

/* Travel Empty State */
.travel-empty-state {
    text-align: center; padding: 4rem 2rem;
    color: var(--text-muted);
}
.travel-empty-state h2 {
    font-family: var(--font-display);
    font-size: 1.25rem; color: var(--text);
    margin: 1rem 0 0.5rem;
}
.travel-empty-state p { font-size: 0.9rem; margin-bottom: 1.25rem; }
.tf-reset-link {
    display: inline-flex; align-items: center; gap: 0.3rem;
    color: #EA580C; font-weight: 600; font-size: 0.85rem;
    text-decoration: none; border-bottom: 1px dashed #EA580C;
    transition: opacity 0.15s;
}
.tf-reset-link:hover { opacity: 0.7; }

/* Mobile Filter Button + Overlay (hidden on desktop, shown in 1024px breakpoint) */
.travel-filter-mobile-btn { display: none; }
.travel-filter-mobile-badge {
    background: #fff; color: #EA580C;
    font-size: 0.7rem; font-weight: 700;
    min-width: 18px; height: 18px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
}
.travel-filter-overlay { display: none; }

/* Mobile: Clear & Apply buttons */
.tf-clear-btn {
    display: block; text-align: center;
    padding: 0.6rem; font-size: 0.8rem;
    color: var(--text-muted); text-decoration: none;
    transition: color 0.15s;
}
.tf-clear-btn:hover { color: var(--red); }
.tf-apply-btn {
    display: block; width: 100%;
    padding: 0.85rem;
    background: #EA580C; color: #fff;
    border: none; border-radius: var(--radius-sm);
    font-size: 0.9rem; font-weight: 700;
    cursor: pointer; font-family: var(--font-body);
    transition: background 0.15s;
}
.tf-apply-btn:hover { background: #C2410C; }

/* === VERTICAL SWITCHER === */
.vertical-switcher {
    display: inline-flex; gap: 0.25rem; background: var(--bg-deep);
    border-radius: var(--radius-sm); padding: 0.25rem;
}
.vertical-switcher-tab {
    padding: 0.5rem 1.25rem; border-radius: calc(var(--radius-sm) - 2px);
    font-size: 0.9rem; font-weight: 600; color: var(--text-muted);
    transition: all var(--transition); cursor: pointer; text-decoration: none;
}
.vertical-switcher-tab:hover { color: var(--text); }
.vertical-switcher-tab.active {
    background: var(--primary-gradient); color: #fff;
    box-shadow: 0 2px 8px var(--primary-glow);
}
.vertical-switcher-sm .vertical-switcher-tab {
    padding: 0.35rem 0.75rem; font-size: 0.8rem;
}

.product-card {
    background: var(--card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition-slow);
    position: relative;
}
.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.product-card-image {
    position: relative; aspect-ratio: 1;
    background: var(--bg); overflow: hidden;
}
.product-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .product-card-image img { transform: scale(1.08); }

/* Card Badges */
.product-card-badge {
    position: absolute; top: 0.75rem; left: 0.75rem;
    display: flex; gap: 0.375rem; flex-wrap: wrap;
}
.product-card-body { padding: 1rem; }
.product-card-merchant {
    font-size: 0.7rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 0.375rem; font-weight: 600;
}
.product-card-title {
    font-size: 0.925rem; font-weight: 500;
    line-height: 1.4; margin-bottom: 0.5rem;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
    color: var(--text);
}
.product-card-title a { color: inherit; }
.product-card-title a:hover { color: var(--primary); }
.product-card-footer {
    display: flex; align-items: center;
    justify-content: space-between;
}
.product-card-price {
    font-family: var(--font-mono);
    font-size: 1.05rem; font-weight: 600;
    color: var(--primary);
}
.product-card-price .old-price {
    font-size: 0.78rem; color: var(--text-muted);
    text-decoration: line-through; margin-left: 0.375rem;
    font-weight: 400;
}
.product-card-rating {
    display: flex; align-items: center; gap: 0.25rem;
    font-size: 0.8rem;
}

/* === BADGES (Universal) === */
.badge {
    display: inline-flex; align-items: center;
    padding: 0.2rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem; font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: 0.02em; white-space: nowrap;
}
.badge-sale {
    background: var(--red-light); color: var(--red);
    border: 1px solid rgba(220, 38, 38, 0.15);
}
.badge-hot {
    background: linear-gradient(135deg, #EF4444, #F97316);
    color: #fff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    animation: badge-glow 2s infinite;
}
@keyframes badge-glow {
    0%, 100% { box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3); }
    50% { box-shadow: 0 2px 16px rgba(239, 68, 68, 0.5); }
}
.badge-new {
    background: var(--primary-light); color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
}
.badge-top {
    background: var(--amber-light); color: var(--amber);
    border: 1px solid rgba(217, 119, 6, 0.2);
}
.badge-free-shipping {
    background: var(--emerald-light); color: var(--emerald);
    border: 1px solid rgba(5, 150, 105, 0.15);
}
.badge-success { background: var(--emerald-light); color: var(--emerald); }
.badge-error { background: var(--red-light); color: var(--red); }
.badge-warning { background: var(--amber-light); color: var(--amber); }
.badge-info { background: var(--blue-light); color: var(--blue); }
.badge-neutral { background: var(--surface); color: var(--text-muted); border: 1px solid var(--border); }

/* === DEAL CARDS === */
.deal-card {
    display: flex; flex-direction: column;
    background: var(--card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none; color: inherit;
    position: relative;
}
.deal-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.12), 0 4px 12px rgba(0,0,0,0.06);
}
.deal-card-visual {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--surface);
    overflow: hidden;
}
.deal-card-visual img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.deal-card:hover .deal-card-visual img {
    transform: scale(1.06);
}
.deal-card-noimg {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); opacity: 0.3;
}
.deal-card-tag {
    position: absolute; top: 10px; left: 10px;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem; font-weight: 700;
    font-family: var(--font-mono);
    background: var(--red-light); color: var(--red);
    border: 1px solid rgba(220, 38, 38, 0.15);
    letter-spacing: 0.02em;
}
.deal-card-tag--hot {
    background: linear-gradient(135deg, #EF4444, #F97316);
    color: #fff; border: none;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}
.deal-card-body {
    padding: 0.875rem 1rem 1rem;
    display: flex; flex-direction: column;
    gap: 0.35rem; flex: 1;
}
.deal-card-shop {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}
.deal-card-title {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.deal-card:hover .deal-card-title { color: var(--primary); }
.deal-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.5rem;
}
.deal-card-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}
.deal-card-price {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}
.deal-card-price--muted {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
    font-family: var(--font-body);
}
.deal-card-oldprice {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    text-decoration: line-through;
}
.deal-card-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.72rem;
    color: var(--amber);
    font-weight: 600;
    font-family: var(--font-mono);
}

/* === DEALS SCROLL (override) === */
.deals-scroll .deal-card {
    min-width: 220px;
    max-width: 260px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

/* === PRODUCT LIST VIEW === */
.product-list-results {
    display: flex; flex-direction: column; gap: 0;
}
.product-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0.75rem;
}
.product-row:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.08), 0 2px 8px rgba(0,0,0,0.04);
    transform: translateY(-2px);
}
.product-row-image {
    width: 160px; height: 130px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface);
    position: relative; flex-shrink: 0;
}
.product-row-image img {
    width: 100%; height: 100%;
    object-fit: contain; padding: 8px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-row:hover .product-row-image img { transform: scale(1.06); }
.product-row-noimg { color: var(--text-muted); opacity: 0.25; }
.product-row-badges {
    position: absolute; top: 6px; left: 6px;
    display: flex; gap: 4px; flex-wrap: wrap;
}
.product-row-price-placeholder {
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
    font-family: var(--font-body) !important;
    font-weight: 400 !important;
}
.product-row-content {
    display: flex; flex-direction: column;
    gap: 0.3rem; min-width: 0;
}
.product-row-head {
    display: flex; align-items: center;
    gap: 0.5rem; flex-wrap: wrap;
}
.product-row-shop {
    font-size: 0.65rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.1em;
    font-weight: 600;
    display: inline-flex; align-items: center; gap: 0.35rem;
}
.product-row-shop-logo {
    height: 14px; width: auto; max-width: 50px;
    object-fit: contain; border-radius: 2px;
}
.product-row-rating {
    display: inline-flex; align-items: center; gap: 0.2rem;
    font-size: 0.7rem; color: var(--amber);
    font-weight: 600; font-family: var(--font-mono);
}
.product-row-cat {
    font-size: 0.65rem; color: var(--text-muted);
    padding: 0.1rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    transition: all var(--transition);
    white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; max-width: 180px;
}
.product-row-cat:hover {
    border-color: var(--primary); color: var(--primary);
    background: var(--primary-light);
}
.product-row-title {
    font-size: 1rem; font-weight: 600;
    line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.product-row-title a { color: var(--text); transition: color var(--transition); }
.product-row-title a:hover { color: var(--primary); }
.product-row-desc {
    font-size: 0.8rem; color: var(--text-secondary);
    line-height: 1.55; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin: 0;
}
.product-row-bottom {
    display: flex; align-items: center;
    justify-content: space-between;
    gap: 1rem; margin-top: auto;
    padding-top: 0.5rem;
}
.product-row-pricing {
    display: flex; align-items: baseline; gap: 0.5rem;
}
.product-row-price {
    font-family: var(--font-display);
    font-size: 1.1rem; font-weight: 700;
    color: var(--text);
}
.product-row-oldprice {
    font-family: var(--font-mono);
    font-size: 0.75rem; color: var(--text-muted);
    text-decoration: line-through;
}
.product-row-btns {
    display: flex; align-items: center; gap: 0.5rem;
}
.product-row-cta {
    display: inline-flex; align-items: center;
    font-weight: 600; font-size: 0.78rem;
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all var(--transition); white-space: nowrap;
}
.product-row-cta:hover {
    border-color: var(--primary); color: var(--primary);
    background: var(--primary-light);
}
.product-row-go {
    display: inline-flex; align-items: center;
    gap: 0.3rem; font-size: 0.78rem;
    color: #fff; font-weight: 600;
    padding: 0.4rem 0.9rem;
    background: var(--primary-gradient);
    border-radius: var(--radius-sm);
    transition: all var(--transition); white-space: nowrap;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}
.product-row-go:hover {
    transform: translateY(-1px); color: #fff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}
.search-header {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem; gap: 1rem;
}

/* === SEARCH PAGE === */
.search-page {
    max-width: 1400px; margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
}
.search-meta {
    font-size: 0.85rem; color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.search-meta strong { color: var(--text); font-weight: 600; }
.search-meta .time {
    font-family: var(--font-mono); color: var(--primary);
    font-size: 0.8rem;
}
.search-toolbar {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem; gap: 1rem;
}
.sort-select {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.85rem;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color var(--transition);
}
.sort-select:focus { border-color: var(--primary); outline: none; }

/* === FILTERS SIDEBAR === */
.filters {
    position: sticky; top: 80px;
    max-height: calc(100vh - 96px);
    overflow-y: auto; padding-right: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    display: flex; flex-direction: column;
}
.filters::-webkit-scrollbar { width: 4px; }
.filters::-webkit-scrollbar-track { background: transparent; }
.filters::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.filters-header { display: none; }
.filters-body { flex: 1; overflow-y: auto; }
.filters-footer { display: none; }

/* Mobile filter button & overlay (hidden on desktop) */
.filter-mobile-btn { display: none; }
.filter-overlay { display: none; }
.filter-clear-btn {
    display: block; text-align: center;
    padding: 0.6rem; font-size: 0.8rem;
    color: var(--text-muted); text-decoration: none;
    transition: color 0.15s;
}
.filter-clear-btn:hover { color: var(--red); }
.filter-apply-btn {
    display: block; width: 100%;
    padding: 0.85rem;
    background: var(--primary-gradient); color: #fff;
    border: none; border-radius: var(--radius-sm);
    font-size: 0.9rem; font-weight: 700;
    cursor: pointer; font-family: var(--font-body);
    transition: opacity 0.15s;
}
.filter-apply-btn:hover { opacity: 0.9; }
.filter-mobile-badge {
    background: #fff; color: var(--primary);
    font-size: 0.7rem; font-weight: 700;
    min-width: 18px; height: 18px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
}
.filter-group {
    margin-bottom: 1.75rem; padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border-subtle);
}
.filter-group:last-child { border-bottom: none; }
.filter-group-title {
    font-family: var(--font-display);
    font-size: 0.8rem; font-weight: 700;
    color: var(--text); text-transform: uppercase;
    letter-spacing: 0.08em; margin-bottom: 0.75rem;
}
.filter-item {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.625rem;
    font-size: 0.85rem; cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition);
    border-radius: var(--radius-sm);
    margin: 0 -0.625rem;
}
.filter-item:hover { color: var(--text); background: var(--surface); }
.filter-item.active {
    color: var(--primary); font-weight: 600;
    background: var(--primary-light);
}
.filter-count {
    font-family: var(--font-mono);
    font-size: 0.7rem; font-weight: 500;
    color: var(--text-muted);
    background: var(--surface);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
}
.filter-item.active .filter-count {
    background: var(--primary-light);
    color: var(--primary);
    border-color: rgba(99, 102, 241, 0.2);
}
.filter-hidden { display: none; }
.filter-expanded .filter-hidden { display: flex; }
.filter-toggle {
    display: block; width: 100%; padding: 0.5rem; margin-top: 0.25rem;
    background: none; border: 1px dashed var(--border-subtle); border-radius: var(--radius);
    color: var(--primary); font-size: 0.8rem; cursor: pointer; text-align: center;
    transition: background 0.2s, border-color 0.2s;
}
.filter-toggle:hover { background: var(--surface); border-color: var(--primary); }

/* === FILTER CHIPS === */
.filter-chips {
    display: flex; flex-wrap: wrap;
    gap: 0.5rem; margin-bottom: 1.25rem;
}
.filter-chip {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    background: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-full);
    color: var(--primary); font-size: 0.8rem;
    font-weight: 500; text-decoration: none;
    transition: all var(--transition);
    animation: chip-in 0.3s ease-out both;
}
@keyframes chip-in {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}
.filter-chip:hover {
    background: var(--primary); color: #fff;
    border-color: var(--primary);
}
.filter-chip-clear {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.35rem 0.85rem;
    background: var(--red-light);
    border: 1px solid rgba(220, 38, 38, 0.15);
    border-radius: var(--radius-full);
    color: var(--red); font-size: 0.8rem;
    font-weight: 500; text-decoration: none;
    transition: all var(--transition);
}
.filter-chip-clear:hover {
    background: var(--red); color: #fff;
    border-color: var(--red);
}

/* Price Range */
.price-range {
    display: flex; gap: 0.5rem; align-items: center;
}
.price-range input[type="number"] {
    width: 100%; padding: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.8rem; text-align: center;
    outline: none;
    transition: border-color var(--transition);
}
.price-range input:focus { border-color: var(--primary); }
.price-range .price-sep { color: var(--text-muted); }
.price-range .price-btn {
    background: var(--primary); color: #fff;
    border: none; padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer; font-size: 0.8rem; font-weight: 600;
    transition: background var(--transition);
    flex-shrink: 0;
}
.price-range .price-btn:hover { background: var(--primary-hover); }
.price-range-clear {
    font-size: 0.75rem; color: var(--primary);
    text-decoration: none; display: block; margin-top: 0.25rem;
}
.price-range-clear:hover { text-decoration: underline; }

/* Filter show-more toggle */
.filter-toggle {
    color: var(--primary); border: none; background: none;
    cursor: pointer; font-size: 0.8rem;
    padding: 0.4rem 0.625rem; width: 100%; text-align: left;
    font-family: var(--font-body);
    border-radius: var(--radius-sm);
    margin: 0 -0.625rem;
    transition: all var(--transition);
}
.filter-toggle:hover { background: var(--surface); }

/* Shop info card in sidebar */
.shop-info { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.shop-info-logo {
    width: 40px; height: 40px; object-fit: contain;
    border-radius: var(--radius-sm); background: var(--surface);
    padding: 4px; border: 1px solid var(--border-subtle);
}
.shop-info-name { font-weight: 600; color: var(--text); }
.shop-info-network { font-size: 0.75rem; color: var(--text-muted); }
.shop-stats {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0.5rem; font-size: 0.75rem;
}
.shop-stat {
    background: var(--surface); padding: 0.5rem;
    border-radius: var(--radius-sm); text-align: center;
    border: 1px solid var(--border-subtle);
}
.shop-stat-value {
    font-family: var(--font-mono); font-size: 1rem;
    font-weight: 600; color: var(--primary);
}
.shop-stat-value--muted { color: var(--text); }
.shop-stat-label { color: var(--text-muted); }

/* Section subtitle */
.section-subtitle {
    color: var(--text-muted); font-size: 0.875rem;
}

/* Tile meta */
.tile-meta {
    font-size: 0.7rem; color: var(--text-muted);
    margin-top: 0.25rem; position: relative;
}
.tile-logo {
    height: 32px; width: auto; max-width: 120px;
    object-fit: contain; margin-bottom: 0.75rem;
}

/* Mono text utility */
.text-mono { font-family: var(--font-mono); }

/* Muted label for additional prices */
.price-label-muted { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; }

/* Product price "see in shop" variant */
.product-price-current--sm { font-size: 1.5rem; }

/* Rating muted text */
.rating-value { color: var(--text-secondary); }

/* === PRODUCT DETAIL === */
.product-detail {
    max-width: 1200px; margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.product-image-main {
    background: var(--card);
    border-radius: var(--radius-lg);
    overflow: hidden; aspect-ratio: 1;
    border: 1px solid var(--border);
}
.product-image-main img {
    width: 100%; height: 100%;
    object-fit: contain;
    transition: transform var(--transition-slow);
    cursor: zoom-in;
}
.product-image-main:hover img { transform: scale(1.08); }
.product-info { display: flex; flex-direction: column; gap: 1.25rem; }
.product-merchant-badge {
    display: inline-flex; align-items: center;
    gap: 0.5rem; font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.08em;
    font-weight: 600;
}
.product-merchant-badge a {
    color: var(--text-muted); text-decoration: none;
    transition: color var(--transition);
}
.product-merchant-badge a:hover { color: var(--primary); }
.product-merchant-logo {
    height: 20px; width: auto; max-width: 80px;
    object-fit: contain; border-radius: 3px;
}
.product-title {
    font-family: var(--font-display);
    font-size: 2rem; font-weight: 700;
    line-height: 1.2; letter-spacing: -0.02em;
}
.product-price-block {
    display: flex; align-items: baseline;
    gap: 0.75rem; flex-wrap: wrap;
}
.product-price-current {
    font-family: var(--font-mono);
    font-size: 2.25rem; font-weight: 700;
    color: var(--primary);
}
.product-price-old {
    font-family: var(--font-mono);
    font-size: 1.15rem; color: var(--text-muted);
    text-decoration: line-through;
}
.product-discount-badge {
    background: linear-gradient(135deg, #EF4444, #F97316);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.85rem; font-weight: 700;
    padding: 0.35rem 0.875rem;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
}
.product-rating {
    display: flex; align-items: center;
    gap: 0.5rem; font-size: 0.95rem;
}
.stars { color: var(--amber); letter-spacing: 2px; }
.product-description {
    color: var(--text-secondary);
    line-height: 1.7; font-size: 0.95rem;
}
.product-cta {
    display: inline-flex; align-items: center; gap: 0.75rem;
    background: var(--primary-gradient);
    color: #fff; font-weight: 700; font-size: 1.05rem;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-full);
    border: none; cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-body);
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    width: fit-content;
}
.product-cta:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
    color: #fff;
}
.product-meta-table { width: 100%; font-size: 0.875rem; }
.product-meta-table tr { border-bottom: 1px solid var(--border-subtle); }
.product-meta-table td { padding: 0.625rem 0; }
.product-meta-table td:first-child {
    color: var(--text-muted); width: 140px; font-weight: 600;
}
.product-currencies { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.currency-tag {
    font-family: var(--font-mono); font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
}
.share-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.share-btn {
    padding: 0.5rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer; font-family: var(--font-body);
    font-size: 0.8rem;
    transition: all var(--transition);
}
.share-btn:hover {
    border-color: var(--primary); color: var(--primary);
    background: var(--primary-light);
}

/* === BREADCRUMBS === */
.breadcrumbs {
    display: flex; align-items: center;
    gap: 0.5rem; font-size: 0.8rem;
    color: var(--text-muted);
    padding: 1rem 2rem;
    max-width: 1400px; margin: 0 auto;
}
.breadcrumbs a {
    color: var(--text-muted); font-weight: 500;
    transition: color var(--transition);
}
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { opacity: 0.4; }
.breadcrumbs span:last-child { color: var(--text-secondary); font-weight: 500; }

/* === TILES === */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.tile {
    background: var(--card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 1.5rem; text-align: center;
    transition: all var(--transition);
    cursor: pointer; text-decoration: none;
    color: var(--text);
    position: relative; overflow: hidden;
}
.tile::before {
    content: ''; position: absolute; inset: 0;
    background: var(--primary-gradient);
    opacity: 0; transition: opacity var(--transition);
}
.tile:hover::before { opacity: 0.04; }
.tile:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.tile-name { font-weight: 600; margin-bottom: 0.25rem; position: relative; }
.tile-count {
    font-family: var(--font-mono); font-size: 0.8rem;
    color: var(--text-muted); position: relative;
}

/* === PAGINATION === */
.pagination {
    display: flex; align-items: center;
    justify-content: center; gap: 0.375rem;
    margin-top: 3rem;
}
.pagination a, .pagination span {
    display: flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem; font-weight: 500;
    transition: all var(--transition);
    padding: 0 0.25rem;
}
.pagination a {
    background: var(--surface); color: var(--text-secondary);
    border: 1px solid var(--border);
}
.pagination a:hover {
    background: var(--primary-light);
    color: var(--primary); border-color: var(--primary);
}
.pagination .current {
    background: var(--primary-gradient);
    color: #fff; font-weight: 700;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

/* === DEALS CAROUSEL === */
.deals-scroll {
    display: flex; gap: 1rem;
    overflow-x: auto; padding: 0.5rem 0 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.deals-scroll::-webkit-scrollbar { height: 4px; }
.deals-scroll::-webkit-scrollbar-track { background: transparent; }
.deals-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* === FOOTER === */
.footer {
    border-top: 1px solid var(--border);
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
    background: var(--surface);
    transition: background var(--transition-slow);
}
.footer-inner { max-width: 1400px; margin: 0 auto; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem; margin-bottom: 2.5rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-brand-name {
    font-family: var(--font-display);
    font-size: 1.3rem; font-weight: 800; color: var(--text);
}
.footer-brand-name span { color: var(--primary); }
.footer-brand p {
    color: var(--text-muted); font-size: 0.85rem;
    line-height: 1.6; max-width: 300px;
}
.footer-col h4 {
    font-family: var(--font-display);
    font-size: 0.8rem; font-weight: 700;
    color: var(--text); text-transform: uppercase;
    letter-spacing: 0.08em; margin-bottom: 0.75rem;
}
.footer-col a {
    display: block; color: var(--text-muted);
    font-size: 0.85rem; padding: 0.3rem 0;
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex; justify-content: space-between;
    align-items: center;
    font-size: 0.8rem; color: var(--text-muted);
}

/* === EMPTY STATE === */
.empty-state {
    text-align: center; padding: 4rem 2rem;
    color: var(--text-muted);
}
.empty-state h2 {
    font-family: var(--font-display);
    font-size: 1.5rem; color: var(--text-secondary);
    margin-bottom: 0.75rem;
}
.empty-state .empty-icon {
    font-size: 4rem; margin-bottom: 1rem; opacity: 0.3;
}


/* === COOKIE CONSENT BANNER === */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 10000;
    padding: 0 1rem 1rem;
    pointer-events: none;
}
.cookie-banner-inner {
    pointer-events: auto;
    max-width: 680px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 -4px 30px rgba(0,0,0,0.12), var(--shadow-lg);
    animation: cookieSlideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes cookieSlideUp {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
}
.cookie-banner-text strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 0.3rem;
}
.cookie-banner-text p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}
.cookie-banner-text a {
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cookie-banner-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}
.cookie-btn {
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition);
}
.cookie-btn-accept {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
}
.cookie-btn-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--primary-glow);
}
.cookie-btn-reject {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}
.cookie-btn-reject:hover {
    border-color: var(--text-muted);
}
.cookie-btn-details {
    background: none;
    color: var(--text-muted);
    border-color: transparent;
    padding: 0.6rem 0.8rem;
    font-weight: 500;
}
.cookie-btn-details:hover { color: var(--primary); }

/* Cookie Details Panel */
.cookie-details {
    margin-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    padding-top: 1rem;
}
.cookie-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0;
}
.cookie-detail-row + .cookie-detail-row {
    border-top: 1px solid var(--border-subtle);
}
.cookie-detail-info strong {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.15rem;
}
.cookie-detail-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}
.cookie-always-on {
    font-size: 0.75rem;
    color: var(--emerald);
    font-weight: 600;
    white-space: nowrap;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px; height: 24px;
    flex-shrink: 0;
}
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-toggle-slider {
    position: absolute; inset: 0;
    background: var(--border);
    border-radius: 24px;
    cursor: pointer;
    transition: background var(--transition);
}
.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    left: 3px; bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform var(--transition);
}
.cookie-toggle input:checked + .cookie-toggle-slider {
    background: var(--primary);
}
.cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(20px);
}

@media (max-width: 640px) {
    .cookie-banner { padding: 0 0.5rem 0.5rem; }
    .cookie-banner-inner { padding: 1rem; }
    .cookie-banner-actions { flex-direction: column; }
    .cookie-btn { text-align: center; }
}

/* === HIGHLIGHT === */
mark {
    background: var(--primary-glow);
    color: var(--primary);
    padding: 0 3px; border-radius: 3px;
}

/* === FLASH MESSAGES === */
.flash {
    max-width: 1400px; margin: 1rem auto;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    display: flex; align-items: center; gap: 0.5rem;
    animation: flash-in 0.4s ease-out;
}
@keyframes flash-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.flash-success {
    background: var(--emerald-light);
    border: 1px solid rgba(5, 150, 105, 0.2);
    color: var(--emerald);
}
.flash-error {
    background: var(--red-light);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: var(--red);
}

/* === BACK TO TOP === */
.back-to-top {
    position: fixed; bottom: 1.5rem; right: 1.5rem;
    width: 44px; height: 44px;
    background: var(--primary-gradient);
    color: #fff; border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: all var(--transition);
    z-index: 90;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }

/* === SKELETON LOADER === */
.skeleton {
    background: linear-gradient(90deg,
        var(--skeleton-from) 25%,
        var(--skeleton-to) 50%,
        var(--skeleton-from) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.6s ease-out both; }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }
.animate-on-scroll { opacity: 0; }
.animate-on-scroll.animate-in { opacity: 1; }

/* === RECENTLY VIEWED === */
.recently-viewed-bar {
    max-width: 1400px; margin: 0 auto; padding: 0 2rem;
}
.recently-viewed-scroll {
    display: flex; gap: 1rem;
    overflow-x: auto; padding-bottom: 0.5rem;
    scrollbar-width: none;
}
.recently-viewed-scroll::-webkit-scrollbar { display: none; }
.recently-viewed-item {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    min-width: 200px; flex-shrink: 0;
    transition: all var(--transition);
    text-decoration: none; color: var(--text);
}
.recently-viewed-item:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}
.recently-viewed-item img {
    width: 36px; height: 36px;
    object-fit: cover; border-radius: 6px;
}
.recently-viewed-item .rv-info { flex: 1; min-width: 0; }
.recently-viewed-item .rv-title {
    font-size: 0.78rem; font-weight: 500;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.recently-viewed-item .rv-price {
    font-family: var(--font-mono);
    font-size: 0.75rem; color: var(--primary); font-weight: 600;
}

/* === DEAL SPOTLIGHT (Deal des Tages) === */
.deal-spotlight {
    display: flex;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-slow);
    position: relative;
}
.deal-spotlight::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, var(--primary), var(--amber), var(--primary));
    background-size: 200% 200%;
    animation: spotlight-border 4s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}
@keyframes spotlight-border {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.deal-spotlight:hover { box-shadow: var(--shadow-lg); }
.deal-spotlight-image {
    width: 55%;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-deep);
    position: relative;
    overflow: hidden;
}
.deal-spotlight-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.deal-spotlight:hover .deal-spotlight-image img { transform: scale(1.05); }
.deal-spotlight-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: linear-gradient(135deg, var(--red), var(--orange));
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.35);
    z-index: 2;
}
.deal-spotlight-body {
    width: 45%;
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}
.deal-spotlight-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--amber);
}
.deal-spotlight-label svg { width: 16px; height: 16px; }
.deal-spotlight-merchant {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.deal-spotlight-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.deal-spotlight-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.deal-spotlight-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.deal-spotlight-price {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.03em;
}
.deal-spotlight-oldprice {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}
.deal-spotlight-countdown {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.deal-spotlight-countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.6rem;
    min-width: 48px;
}
.deal-spotlight-countdown-unit strong {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}
.deal-spotlight-countdown-unit span {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}
.deal-spotlight-countdown-sep {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-muted);
    font-size: 1.1rem;
    padding-bottom: 0.8rem;
}
.deal-spotlight-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--primary-gradient);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: 0 4px 16px var(--primary-glow);
    border: none;
    cursor: pointer;
    align-self: flex-start;
}
.deal-spotlight-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--primary-glow);
    color: #fff;
}
.deal-spotlight-cta svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition);
}
.deal-spotlight-cta:hover svg { transform: translateX(4px); }
.deal-spotlight-expired {
    font-size: 0.8rem;
    color: var(--red);
    font-weight: 600;
}

/* === ENHANCED CATEGORIES === */
.categories-enhanced-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 0.875rem;
}
.category-enhanced {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.75rem 1rem;
    border-radius: var(--radius);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--card);
    transition: all var(--transition);
}
.category-enhanced::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.07;
    transition: opacity var(--transition);
    border-radius: inherit;
}
.category-enhanced:hover::before { opacity: 0.14; }
.category-enhanced:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: transparent;
}
.category-enhanced-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 650;
    color: var(--text);
    line-height: 1.3;
    margin-top: 0.25rem;
    transition: color var(--transition);
}
.category-enhanced:hover .category-enhanced-name { color: var(--primary); }
.category-enhanced-count {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}
.category-enhanced-icon {
    font-size: 1.75rem;
    line-height: 1;
    margin-bottom: 0.25rem;
    filter: grayscale(0.2);
}

/* === DEALS TABS + GRID === */
.deals-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.deals-tabs::-webkit-scrollbar { display: none; }
.deals-tab {
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 550;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition);
}
.deals-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}
.deals-tab--active {
    background: var(--primary-gradient) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 2px 8px var(--primary-glow);
}
.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.deals-grid .deal-card {
    width: auto;
    min-width: 0;
}

/* === BRAND GRID === */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.875rem;
}
.brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--card);
    text-decoration: none;
    color: var(--text);
    transition: all var(--transition);
    gap: 0.5rem;
}
.brand-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
    color: var(--text);
}
.brand-card-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: color var(--transition);
}
.brand-card:hover .brand-card-name { color: var(--primary); }
.brand-card-count {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}
.brand-card-deals {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.6rem;
    background: var(--emerald-light);
    color: var(--emerald);
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

/* === STATS SECTION === */
.stats-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.stat-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius);
    margin-bottom: 0.25rem;
}
.stat-icon svg { width: 24px; height: 24px; }
.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.03em;
    line-height: 1;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* === NEWSLETTER CTA === */
.newsletter-section {
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.newsletter-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08) 1px, transparent 1px),
                radial-gradient(circle at 80% 80%, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 32px 32px, 48px 48px;
    pointer-events: none;
}
.newsletter-content {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 0 auto;
}
.newsletter-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}
.newsletter-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.newsletter-form {
    display: flex;
    gap: 0.5rem;
    max-width: 440px;
    margin: 0 auto;
}
.newsletter-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    backdrop-filter: blur(8px);
    transition: all var(--transition);
}
.newsletter-input::placeholder { color: rgba(255, 255, 255, 0.55); }
.newsletter-input:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.18);
}
.newsletter-btn {
    padding: 0.875rem 1.5rem;
    background: #fff;
    color: var(--primary);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* === SECTION LINK ENHANCEMENT === */
.section-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all var(--transition);
}
.section-link:hover { gap: 0.5rem; }

/* === NEW BADGE === */
.deal-card-new {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--emerald);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-full);
    z-index: 2;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .search-page { grid-template-columns: 1fr; }
    .product-detail { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }

    /* Shared slide-in filter panel (Products + Travel) */
    .filter-mobile-btn, .travel-filter-mobile-btn {
        display: flex; align-items: center; gap: 0.5rem;
        position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
        z-index: 90;
        padding: 0.75rem 1.5rem;
        color: #fff; border: none; border-radius: var(--radius-full);
        font-size: 0.9rem; font-weight: 600;
        cursor: pointer; font-family: var(--font-body);
        transition: transform 0.15s, box-shadow 0.15s;
    }
    .filter-mobile-btn {
        background: var(--primary);
        box-shadow: 0 4px 20px var(--primary-glow);
    }
    .travel-filter-mobile-btn {
        background: #EA580C;
        box-shadow: 0 4px 20px rgba(234, 88, 12, 0.35);
    }
    .filter-mobile-btn:active, .travel-filter-mobile-btn:active {
        transform: translateX(-50%) scale(0.96);
    }

    .filter-overlay, .travel-filter-overlay {
        display: block; position: fixed; inset: 0; z-index: 998;
        background: rgba(0,0,0,0.45); backdrop-filter: blur(4px);
    }
    .filter-overlay-enter, .tf-overlay-enter { transition: opacity 0.25s ease; }
    .filter-overlay-leave, .tf-overlay-leave { transition: opacity 0.2s ease; }

    .filters, .travel-filters {
        position: fixed; top: 0; left: 0; bottom: 0;
        width: 340px; max-width: 85vw;
        z-index: 999;
        background: var(--bg);
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
        max-height: 100vh;
        border-right: 1px solid var(--border);
        box-shadow: 8px 0 30px rgba(0,0,0,0.12);
        padding: 0;
    }
    .filters--open, .travel-filters--open { transform: translateX(0); }

    .filters-header, .travel-filters-header {
        display: flex; align-items: center; justify-content: space-between;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid var(--border);
    }
    .filters-header h3, .travel-filters-header h3 {
        font-family: var(--font-display);
        font-size: 1.1rem; font-weight: 700;
    }
    .filters-close, .travel-filters-close {
        background: none; border: none; cursor: pointer;
        color: var(--text-muted); padding: 0.25rem;
        border-radius: var(--radius-sm);
        transition: color 0.15s, background 0.15s;
    }
    .filters-close:hover, .travel-filters-close:hover {
        color: var(--text); background: var(--surface);
    }
    .filters-body, .travel-filters-body {
        padding: 1.25rem;
        overflow-y: auto;
        flex: 1;
    }
    .filters-footer, .travel-filters-footer {
        display: flex; flex-direction: column; gap: 0.25rem;
        padding: 0.75rem 1.25rem;
        border-top: 1px solid var(--border);
        background: var(--bg);
    }

    /* Travel search page */
    .travel-search-page { grid-template-columns: 1fr; padding: 1rem; }
}

@media (max-width: 900px) {
    .product-row {
        grid-template-columns: 120px 1fr; gap: 1rem;
        padding: 1rem;
    }
    .product-row-image { width: 120px; height: 100px; }
    .product-row-btns { flex-direction: column; gap: 0.35rem; }
}

@media (max-width: 768px) {
    .nav-inner {
        flex-wrap: wrap; height: auto;
        padding: 0.75rem 0; gap: 0.5rem;
    }
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column;
        width: 100%; order: 10;
        background: var(--surface);
        padding: 0.5rem;
        border-radius: var(--radius-sm); gap: 0.25rem;
    }
    .nav-search { width: 100%; order: 3; }
    .mobile-menu-btn { display: flex; }
    .hero-title { font-size: 2.5rem; }
    .hero--fullscreen { padding: 0 1rem; }
    .hero-stats { gap: 0.25rem; padding: 1rem 0.5rem; }
    .hero-stat { padding: 0 0.6rem; }
    .hero-stat strong { font-size: 0.9rem; }
    .hero-stat span { font-size: 0.6rem; }
    .hero-stat-divider { height: 20px; }
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.75rem;
    }
    .section { padding: 2rem 1rem; }
    .search-page { padding: 1rem; gap: 1.5rem; }
    .travel-search-page { padding: 0.75rem; }
    .travel-search-title { font-size: 1.2rem; }
    .filters, .travel-filters { width: 300px; }
    .tf-chips { gap: 0.3rem; }
    .tf-chip { font-size: 0.7rem; padding: 0.25rem 0.6rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
    .product-row {
        grid-template-columns: 90px 1fr; gap: 0.75rem;
        padding: 0.875rem;
    }
    .product-row-image { width: 90px; height: 80px; }
    .product-row-title { font-size: 0.9rem; }
    .product-row-desc { display: none; }
    .product-row-price { font-size: 1rem; }
    .product-row-head { gap: 0.3rem; }
    .product-row-cat { display: none; }
    .product-row-bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .product-row-btns { width: 100%; }
    .product-row-go, .product-row-cta { flex: 1; justify-content: center; font-size: 0.72rem; }
    .deals-scroll .deal-card { min-width: 180px; }
    .deal-spotlight { flex-direction: column; }
    .deal-spotlight-image { width: 100%; aspect-ratio: 16/10; }
    .deal-spotlight-body { width: 100%; padding: 1.5rem; }
    .deal-spotlight-title { font-size: 1.2rem; }
    .deal-spotlight-price { font-size: 1.5rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .stat-value { font-size: 1.5rem; }
    .deals-grid { grid-template-columns: repeat(2, 1fr); }
    .brands-grid { grid-template-columns: repeat(2, 1fr); }
    .categories-enhanced-grid { grid-template-columns: repeat(2, 1fr); }
    .newsletter-title { font-size: 1.35rem; }
    .newsletter-form { flex-direction: column; }
    .newsletter-btn { width: 100%; }
}

@media (max-width: 480px) {
    .deals-grid { grid-template-columns: 1fr; }
    .deal-spotlight-countdown { flex-wrap: wrap; }
    .deal-spotlight-countdown-unit { min-width: 42px; }
}

/* === LEGAL PAGES (Impressum / Datenschutz) === */

/* Hero banner */
.legal-hero {
    position: relative;
    padding: 4.5rem 2rem 3.5rem;
    text-align: center;
    overflow: hidden;
}
.legal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 80% at 30% 0%, var(--primary-glow), transparent),
        radial-gradient(ellipse 50% 60% at 80% 100%, var(--emerald-glow), transparent);
    pointer-events: none;
    opacity: 0.7;
}
.legal-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: var(--primary-gradient);
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    box-shadow: 0 8px 32px var(--primary-glow);
}
.legal-hero-icon svg {
    width: 28px;
    height: 28px;
}
.legal-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    position: relative;
}
.legal-hero-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
}
.legal-hero-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
    position: relative;
    padding: 0.4rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
}
.legal-hero-meta svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

/* Layout: two-column with sidebar */
.legal-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 3rem;
    max-width: 1080px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
    align-items: start;
}

/* Sidebar / TOC */
.legal-toc {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding-right: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.legal-toc-title {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-left: 0.75rem;
}
.legal-toc a {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    line-height: 1.4;
    text-decoration: none;
    border-left: 2px solid transparent;
    margin-bottom: 1px;
}
.legal-toc a:hover {
    color: var(--text);
    background: var(--primary-light);
    border-left-color: var(--primary);
}
.legal-toc a.active {
    color: var(--primary);
    background: var(--primary-light);
    border-left-color: var(--primary);
    font-weight: 600;
}
.legal-toc-num {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    min-width: 1.1rem;
    opacity: 0.7;
}

/* Content area */
.legal-content {
    min-width: 0;
}

/* Section card */
.legal-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 2.25rem;
    margin-bottom: 1.25rem;
    position: relative;
    transition: border-color var(--transition), box-shadow var(--transition);
    scroll-margin-top: 88px;
}
.legal-section:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary-glow), var(--shadow-sm);
}
.legal-section-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.legal-section-num {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 2rem;
    padding-top: 0.15rem;
    user-select: none;
}
.legal-section h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: var(--text);
    padding-top: 0.2rem;
}
.legal-section h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 650;
    color: var(--text);
    margin: 1.25rem 0 0.6rem;
}
.legal-section p {
    font-size: 0.925rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}
.legal-section p:last-child {
    margin-bottom: 0;
}
.legal-section ul {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0;
}
.legal-section li {
    position: relative;
    padding-left: 1.35rem;
    font-size: 0.925rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}
.legal-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.5;
}
.legal-section li strong {
    color: var(--text);
    font-weight: 600;
}
.legal-section a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: var(--primary-glow);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--transition);
}
.legal-section a:hover {
    text-decoration-color: var(--primary);
}

/* Info card (for address/contact blocks) */
.legal-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
}
.legal-info-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-gradient);
    border-radius: 3px;
}
.legal-info-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    flex-shrink: 0;
}
.legal-info-card-icon svg {
    width: 18px;
    height: 18px;
}
.legal-info-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text);
    margin: 0;
}
.legal-info-card a {
    color: var(--primary);
    font-weight: 500;
}

/* Highlight box for important notices */
.legal-highlight {
    padding: 1rem 1.25rem;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
    margin: 1rem 0;
}
.legal-highlight p {
    color: var(--text);
    font-size: 0.9rem;
    margin: 0;
}

/* Rights grid for Betroffenenrechte */
.legal-rights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 1rem 0;
}
.legal-right-item {
    padding: 1rem 1.15rem;
    background: var(--bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), background var(--transition);
}
.legal-right-item:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}
.legal-right-label {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 650;
    color: var(--text);
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.legal-right-label svg {
    width: 14px;
    height: 14px;
    color: var(--primary);
    flex-shrink: 0;
}
.legal-right-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* Single-column layout (for Impressum) */
.legal-layout-single {
    display: block;
    max-width: 780px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

/* Entrance animations */
.legal-section {
    opacity: 0;
    transform: translateY(16px);
    animation: legal-reveal 0.5s ease forwards;
}
.legal-section:nth-child(1) { animation-delay: 0.05s; }
.legal-section:nth-child(2) { animation-delay: 0.1s; }
.legal-section:nth-child(3) { animation-delay: 0.15s; }
.legal-section:nth-child(4) { animation-delay: 0.2s; }
.legal-section:nth-child(5) { animation-delay: 0.25s; }
.legal-section:nth-child(6) { animation-delay: 0.3s; }
.legal-section:nth-child(7) { animation-delay: 0.35s; }
.legal-section:nth-child(8) { animation-delay: 0.4s; }
.legal-section:nth-child(9) { animation-delay: 0.45s; }
.legal-section:nth-child(10) { animation-delay: 0.5s; }
.legal-section:nth-child(11) { animation-delay: 0.55s; }
.legal-section:nth-child(12) { animation-delay: 0.6s; }
.legal-section:nth-child(13) { animation-delay: 0.65s; }

@keyframes legal-reveal {
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 900px) {
    .legal-layout {
        grid-template-columns: 1fr;
        padding: 2rem 1.25rem 4rem;
    }
    .legal-toc {
        position: relative;
        top: 0;
        max-height: none;
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
        padding: 1rem;
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: var(--radius);
    }
    .legal-toc-title {
        width: 100%;
        margin-bottom: 0.5rem;
        padding-left: 0;
    }
    .legal-toc a {
        padding: 0.35rem 0.7rem;
        border-left: none;
        border-radius: var(--radius-full);
        font-size: 0.75rem;
        background: var(--bg);
        border: 1px solid var(--border-subtle);
    }
    .legal-toc a:hover,
    .legal-toc a.active {
        border-color: var(--primary);
        background: var(--primary-light);
    }
    .legal-toc-num { display: none; }
    .legal-rights-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .legal-hero { padding: 3rem 1.25rem 2.5rem; }
    .legal-section { padding: 1.5rem 1.25rem; }
    .legal-section-num { font-size: 1.4rem; min-width: 1.6rem; }
    .legal-layout-single { padding: 2rem 1.25rem 4rem; }
    .legal-info-card { flex-direction: column; gap: 0.75rem; }
}
