/* Mobile-First Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Design Tokens - Color Psychology */
:root {
    /* Color Psychology Tokens */
    --action-color: #FF6600; /* Safety Orange - ONLY for Clicks/Conversion */
    --action-hover: #e65c00; 
    --trust-color: #003366;  /* Navy Blue - For Borders, Headers, Badges */
    --trust-light: #ebf8ff;  /* Light Blue - For Backgrounds/Chips */
    
    --text-main: #2d3748;
    --text-muted: #718096;
    --border-color: #e2e8f0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px; /* Account for fixed navbars */
    background-color: #1a202c;
    margin: 0;
    padding: 0;
    min-height: 100%;
    /* Scale entire page to 80% */
    transform: scale(0.8);
    transform-origin: top left;
    width: 125%; /* Compensate for 80% scale (100% / 0.8 = 125%) */
    height: 125%;
}

/* Remove scale on mobile for proper responsiveness */
@media (max-width: 768px) {
    html {
        transform: none;
        width: 100%;
        height: 100%;
    }
    
    .logo-ticker-section {
        display: none;
    }
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #4a5568;
    background-color: #1a202c;
    max-width: 100%;
    overflow-x: hidden;
    padding: 0;
    padding-top: 0 !important;
    margin: 0;
    min-height: 100vh;
    /* Prevent text size adjustment on iOS */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Responsive Typography */
@media (min-width: 768px) {
    body {
        font-size: 16px;
    }
}

h1 {
    font-size: clamp(24px, 5vw, 32px);
    line-height: 1.3;
}

h2 {
    font-size: clamp(20px, 4vw, 28px);
    line-height: 1.4;
}

h3 {
    font-size: clamp(18px, 3.5vw, 24px);
    line-height: 1.4;
}

h4 {
    font-size: clamp(16px, 3vw, 20px);
    line-height: 1.5;
}

/* The Hook (Above the Fold) - Professional, Clean Header */
.hook {
    position: relative;
    text-align: center;
    background: transparent;
    border-bottom: none;
    overflow: visible;
    margin: 0;
    margin-top: 0;
    padding: 0;
    z-index: 1;
    width: 100%;
}

.hero-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.hero-image > img:first-child {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


.hook-content {
    padding: 20px 16px 16px;
    position: relative;
    /* Match overall dark page background instead of white gradient */
    background: #1a202c;
    margin-top: -50px;
    z-index: 1;
}

/* Remove bottom padding on hook-content for all-winter-tires page */
body:has(.product-listing-section) .hook-content {
    padding-bottom: 0;
}

.hook h1,
.hook .tn-configurator-heading {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.2;
    /* Use brand orange for main headings */
    color: var(--action-color);
    letter-spacing: -0.3px;
}

/* Testsieger page: video embeds inside product cards */

.testsieger-video-wrapper {
    margin: 0;
    margin-top: 12px;
    border-radius: 12px;
    overflow: hidden;
}

.testsieger-video-wrapper iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    display: block;
}

/* Unified Highlight Cards - White background, consistent styling */
/* Highlight Cards (Testsieger) */
.highlight-card,
.testsieger-section .product-card.testsieger-card,
.highlights-section .product-card {
    padding: 20px;
    max-width: 420px;
    width: 100%;
    background: #ffffff;
    border: 2px solid var(--trust-color) !important; /* Navy Blue - Remove red border */
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
    height: 100%; /* Fill grid cell */
}

.highlight-card:hover,
.testsieger-section .product-card.testsieger-card:hover,
.highlights-section .product-card:hover {
    border-color: var(--trust-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

/* The "Tipp" / "Testsieger" Badge */
.badge-highlight {
    background: var(--trust-color) !important; /* Navy Blue */
    color: white;
    /* Restore the top-left position */
    position: absolute;
    top: 12px;
    left: 0;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 10;
}

/* Make header text trust color for highlight cards */
.highlight-card .product-card-name,
.testsieger-section .product-card.testsieger-card .product-card-name,
.highlights-section .product-card .product-card-name {
    color: var(--trust-color);
}

/* Fix overflow for highlight card headers */
.highlight-card .product-card-header,
.testsieger-section .product-card.testsieger-card .product-card-header,
.highlights-section .product-card .product-card-header {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    min-width: 0;
    flex-shrink: 0;
    padding: 20px;
    flex-grow: 1; /* Takes up available space */
    flex-direction: column;
}

.highlight-card .product-card-info,
.testsieger-section .product-card.testsieger-card .product-card-info,
.highlights-section .product-card .product-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Fix text overflow in highlight cards */
.highlight-card .product-card-name,
.testsieger-section .product-card.testsieger-card .product-card-name,
.highlights-section .product-card .product-card-name {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    max-width: 100%;
    box-sizing: border-box;
}

.highlight-card .product-card-size,
.testsieger-section .product-card.testsieger-card .product-card-size,
.highlights-section .product-card .product-card-size {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    max-width: 100%;
    box-sizing: border-box;
}

/* Fix pros-cons overflow in highlight cards */
.highlight-card .pros-cons,
.testsieger-section .product-card.testsieger-card .pros-cons,
.highlights-section .product-card .pros-cons {
    list-style: none;
    margin: 12px 0;
    padding: 0;
    min-width: 0;
}

.highlight-card .pros-cons li,
.testsieger-section .product-card.testsieger-card .pros-cons li,
.highlights-section .product-card .pros-cons li {
    padding: 8px 0 8px 32px;
    font-size: 14px;
    line-height: 1.6;
    position: relative;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    max-width: 100%;
    box-sizing: border-box;
}

.highlight-card .pros-cons li::before,
.testsieger-section .product-card.testsieger-card .pros-cons li::before,
.highlights-section .product-card .pros-cons li::before {
    position: absolute;
    left: 0;
    top: 8px;
    width: 22px;
    height: 22px;
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

/* Fix price section overflow */
.highlight-card .product-card-price-section,
.testsieger-section .product-card.testsieger-card .product-card-price-section,
.highlights-section .product-card .product-card-price-section {
    margin-top: auto; /* Pushes to bottom of flex container */
    padding: 20px;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    min-width: 0;
}

.highlight-card .price-main-row,
.testsieger-section .product-card.testsieger-card .price-main-row,
.highlights-section .product-card .price-main-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 0;
}

.price-display {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.8rem;
    color: #718096;
}

.price-low {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d3748;
}

.highlight-card .weiter-button,
.testsieger-section .product-card.testsieger-card .weiter-button,
.highlights-section .product-card .weiter-button {
    background-color: var(--action-color);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
    flex: 1;
    min-width: 140px;
    font-size: 14px;
    white-space: nowrap;
    text-align: center;
    box-sizing: border-box;
}

.highlight-card .weiter-button:hover,
.testsieger-section .product-card.testsieger-card .weiter-button:hover,
.highlights-section .product-card .weiter-button:hover {
    background-color: var(--action-hover);
}

/* Fix image section in highlight cards */
.highlight-card .product-card-image-section,
.testsieger-section .product-card.testsieger-card .product-card-image-section,
.highlights-section .product-card .product-card-image-section {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    max-width: 160px;
}

.highlight-card .product-card-image-wrapper,
.testsieger-section .product-card.testsieger-card .product-card-image-wrapper,
.highlights-section .product-card .product-card-image-wrapper {
    width: 100%;
    max-width: 140px;
    aspect-ratio: 1 / 1;
    height: auto;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

.highlight-card .product-card-image,
.testsieger-section .product-card.testsieger-card .product-card-image,
.highlights-section .product-card .product-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Ensure test badges don't overflow */
.highlight-card .test-badges,
.testsieger-section .product-card.testsieger-card .test-badges,
.highlights-section .product-card .test-badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    width: 100%;
    max-width: 140px;
    box-sizing: border-box;
}

.highlight-card .test-badge,
.testsieger-section .product-card.testsieger-card .test-badge,
.highlights-section .product-card .test-badge {
    max-height: 78px;
    max-width: 100%;
    width: auto;
    display: block;
    object-fit: contain;
    box-sizing: border-box;
}

/* Video wrapper in highlight cards */
.highlight-card .testsieger-video-wrapper,
.testsieger-section .product-card.testsieger-card .testsieger-video-wrapper,
.highlights-section .product-card .testsieger-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    background: #000;
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.highlight-card .testsieger-video-wrapper iframe,
.testsieger-section .product-card.testsieger-card .testsieger-video-wrapper iframe,
.highlights-section .product-card .testsieger-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@media (max-width: 768px) {
    .highlight-card,
    .testsieger-section .product-card.testsieger-card,
    .highlights-section .product-card {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 16px !important;
    }
    
    .highlight-card .product-card-header,
    .testsieger-section .product-card.testsieger-card .product-card-header,
    .highlights-section .product-card .product-card-header {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .highlight-card .product-card-image-section,
    .testsieger-section .product-card.testsieger-card .product-card-image-section,
    .highlights-section .product-card .product-card-image-section {
        width: 100%;
        max-width: 100%;
    }
    
    .highlight-card .product-card-info,
    .testsieger-section .product-card.testsieger-card .product-card-info,
    .highlights-section .product-card .product-card-info {
        width: 100%;
        text-align: center;
    }
    
    .highlight-card .pros-cons li,
    .testsieger-section .product-card.testsieger-card .pros-cons li,
    .highlights-section .product-card .pros-cons li {
        text-align: left;
        padding-left: 28px;
        font-size: 13px;
    }
}

.testsieger-section .product-card-price-section {
    margin-bottom: 0;
}

/* Testsieger price display formatting */
.testsieger-card .price-display {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    background: white;
    padding: 10px 14px;
    border-radius: 6px;
    min-width: 100px;
}

.testsieger-card .price-label {
    font-size: 11px;
    font-weight: 500;
    color: #4a5568;
    line-height: 1;
    text-transform: lowercase;
}

    .testsieger-card .price-low {
        font-size: 16px;
        font-weight: 700;
        line-height: 1.2;
        color: #1a202c;
    }

.testsieger-section .testsieger-grid {
    margin-top: 12px;
}

/* Center the last 2 cards (4th and 5th) in the bottom row */
/* Position them in columns 2 and 3 to center them visually */
.testsieger-section .testsieger-grid .testsieger-card:nth-child(4) {
    grid-column: 2 / 3;
}

.testsieger-section .testsieger-grid .testsieger-card:nth-child(5) {
    grid-column: 3 / 4;
}

/* Responsive: 2 columns on tablets, 1 column on mobile */
@media (max-width: 768px) {
    .testsieger-section .testsieger-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 0 16px;
        width: 100%;
    }
    
    /* Reset centering on mobile */
    .testsieger-section .testsieger-grid .testsieger-card:nth-child(4),
    .testsieger-section .testsieger-grid .testsieger-card:nth-child(5) {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    .testsieger-section .testsieger-grid {
        grid-template-columns: 1fr;
    }
}

/* UNIFIED FLUID GRID (Replaces all media queries for these classes) */
/* THE RAM PATTERN: Repeat, Auto-fit, Minmax */
.product-grid,
.tire-grid,
.brand-grid {
    display: grid;
    /* 1. Repeat: Fill the row */
    /* 2. Auto-fit: Use available space */
    /* 3. Minmax: Never smaller than 280px, but scale down to 100% if screen is smaller */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 24px; /* PDF Section 2.2: Use gaps, not margins */
    width: 100%;
    margin: 0 auto;
}

/* Testsieger grid: 3 columns (3 on top, 2 on bottom) */
.testsieger-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: stretch; /* Force cards to same height */
    padding: 20px 0;
    width: 100%;
    margin: 0 auto;
}

/* Improve product grid for very small screens */
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
}

/* Improve product grid for small mobile screens */
@media (max-width: 360px) {
    .product-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
        padding: 0 8px;
    }
}

.testsieger-section .product-card.testsieger-card .product-card-image-wrapper {
    width: 140px;
    aspect-ratio: 1 / 1;
    height: auto;
    padding: 8px;
}

.testsieger-section .test-badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}

.testsieger-section .test-badge {
    max-height: 78px;
    width: auto;
    display: block;
    object-fit: contain;
}

.testsieger-section .test-badge.bridgestone-badge {
    max-height: 79px;
}

.testsieger-section .test-badge.hankook-badge {
    max-height: 105.3px;
}

.testsieger-section .product-card.testsieger-card .product-card-name {
    font-size: 16px;
}

.testsieger-section .product-card.testsieger-card .product-card-size {
    font-size: 13px;
}

/* Slightly softer price text on Testsieger partner rows so it doesn't clash visually */
.testsieger-section .reseller-price-section {
    align-items: flex-start;
    text-align: left;
}

.testsieger-section .reseller-price-main {
    font-size: 13px;
    font-weight: 500;
}

.hook .tn-configurator-heading {
    font-size: 24px;
    text-align: center;
    margin-bottom: 16px;
}

.last-updated {
    display: none;
}

.hook h2,
.hook .tn-configurator-description {
    display: none;
}

/* Site Logo removed from hero - now in header */

/* Size Finder Visual - now integrated into configurator */
.size-finder-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0 0 24px;
}

.tire-visual-display {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    transform: translateX(-25px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tire-photo {
    width: 100%;
    height: auto;
    max-width: 650px;
    border-radius: 0;
    box-shadow: none;
    object-fit: contain;
    background: transparent;
    mix-blend-mode: multiply;
}

.tire-dimensions-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    z-index: 10;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 6px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.15em;
    font-family: 'Roboto', sans-serif;
}

.size-finder-actions,
.tn-configurator-submit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    text-align: center;
}

.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

/* Primary Call-to-Action */
.btn-primary {
    background-color: var(--action-color) !important; /* Force Orange */
    color: white;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
    background-color: var(--action-hover) !important;
    transform: translateY(-2px); /* Subtle lift */
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3); /* Orange Glow */
    color: white;
}

.size-finder-submit,
.tn-configurator-controls + .size-finder-visual + .size-finder-actions button {
    padding: 16px 48px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 220px;
    letter-spacing: 0.3px;
    text-transform: none;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.size-finder-submit:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
}

.size-finder-submit:active {
    background: linear-gradient(135deg, #c2410c 0%, #9a3412 100%);
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.size-finder-results-preview {
    text-align: center;
    font-size: 14px;
    color: #3182ce;
    font-weight: 500;
}

.size-finder-results-preview p {
    margin: 0;
}

@media (max-width: 768px) {
    /* Hide hero image on mobile */
    .hero-image {
        display: none;
    }
    
    /* Fix hook section spacing on mobile */
    .hook {
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    /* Override inline negative margin on mobile */
    .tn-container {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        overflow-x: hidden; /* Prevent horizontal scroll */
        padding-left: 0;
        padding-right: 0;
    }
    
    /* Move up size selector on homepage only (not affecting hamburger) */
    #tires-configurator-wrapper .tn-container {
        margin-top: -60px !important;
    }
    
    /* Ensure tabs section doesn't have extra spacing */
    .tn-tabs-section {
        padding-top: 0;
        margin-top: 0;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    
    /* Add padding-top to account for sticky header */
    /* Header height calculated dynamically via JavaScript */
    /* Fallback padding-top for initial render */
    .tn-configurator-content {
        padding: 0 16px 0 !important;
        margin: 0 auto !important; /* Override desktop negative margin */
        margin-top: 0 !important;
        padding-top: 180px !important; /* Safe fallback, overridden by JS */
        scroll-margin-top: 180px; /* Additional safety for scroll behavior */
        max-width: 100%; /* Ensure it doesn't overflow */
        box-sizing: border-box; /* Include padding in width calculation */
    }
    
    /* Ensure page-main-slider-block doesn't add extra space */
    .page-main-slider-block {
        margin-top: 0;
        padding-top: 0;
        min-height: auto; /* Changed from 0 to auto for proper layout */
        height: auto; /* Changed from 0 to auto */
        overflow: visible;
    }
    
    .tn-configurator-pane {
        padding: 20px 16px !important;
        border-radius: 8px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    }
    
    .tn-configurator-heading {
        font-size: 20px;
        margin-bottom: 8px;
        text-align: center;
    }
    
    .tn-configurator-description {
        font-size: 14px;
        color: #64748b;
        margin-bottom: 24px;
        text-align: center;
        line-height: 1.5;
        padding: 0 8px;
    }
    
    /* Two fields on top row */
    .tn-configurator-controls-top {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 16px;
    }
    
    /* Three fields on bottom row */
    .tn-configurator-controls {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 24px;
        justify-content: center;
    }
    
    /* Ensure fields fit properly in grid */
    .configurator-select {
        min-width: 0;
        max-width: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
    }
    
    /* Specific widths for size dropdowns on mobile */
    .tn-configurator-controls .configurator-select:has(#size-width) {
        width: 50%;
    }
    
    .tn-configurator-controls .configurator-select:has(#size-height) {
        width: 50%;
    }
    
    .tn-configurator-controls .configurator-select:has(#size-rim) {
        width: 30%;
    }
    
    /* On very small screens, ensure fields don't overflow */
    @media (max-width: 360px) {
        .tn-configurator-controls-top,
        .tn-configurator-controls {
            gap: 8px;
        }
        
        .tn-select {
            padding: 12px 12px;
            font-size: 15px;
        }
    }
    
    .configurator-select label {
        font-size: 14px;
        font-weight: 600;
        color: #1a202c;
        margin-bottom: 8px;
        text-align: left;
        display: block;
    }
    
    .tn-select {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
        width: 100%;
        min-height: 48px;
        touch-action: manipulation;
        border-radius: 8px;
        border: 1.5px solid #e2e8f0;
        background: #ffffff;
    }
    
    .tn-select:focus {
        border-color: #3182ce;
        box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
    }
    
    /* Ensure all form inputs are mobile-friendly */
    input[type="text"],
    input[type="number"],
    input[type="search"],
    select,
    textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 48px;
        padding: 14px 16px;
        touch-action: manipulation;
    }
    
    .size-finder-visual {
        padding: 0;
        margin: 24px 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .tire-visual-display {
        max-width: 240px;
        width: 100%;
        margin: 0 auto;
    }
    
    .tire-photo {
        max-width: 100%;
        background: transparent;
        box-shadow: none;
        height: auto;
    }
    
    .size-finder-submit,
    .tn-configurator-submit button {
        padding: 16px 24px;
        font-size: 16px;
        font-weight: 600;
        min-width: 100%;
        width: 100%;
        min-height: 48px;
        border-radius: 8px;
        touch-action: manipulation;
    }
    
    .tn-configurator-submit {
        margin-top: 24px;
    }
}

/* Category Navigation */
.category-navigation {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    padding: 64px 16px;
    border: none;
    width: 100%;
    margin: 0;
}

.category-container {
    max-width: 800px;
    margin: 0 auto;
}

.category-container h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.category-navigation .subtitle {
    text-align: center;
    color: #93c5fd;
    font-size: 17px;
    margin-bottom: 40px;
}

.category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.category-icon {
    font-size: 56px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.category-card h3 {
    font-size: 26px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 16px;
}

.category-card p {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 28px;
    flex-grow: 1;
}

.category-card .cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 17px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.category-card .cta-button:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

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

@media (min-width: 1024px) {
    .category-navigation {
        padding: 80px 32px;
    }
    
    .category-container h2 {
        font-size: 36px;
    }
    
    .category-navigation .subtitle {
        font-size: 18px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        max-width: 700px;
    }
    
    .category-card {
        padding: 48px 40px;
    }
}

@media (max-width: 768px) {
    .category-navigation {
        padding: 48px 16px;
    }
    
    .category-container h2 {
        font-size: 26px;
    }
    
    .category-navigation .subtitle {
        font-size: 15px;
    }
    
    .category-card {
        padding: 32px 24px;
    }
    
    .category-icon {
        font-size: 48px;
    }
    
    .category-card h3 {
        font-size: 22px;
    }
    
    .category-card p {
        font-size: 15px;
    }
    
    .category-card .cta-button {
        font-size: 16px;
        padding: 14px 32px;
    }
    
    .faq-section {
        padding: 48px 16px;
    }
    
    .faq-section h2 {
        font-size: 26px;
    }
    
    .faq-section .faq-subtitle {
        font-size: 15px;
    }
}

/* Header Block Structure (reifen.de style) */
.header-block {
    background: #1a202c;
    color: #ffffff;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin: 0;
    margin-top: 0;
    overflow: visible;
    padding-left: 0;
    padding-right: 0;
}

/* Ensure header-block stays sticky on desktop */
@media (min-width: 769px) {
    .header-block {
        position: sticky;
        top: 0;
        z-index: 1000;
    }
}

/* Ensure header starts at absolute top - remove all gaps */
body {
    position: relative;
    padding-top: 0 !important;
}
    
    /* Fallback for browsers that don't support :has() */
    body.has-left-ad main {
        padding-left: 180px;
    }
    
    body.has-right-ad main {
        padding-right: 180px;
    }
    
    body.has-both-ads main {
        padding-left: 180px;
        padding-right: 180px;
    }
    
    /* Ensure containers adjust when ads are visible */
    body:has(.sticky-ad-left.has-ad) .tn-container,
    body:has(.sticky-ad-right.has-ad) .tn-container {
        max-width: calc(100% - 360px);
    }
    
    body.has-both-ads .tn-container {
        max-width: calc(100% - 360px);
    }
    
    body.has-left-ad .tn-container,
    body.has-right-ad .tn-container {
        max-width: calc(100% - 180px);
    }
    
    /* Listing pages need special handling */
    body:has(.sticky-ad-left.has-ad) .listing-container-with-sidebar,
    body:has(.sticky-ad-right.has-ad) .listing-container-with-sidebar {
        max-width: calc(1400px - 360px);
    }
    
    body.has-both-ads .listing-container-with-sidebar {
        max-width: calc(1400px - 360px);
    }

/* Hide ads on mobile and tablet */
@media (max-width: 1024px) {
    .sticky-ad-left,
    .sticky-ad-right {
        display: none !important;
        visibility: hidden !important;
    }
    
    main {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Remove any top margin/padding from first element */
body > noscript,
body > article:first-child,
body > div:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.header-block {
    margin-top: 0 !important;
    padding-top: 16px;
}

/* Hide noscript completely */
noscript {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    line-height: 0 !important;
}

/* Ensure jsTemplate doesn't create space */
#jsTemplate {
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    display: none;
}

.tn-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.tn-container .header-logo {
    margin-left: -16px !important; /* Compensate for container padding */
    align-self: center;
    margin-right: auto;
}

.tn-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center !important;
    justify-content: space-between;
    gap: 16px;
    margin: 0 -8px;
}

.tn-row > * {
    padding: 0 8px;
}

.tn-row > .header-logo {
    padding-left: 0 !important;
    padding-right: 8px;
    margin-left: -16px !important; /* Compensate for container padding */
}

/* Header row layout for logo, navbar, search */
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-row .header-logo {
    flex: 0 0 auto;
}

.header-row .search-bar-container {
    flex: 0 0 auto;
}

@media (min-width: 769px) {
    .header-row {
        flex-wrap: nowrap;
    }
    
    .header-row .header-menu-inline {
        flex: 1;
        min-width: 0;
        margin: 0 16px 0 auto;
        max-width: none;
    }
    
    .header-row .search-bar-container {
        max-width: 350px;
        flex-shrink: 0;
        margin-left: 24px;
    }
}

.header-logo {
    display: flex;
    align-items: center !important;
    overflow: visible;
    position: relative;
    z-index: 10;
    background: #1a202c !important;
    isolation: isolate;
    padding-left: 0 !important;
    margin-left: 0 !important;
    vertical-align: middle;
}

.header-logo .logo {
    display: flex !important;
    align-items: flex-end !important;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
    overflow: visible;
    padding: 0;
    margin: 0;
    background: #1a202c !important;
}

.logo-wrapper {
    background: #1a202c !important;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0;
    margin: 0;
    position: relative;
    align-self: flex-end;
    overflow: hidden;
    height: 44px;
}

.logo-img {
    width: 180px;
    height: auto;
    max-height: 60px;
    display: block;
    object-fit: cover;
    object-position: bottom;
    background: #1a202c !important;
    mix-blend-mode: lighten;
    margin: 0;
    padding: 0;
    vertical-align: bottom;
}

.logo-text,
.logo-txt {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.header-icons-list {
    display: flex;
    list-style: none;
    gap: 16px;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}

/* Search bar container - right aligned and narrower */
.search-bar-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    max-width: 350px;
    margin-left: auto;
    margin-right: 0;
    flex-shrink: 0;
}

.search-form-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    vertical-align: middle;
}

.tt-form {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.tt-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.sl-free-text {
    width: 100%;
    padding: 14px 16px;
    border: none;
    font-size: 16px; /* Prevents zoom on iOS */
    min-height: 44px;
    touch-action: manipulation;
    border-radius: 6px;
    background: #ffffff;
    color: #1a202c;
    outline: none;
    display: block;
    box-sizing: border-box;
    vertical-align: middle;
    margin: 0;
}

.sl-free-text::placeholder {
    color: #718096;
}

.freetext-submit {
    background: #f97316;
    border: none;
    padding: 12px 20px;
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: background 0.2s;
    flex-shrink: 0;
    align-self: center;
    height: fit-content;
}

.freetext-submit:hover {
    background: #ea580c;
}

.header-search-icon {
    width: 20px;
    height: 20px;
}

/* Responsive spans for reifen.de grid system */
/* Desktop (d) */
@media (min-width: 1024px) {
    .span-d-5 {
        flex: 0 0 41.66667%;
        max-width: 41.66667%;
    }
    .span-d-4 {
        flex: 0 0 33.33333%;
        max-width: 33.33333%;
        margin-left: auto;
        align-self: center;
    }
    .span-d-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Tablet (t) */
@media (min-width: 768px) and (max-width: 1023px) {
    .span-t-11 {
        flex: 0 0 91.66667%;
        max-width: 91.66667%;
    }
    .span-t-10 {
        flex: 0 0 83.33333%;
        max-width: 83.33333%;
    }
    .span-t-1 {
        flex: 0 0 8.33333%;
        max-width: 8.33333%;
    }
}

/* Mobile (m) */
.span-m-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.span-m-10 {
    flex: 0 0 83.33333%;
    max-width: 83.33333%;
}

.span-m-9 {
    flex: 0 0 75%;
    max-width: 75%;
}

.span-m-2 {
    flex: 0 0 16.66667%;
    max-width: 16.66667%;
}

.navbar-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar-icon {
    color: #ffffff;
    text-decoration: none;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s;
}

.navbar-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Main Menu Structure (reifen.de style) */
.page-main-slider-block {
    background: transparent;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Ensure sticky positioning works on desktop */
@media (min-width: 769px) {
    .page-main-slider-block {
        position: relative;
        overflow: visible;
    }
}

/* Content sections should have white background */
main {
    background: transparent;
    padding: 24px 0;
    margin: 0;
}

.tn-configurator-content,
.category-navigation,
.money-box,
.faq-section,
.comparison-section {
    background: #ffffff;
    margin: 16px 0;
    border-radius: 8px;
}

.popular-tires-section {
    background: transparent;
    margin: 16px 0;
    border-radius: 0;
}

.product-listing-section {
    background: transparent;
    margin: 16px 0;
}

/* Add spacing between sections on dark background */
.popular-tires-section,
.faq-section,
.category-navigation {
    margin: 24px auto;
    max-width: 1400px;
    padding: 32px 16px;
}

/* Reduce top margin for testsieger section to move it up */
.testsieger-section {
    margin-top: 0 !important;
    padding-top: 16px !important;
}

@media (min-width: 768px) {
    .popular-tires-section,
    .faq-section,
    .category-navigation {
        padding: 48px 32px;
    }
}

.configurator-background {
    display: none;
}

/* Inline navbar in header-block (Desktop) */
.header-menu-inline {
    display: none;
    flex: 1;
    margin: 0 24px;
}

@media (min-width: 769px) {
    .header-menu-inline {
        display: block;
    }
    
    .header-menu-inline .main-menu {
        max-width: none;
        padding: 0;
    }
    
    .header-menu-inline .main-wrapper {
        height: auto;
        justify-content: center;
        gap: 0;
    }
    
    .header-menu-inline .a-top {
        color: var(--action-color);
        padding: 0 20px !important;
        font-size: 15px !important;
        border-right: 1px solid rgba(255, 102, 0, 0.2);
        height: auto;
    }
    
    .header-menu-inline .a-top:hover {
        background: rgba(255, 102, 0, 0.1);
        color: var(--action-color);
    }
    
    .header-menu-inline .a-top::after {
        background: var(--action-color);
    }
    
    .header-menu-inline .first-dropdown {
        border-top: 3px solid var(--action-color);
    }
}

/* Mobile navbar (separate blue bar) */
.header-menu {
    background: #3182ce;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 72px;
    z-index: 999;
    padding: 0 !important;
    min-height: 56px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

/* Hide mobile navbar on desktop */
@media (min-width: 769px) {
    .header-menu {
        display: none;
    }
}

.main-menu {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
}

.main-wrapper {
    display: flex;
    gap: 0;
    align-items: stretch;
    height: 56px;
}

.topOfCategories {
    position: relative;
}

.a-top {
    display: flex;
    align-items: center;
    padding: 0 28px !important;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px !important;
    font-weight: 500;
    transition: all 0.2s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    line-height: 1.4;
    height: 100%;
    position: relative;
}

/* Orange links for inline navbar */
.header-menu-inline .a-top {
    color: var(--action-color);
}

.a-top::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--action-color);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.a-top:hover {
    background: rgba(255, 255, 255, 0.1);
}

.a-top:hover::after {
    transform: scaleX(1);
}

.arrow {
    display: none;
}

.first-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    border-top: 3px solid #3182ce;
    border-radius: 0 0 8px 8px;
}

/* Trust color border for inline navbar dropdown */
.header-menu-inline .first-dropdown {
    border-top: 3px solid var(--trust-color);
}

.topOfCategories:hover .first-dropdown {
    display: block;
}

.first-dropdown li {
    border-bottom: 1px solid #e2e8f0;
}

.first-dropdown a {
    display: block;
    padding: 12px 24px;
    color: #1a202c;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.first-dropdown a:hover {
    background: #f7fafc;
    color: #3182ce;
    padding-left: 28px;
}

.first-dropdown li:first-child a {
    background: #f7fafc;
    font-weight: 600;
    color: #3182ce;
}

/* Trust color dropdown links for inline navbar */
.header-menu-inline .first-dropdown a:hover {
    color: var(--action-color);
}

.header-menu-inline .first-dropdown li:first-child a {
    color: var(--action-color);
}

.first-dropdown li:last-child {
    border-bottom: none;
}

/* Configurator Content - Base styles */
.tn-configurator-content {
    padding: 0 0 60px;
    position: relative;
    z-index: 2;
    max-width: 950px;
    background: transparent;
}

@media (max-width: 768px) {
    .tn-configurator-content {
        max-width: 100% !important;
        width: 100% !important;
        background: transparent !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
}

/* Desktop only - negative margin for hero overlap */
@media (min-width: 769px) {
    .tn-configurator-content {
        margin: -280px auto 0;
    }
    
    /* Add space between configurator and pricewinners on desktop */
    .tn-tabs-section + main,
    main .popular-tires-section.testsieger-section {
        margin-top: 80px;
    }
}

.tn-row.standby-status {
    position: relative;
    background: transparent;
}

.tn-row.standby-status .span-m-12 {
    background: transparent;
}

.standby-ovl {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

.tires-configurator-form {
    width: 100%;
    background: transparent;
}

.tn-configurator-pane {
    margin-top: 0;
    background: #ffffff;
    border-radius: 12px;
    padding: 24px 32px 32px 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.tn-configurator-pane .tn-row {
    margin-left: 0;
    margin-right: 0;
}

.tn-configurator-pane > .tn-row:first-child {
    margin: 0 0 16px 0;
    background: transparent;
}

.tn-configurator-pane > .tn-row:first-child .span-m-12 {
    background: transparent;
}

.tn-configurator-pane .tn-row:first-child .tn-configurator-heading {
    margin: 0;
    padding: 0;
    background: transparent;
}

/* Note: Mobile styles for .tn-configurator-pane are defined earlier in the mobile media query section */

/* Top row: Vehicle Type and Tire Type (centered) */
.tn-configurator-controls-top {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
    justify-content: center;
    align-items: flex-end;
}

@media (min-width: 1024px) {
    .tn-configurator-controls-top {
        gap: 24px;
    }
}

.tn-configurator-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 32px;
    justify-content: center;
    align-items: flex-end;
}

@media (min-width: 1024px) {
    .tn-configurator-controls {
        justify-content: center;
        gap: 24px;
    }
}

.configurator-select {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 150px;
    max-width: 180px;
    flex-grow: 1;
}

.configurator-select label {
    font-size: 14px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0;
    text-align: center;
    letter-spacing: -0.2px;
}

.tire-type-label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}

@media (max-width: 768px) {
    .tire-type-label {
        justify-content: flex-start;
    }
}

.tire-type-icon {
    width: 30px;
    height: 30px;
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
}

.tn-select-wrapper {
    position: relative;
}

.tn-select {
    width: 100%;
    padding: 14px 16px;
    padding-right: 40px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    background: #ffffff;
    color: #1a202c;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%234a5568' d='M7 10L2 5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tn-select:hover {
    border-color: #3182ce;
    box-shadow: 0 2px 6px rgba(49, 130, 206, 0.15);
    transform: translateY(-1px);
}

.tn-select:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.1), 0 2px 8px rgba(49, 130, 206, 0.2);
    transform: translateY(-1px);
}

.tn-select:active {
    transform: translateY(0);
}

/* Selected state indicator */
.tn-select:not([value=""]) {
    border-color: #3182ce;
    background-color: #f7faff;
}

.tn-configurator-control {
    width: 100%;
}

.tn-configurator-heading {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin-top: 0;
    margin-bottom: 24px;
    text-align: center;
    letter-spacing: -0.5px;
}

.tn-configurator-description {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 24px;
    text-align: center;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* Override hook styles when inside configurator */
.tn-configurator-content .tn-configurator-heading {
    color: #1a202c;
    margin-top: 0;
    margin-bottom: 24px;
}

.tn-tabs-section {
    width: 100%;
}

.tab-box {
    width: 100%;
}

.tab-panels {
    width: 100%;
}

.tab-panel {
    width: 100%;
}

.tab-panel.active {
    display: block;
}

/* Mobile Hamburger Menu */
.mobile-menu-toggle {
    display: none;
    position: relative;
    top: auto;
    right: auto;
    z-index: 1001;
    background: #f97316;
    border: none;
    width: 44px;
    height: 44px;
    padding: 0;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
    touch-action: manipulation;
    margin-left: 0;
    margin-right: 8px;
    flex-shrink: 0;
    overflow: hidden;
}

.mobile-menu-toggle .hamburger-half {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
}

.mobile-menu-toggle .search-half {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
}

.mobile-menu-toggle .search-half svg {
    width: 16px;
    height: 16px;
    stroke: #ffffff;
    stroke-width: 2.5;
    fill: none;
}

.mobile-search-toggle {
    display: none;
    position: relative;
    top: auto;
    right: auto;
    z-index: 1001;
    background: #f97316;
    border: none;
    width: 44px;
    height: 44px;
    padding: 0;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
    touch-action: manipulation;
    margin-left: 8px;
    margin-right: 0;
    flex-shrink: 0;
    color: #ffffff;
}

.mobile-search-toggle:hover {
    background: #ea580c;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.mobile-search-toggle:active {
    background: #c2410c;
    transform: scale(0.95);
}

.mobile-search-toggle svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
}

.mobile-search-bar-container {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-top: 1px solid #e2e8f0;
    box-sizing: border-box;
    margin-top: 0;
}

.mobile-search-bar-container.active {
    display: block;
}

.mobile-search-form-wrap {
    width: 100%;
    display: flex;
    align-items: center;
}

.mobile-search-form-wrap .tt-form {
    width: 100%;
    gap: 8px;
}

.mobile-search-form-wrap .tt-wrapper {
    flex: 1;
}

.mobile-search-form-wrap .sl-free-text {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    font-size: 16px;
    min-height: 44px;
    border-radius: 6px;
    background: #ffffff;
    color: #1a202c;
}

.mobile-search-form-wrap .sl-free-text:focus {
    border-color: var(--trust-color);
    outline: none;
}

.mobile-menu-toggle:hover {
    background: #ea580c;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.mobile-menu-toggle:active {
    background: #c2410c;
    transform: scale(0.95);
}

.mobile-menu-toggle .hamburger-half span {
    display: block;
    width: 18px;
    height: 2.5px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-half span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-half span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-half span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Menu Search Container */
.mobile-menu-search-container {
    width: 100%;
    padding: 16px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-sizing: border-box;
}

.mobile-menu-search-container .tt-form {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.mobile-menu-search-container .tt-wrapper {
    flex: 1;
}

.mobile-menu-search-container .sl-free-text {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 16px;
    min-height: 44px;
    background: #ffffff;
    color: #1a202c;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.mobile-menu-search-container .sl-free-text:focus {
    border-color: var(--trust-color);
    outline: none;
}

.mobile-menu-search-container .tt-submit {
    background: #f97316;
    border: none;
    border-radius: 6px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    transition: background 0.2s ease;
}

.mobile-menu-search-container .tt-submit:hover {
    background: #ea580c;
}

.mobile-menu-search-container .tt-submit:active {
    background: #c2410c;
    transform: scale(0.95);
}

.mobile-menu-search-container .header-search-icon {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
    stroke-width: 2;
}

/* Mobile Responsive for Header and Menu */
@media (max-width: 768px) {
    .header-block {
        padding: 8px 0;
        position: relative;
    }
    
    .tn-container {
        padding: 0 12px;
    }
    
    .tn-row {
        flex-direction: row;
        gap: 12px;
    }
    
    .header-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: nowrap;
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        order: 1;
        margin-left: 0;
        margin-right: 8px;
    }
    
    .mobile-search-toggle {
        display: flex !important;
        order: 3;
        margin-left: 8px;
        margin-right: 0;
    }
    
    .header-logo {
        flex: 1;
        min-width: 0;
        max-width: none !important;
        width: auto !important;
        order: 2;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left: -12px !important; /* Compensate for container padding on mobile */
    }
    
    .header-logo .logo {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .header-logo .logo img:first-child {
        height: 90px !important;
    }
    
    .header-logo .logo img:last-child {
        height: 120px !important;
    }
    
    .search-bar-container {
        display: none;
    }
    
    .header-menu-inline {
        display: none;
    }
    
    .tn-container {
        position: relative;
    }
    
    .mobile-search-bar-container {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        padding: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        background: #ffffff;
    }
    
    .mobile-search-bar-container.active {
        display: block;
    }
    
    .span-d-5,
    .span-d-4,
    .span-d-3,
    .span-t-11,
    .span-t-10,
    .span-t-1,
    .span-m-10,
    .span-m-9,
    .span-m-2 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100%;
    }
    
    .logo-text {
        font-size: 12px;
    }
    
    .logo-img {
        width: 140px;
        height: auto;
        background: #1a202c !important;
    }
    
    .search-form-wrap {
        width: 100%;
    }
    
    .sl-free-text {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px;
    }
    
    .freetext-submit {
        padding: 14px 20px;
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
    }
    
    /* Hide desktop menu by default on mobile */
    .header-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        background: #3182ce;
        z-index: 1000;
        transition: right 0.3s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
        padding: 60px 0 20px !important;
    }
    
    /* Ensure header-menu doesn't take space in document flow */
    .page-main-slider-block {
        height: auto;
        min-height: auto;
        overflow: visible;
        margin-bottom: 0;
    }
    
    .header-menu.mobile-menu-open {
        right: 0;
    }
    
    .main-wrapper {
        flex-direction: column;
        gap: 0;
        height: auto;
    }
    
    .a-top {
        padding: 16px 20px !important;
        font-size: 15px !important;
        white-space: nowrap;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        min-height: 44px;
        display: flex;
        align-items: center;
        touch-action: manipulation;
        width: 100%;
    }
    
    .a-top:active {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .a-top::after {
        display: none;
    }
    
    .first-dropdown {
        position: relative;
        width: 100%;
        box-shadow: none;
        border-top: none;
        background: rgba(255, 255, 255, 0.05);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.2s ease;
        opacity: 0;
        display: block !important; /* Override desktop display: none */
    }
    
    .topOfCategories.active .first-dropdown {
        max-height: 1000px;
        opacity: 1;
    }
    
    /* Add visual indicator for active dropdown */
    .topOfCategories.active .a-top {
        background: rgba(255, 255, 255, 0.15);
    }
    
    .first-dropdown a {
        padding-left: 32px;
        color: rgba(255, 255, 255, 0.9);
    }
    
    .first-dropdown a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }
    
    .sl-free-text::placeholder {
        font-size: 12px;
    }
}

/* Breadcrumb Navigation */
.breadcrumb {
    background: #1a202c;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: var(--action-color); /* Brand orange */
    margin-top: 0;
    margin-bottom: 50px; /* Space for hook-content negative margin */
    position: relative;
    z-index: 2; /* Above hook-content */
}

.breadcrumb a {
    color: var(--action-color); /* Brand orange */
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
    color: var(--action-hover); /* Darker orange on hover */
}

.breadcrumb span {
    margin: 0 8px;
    color: var(--action-color); /* Brand orange for separators */
    opacity: 0.7;
}

/* Top Navigation Bar */
.top-navbar {
    background: #1a202c;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.navbar-right {
    display: flex;
    align-items: center;
}

.navbar-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-input {
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 14px;
    min-width: 300px;
    transition: all 0.2s;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
    outline: none;
    border-color: #3182ce;
    background: rgba(255, 255, 255, 0.15);
}

.search-button {
    padding: 10px 16px;
    background-color: var(--action-color) !important;
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease, transform 0.1s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.search-button:hover {
    background-color: var(--action-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

/* Main Navigation Bar */
.main-navbar {
    background: #3182ce;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 64px;
    z-index: 999;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.main-navbar .navbar-container {
    display: flex;
    gap: 0;
    align-items: stretch;
    padding: 0;
}

.nav-dropdown {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    height: 100%;
    position: relative;
}

.nav-link span {
    margin-left: 4px;
    font-size: 14px;
    opacity: 0.8;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--trust-color);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-link::after,
.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 8px 0;
    border-top: 3px solid #3182ce;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

.nav-dropdown-content a {
    display: block;
    padding: 12px 24px;
    color: #1a202c;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #e2e8f0;
}

.nav-dropdown-content a:last-child {
    border-bottom: none;
}

.nav-dropdown-content a:hover {
    background: #f7fafc;
    color: #3182ce;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
}

.nav-link.active::after {
    transform: scaleX(1);
}

.nav-dropdown-content a.active {
    background: #f7fafc;
    color: #3182ce;
    font-weight: 600;
}

/* Mobile Responsive for Navbars */
@media (max-width: 768px) {
    .top-navbar {
        position: relative;
    }
    
    .main-navbar {
        top: 0;
    }
    
    .navbar-container {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }
    
    .navbar-search {
        width: 100%;
    }
    
    .search-input {
        flex: 1;
        min-width: 0;
    }
    
    .main-navbar .navbar-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-link {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 14px 20px;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-dropdown-content {
        position: relative;
        width: 100%;
        box-shadow: none;
        border-top: none;
        background: rgba(255, 255, 255, 0.05);
        display: block;
    }
    
    .nav-dropdown-content a {
        padding-left: 32px;
        color: rgba(255, 255, 255, 0.9);
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
    
    .nav-dropdown-content a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }
}

/* Brand Grid Section */
.brand-grid-section {
    background: transparent;
    padding: 48px 16px;
}

.brand-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Brand grid definition now handled by unified RAM pattern above */

.brand-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.brand-card:hover {
    border-color: var(--border-color);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.brand-logo-container {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.brand-logo-img {
    max-width: 140px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    /* Soften the harsh edges */
    opacity: 0.6;
    /* Slight downscale usually sharpens rendering */
    transform: scale(0.95);
    /* Smooth transition for hover effect */
    transition: all 0.3s ease;
    /* Ensure distinct edges don't look jagged */
    backface-visibility: hidden;
}

.brand-card:hover .brand-logo-img,
.brand-logo-img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.brand-logo-placeholder {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
}

.brand-badge {
    display: inline-block;
    background: #28a745;
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.brand-card .cta-button {
    width: 100%;
    max-width: 200px;
    white-space: nowrap;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 8px 0;
}

.brand-product-count {
    font-size: 14px;
    color: #718096;
    font-weight: 500;
}

.brand-price {
    font-size: 16px;
    color: #3182ce;
    font-weight: 600;
}

.brand-discount {
    font-size: 14px;
    color: #e53e3e;
    font-weight: 700;
    margin-top: 4px;
    padding: 4px 8px;
    background: #fee;
    border-radius: 6px;
    display: inline-block;
}

@media (min-width: 768px) {
    /* Brand grid now handled by unified RAM pattern */
}

@media (min-width: 1024px) {
    .brand-grid-section {
        padding: 64px 32px;
    }
    
    .brand-grid {
        gap: 32px;
    }
    
    .brand-card {
        padding: 20px 16px;
    }
    
    .brand-logo-container {
        min-height: 60px;
    }
    
    .brand-logo-img {
        max-width: 160px;
        max-height: 100px;
    }
}

/* Brand grid columns now handled by unified RAM pattern */

/* Top Filter Bar */
.top-filter-bar {
    background: #1a202c;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 0;
}

.filter-bar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
}

.filter-bar-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
}

.filter-group .tire-type-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-select-wrapper {
    position: relative;
    display: inline-block;
}

.filter-select-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    z-index: 1;
    pointer-events: none;
}

.filter-select {
    padding: 8px 12px;
    padding-left: 38px;
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 6px;
    font-size: 14px;
    color: #1a202c;
    background: #ffffff;
    cursor: pointer;
    min-width: 120px;
    transition: border-color 0.2s;
}

.filter-select:hover {
    border-color: var(--trust-color);
}

.filter-select:focus {
    outline: none;
    border-color: var(--trust-color);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.2);
}

.filter-search-button {
    background: #f97316;
    color: white;
    padding: 8px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.filter-search-button:hover {
    background: #ea580c;
}

/* Product Listing Section */
.product-listing-section {
    background: transparent;
    padding: 24px 16px;
}

.listing-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Layout: Golden Ratio Approx (25% / 75%) */
.listing-container-with-sidebar {
    display: grid;
    grid-template-columns: 300px 1fr; /* Fixed Sidebar / Flexible Content */
    gap: 40px; /* Generous whitespace for premium feel */
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
    align-items: start;
}

/* Filter Sidebar */
.filter-sidebar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 120px;
}

/* Remove legacy blue size-helper box and free up space above filters */
.find-size-cta {
    display: none;
}

/* Hide mobile-only close button on desktop */
.filter-close-button {
    display: none;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.filter-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.filter-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-toggle {
    font-size: 12px;
    color: #718096;
}

.filter-subsection {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
}

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

.filter-subsection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #1a202c;
    cursor: pointer;
    padding: 8px 0;
    user-select: none;
}

.filter-subsection-header:hover {
    color: #3182ce;
}

.filter-arrow {
    font-size: 12px;
    color: #718096;
    transition: transform 0.2s;
}

.filter-subsection-content {
    padding: 12px 0;
    display: none; /* Collapsed by default */
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.filter-item label {
    font-size: 13px;
    color: #4a5568;
    min-width: 100px;
}

/* Checkbox Label Styling */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #FF6B00;
}

.checkbox-label span {
    font-size: 13px;
    color: #4a5568;
}

/* EU Label Buttons */
.eu-label-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.eu-label-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #f5f5f5;
    color: #4a5568;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eu-label-btn:hover {
    background: #e2e8f0;
    border-color: #cbd5e0;
}

.eu-label-btn.active {
    background: #FF6B00;
    color: white;
    border-color: #FF6B00;
}

/* Active Filters Bar */
.active-filters-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.active-filters-label {
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    white-space: nowrap;
}

.active-filters-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 12px;
    color: #4a5568;
}

.filter-tag-remove {
    background: transparent;
    border: none;
    color: #718096;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.filter-tag-remove:hover {
    background: #e2e8f0;
    color: #1a202c;
}

.clear-filters-btn {
    margin-left: auto;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #718096;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.clear-filters-btn:hover {
    background: #e2e8f0;
    color: #1a202c;
}

.filter-select-small {
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 13px;
    color: #1a202c;
    background: #ffffff;
    cursor: pointer;
    flex: 1;
}

.info-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    object-fit: contain;
    cursor: help;
    vertical-align: middle;
}

.price-range-container {
    position: relative;
    padding: 20px 0;
}

.price-range-display {
    text-align: center;
    margin-bottom: 16px;
    font-size: 16px;
    color: #1a202c;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.price-histogram {
    position: relative;
    height: 60px;
    margin-bottom: 20px;
    padding: 0 9px; /* Half thumb width for alignment */
}

.histogram-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100%;
    gap: 2px;
}

.histogram-bar {
    flex: 1;
    background: #e2e8f0;
    border-radius: 2px 2px 0 0;
    min-height: 2px;
    transition: background-color 0.2s ease;
}

.histogram-bar:hover {
    background: #cbd5e0;
}

.histogram-bar.active {
    background: #3182ce;
}

.histogram-bar.active:hover {
    background: #2c5282;
}

/* Price Input Container */
.price-input-container {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 16px;
}

.price-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.price-input-group label {
    font-size: 12px;
    font-weight: 600;
    color: #718096;
}

.price-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    background-color: #f8fafc;
    font-size: 14px;
    color: #1a202c;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.price-input:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
    background-color: #ffffff;
}

.price-input-separator {
    font-size: 18px;
    font-weight: 600;
    color: #4a5568;
    padding-bottom: 8px;
    flex-shrink: 0;
}

.price-apply-button {
    width: 100%;
    padding: 12px 16px;
    background: #3182ce;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.price-apply-button:hover {
    background: #2c5282;
}

.price-apply-button:active {
    background: #2a4a7a;
}

.price-range-sliders {
    position: relative;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
}

.price-slider {
    position: absolute;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: transparent;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    pointer-events: none;
    margin: 0;
    padding: 0;
}

.price-slider-min {
    z-index: 2;
}

.price-slider-max {
    z-index: 3;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3182ce;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    pointer-events: all;
    position: relative;
    z-index: 4;
}

.price-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3182ce;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    pointer-events: all;
    position: relative;
    z-index: 4;
}

.price-slider::-webkit-slider-runnable-track {
    height: 6px;
    background: transparent;
}

.price-slider::-moz-range-track {
    height: 6px;
    background: transparent;
}

.price-display {
    font-size: 14px;
    font-weight: 600;
    color: #1a202c;
    text-align: center;
    padding: 8px;
    background: #f7fafc;
    border-radius: 4px;
}

.manufacturer-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.manufacturer-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4a5568;
    cursor: pointer;
    padding: 4px 0;
}

.manufacturer-item:hover {
    color: #1a202c;
}

.manufacturer-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3182ce;
}

.product-count {
    color: #718096;
    font-weight: 400;
}

.show-all-button {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #3182ce;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
}

.show-all-button:hover {
    background: #f7fafc;
    border-color: #3182ce;
}

.manufacturer-expand-button {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #3182ce;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
    margin-top: 8px;
}

.manufacturer-expand-button:hover {
    background: #f7fafc;
    border-color: #3182ce;
}

.listing-main-content {
    flex: 1;
    background: transparent;
}

.items-per-page {
    font-size: 13px;
    color: #718096;
    margin-left: 16px;
}

.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.product-count {
    font-size: 16px;
    color: #4a5568;
}

.sorting-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sorting-controls label {
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
}

.sort-select {
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    color: #1a202c;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s;
}

.sort-select:hover {
    border-color: var(--trust-color);
}

.sort-select:focus {
    outline: none;
    border-color: var(--trust-color);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

/* Hide desktop sorting controls on mobile (mobile has sort button) */
@media (max-width: 768px) {
    .sorting-controls {
        display: none;
    }
}

/* Product Grid */
.product-grid {
    /* Grid definition now handled by unified RAM pattern */
    margin-bottom: 48px;
}

@media (max-width: 768px) {
    .product-grid {
        gap: 16px;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 0 16px;
        width: 100%;
    }
    
    .product-card {
        max-width: 100%;
        width: 100%;
    }
}

.product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Stretches card to fill the grid cell */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    border-color: var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.product-card-header {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.product-card-image-section {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.product-card-image-wrapper {
    width: 160px;
    aspect-ratio: 1 / 1;  /* Reserves space before image loads */
    height: auto;  /* Let aspect-ratio control height */
    background: #ffffff;  /* White box before image loads */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    position: relative;
}

.product-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-card-brand-logo {
    width: 100%;
    max-width: 140px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    background: transparent;
    border-radius: 0;
    border: none;
}

.brand-logo-img {
    max-width: 100%;
    max-height: 40px;
    object-fit: contain;
}

.product-card-info {
    flex: 1; /* Pushes the price/button to the bottom */
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* AGGRESSIVE WORD BREAKING for German Content */
.product-card-name, 
.product-card-size,
.spec-item,
.eu-label-item,
.reseller-name, 
.featured-tire-name {
    /* 1. Use browser dictionary to insert hyphens (Win-ter-rei-fen) */
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    
    /* 2. Break words arbitrarily if they are still too long */
    word-break: break-word;
    
    /* 3. Force wrap at any character to prevent overflow */
    overflow-wrap: anywhere; 
}

.product-card-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-size {
    font-size: 14px;
    font-weight: 600;
    color: #3182ce;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.product-variant-badges {
    display: inline-flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-left: 4px;
}

.variant-badge {
    display: inline-block;
    background: #FF6B00;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: help;
    white-space: nowrap;
}

.product-card-specs {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    font-size: 12px;
    color: #718096;
    font-weight: 500;
}

.spec-item {
    font-weight: 500;
}

.product-card-eu-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
    background: transparent;
}

.eu-label-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #4a5568;
    background: transparent;
    border: none;
    padding: 0;
}

.eu-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    flex-shrink: 0;
    object-fit: contain;
    background: transparent;
    padding: 0;
}

.eu-icon-season {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
    background: transparent;
    padding: 0;
}

.eu-icon-info {
    width: 16px;
    height: 16px;
    object-fit: contain;
    cursor: pointer;
}

.eu-value {
    font-weight: 600;
    font-size: 12px;
}

.eu-label-item.fuel-a .eu-value,
.eu-label-item.fuel-b .eu-value {
    color: #22543d;
}

.eu-label-item.fuel-c .eu-value,
.eu-label-item.fuel-d .eu-value {
    color: #7c2d12;
}

.eu-label-item.fuel-e .eu-value,
.eu-label-item.fuel-f .eu-value,
.eu-label-item.fuel-g .eu-value {
    color: #742a2a;
}

.eu-label-item.wet-a .eu-value,
.eu-label-item.wet-b .eu-value {
    color: #22543d;
}

.eu-label-item.wet-c .eu-value,
.eu-label-item.wet-d .eu-value {
    color: #7c2d12;
}

.eu-label-item.wet-e .eu-value,
.eu-label-item.wet-f .eu-value,
.eu-label-item.wet-g .eu-value {
    color: #742a2a;
}

.eu-label-item.eu-info {
    margin-left: auto;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.eu-label-item.eu-info:hover {
    opacity: 1;
}

/* EU Label Modal */
.eu-label-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.eu-label-modal-overlay.active {
    opacity: 1;
}

.eu-label-modal {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.eu-label-modal-overlay.active .eu-label-modal {
    transform: scale(1);
}

.eu-label-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.eu-label-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1a202c;
}

.eu-label-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #718096;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.eu-label-modal-close:hover {
    background: #f7fafc;
    color: #1a202c;
}

.eu-label-modal-content {
    padding: 24px;
}

.eu-label-explanation {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.explanation-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.explanation-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7fafc;
    border-radius: 8px;
}

.explanation-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: #4a5568;
}

.explanation-text strong {
    color: #1a202c;
    font-weight: 600;
}

/* EU Label Visual Display */
.eu-label-product-info {
    margin-bottom: 20px;
}

.product-breadcrumb {
    font-size: 12px;
    color: #718096;
    margin-bottom: 16px;
}

.eu-label-visual {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.eu-label-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.eu-label-logo {
    font-size: 18px;
    font-weight: 700;
    color: #2563eb;
    display: flex;
    align-items: center;
    gap: 4px;
}

.eu-label-logo::before {
    content: '⭐';
    font-size: 14px;
}

.eu-label-qr {
    width: 40px;
    height: 40px;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #718096;
}

.eu-label-brand-size {
    text-align: center;
    margin-bottom: 20px;
}

.eu-label-brand {
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 4px;
}

.eu-label-size {
    font-size: 14px;
    color: #4a5568;
    font-family: 'Courier New', monospace;
}

.eu-label-grades {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.eu-label-grade-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.eu-label-grade-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    object-fit: contain;
}

.eu-label-grade-label {
    font-size: 12px;
    color: #4a5568;
    min-width: 120px;
}

.eu-label-grade-bar {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.grade-bar-segment {
    background: #e2e8f0;
    color: #718096;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    border-radius: 2px;
}

.grade-bar-segment.active {
    background: #1a202c;
    color: #ffffff;
}

.eu-label-grade-value {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    min-width: 30px;
    text-align: center;
}

.eu-label-noise-display {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.noise-value {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    min-width: 50px;
}

.noise-waves {
    display: flex;
    gap: 4px;
    align-items: flex-end;
}

.noise-wave {
    width: 8px;
    background: #cbd5e0;
    border-radius: 2px;
}

.noise-wave:nth-child(1) {
    height: 12px;
}

.noise-wave:nth-child(2) {
    height: 16px;
}

.noise-wave:nth-child(3) {
    height: 20px;
}

.noise-wave.filled {
    background: #1a202c;
}

.noise-class {
    font-size: 12px;
    color: #718096;
    min-width: 30px;
}

.eu-label-footer {
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.eu-label-eprel-link {
    font-size: 12px;
    color: #2563eb;
    text-decoration: none;
}

.eu-label-eprel-link:hover {
    text-decoration: underline;
}

/* EU Label Image Container */
.eu-label-image-container {
    text-align: center;
    margin: 20px 0;
}

.eu-label-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.eu-label-fallback {
    padding: 40px;
    text-align: center;
    color: #718096;
    font-size: 14px;
}

/* Price Section - Sleeker */
.product-card-price-section {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 16px;
    color: white;
}

.price-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    gap: 8px;
}

.price-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex: 1;
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
}

.price-low {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.price-separator {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.8;
}

.price-high {
    font-size: 16px;
    font-weight: 600;
    opacity: 0.9;
    text-decoration: line-through;
}

.discount-percent-box {
    background: #dc2626;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    display: inline-block;
    flex-shrink: 0;
}

.weiter-button {
    background-color: var(--action-color) !important;
    color: white;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease, transform 0.1s ease;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s, transform 0.1s;
    min-height: 44px;
    touch-action: manipulation;
}

.weiter-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.weiter-button:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.9);
}

.price-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    opacity: 0.9;
}

.price-note {
    font-weight: 400;
}

.offers-count {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Rating Section */
.product-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #cbd5e0;
    font-size: 14px;
    line-height: 1;
}

.star.filled {
    color: #fbbf24;
}

.rating-text {
    font-weight: 600;
    color: #1a202c;
}

.rating-count {
    color: #718096;
}

.product-card-rating.no-reviews {
    margin-top: 4px;
}

.no-reviews-text {
    color: #a0aec0;
    font-size: 11px;
    font-style: italic;
}

.product-card-resellers {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.resellers-title {
    font-size: 12px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.compare-note {
    font-size: 11px;
    color: #718096;
    font-weight: 400;
}

.resellers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.reseller-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    gap: 12px;
}

.reseller-item:hover {
    background: #ffffff;
    border-color: #cbd5e0;
}

.reseller-left {
    flex: 1;
    min-width: 0;
}

.reseller-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 4px;
}

.shipping-badge {
    display: inline-block;
    font-size: 12px;
    color: #28a745;
    font-weight: 700;
}

.reseller-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    justify-content: flex-end; /* right-align button + price on desktop */
}

.reseller-price-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.reseller-price-main {
    font-size: 15px;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.2;
}

.reseller-price-shipping {
    font-size: 9px;
    color: #718096;
    margin-top: 2px;
}

.reseller-button {
    padding: 8px 16px;
    background: var(--action-color);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;            /* allow centering text inside */
    align-items: center;
    justify-content: center;        /* center \"Zum Shop\" horizontally */
    text-align: center;
    transition: all 0.2s;
    white-space: nowrap;
    min-height: 30px;
    min-width: 120px;
    touch-action: manipulation;
}

.reseller-button:hover {
    background: var(--action-hover);
    transform: translateX(2px);
}

.reseller-button:active {
    background: #c2410c;
    transform: scale(0.98);
}

.product-card-footer {
    margin-top: auto; /* Pushes footer to bottom of card */
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.product-card-link {
    color: #3182ce;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.product-card-link:hover {
    color: #2c5aa0;
    text-decoration: underline;
}

.product-card-ad-label {
    font-size: 13px;
    color: #dc2626;
    text-align: left;
    padding: 8px 0 4px;
    margin-top: 8px;
    border-top: 1px solid #f0f0f0;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.pagination-info {
    font-size: 14px;
    color: #4a5568;
    margin-right: 16px;
}

.pagination-button {
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    background: #ffffff;
    color: #1a202c;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination-button:hover:not(:disabled) {
    border-color: var(--trust-color);
    color: var(--trust-color);
}

.pagination-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-button.active {
    background: #f97316;
    border-color: #f97316;
    color: #ffffff;
}

.pagination-numbers {
    display: flex;
    gap: 4px;
}

.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
    font-size: 16px;
}

.error-state {
    text-align: center;
    padding: 60px 20px;
    color: #dc2626;
    font-size: 16px;
}

/* Mobile optimizations for product cards */
@media (max-width: 768px) {
    .product-card {
        padding: 12px;
        flex-direction: column; /* stack header, price, resellers vertically */
        gap: 8px;
        align-items: stretch;
        min-height: auto;
    }
    
    .product-card-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 0;
    }
    
    .product-card-image-section {
        flex-shrink: 0;
        width: auto;
        height: auto;
    }
    
    .product-card-image-wrapper {
        width: 150px;
        aspect-ratio: 1 / 1;  /* Reserves space */
        height: auto;
        padding: 8px;
    }
    
    .product-card-info {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: auto;
        text-align: left;
    }
    
    .product-card-name {
        font-size: 21.6px; /* 16px * 1.35 = 21.6px */
        -webkit-line-clamp: 2;
        line-clamp: 2;
        margin-bottom: 4px;
        display: block;
    }
    
    .product-card-size {
        font-size: 17.55px; /* 13px * 1.35 = 17.55px */
        margin-bottom: 4px;
        display: block;
    }
    
    .product-card-brand-logo {
        max-height: 30px;
        margin-top: 4px;
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
    }
    
    .product-card-eu-label {
        display: none;
    }
    
    .product-card-footer {
        flex-direction: row;
        gap: 8px;
        margin-top: auto;
        padding-top: 8px;
    }
    
    .product-card-link,
    .product-card-compare-btn {
        min-height: 36px;
        padding: 8px 12px;
        font-size: 13px;
        flex: 1;
    }
    
    .product-card-price-section {
        margin-top: 8px;
        padding: 10px 12px;
        border-radius: 8px;
    }
    
    /* Top price row styling on mobile */
    .product-card-price-section .price-low {
        color: #ffffff;
        font-size: 22px;
        font-weight: 700;
    }
    
    .product-card-price-section .discount-percent-box {
        font-size: 18px;
    }
    
    .product-card-price-section .price-note,
    .product-card-price-section .offers-count {
        color: rgba(255, 255, 255, 0.9);
        font-size: 11px;
    }
    
    .product-card-ad-label {
        font-size: 11px;
        color: #dc2626;
        text-align: left;
        padding: 4px 0 0;
        margin-top: 4px;
        border-top: 1px solid #f0f0f0;
    }
    
    .price-main-row {
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
    }
    
    .price-display {
        flex: 1 1 auto;
        min-width: 0;
        background: transparent;
        padding: 0;
        border-radius: 0;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }
    
    .discount-percent-box {
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    /* Override for testsieger cards - ensure vertical layout */
    .testsieger-card .price-display {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
        gap: 2px !important;
        background: white !important;
        padding: 10px 14px !important;
        border-radius: 6px !important;
        min-width: 100px !important;
        flex-wrap: nowrap !important;
    }
    
    .testsieger-card .price-label {
        font-size: 11px !important;
        font-weight: 500 !important;
        color: #4a5568 !important;
        line-height: 1 !important;
        text-transform: lowercase !important;
    }
    
    .testsieger-card .price-low {
        font-size: 16px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        color: #1a202c !important;
    }
    
    .weiter-button {
        flex: 1 1 100%;
        min-height: 38px;
        padding: 10px 14px;
        font-size: 14px;
        margin-top: 8px;
        width: 100%;
    }

    /* On mobile, center price + Zum Shop button inside reseller row */
    .reseller-right {
        justify-content: center;
        width: 100%;
    }

    .reseller-price-section {
        align-items: center;
        text-align: center;
    }
}

@media (min-width: 768px) {
    /* Product grid now handled by unified RAM pattern */
    
    .product-card-header {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .product-listing-section {
        padding: 32px;
    }
    
    /* Product grid now handled by unified RAM pattern */
    
    .listing-container-with-sidebar {
        gap: 32px;
    }
}

/* Additional mobile container improvements */
@media (max-width: 768px) {
    main {
        padding: 0 !important;
        width: 100%;
        max-width: 100%;
    }
    
    /* Full width listing containers on mobile */
    .product-listing-section {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 16px !important;
        width: 100%;
    }
    
    .listing-container,
    .listing-container-with-sidebar {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
    
    .listing-main-content {
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    
    /* Ensure no horizontal overflow */
    img,
    video,
    iframe,
    table {
        max-width: 100%;
    }
    
    img {
        height: auto;
    }
    
    /* Prevent text overflow */
    * {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Improve spacing on mobile */
    .product-card-resellers {
        margin-top: 12px;
        padding-top: 12px;
    }
}

@media (min-width: 769px) {
    .filter-sidebar {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .listing-container-with-sidebar {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    /* Filter sidebar is handled by mobile-fixes.css as a drawer */
    .filter-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 24px;
    }
    
    .filter-bar-content {
        gap: 12px;
    }
    
    .filter-group {
        flex: 1;
        min-width: 140px;
    }
    
    .filter-select {
        width: 100%;
    }
}

/* Mobile Filter/Sort Bar */
.mobile-filter-bar {
    display: none;
}

@media (max-width: 768px) {
    /* Reduce gap between header and filter/sort bar */
    main {
        padding-top: 0 !important;
    }
    
    .mobile-filter-bar {
        display: flex;
        position: sticky;
        top: 72px;
        z-index: 999;
        background: #1a202c;
        padding: 8px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        margin-top: -12px;
    }
    
    /* Remove top and bottom padding on mobile-filter-bar for all-winter-tires page */
    body:has(.product-listing-section) .mobile-filter-bar {
        padding-top: 0;
        padding-bottom: 0;
    }
    
    .mobile-filter-button {
        display: flex;
        align-items: center;
        gap: 6px;
        background: #f97316;
        color: white;
        border: none;
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.2s;
        flex: 1;
        justify-content: center;
        min-height: 40px;
    }

    /* Top filter bar collapsible header on mobile */
    .top-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 10px 14px;
        margin-bottom: 8px;
        background: #111827;
        color: #e5e7eb;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
    }

    .top-filter-toggle-icon {
        font-size: 14px;
        margin-left: 8px;
    }

    .filter-bar-content.collapsed {
        display: none;
    }
    
    .mobile-filter-button:hover {
        background: #ea580c;
    }
    
    .mobile-filter-button .filter-icon {
        width: 18px;
        height: 18px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
    }
    
    .active-filter-count {
        background: #ea580c;
        color: white;
        border-radius: 12px;
        padding: 2px 8px;
        font-size: 12px;
        font-weight: 700;
        margin-left: 4px;
        min-width: 20px;
        text-align: center;
        display: none;
    }
    
    .active-filter-count:not(:empty) {
        display: inline-block;
    }
    
    .mobile-sort-button {
        display: flex;
        align-items: center;
        gap: 6px;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: white;
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
        min-height: 40px;
        flex: 1;
        justify-content: center;
    }
    
    .mobile-sort-button:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.3);
    }
    
    .mobile-sort-button .sort-icon {
        width: 14px;
        height: 14px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
    }
    
    .mobile-filter-button .filter-icon {
        width: 14px;
        height: 14px;
    }
    
    /* Mobile Sort Menu */
    .mobile-sort-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 10000;
    }
    
    .mobile-sort-menu.active {
        display: block;
    }
    
    .mobile-sort-menu-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
    }
    
    .mobile-sort-menu-content {
        position: absolute;
        bottom: 80px; /* Leave space for cookie button */
        left: 0;
        right: 0;
        background: white;
        border-radius: 16px 16px 0 0;
        max-height: calc(80vh - 80px); /* Adjust max-height accordingly */
        overflow-y: auto;
    }
    
    .mobile-sort-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .mobile-sort-menu-header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        color: #1a202c;
    }
    
    .mobile-sort-menu-close {
        background: none;
        border: none;
        font-size: 32px;
        color: #4a5568;
        cursor: pointer;
        padding: 0;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }
    
    .mobile-sort-menu-close:hover {
        color: #1a202c;
    }
    
    .mobile-sort-menu-options {
        padding: 8px 0;
    }
    
    .sort-option {
        width: 100%;
        padding: 16px 20px;
        background: none;
        border: none;
        text-align: left;
        font-size: 16px;
        color: #1a202c;
        cursor: pointer;
        border-bottom: 1px solid #f7fafc;
        transition: background 0.2s;
    }
    
    .sort-option:hover,
    .sort-option:active {
        background: #f7fafc;
    }
    
    .sort-option.active {
        background: var(--trust-light);
        color: var(--trust-color);
        font-weight: 600;
    }
    
    .sort-option:last-child {
        border-bottom: none;
    }
    
    /* Filter Drawer - Overridden by Phase 7 unified styles above */
    /* Legacy styles removed - now using left slide-in from Phase 7 */
    
    .filter-close-button {
        position: absolute;
        top: 16px;
        right: 16px;
        background: transparent;
        border: none;
        font-size: 24px;
        color: #4a5568;
        cursor: pointer;
        z-index: 1001;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        transition: background 0.2s;
    }
    
    .filter-close-button:hover {
        background: #f7fafc;
    }
    
    .filter-bar-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .filter-group {
        width: 100%;
        min-width: 100%;
    }
    
    .filter-select {
        min-height: 48px;
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 16px;
        touch-action: manipulation;
    }
    
    /* Ensure pagination buttons are touch-friendly */
    .pagination-button {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 16px;
        touch-action: manipulation;
    }
    
    .pagination-numbers {
        gap: 8px;
    }
}

/* Popular Tires Section */
.popular-tires-section {
    padding: 48px 16px 56px;
    background: transparent;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.popular-tires-heading {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    text-align: center;
    margin-bottom: 32px;
    letter-spacing: -0.5px;
}

/* Tab Navigation */
.tire-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    border-bottom: 2px solid #e2e8f0;
}

.tire-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #718096;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.tire-tab:hover {
    color: #1a202c;
    background: #f7fafc;
}

.tire-tab.active {
    color: #3182ce;
    border-bottom-color: #3182ce;
    font-weight: 600;
}

.tire-tab-icon {
    width: 34px;
    height: 34px;
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
}

.tire-tab-text {
    white-space: nowrap;
}

/* Featured Tire Display */
.featured-tire {
    margin-bottom: 48px;
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    border: 1px solid #e2e8f0;
}

.featured-tire-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 32px;
    align-items: center;
}

.featured-tire-left {
    display: flex;
    align-items: center;
}

.featured-brand-logo {
    max-width: 200px;
    max-height: 80px;
}

.featured-brand-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.featured-tire-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.featured-tire-image {
    max-width: 400px;
    max-height: 300px;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.featured-tire-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 250px;
}

.featured-tire-name {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    line-height: 1.3;
}

.featured-tire-size {
    font-size: 16px;
    color: #4a5568;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.featured-discount {
    display: inline-block;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-tire-price {
    font-size: 28px;
    font-weight: 700;
    color: #3182ce;
    margin: 8px 0;
}

.featured-tire-button {
    display: inline-block;
    background: #3182ce;
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.featured-tire-button:hover {
    background: #2c5aa0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

/* Tire Grid */
.tire-grid {
    /* Grid definition now handled by unified RAM pattern */
    margin-top: 32px;
}

.tire-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tire-card:hover {
    border-color: #3182ce;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.15);
    transform: translateY(-4px);
}

.tire-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
}

.tire-card-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.tire-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #fbbf24;
    white-space: nowrap;
}

.tire-card-image-wrapper {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.tire-card-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.tire-card-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.tire-card-brand-logo {
    max-width: 120px;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.tire-card-discount {
    display: inline-block;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    margin-bottom: 12px;
    align-self: center;
}

.tire-card-price {
    font-size: 20px;
    font-weight: 700;
    color: #3182ce;
    text-align: center;
    margin-bottom: 16px;
}

.tire-card-button {
    display: block;
    background: #3182ce;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: all 0.2s ease;
    margin-top: auto;
}

.tire-card-button:hover {
    background: #2c5aa0;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(49, 130, 206, 0.3);
}

.tire-card-ad-label {
    font-size: 13px;
    color: #dc2626;
    text-align: left;
    padding: 8px 0 4px;
    margin-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.loading-message {
    text-align: center;
    color: #718096;
    font-size: 16px;
    padding: 40px 20px;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .tire-grid {
        gap: 20px;
    }
    
    .featured-tire-content {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    
    .featured-tire-right {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .popular-tires-section {
        padding: 32px 12px 40px;
    }
    
    .popular-tires-heading {
        font-size: 24px;
        margin-bottom: 24px;
        display: block !important;
        visibility: visible !important;
        color: #ffffff !important;
    }
    
    .tire-tabs {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 32px;
    }
    
    .tire-tab {
        padding: 12px 20px;
        font-size: 14px;
        flex: 1;
        min-width: 120px;
    }
    
    .tire-tab-icon {
        width: 28px;
        height: 28px;
    }
    
    .featured-tire {
        padding: 24px 16px;
    }
    
    .featured-tire-content {
        gap: 20px;
    }
    
    .featured-tire-image {
        max-width: 100%;
        max-height: 200px;
    }
    
    .featured-tire-name {
        font-size: 20px;
    }
    
    .featured-tire-price {
        font-size: 24px;
    }
    
    .tire-grid {
        gap: 20px;
    }
    
    .tire-card-image-wrapper {
        height: 160px;
    }
}

/* The Money Box - Vergleich.org Style Comparison Table */
.money-box {
    padding: 48px 16px 56px;
    background: #ffffff;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.money-box h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: #1a202c;
}

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

@media (min-width: 768px) {
    .quick-picks {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

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

@media (min-width: 1280px) {
    .quick-picks {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

.pick-item {
    background: white;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    min-height: 200px;
}

.pick-item:hover {
    border-color: #cbd5e0;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.pick-item.winner {
    border: 3px solid var(--trust-color);
    background: linear-gradient(to bottom, #fffbf5 0%, #ffffff 100%);
    box-shadow: 0 4px 16px rgba(0, 51, 102, 0.2);
}

.pick-item.winner:hover {
    box-shadow: 0 16px 40px rgba(249, 115, 22, 0.3);
    transform: translateY(-6px);
}

.winner-ribbon {
    position: absolute;
    top: -14px;
    right: 24px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.5);
    z-index: 1;
}

.pick-item .pick-badge {
    align-self: flex-start;
}

.pick-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #3182ce;
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.pick-badge.premium {
    background: linear-gradient(135deg, #d69e2e 0%, #b7791f 100%);
}

.pick-badge.price {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

.pick-badge.discount-badge {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important; /* Red gradient */
}

.pick-badge.discount-badge.mega {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    font-size: 13px;
    padding: 10px 18px;
}

.pick-item.discount {
    border: 2px solid #fecaca;
    background: linear-gradient(to bottom, #fef2f2 0%, #ffffff 100%);
}

.pick-item.discount:hover {
    border-color: #fca5a5;
    box-shadow: 0 12px 32px rgba(220, 38, 38, 0.15);
}

.pick-item.highlight {
    border: 3px solid #7c3aed;
    background: linear-gradient(to bottom, #f5f3ff 0%, #ffffff 100%);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.2);
}

.pick-item.highlight:hover {
    box-shadow: 0 16px 40px rgba(124, 58, 237, 0.3);
    transform: translateY(-6px);
}

.pick-badge.testsieger {
    background: linear-gradient(135deg, #3182ce 0%, #2563eb 100%);
}

.pick-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.3;
    flex-grow: 1;
    margin-top: 4px;
}

.pick-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--trust-color);
    margin: 8px 0;
    line-height: 1.4;
}

/* CTA Buttons - High-Contrast Orange */
.cta-button {
    background-color: #f97316;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 44px;
    white-space: nowrap;
    box-shadow: 0 4px 6px rgba(249, 115, 22, 0.25);
    width: 100%;
    line-height: 1.4;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
}

/* Discount Badge on Buttons */
.cta-button .discount-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important; /* Red gradient */
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
    z-index: 2;
    white-space: nowrap;
    border: 2px solid white;
}

.cta-button:hover {
    background-color: #ea580c;
    box-shadow: 0 6px 12px rgba(249, 115, 22, 0.35);
    transform: translateY(-2px);
}

.cta-button:active {
    background-color: #c2410c;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.3);
}

.cta-button.large {
    font-size: 16px;
    padding: 14px 24px;
    margin-top: 20px;
    width: 100%;
    white-space: normal;
    line-height: 1.5;
    min-height: auto;
    word-wrap: break-word;
    hyphens: auto;
}

/* The Proof Section - Detailed Reviews */
.proof {
    padding: 40px 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.proof h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: left;
    color: #1a202c;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.tire-detail h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 0;
    padding: 24px 24px 16px;
    color: #1a202c;
    background-color: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
}

.tire-detail {
    margin-bottom: 48px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.tire-detail:last-child {
    margin-bottom: 0;
}

.tire-content {
    padding: 24px;
}

.tire-image {
    text-align: center;
    margin-bottom: 24px;
    background: transparent;
}

.tire-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    max-height: 200px;
    box-shadow: none;
    /* Remove white background and shadows */
    mix-blend-mode: multiply;
    filter: contrast(1.1) brightness(1.05);
    background: transparent;
}

.tire-info {
    text-align: left;
}

.trust-badge {
    background-color: #edf2f7;
    border-left: 4px solid #3182ce;
    padding: 14px 16px;
    margin-bottom: 24px;
    border-radius: 4px;
    display: inline-block;
}

.trust-badge strong {
    color: #1a202c;
    font-size: 15px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.trust-badge .source {
    font-size: 12px;
    color: #718096;
    font-weight: 400;
    font-style: italic;
}

.pros-cons {
    list-style: none;
    margin-bottom: 24px;
}

.pros-cons li {
    padding: 12px 0 12px 36px;
    font-size: 15px;
    line-height: 1.7;
    position: relative;
}

.pros-cons li::before {
    position: absolute;
    left: 0;
    top: 12px;
    font-size: 22px;
    line-height: 1;
    width: 22px;
    height: 22px;
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.pros-cons li.pro::before {
    content: "";
    background-image: url('/images/check_17767092.svg');
}

.pros-cons li.con::before {
    content: "";
    background-image: url('/images/cross-mark_11601295.svg');
}

.pros-cons li.pro {
    color: #2d3748;
}

.pros-cons li.con {
    color: #2d3748;
}

/* Partner List Styles */
.partner-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.tire-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 12px;
    margin-top: 0;
}

.partner-button {
    display: block;
    padding: 12px 15px;
    text-align: left;
    background-color: #f4f4f4;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background-color 0.2s;
    width: 100%;
    box-shadow: none;
    min-height: auto;
    font-weight: 500;
}

.partner-button:hover {
    background-color: #e9e9e9;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.partner-button:active {
    background-color: #dcdcdc;
    transform: none;
}

.partner-info {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-top: 4px;
    font-weight: 400;
}

.partner-price {
    display: inline-block;
    margin-left: 8px;
    font-weight: 600;
    color: var(--trust-color);
    font-size: 0.95em;
}

.partner-price:empty::before {
    content: '';
    display: inline-block;
    width: 0;
}

/* Partner name styling */
.partner-name {
    font-weight: bold;
}

/* Partner details (commission) styling */
.partner-details {
    font-size: 0.9em;
    color: #666;
    display: block;
    margin-top: 5px;
}

/* Free shipping badge (from 1 tire) */
.partner-shipping {
    background-color: #28a745;
    color: #ffffff;
    padding: 3px 8px;
    font-size: 0.8em;
    font-weight: bold;
    border-radius: 4px;
    float: right;
    margin-top: 2px;
}

/* Free shipping badge (from 2 tires) */
.partner-shipping-alt {
    background-color: #3182ce;
    color: #ffffff;
    padding: 3px 8px;
    font-size: 0.8em;
    font-weight: bold;
    border-radius: 4px;
    float: right;
    margin-top: 2px;
}

/* Comparison Table Section */
.comparison-section {
    padding: 48px 16px;
    max-width: 1000px;
    margin: 48px auto 0;
    background-color: #ffffff;
}

.comparison-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
    color: #1a202c;
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-bottom: 16px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table thead {
    background-color: #f7fafc;
}

.comparison-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    color: #1a202c;
    border-bottom: 2px solid #e2e8f0;
    font-size: 14px;
}

.comparison-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

.comparison-table tr.highlight {
    background-color: #fef3c7;
}

.comparison-table tr:hover {
    background-color: #f7fafc;
}

.comparison-table .badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    color: white;
}

.comparison-table .badge.testsieger {
    background-color: #3182ce;
}

.comparison-table .badge.premium {
    background-color: #d69e2e;
}

.comparison-table .badge.price {
    background-color: #38a169;
}

.cta-button.small {
    padding: 8px 16px;
    font-size: 13px;
    min-height: 36px;
    width: auto;
    white-space: nowrap;
}

.table-note {
    font-size: 13px;
    color: #718096;
    font-style: italic;
    text-align: center;
    margin-top: 12px;
}

/* FAQ Section */
.faq-section {
    padding: 64px 16px;
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
}

.faq-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
    color: #1a202c;
}

.faq-section .faq-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 17px;
    margin-bottom: 40px;
}

.faq-container {
    display: grid;
    gap: 24px;
}

.faq-item {
    background: white;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s, transform 0.2s;
}

.faq-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.faq-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 16px;
}

.faq-item p {
    line-height: 1.7;
    color: #4b5563;
    font-size: 15px;
}

/* Trust Footer - Professional Legal Footer */
.trust-footer {
    background-color: #1a202c;
    color: #a0aec0;
    padding: 40px 0;
    text-align: center;
    font-size: 13px;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-footer > p {
    display: inline;
    margin: 0 12px;
    padding: 0 4px;
    color: #cbd5e0;
}

.trust-footer a {
    color: #63b3ed;
    text-decoration: none;
    transition: color 0.2s;
}

.trust-footer a:hover {
    color: #90cdf4;
    text-decoration: underline;
}

.legal-sections-container {
    margin: 24px auto;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    box-sizing: border-box;
}

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

@media (min-width: 1024px) {
    .legal-sections-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
        max-width: 1200px;
    }
}

.legal-section {
    text-align: left;
    padding: 0;
}

.legal-section h4 {
    color: #f7fafc;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.legal-section p {
    display: block;
    line-height: 1.8;
    margin-bottom: 12px;
    color: #cbd5e0;
}

/* Liability Note */
.liability-note {
    background-color: #1a202c;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 16px;
    margin-top: -20px;
    text-align: left;
    font-size: 13px;
    line-height: 1.6;
    color: var(--trust-color);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.liability-note p {
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--trust-color);
}

.liability-note p:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .liability-note {
        padding: 32px 24px;
        font-size: 14px;
        margin-top: -30px;
    }
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {
    .comparison-table {
        font-size: 12px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 10px 8px;
    }
    
    .cta-button.small {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .faq-item {
        padding: 18px;
    }
    
    .faq-item h3 {
        font-size: 16px;
    }
    
    .faq-item p {
        font-size: 14px;
    }
}

/* Product Page - Tabbed Navigation */
.product-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 24px;
}

.tab-button {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #718096;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 8px;
}

.tab-button:hover {
    color: #1a202c;
    background: #f7fafc;
}

.tab-button.active {
    border-bottom-color: var(--trust-color);
    color: #1a202c;
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Retailer Comparison Table */
.retailer-table-wrapper {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.retailer-comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.retailer-comparison-table thead {
    background: #f7fafc;
}

.retailer-comparison-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #1a202c;
    border-bottom: 2px solid #e2e8f0;
    font-size: 14px;
}

.retailer-comparison-table td {
    padding: 20px 16px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.retailer-comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.retailer-comparison-table tbody tr:hover {
    background: #f7fafc;
}

.retailer-price-large {
    font-size: 24px;
    font-weight: 700;
    color: #3182ce;
    margin-bottom: 4px;
}

.retailer-price-shipping {
    font-size: 13px;
    color: #718096;
}

.payment-icon {
    background: #f7fafc;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    display: inline-block;
    white-space: nowrap;
}

.payment-icon:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

/* Retailer Offers Container (reifen.de style) */
.retailer-offers-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.retailer-offer-card {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
}

.retailer-offer-card:hover {
    border-color: #cbd5e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.retailer-offer-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: start;
}

.retailer-offer-price {
    min-width: 180px;
}

.retailer-price-large {
    font-size: 28px;
    font-weight: 700;
    color: #3182ce;
    margin-bottom: 4px;
    line-height: 1.2;
}

.retailer-price-shipping {
    font-size: 13px;
    color: #718096;
    line-height: 1.4;
}

.retailer-offer-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.retailer-payment {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4a5568;
}

.payment-label {
    font-weight: 500;
}

.payment-method {
    color: #1a202c;
}

.payment-logo {
    font-size: 18px;
}

.retailer-delivery {
    font-size: 14px;
    color: #4a5568;
}

.delivery-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.delivery-list li {
    line-height: 1.5;
}

.shipping-badge {
    display: inline-block;
    font-size: 12px;
    color: #28a745;
    font-weight: 700;
}

.retailer-offer-retailer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    min-width: 200px;
}

.retailer-logo-name {
    font-weight: 600;
    color: #1a202c;
    font-size: 15px;
    text-align: right;
}

.retailer-button-weiter {
    background: var(--action-color);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    transition: background 0.2s;
    text-align: center;
    min-width: 120px;
}

.retailer-button-weiter:hover {
    background: var(--action-hover);
}

.retailer-button-cart {
    background: #28a745;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
    min-width: 160px;
}

.retailer-button-cart:hover {
    background: #23803a;
}

.shopdaten-link {
    color: #3182ce;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.shopdaten-link:hover {
    color: #2c5aa0;
    text-decoration: underline;
}

/* Mobile Responsive for Retailer Offers */
@media (max-width: 768px) {
    .retailer-offer-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .retailer-offer-price {
        min-width: auto;
    }
    
    .retailer-price-large {
        font-size: 24px;
    }
    
    .retailer-offer-retailer {
        align-items: flex-start;
        min-width: auto;
    }
    
    .retailer-logo-name {
        text-align: left;
    }
    
    /* Stack retailer items vertically on mobile */
    .reseller-item {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .reseller-left {
        width: 100%;
    }
    
    .reseller-right {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .reseller-price-section {
        align-items: flex-start;
        text-align: left;
    }
    
    /* On narrow screens, only make buttons full-width inside the detailed
       retailer-offers container on the product detail page, not on listing cards */
    .retailer-offers-container .reseller-button {
        width: 100%;
        text-align: center;
    }
    
    .retailer-button-weiter,
    .retailer-button-cart {
        width: 100%;
    }
}

/* Product Specifications Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table td {
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.specs-table td:first-child {
    color: #4a5568;
    width: 40%;
}

.specs-table td:last-child {
    color: #1a202c;
    font-weight: 500;
}

/* Mobile Responsive for Product Page */
@media (max-width: 768px) {
    .product-header-grid,
    .product-header > div {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    
    .product-image-section {
        width: 100%;
        text-align: center;
    }
    
    .product-image-section img {
        max-width: 100%;
        height: auto;
    }
    
    .product-specs-section {
        width: 100%;
    }
    
    .specs-table {
        width: 100%;
        font-size: 14px;
    }
    
    .specs-table td {
        padding: 12px 8px;
    }
    
    .product-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: -ms-autohiding-scrollbar;
    }
    
    .tab-button {
        white-space: nowrap;
        font-size: 14px;
        padding: 12px 16px;
        min-height: 44px;
        touch-action: manipulation;
    }
    
    /* Improve product description readability on mobile */
    .product-description {
        font-size: 15px;
        line-height: 1.7;
        color: #4a5568;
    }
    
    /* Ensure EU label is readable on mobile */
    .eu-label-container {
        max-width: 100%;
        overflow-x: auto;
    }
    
    .eu-label-container img {
        max-width: 100%;
        height: auto;
    }
    
    /* Stack retailer offers on mobile */
    .retailer-offers-container .reseller-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .retailer-offers-container .reseller-right {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    
    .retailer-offers-container .reseller-button {
        width: 100%;
    }
    
    .retailer-comparison-table {
        font-size: 12px;
    }
    
    .retailer-comparison-table th,
    .retailer-comparison-table td {
        padding: 12px 8px;
    }
    
    .retailer-price-large {
        font-size: 20px;
    }
    
    .retailer-comparison-table {
        display: block;
        overflow-x: auto;
    }
    
    .retailer-comparison-table thead,
    .retailer-comparison-table tbody,
    .retailer-comparison-table tr,
    .retailer-comparison-table th,
    .retailer-comparison-table td {
        display: block;
    }
    
    .retailer-comparison-table thead {
        display: none;
    }
    
    .retailer-comparison-table tr {
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        margin-bottom: 16px;
        padding: 16px;
        background: white;
    }
    
    .retailer-comparison-table td {
        border-bottom: none;
        padding: 8px 0;
    }
    
    .retailer-comparison-table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #4a5568;
        display: block;
        margin-bottom: 4px;
    }
}

/* Desktop Styles (Mobile-first, then enhance) */
@media (min-width: 768px) {
    .tn-row {
        align-items: center !important;
    }
    
    .header-logo {
        align-items: center !important;
    }
    
    .search-form-wrap {
        align-items: center !important;
    }
    
    .header-menu {
        padding: 12px 0 !important;
        min-height: 60px;
    }
    
    .a-top {
        padding: 20px 28px !important;
        font-size: 17px !important;
    }
    
    .hero-image {
        height: 280px;
    }
    
    .logo-img {
        width: 220px;
        height: auto;
        background: #1a202c !important;
    }

    .hook-content {
        padding: 24px 24px 20px;
        margin-top: -60px;
    }

    .hook h1,
    .hook .tn-configurator-heading {
        font-size: 26px;
    }

    .hook .tn-configurator-heading {
        font-size: 28px;
    }

    .money-box {
        padding: 48px 24px;
    }

    .money-box h3 {
        font-size: 26px;
    }

    .quick-picks {
        grid-template-columns: repeat(3, 1fr);
    }

    .pick-name {
        font-size: 18px;
    }

    .proof {
        padding: 56px 24px;
    }

    .proof h2 {
        font-size: 28px;
    }

    .tire-detail h3 {
        font-size: 22px;
        padding: 28px 28px 20px;
    }

    .tire-content {
        display: flex;
        gap: 32px;
        align-items: flex-start;
        padding: 28px;
    }

    .tire-image {
        flex: 0 0 280px;
        margin-bottom: 0;
    }

    .tire-image img {
        max-height: 280px;
    }

    .tire-info {
        flex: 1;
        min-width: 0; /* Allows flex item to shrink below content size */
    }

    .cta-button.large {
        width: 100%;
        max-width: 500px;
    }
    
    .pros-cons li {
        padding-left: 40px;
    }
    
    .pros-cons li::before {
        width: 32px;
        font-size: 24px;
    }

    .trust-footer {
        padding: 56px 0;
    }
    
    .trust-footer > p {
        padding: 0 8px;
    }
}

@media (min-width: 1024px) {
    .hero-image {
        height: 320px;
    }

    .hook-content {
        padding: 28px 32px 24px;
        margin-top: -70px;
    }
    
    /* Adjust breadcrumb spacing for larger negative margin on big screens */
    .breadcrumb {
        margin-bottom: 70px;
    }

    .logo {
        font-size: 22px;
    }

    .money-box,
    .proof {
        padding-left: 32px;
        padding-right: 32px;
    }

    .quick-picks {
        border-radius: 10px;
    }

    .pick-item {
        padding: 28px 32px;
    }
}

/* ===== Brand Comparison Table ===== */
.comparison-section {
    background: #ffffff;
    padding: 60px 16px;
    margin: 64px auto 0;
    max-width: 1400px;
    width: 100%;
    border-top: none;
    border-bottom: none;
}

.comparison-section h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.comparison-intro {
    text-align: center;
    font-size: 17px;
    color: #64748b;
    margin-bottom: 40px;
    font-weight: 400;
}

.comparison-table-wrapper {
    max-width: 100%;
    margin: 0 auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.brand-comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    overflow: hidden;
}

.brand-comparison-table thead {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
}

.brand-comparison-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.brand-comparison-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s;
}

.brand-comparison-table tbody tr:hover {
    background-color: #f7fafc;
}

.brand-comparison-table tbody tr:last-child {
    border-bottom: none;
}

.brand-comparison-table td {
    padding: 16px 12px;
    font-size: 14px;
    color: #4a5568;
    vertical-align: middle;
}

.brand-cell {
    font-weight: 500;
    min-width: 140px;
}

.brand-cell a {
    text-decoration: none;
    color: #1a202c;
    transition: color 0.2s;
}

.brand-cell a:hover {
    color: var(--trust-color);
}

.brand-logo-small {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.price-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 6px;
}

.price-badge.premium {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.price-badge.mid {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.rating-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
}

.rating-badge.excellent {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.rating-badge.good {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.comparison-notes {
    max-width: 100%;
    margin: 32px 0 0;
    padding: 20px 24px;
    background: #fefce8;
    border-left: 4px solid #eab308;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.comparison-notes p {
    margin: 0;
    font-size: 13px;
    color: #4a5568;
    line-height: 1.6;
}

/* ===== Enhanced FAQ Styling ===== */
.faq-short-answer {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-left: 4px solid var(--trust-color);
    padding: 12px 16px;
    margin: 0 0 16px 0;
    font-size: 15px;
    border-radius: 4px;
}

.faq-tip-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fbbf24;
    border-radius: 6px;
    padding: 14px 16px;
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.6;
}

.faq-tip-box strong {
    color: #92400e;
    display: block;
    margin-bottom: 6px;
}

/* ===== Internal Linking - See Also Box ===== */
.see-also-box {
    max-width: 100%;
    margin: 24px 0 0;
    padding: 20px 24px;
    background: transparent;
    border: 2px solid #e5e7eb;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
}

.see-also-box strong {
    display: block;
    margin-bottom: 12px;
    color: #1a202c;
    font-weight: 600;
    font-size: 15px;
}

.see-also-box ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.see-also-box li {
    margin-bottom: 0;
}

.see-also-box a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.see-also-box a:before {
    content: "→";
    margin-right: 8px;
    font-weight: bold;
}

.see-also-box a:hover {
    color: #2563eb;
}

/* Global Mobile Accessibility Improvements */
@media (max-width: 768px) {
    /* Improve focus states for accessibility */
    button:focus,
    a:focus,
    input:focus,
    select:focus,
    textarea:focus {
        outline: 3px solid #3182ce;
        outline-offset: 2px;
    }
    
    /* Ensure all interactive elements have proper focus indicators */
    .btn:focus,
    .cta-button:focus,
    .product-card-link:focus,
    .reseller-button:focus {
        outline: 3px solid #3182ce;
        outline-offset: 2px;
    }
    
    /* Improve loading state visibility */
    .loading-state {
        padding: 40px 20px;
        font-size: 16px;
        color: #718096;
    }
    
    .error-state {
        padding: 40px 20px;
        font-size: 16px;
        color: #dc2626;
    }
    
    /* Ensure breadcrumbs are readable */
    .breadcrumb {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    .breadcrumb a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    /* Improve comparison table horizontal scroll on mobile */
    .comparison-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: -ms-autohiding-scrollbar;
        position: relative;
    }
    
    /* Ensure brand logos are visible on mobile */
    .brand-logo-small {
        min-width: 24px;
        min-height: 24px;
    }
}

/* Mobile Responsive for Comparison Table */
@media (max-width: 768px) {
    .comparison-section {
        padding: 40px 16px;
        margin-top: 48px;
    }
    
    .comparison-section h2 {
        font-size: 24px;
    }
    
    .comparison-intro {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    .comparison-table-wrapper {
        margin: 0 -12px;
        padding: 0 12px;
    }
    
    .brand-comparison-table th,
    .brand-comparison-table td {
        padding: 12px 8px;
        font-size: 12px;
    }
    
    .brand-logo-small {
        width: 24px;
        height: 24px;
    }
    
    .price-badge {
        font-size: 9px;
        padding: 3px 6px;
    }
    
    .rating-badge {
        font-size: 13px;
        padding: 4px 8px;
    }
    
    .see-also-box ul {
        grid-template-columns: 1fr;
    }
    
    /* Ensure comparison buttons are touch-friendly */
    .comparison-table-wrapper .cta-button,
    .comparison-table-wrapper button,
    .comparison-table-wrapper a.button {
        min-height: 44px;
        padding: 12px 20px;
        font-size: 14px;
        touch-action: manipulation;
    }
}

/* === PHASE 7: UNIFIED FILTER INTERFACE === */

/* === GLOBAL UTILITIES === */
.mobile-only { 
    display: none !important; 
}
.desktop-only { 
    display: block !important; 
}

/* === SHARED COMPONENT STYLES === */
.filter-select-full {
    width: 100%;
    padding: 10px 32px 10px 12px; /* Extra padding-right for dropdown arrow */
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    background-color: #f8fafc;
    font-size: 14px;
    color: #1a202c;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px auto;
}

.filter-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.filter-row .filter-group {
    flex: 1;
}

.filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: #718096;
    margin-bottom: 4px;
    display: block;
}

/* === DESKTOP STYLES (Sidebar) === */
@media (min-width: 1024px) {
    .filter-sidebar {
        position: sticky;
        top: 100px;
        height: calc(100vh - 120px);
        overflow-y: auto;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 20px;
    }
    
    /* Hide mobile elements on desktop */
    .mobile-only { 
        display: none !important; 
    }
    .desktop-only { 
        display: block !important; 
    }
}

/* === MOBILE STYLES (The Drawer) === */
@media (max-width: 1023px) {
    .mobile-only { 
        display: block !important; 
    }
    .desktop-only { 
        display: none !important; 
    }

    /* The Drawer Container */
    .filter-sidebar {
        position: fixed;
        top: 0;
        left: -100%; /* Hidden left */
        width: 85%;
        max-width: 360px;
        height: 100vh;
        background: #ffffff;
        z-index: 2000; /* On top of everything */
        transition: left 0.3s ease-in-out;
        box-shadow: 4px 0 16px rgba(0,0,0,0.2);
        display: flex;
        flex-direction: column;
        padding: 0; /* Reset desktop padding */
        border: none;
        border-radius: 0;
    }

    .filter-sidebar.active,
    .filter-sidebar.open {
        left: 0; /* Slide in */
    }

    /* Filter Overlay */
    .filter-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1999; /* Below drawer, above content */
        transition: opacity 0.3s ease;
    }

    .filter-overlay.active {
        display: block;
    }

    /* Drawer Header */
    .filter-sidebar-header {
        padding: 16px;
        border-bottom: 1px solid #e2e8f0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #f8fafc;
    }

    .filter-sidebar-header .sidebar-title {
        font-size: 18px;
        font-weight: 700;
        color: #1a202c;
        margin: 0;
    }

    .filter-sidebar-header .filter-close-button {
        background: transparent;
        border: none;
        font-size: 24px;
        color: #4a5568;
        cursor: pointer;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        transition: background 0.2s;
        padding: 0;
    }

    .filter-sidebar-header .filter-close-button:hover {
        background: #e2e8f0;
    }

    .filter-sidebar-content {
        flex: 1; /* Take remaining height */
        overflow-y: auto; /* Scrollable content */
        padding: 16px;
        padding-bottom: 80px; /* Space for footer */
        background: #ffffff; /* Ensure white background */
    }
    
    /* Fix text colors for filter elements on mobile */
    .filter-sidebar-content .filter-subsection-header {
        color: #1a202c !important; /* Dark text on white background */
    }
    
    .filter-sidebar-content .filter-subsection-header:hover {
        color: #3182ce !important; /* Blue on hover */
    }
    
    .filter-sidebar-content .filter-item label {
        color: #4a5568 !important; /* Medium gray for labels */
    }
    
    .filter-sidebar-content .checkbox-label span {
        color: #4a5568 !important; /* Medium gray for checkbox labels */
    }
    
    .filter-sidebar-content .filter-group label {
        color: #718096 !important; /* Lighter gray for filter group labels */
    }
    
    .filter-sidebar-content .filter-arrow {
        color: #718096 !important; /* Gray for arrow */
    }
    
    .filter-sidebar-content .filter-select-full {
        color: #1a202c !important; /* Dark text for select inputs */
    }

    /* Drawer Footer (Sticky Action Button) */
    .filter-sidebar-footer {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 16px;
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
    }

    .filter-apply-button {
        width: 100%;
        background: #f97316; /* Orange */
        color: white;
        border: none;
        padding: 14px;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        transition: background 0.2s;
    }

    .filter-apply-button:hover {
        background: #ea580c;
    }

    /* Increase tap targets for mobile */
    .filter-select-full {
        padding: 12px; /* Larger touch area */
        font-size: 16px; /* Prevents iOS zoom */
    }
    
    .filter-row {
        flex-direction: row; /* Keep side-by-side if possible */
    }

    /* Mobile find-size-cta */
    .find-size-cta.mobile-only {
        margin-bottom: 16px;
        padding: 12px;
        background: #f0f9ff;
        border-radius: 6px;
        font-size: 14px;
    }

    .find-size-cta.mobile-only a {
        color: #0284c7;
        font-weight: 600;
        text-decoration: underline;
    }
}

/* Logo Reel Fade-Out Effect */
.logo-ticker-wrapper,
.logo-ticker-list,
.brand-logos-grid {
    /* The Magic Fade Effect - creates smooth gradient fade on left and right sides */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

/* Soften logo images in ticker */
.logo-ticker-list img,
.brand-logos-grid img,
.brand-logo-link img {
    opacity: 0.6;
    transform: scale(0.95);
    transition: all 0.3s ease;
    backface-visibility: hidden;
}

.logo-ticker-list img:hover,
.brand-logos-grid img:hover,
.brand-logo-link:hover img {
    opacity: 1;
    transform: scale(1);
}

/* Discount Badge */
/* Discount Badges - Use Red to highlight savings */
.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #dc2626 !important; /* Red */
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

/* Spec Badges (Load/Speed/XL) */
.spec-badge {
    background: var(--trust-light) !important; /* Very light blue */
    color: var(--trust-color) !important;      /* Navy text */
    border: 1px solid rgba(0, 51, 102, 0.1);
}

/* Feature Icons Row */
.product-features {
    display: flex;
    gap: 8px;
    margin: 8px 0;
    align-items: center;
}

.feature-icon {
    height: 20px;
    width: auto;
}

.eu-label {
    display: flex;
    align-items: center;
    gap: 2px;
    border: 1px solid #e2e8f0;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #4a5568;
    background: #fff;
}

.eu-label img {
    height: 14px;
    width: auto;
}

/* Brand Logo Sizing */
.product-card-brand-logo img {
    max-height: 30px;
    width: auto;
    object-fit: contain;
}

/* Icon Navigation Menu Styles */
.icon-menu-section {
    display: none;
    padding: 40px 0;
    background-color: #1a202c;
    border-bottom: 1px solid #f0f0f0;
}

.icon-menu-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 items per row on desktop */
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.icon-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: transparent;
    border: 1px solid transparent;
}

.icon-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.icon-menu-item .icon-wrapper {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.icon-menu-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0.9;
    transition: all 0.2s ease;
}

.icon-menu-item:hover img {
    opacity: 1;
    transform: scale(1.1);
}

.icon-menu-item span {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    color: #fff;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .icon-menu-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 items per row on tablet */
        gap: 15px;
        padding: 0 15px;
    }
    
    .icon-menu-item .icon-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .icon-menu-item span {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .icon-menu-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 items per row on mobile */
        gap: 10px;
    }
    
    .icon-menu-section {
        padding: 30px 0;
    }
    
    .icon-menu-item .icon-wrapper {
        width: 70px;
        height: 70px;
    }
}

