/* =============================================================================
   IDS Catalog - Design System Styles
   Based on Figma Design Specifications
   ============================================================================= */

/* CSS Custom Properties (Design Tokens from Figma) */
:root {
    /* Colors */
    --ids-color-800: #2e3538;
    --ids-color-700: #5d737e;
    --ids-color-500: #8f9ca3;
    --ids-color-400: #8f9ca3;
    --ids-color-350: #d8e1e5;
    --ids-color-300: #eef4f6;
    --ids-color-250: #f5f8fa;
    --ids-color-orange: #feb13d;
    --ids-color-white: #ffffff;

    /* Typography - Soleil font family */
    --font-family: 'Soleil', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Font sizes */
    --font-size-title: 36px;
    --font-size-headline: 28px;
    --font-size-sidebar-heading: 20px;
    --font-size-base: 16px;
    --font-size-mid: 15px;
    --font-size-small: 14px;
    --font-size-xs: 12px;

    /* Line heights */
    --line-height-title: 1.45;
    --line-height-headline: 1.45;
    --line-height-base: 24px;
    --line-height-mid: 22px;
    --line-height-small: 18px;

    /* Font weights */
    --font-weight-regular: 400;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 40px;
    --spacing-3xl: 48px;

    /* Layout */
    --container-max-width: 1140px;
    --sidebar-width: 218px;
    --content-gap: 32px;
    --header-height: 105px;

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
}

/* =============================================================================
   Font Face Declarations
   Note: Soleil is a commercial font. Using system fonts as fallback.
   If you have Soleil font files, add @font-face declarations here.
   ============================================================================= */

@font-face {
    font-family: 'Soleil';
    src: url('/fonts/Soleil-Regular.woff2') format('woff2'),
         url('/fonts/Soleil-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Soleil';
    src: url('/fonts/Soleil-Bold.woff2') format('woff2'),
         url('/fonts/Soleil-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Soleil';
    src: url('/fonts/Soleil-Extrabold.woff2') format('woff2'),
         url('/fonts/Soleil-Extrabold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* =============================================================================
   Reset & Base Styles
   ============================================================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-base);
    color: var(--ids-color-800);
    background: var(--ids-color-white);
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    text-decoration: none;
}

/* =============================================================================
   Layout Container
   ============================================================================= */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0;
}

/* =============================================================================
   Header
   ============================================================================= */
.header {
    background: var(--ids-color-white);
    padding: var(--spacing-md) 0 var(--spacing-sm);
}

.header .container {
    max-width: var(--container-max-width);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: calc(var(--header-height) - var(--spacing-md) - var(--spacing-sm));
    gap: var(--spacing-2xl);
    padding-right: var(--spacing-lg);
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 79px;
    width: auto;
}

/* Header Navigation */
.header-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-2xl);
}

.header-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
}

.header-menu a {
    font-size: var(--font-size-mid);
    line-height: var(--line-height-mid);
    color: var(--ids-color-800);
    padding: var(--spacing-xs) 0;
}

.header-menu a:hover {
    opacity: 0.8;
}

.header-menu a.active {
    font-weight: var(--font-weight-bold);
}

.header-menu a.has-caret {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.header-menu .caret-icon {
    width: 12px;
    height: 12px;
    order: -1;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

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

/* Hamburger toggle - hidden on desktop */
.header-nav-toggle {
    display: none;
}

/* Search Form */
.search-form {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 513px;
}

.search-input {
    flex: 1;
    height: 44px;
    padding: 0 var(--spacing-md);
    border: 1px solid var(--ids-color-800);
    border-radius: var(--radius-full);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--ids-color-800);
    background: var(--ids-color-white);
    outline: none;
    transition: border-color var(--transition-fast);
}

.search-input::placeholder {
    color: var(--ids-color-500);
}

.search-input:focus {
    border-color: var(--ids-color-700);
}

.search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 var(--spacing-md);
    margin-left: calc(-44px - var(--spacing-sm));
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--ids-color-800);
}

.search-button:hover {
    opacity: 0.7;
}

/* =============================================================================
   Main Layout
   ============================================================================= */
.layout {
    display: flex;
    gap: var(--content-gap);
    padding: var(--spacing-xl) 0 112px;
}

.layout-full-width {
    display: block;
}

.layout-full-width .content {
    width: 100%;
}

/* =============================================================================
   Breadcrumb Navigation
   ============================================================================= */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-xl) 0;
    font-size: var(--font-size-xs);
    line-height: var(--line-height-small);
    color: var(--ids-color-800);
}

.breadcrumb a {
    color: var(--ids-color-800);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--ids-color-500);
}

/* =============================================================================
   Nav Bar (Breadcrumb + Search)
   ============================================================================= */
.nav-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    padding: var(--spacing-xl) 0;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-xs);
    line-height: var(--line-height-small);
    color: var(--ids-color-800);
    flex-shrink: 0;
}

.breadcrumb-nav a {
    color: var(--ids-color-800);
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    color: var(--ids-color-500);
}

.nav-search-form {
    display: flex;
    align-items: center;
    flex-grow: 1;
    min-width: 280px;
    max-width: 480px;
    position: relative;
}

.nav-search-input {
    width: 100%;
    padding: 12px 48px 12px 20px;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--ids-color-800);
    background: var(--ids-color-white);
    border: 1px solid var(--ids-color-800);
    border-radius: var(--radius-full);
    box-shadow: 0px 1px 8px rgba(14, 30, 47, 0.03);
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-search-input::placeholder {
    color: var(--ids-color-500);
}

.nav-search-input:focus {
    border-color: var(--ids-color-700);
    box-shadow: 0px 1px 8px rgba(14, 30, 47, 0.08);
}

.nav-search-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-search-btn:hover svg path {
    stroke: var(--ids-color-700);
}

/* =============================================================================
   Sidebar
   ============================================================================= */
.sidebar {
    flex-shrink: 0;
    width: var(--sidebar-width);
    background: transparent;
    padding: 0;
}

.sidebar-section {
    margin-bottom: var(--spacing-xl);
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar h2 {
    font-size: var(--font-size-sidebar-heading);
    font-weight: var(--font-weight-extrabold);
    line-height: 1.15;
    color: var(--ids-color-800);
    padding: var(--spacing-md) 0 var(--spacing-sm);
    margin-bottom: 0;
    border: none;
}

.manufacturer-list,
.category-list {
    list-style: none;
}

.manufacturer-list li,
.category-list li {
    margin: 0;
}

.manufacturer-list a,
.category-list a {
    display: block;
    padding: 10px 0 var(--spacing-sm);
    padding-right: var(--spacing-sm);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--ids-color-800);
    transition: opacity var(--transition-fast);
}

.manufacturer-list a:hover,
.category-list a:hover {
    opacity: 0.7;
}

.manufacturer-list a.active,
.category-list a.active {
    font-weight: var(--font-weight-bold);
}

/* Category breadcrumb (hierarchical navigation - parent levels) */
.category-breadcrumb {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
}

.category-breadcrumb-item {
    display: flex;
    align-items: baseline;
    gap: 4px;
    padding: 2px 8px 2px 0;
}

.category-breadcrumb-icon {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    color: var(--ids-color-500);
}

.category-breadcrumb-link {
    font-size: 14px;
    line-height: 18px;
    color: var(--ids-color-500);
    text-decoration: none;
}

.category-breadcrumb-link:hover {
    text-decoration: underline;
}

.category-breadcrumb-link .count {
    color: var(--ids-color-350);
}

/* Current level category items */
.category-list .sidebar-item {
    font-size: 16px;
    line-height: 24px;
    color: var(--ids-color-800);
    padding: 4px 8px 4px 0;
}

.category-list .sidebar-item .count {
    font-size: 14px;
    line-height: 18px;
    color: var(--ids-color-500);
}

.category-list .sidebar-item.active {
    font-weight: var(--font-weight-bold);
    color: var(--ids-color-800);
}

.category-list .sidebar-item.active .count {
    font-weight: var(--font-weight-regular);
}

/* Nested category children (1 level below) */
.category-children {
    padding-bottom: var(--spacing-sm);
}

.category-list--nested {
    border-left: 1px solid var(--ids-color-350);
    padding-left: 0;
}

.category-list--nested .sidebar-item {
    font-size: 14px;
    line-height: 18px;
    color: var(--ids-color-700);
    padding: 4px 8px;
}

.category-list--nested .sidebar-item .count {
    font-size: 14px;
    color: var(--ids-color-500);
}

.count {
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    color: var(--ids-color-500);
}

.back-link {
    display: inline-block;
    margin-top: var(--spacing-sm);
    font-size: var(--font-size-mid);
    line-height: var(--line-height-mid);
    color: var(--ids-color-800);
}

.back-link:hover {
    text-decoration: underline;
}

/* Sidebar Filter Component (ISSUE-066) */
.sidebar-filter {
    padding-top: var(--spacing-md);
}

.sidebar-filter:first-child {
    padding-top: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) 0 var(--spacing-sm);
}

.sidebar-header h2 {
    padding: 0;
    margin: 0;
}

.sidebar-items {
    list-style: none;
}

.sidebar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-xs) var(--spacing-sm) var(--spacing-xs) 0;
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--ids-color-800);
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.sidebar-item:hover {
    opacity: 0.7;
}

.sidebar-item.active {
    font-weight: var(--font-weight-bold);
}

/* Sort list specific styling */
.sort-list .sidebar-item {
    padding: var(--spacing-sm) 0;
}

/* Collapsible sidebar filter */
.sidebar-filter--collapsible .sidebar-item--hidden {
    display: none;
}

.sidebar-filter--collapsible.is-expanded .sidebar-item--hidden {
    display: block;
}

.sidebar-footer {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 10px var(--spacing-sm) var(--spacing-sm) 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--ids-color-700);
    transition: opacity var(--transition-fast);
}

.sidebar-footer:hover {
    opacity: 0.7;
}

.sidebar-toggle-icon {
    transition: transform var(--transition-normal);
}

.sidebar-filter--collapsible.is-expanded .sidebar-toggle-icon {
    transform: rotate(180deg);
}

/* Searchable sidebar header (SingleSelectSearch) */
.sidebar-filter--searchable .sidebar-header {
    position: relative;
}

.sidebar-header-title {
    flex: 1;
    transition: opacity var(--transition-fast);
}

.sidebar-search-toggle {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xs);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ids-color-700);
    transition: color var(--transition-fast);
}

.sidebar-search-toggle:hover {
    color: var(--ids-color-800);
}

.sidebar-search-input-wrapper {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.sidebar-filter--searchable.is-searching .sidebar-header-title,
.sidebar-filter--searchable.is-searching .sidebar-search-toggle {
    opacity: 0;
    visibility: hidden;
}

.sidebar-filter--searchable.is-searching .sidebar-search-input-wrapper {
    opacity: 1;
    visibility: visible;
}

.sidebar-search-input {
    flex: 1;
    padding: 6px 32px 6px 12px;
    font-family: var(--font-family);
    font-size: var(--font-size-small);
    color: var(--ids-color-800);
    background: var(--ids-color-white);
    border: 1px solid var(--ids-color-500);
    border-radius: var(--radius-full);
    outline: none;
    box-shadow: 0px 1px 8px rgba(14, 30, 47, 0.03);
}

.sidebar-search-input::placeholder {
    color: var(--ids-color-800);
}

.sidebar-search-input:focus {
    border-color: var(--ids-color-700);
}

.sidebar-search-close {
    position: absolute;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xs);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ids-color-500);
    transition: color var(--transition-fast);
}

.sidebar-search-close:hover {
    color: var(--ids-color-800);
}

/* Hide items that don't match search */
.sidebar-filter--searchable .sidebar-item--filtered {
    display: none !important;
}

/* Mobile filter elements - hidden on desktop */
.mobile-filter-btn,
.mobile-filter-apply,
.sidebar-close {
    display: none;
}

/* =============================================================================
   Main Content Area
   ============================================================================= */
.content {
    flex: 1;
    min-width: 0;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

/* Home Header / Intro Section */
.home-header {
    padding-top: 40px;
    padding-bottom: var(--spacing-xl);
}

.home-header h1 {
    font-size: 72px;
    font-weight: var(--font-weight-extrabold);
    line-height: 1.1;
    color: var(--ids-color-800);
    margin-bottom: var(--spacing-md);
}

.home-header p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--ids-color-800);
}

.home-header strong {
    font-weight: var(--font-weight-bold);
}

.showcase-explainer {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--ids-color-250);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--ids-color-700);
}

/* Page Title / Section Header */
.content h1 {
    font-size: var(--font-size-headline);
    font-weight: var(--font-weight-extrabold);
    line-height: var(--line-height-headline);
    color: var(--ids-color-800);
    margin-bottom: var(--spacing-md);
}

/* =============================================================================
   Toolbar / Filter Bar
   ============================================================================= */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: 0;
    border-bottom: none;
}

.result-count {
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    color: var(--ids-color-500);
    margin-bottom: var(--spacing-md);
}

.clear-filters {
    font-size: var(--font-size-mid);
    line-height: var(--line-height-mid);
    color: var(--ids-color-800);
    padding: var(--spacing-sm) var(--spacing-md);
    background: transparent;
    border: 1px solid var(--ids-color-350);
    border-radius: var(--radius-full);
    transition: background var(--transition-fast);
}

.clear-filters:hover {
    background: var(--ids-color-250);
}

/* Search Result Header */
.search-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    padding: var(--spacing-xs) 0 var(--spacing-md);
}

.search-result-header h2 {
    font-size: var(--font-size-headline);
    font-weight: var(--font-weight-extrabold);
    line-height: var(--line-height-headline);
    color: var(--ids-color-800);
    margin: 0;
}

.result-count-inline {
    font-weight: var(--font-weight-regular);
    color: var(--ids-color-500);
}

/* List Filter Bar */
.list-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0 32px;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-md);
    flex: 1;
    min-width: 0;
}

/* Search Bar in Filter Area */
.search-bar {
    position: relative;
    flex: 2;
    min-width: 200px;
}

.search-bar .search-input {
    width: 100%;
    padding-right: 48px;
}

.search-icon-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 44px;
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--ids-color-800);
}

.search-icon-btn:hover {
    opacity: 0.7;
}

/* Select / Dropdown Styles */
.filter-select {
    flex: 1;
    min-width: 150px;
    height: 44px;
    padding: 0 var(--spacing-md) 0 18px;
    border: 1px solid var(--ids-color-800);
    border-radius: var(--radius-full);
    font-family: var(--font-family);
    font-size: var(--font-size-mid);
    line-height: var(--line-height-mid);
    color: var(--ids-color-800);
    background: var(--ids-color-white);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='5' viewBox='0 0 10 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0L5 5L10 0H0Z' fill='%232E3538'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* =============================================================================
   Product Grid
   ============================================================================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-3xl);
    color: var(--ids-color-500);
    font-size: var(--font-size-base);
}

.no-results-with-action {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-3xl);
}

.no-results-with-action .no-results {
    padding: 0;
    margin-bottom: var(--spacing-lg);
}

/* =============================================================================
   Product Card
   ============================================================================= */
.product-card {
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    transition: none;
}

.product-card:hover {
    box-shadow: none;
}

.product-card a {
    display: block;
    color: inherit;
}

.product-card-image {
    aspect-ratio: 1 / 1;
    background: var(--ids-color-white);
    border: 1px solid var(--ids-color-300);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--spacing-md);
}

.product-card-content {
    padding: 6px 0 0 0;
}

.product-card-info {
    display: flex;
    gap: var(--spacing-sm);
    align-items: baseline;
    margin-bottom: 0;
}

.product-card-manufacturer-link {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    transition: opacity var(--transition-fast);
}

.product-card-manufacturer-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.product-card-manufacturer {
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    color: var(--ids-color-500);
}

.product-card-sku {
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    color: var(--ids-color-500);
}

.product-card-sku::before {
    content: '#';
}

.product-card-title-link {
    color: inherit;
    text-decoration: none;
    display: block;
}

.product-card-title {
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-small);
    color: var(--ids-color-700);
    margin: 6px 0 0 0;
}

.product-card-variant {
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    color: var(--ids-color-700);
    margin: var(--spacing-sm) 0 0 0;
}

/* =============================================================================
   Pagination
   ============================================================================= */
.pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: var(--spacing-2xl);
    padding-top: 0;
    border-top: none;
    list-style: none;
    padding: 0;
    gap: 20px;
}

.pagination li {
    display: flex;
    list-style: none;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--ids-color-white);
    border: 1px solid var(--ids-color-800);
    border-radius: 0;
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--ids-color-800);
    font-family: var(--font-family);
    font-weight: var(--font-weight-regular);
    text-decoration: none;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.pagination-link img {
    opacity: 1;
}

.pagination-link:hover {
    background: var(--ids-color-350);
}

.pagination-link:focus {
    outline: 2px solid var(--ids-color-800);
    outline-offset: 2px;
}

.pagination-current {
    background: var(--ids-color-300);
    border: 2px solid var(--ids-color-800);
    color: var(--ids-color-800);
    font-weight: var(--font-weight-bold);
}

.pagination-current:hover {
    background: var(--ids-color-300);
    cursor: default;
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--ids-color-300);
    border: 1px solid var(--ids-color-350);
    border-radius: 0;
    color: var(--ids-color-500);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    font-weight: var(--font-weight-regular);
    cursor: default;
    user-select: none;
}

/* =============================================================================
   Product Detail Page
   ============================================================================= */
.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--spacing-3xl);
    margin-top: var(--spacing-lg);
}

/* Product Column Left - sticky container for images + labels */
.product-column-left .product-images {
    position: relative;
}

.product-images {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* Main gallery image */
.gallery-main {
    position: relative;
    aspect-ratio: 1;
    background: var(--ids-color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--ids-color-300);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: none;
    border-radius: 0;
    user-select: none;
    -webkit-user-drag: none;
    transition: opacity var(--transition-fast);
}

/* Loading state - fade image and show spinner */
.gallery-main.is-loading img {
    opacity: 0.3;
}

.gallery-main.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid var(--ids-color-350);
    border-top-color: var(--ids-color-800);
    border-radius: 50%;
    animation: gallery-spin 0.8s linear infinite;
}

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

/* Gallery navigation buttons (prev/next) */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ids-color-white);
    border: 1px solid var(--ids-color-350);
    border-radius: 50%;
    cursor: pointer;
    color: var(--ids-color-800);
    opacity: 0;
    transition: opacity var(--transition-fast), background var(--transition-fast);
    z-index: 2;
}

.gallery-main:hover .gallery-nav,
.gallery-main:focus-within .gallery-nav {
    opacity: 1;
}

.gallery-nav:hover {
    background: var(--ids-color-250);
}

.gallery-nav:focus {
    opacity: 1;
    outline: 2px solid var(--ids-color-800);
    outline-offset: 2px;
}

.gallery-nav--prev {
    left: var(--spacing-md);
}

.gallery-nav--next {
    right: var(--spacing-md);
}

/* Hide nav arrows on touch devices - swipe is more natural */
@media (pointer: coarse) {
    .gallery-nav {
        display: none;
    }
}

/* Thumbnail strip */
.gallery-thumbnails {
    display: flex;
    gap: var(--spacing-sm);
    overflow-x: auto;
    padding-bottom: var(--spacing-xs);
    scrollbar-width: thin;
    scrollbar-color: var(--ids-color-350) transparent;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--ids-color-350);
    border-radius: 3px;
}

.thumbnail {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    padding: 0;
    border: 2px solid var(--ids-color-300);
    border-radius: var(--radius-sm);
    cursor: pointer;
    overflow: hidden;
    background: var(--ids-color-white);
    transition: border-color var(--transition-fast);
}

.thumbnail:hover {
    border-color: var(--ids-color-500);
}

.thumbnail.active {
    border-color: var(--ids-color-orange);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    border-radius: 0;
}

/* Mobile dot indicators - hidden on desktop */
.gallery-dots {
    display: none;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--ids-color-350);
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.gallery-dot:hover {
    background: var(--ids-color-500);
}

.gallery-dot.active {
    background: var(--ids-color-800);
    transform: scale(1.2);
}

/* Fallback for products without gallery */
.product-images > img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--ids-color-300);
    background: var(--ids-color-white);
}

.product-info {
    padding: 0;
}

.product-info h1 {
    font-size: var(--font-size-headline);
    font-weight: var(--font-weight-extrabold);
    line-height: var(--line-height-headline);
    color: var(--ids-color-800);
    margin-bottom: var(--spacing-sm);
}

.product-subline {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--ids-color-500);
    margin-bottom: var(--spacing-lg);
}

.product-subline strong {
    font-weight: var(--font-weight-bold);
    color: var(--ids-color-700);
}

.product-description {
    margin: var(--spacing-xl) 0;
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--ids-color-800);
}

.product-description h3 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    margin: var(--spacing-lg) 0 var(--spacing-sm) 0;
}

.product-description p {
    margin-bottom: var(--spacing-md);
}

.product-description ul,
.product-description ol {
    margin: var(--spacing-md) 0 var(--spacing-md) var(--spacing-lg);
}

.product-description li {
    margin-bottom: var(--spacing-sm);
}

/* Lieferumfang (Package Contents) */
.product-lieferumfang {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg);
    background: var(--ids-color-250);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--ids-color-orange);
}

.product-lieferumfang h2 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-base);
    color: var(--ids-color-800);
    margin-bottom: var(--spacing-md);
}

.product-lieferumfang p {
    margin-bottom: var(--spacing-sm);
}

.product-lieferumfang ul,
.product-lieferumfang ol {
    margin: var(--spacing-sm) 0 var(--spacing-sm) var(--spacing-lg);
}

.product-lieferumfang li {
    margin-bottom: var(--spacing-xs);
}

/* Product Attributes Table */
.product-attributes {
    width: 100%;
    margin: var(--spacing-xl) 0;
    border-collapse: collapse;
}

.product-attributes th,
.product-attributes td {
    padding: var(--spacing-sm) 0;
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    text-align: left;
    vertical-align: top;
}

.product-attributes th {
    width: 140px;
    font-weight: var(--font-weight-regular);
    color: var(--ids-color-800);
    padding-right: var(--spacing-lg);
}

.product-attributes td {
    color: var(--ids-color-700);
}


/* Product Related Links */
.product-related-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xl);
}

.related-link {
    display: inline-flex;
    align-items: center;
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--ids-color-800);
    text-decoration: underline;
    transition: opacity var(--transition-fast);
}

.related-link:hover {
    opacity: 0.7;
}

.product-actions {
    margin-top: var(--spacing-xl);
}

/* =============================================================================
   Buttons
   ============================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 var(--spacing-md);
    border-radius: var(--radius-full);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-base);
    text-align: center;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast);
    text-decoration: none;
    border: 1px solid transparent;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--ids-color-800);
    color: var(--ids-color-white);
    border-color: var(--ids-color-800);
}

.btn-primary:hover {
    background: var(--ids-color-700);
    border-color: var(--ids-color-700);
}

.btn-secondary {
    background: var(--ids-color-white);
    color: var(--ids-color-800);
    border-color: var(--ids-color-800);
}

.btn-secondary:hover {
    background: var(--ids-color-250);
}

/* =============================================================================
   Footer
   ============================================================================= */
.footer {
    background: var(--ids-color-orange);
    padding: 80px 0 0;
    margin-top: 0;
    color: var(--ids-color-800);
}

.footer .container {
    max-width: var(--container-max-width);
}

/* Footer Top Section */
.footer-top {
    display: flex;
    gap: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
}

.footer-logo {
    flex-shrink: 0;
    width: 178px;
}

.footer-logo img {
    width: 100%;
    height: auto;
}

.footer-about {
    width: 320px;
}

.footer-about h3,
.footer-newsletter h3 {
    font-size: var(--font-size-headline);
    font-weight: var(--font-weight-extrabold);
    line-height: var(--line-height-headline);
    color: var(--ids-color-800);
    margin-bottom: var(--spacing-sm);
}

.footer-about p,
.footer-newsletter p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--ids-color-800);
}

.footer-newsletter {
    width: 416px;
}

.footer-newsletter-form {
    display: flex;
    gap: var(--spacing-md);
    padding-top: var(--spacing-sm);
}

.footer-newsletter-form input {
    flex: 1;
    height: 44px;
    padding: 0 var(--spacing-md);
    border: 1px solid var(--ids-color-800);
    border-radius: var(--radius-full);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    background: var(--ids-color-white);
}

.footer-newsletter-form input::placeholder {
    color: var(--ids-color-500);
}

.footer-newsletter-form button {
    height: 44px;
    padding: 0 var(--spacing-md);
    border: 1px solid var(--ids-color-800);
    border-radius: var(--radius-full);
    background: var(--ids-color-white);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--ids-color-800);
    cursor: pointer;
}

/* Footer Links Section */
.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-2xl);
    padding: var(--spacing-2xl) 0;
    border-top: 1px solid rgba(46, 53, 56, 0.2);
}

.footer-links-section h4 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-base);
    color: var(--ids-color-800);
    margin-bottom: var(--spacing-sm);
}

.footer-links-section a,
.footer-links-section p {
    display: block;
    font-size: var(--font-size-mid);
    line-height: var(--line-height-mid);
    color: var(--ids-color-800);
    margin-bottom: 0;
    padding: 2px 0;
}

.footer-links-section a:hover {
    text-decoration: underline;
}

/* Footer Bottom Section */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 41px 0;
    border-top: 1px solid rgba(46, 53, 56, 0.2);
}

.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.footer-social {
    display: flex;
    gap: var(--spacing-xl);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.footer-social svg,
.footer-social img {
    width: 24px;
    height: 24px;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-mid);
    line-height: var(--line-height-mid);
    color: var(--ids-color-800);
}

.footer-legal a {
    text-decoration: underline;
}

.footer-bottom-right {
    font-size: var(--font-size-mid);
    line-height: var(--line-height-mid);
    color: var(--ids-color-800);
}

.footer-bottom-right a {
    text-decoration: underline;
}

.footer-divider {
    margin: 0 var(--spacing-xs);
    color: var(--ids-color-700);
}

/* Language Switcher */
.language-switcher {
    display: inline;
    font-size: 15px;
    line-height: 22px;
    color: var(--ids-color-800);
    white-space: nowrap;
}

.language-label {
    font-weight: 400;
}

.language-active {
    font-weight: 700;
}

.language-separator {
    font-weight: 400;
}

.language-link {
    text-decoration: underline;
    color: var(--ids-color-800);
    font-weight: 400;
}

.language-link:hover {
    color: var(--ids-color-900);
}


/* =============================================================================
   Error Page
   ============================================================================= */
.error-page {
    max-width: 600px;
    margin: var(--spacing-3xl) auto;
    text-align: center;
    padding: var(--spacing-xl);
}

.error-page h1 {
    color: #cc0000;
    margin-bottom: var(--spacing-md);
}

.error-message {
    font-size: var(--font-size-base);
    color: var(--ids-color-700);
    margin-bottom: var(--spacing-md);
}

.error-detail {
    background: var(--ids-color-250);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    margin: var(--spacing-md) 0;
}

.error-detail code {
    font-family: monospace;
    font-size: var(--font-size-mid);
}

.error-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin: var(--spacing-xl) 0;
}

.error-suggestions {
    margin-top: var(--spacing-xl);
    text-align: left;
    background: var(--ids-color-250);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
}

.error-suggestions h2 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
}

.error-suggestions ul {
    list-style-position: inside;
}

.error-suggestions li {
    margin-bottom: var(--spacing-sm);
    color: var(--ids-color-700);
}

/* =============================================================================
   Manufacturer Profile Links
   ============================================================================= */

/* Header links container (in search-result-header) */
.header-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-lg);
    flex-shrink: 0;
}

.header-link {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--ids-color-800);
    text-decoration: none;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-regular);
    white-space: nowrap;
}

.header-link:hover {
    text-decoration: underline;
}

.header-link-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Legacy: Manufacturer profile button (in search-result-header) */
.manufacturer-profile-btn {
    color: var(--ids-color-800);
    text-decoration: none;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-regular);
    white-space: nowrap;
}

.manufacturer-profile-btn:hover {
    text-decoration: underline;
}

/* Inline manufacturer profile link in product attributes table */
.manufacturer-profile-link {
    display: inline-block;
    margin-left: var(--spacing-md);
    color: var(--ids-color-primary);
    text-decoration: none;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-medium);
    transition: color 0.2s ease;
}

.manufacturer-profile-link:hover {
    color: var(--ids-color-900);
    text-decoration: underline;
}

/* External manufacturer profile link in related links */
.manufacturer-profile-link-external {
    display: inline-block;
    color: var(--ids-color-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    transition: color 0.2s ease;
}

.manufacturer-profile-link-external:hover {
    color: var(--ids-color-900);
}

/* External link icon in sidebar */
.manufacturer-list li {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.manufacturer-list .manufacturer-link {
    flex: 1;
}

.external-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--ids-color-500);
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.external-link-icon:hover {
    background-color: var(--ids-color-100);
    color: var(--ids-color-primary);
}

/* =============================================================================
   Responsive Design
   ============================================================================= */

/* Tablet and below */
@media (max-width: 1024px) {
    :root {
        --content-gap: 32px;
        --sidebar-width: 200px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    .footer-top {
        flex-wrap: wrap;
    }

    .footer-about,
    .footer-newsletter {
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --font-size-title: 28px;
        --font-size-headline: 24px;
        --font-size-sidebar-heading: 18px;
    }

    /* Show hamburger button */
    .header-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        padding: var(--spacing-sm);
        margin-left: calc(-1 * var(--spacing-sm)); /* Optical alignment with content */
        cursor: pointer;
        order: -1;
    }

    /* Header row layout: hamburger + logo left, icons right - all same row */
    .header-content {
        flex-direction: row;
        flex-wrap: nowrap;
        height: auto;
        gap: var(--spacing-sm);
        padding: var(--spacing-sm) 0;
    }

    .logo img {
        height: 48px;
    }

    /* Nav: only the icons visible in header row, menu becomes separate */
    .header-nav {
        display: contents;
    }

    /* Icons stay in first row, pushed right */
    .header-icons {
        margin-left: auto;
        gap: var(--spacing-lg);
    }

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

    /* Menu hidden by default, positioned below header */
    .header-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        background: var(--ids-color-white);
        /* Align with logo: container padding (24px) + hamburger button width (~36px) */
        padding: var(--spacing-md) var(--spacing-lg) 32px;
        padding-left: calc(var(--spacing-lg) + 36px);
        gap: var(--spacing-2xl);
        z-index: 100;
        border-bottom: 1px solid #EEF4F6;
    }

    /* Sticky header on mobile - stays visible while scrolling */
    .header {
        position: sticky;
        top: 0;
        z-index: 500;
        transition: box-shadow 0.2s ease;
    }

    /* Shadow appears when page is scrolled */
    .header.header--scrolled {
        box-shadow: rgba(50, 50, 93, 0.05) 0px 13px 27px -5px, rgba(0, 0, 0, 0.1) 0px 8px 16px -8px;
    }

    /* Show menu when header has menu-open class */
    .header.menu-open .header-menu {
        display: flex;
    }

    .header-menu a {
        font-size: var(--font-size-mid);
    }

    .header-menu a.active {
        font-weight: var(--font-weight-bold);
    }

    .search-form {
        width: 100%;
        max-width: none;
    }

    /* Nav bar stacks on mobile */
    .nav-bar {
        padding: var(--spacing-md) 0;
        gap: var(--spacing-md);
    }

    .nav-search-form {
        min-width: 100%;
        max-width: none;
        order: 2;
    }

    .breadcrumb-nav {
        order: 1;
        width: 100%;
    }

    .layout {
        flex-direction: column;
        gap: var(--spacing-xl);
        padding: var(--spacing-md) 0 var(--spacing-3xl);
    }

    /* Hide sidebar by default on mobile - show via filter button */
    .sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        background: var(--ids-color-white);
        z-index: 1000;
        padding: var(--spacing-lg);
        padding-bottom: 80px; /* Space for sticky apply button */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Show sidebar when mobile filter is active */
    .layout.mobile-filter-open .sidebar {
        display: block;
    }

    /* Hide main content when filter panel is open */
    .layout.mobile-filter-open .content {
        display: none;
    }

    .content {
        order: 1;
    }

    /* Mobile filter button - sticky at bottom of viewport */
    .mobile-filter-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: var(--spacing-sm);
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 12px var(--spacing-lg);
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        font-family: var(--font-family);
        font-size: var(--font-size-base);
        font-weight: var(--font-weight-regular);
        color: var(--ids-color-800);
        background: var(--ids-color-white);
        border: none;
        border-top: 1px solid var(--ids-color-400);
        cursor: pointer;
        text-align: center;
        z-index: 100;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    }

    .mobile-filter-btn svg {
        flex-shrink: 0;
        transform: translateY(1px);
    }

    .mobile-filter-btn:active {
        background: var(--ids-color-300);
    }

    /* Hide sticky filter button when filter panel is open */
    .layout.mobile-filter-open .mobile-filter-btn {
        display: none;
    }

    /* Mobile sidebar close button */
    .sidebar-close {
        display: block;
        position: absolute;
        top: var(--spacing-md);
        right: var(--spacing-md);
        padding: var(--spacing-sm);
        background: none;
        border: none;
        color: var(--ids-color-800);
        cursor: pointer;
    }

    .sidebar-close:active {
        color: var(--ids-color-600);
    }

    /* Space for close button (icon height + padding + 32px gap) */
    .sidebar {
        padding-top: 56px;
    }

    /* Add bottom padding to content so it's not hidden behind sticky button */
    .content {
        padding-bottom: 60px;
    }

    /* Mobile apply button (sticky at bottom) */
    .mobile-filter-apply {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: var(--spacing-md) var(--spacing-lg);
        font-family: var(--font-family);
        font-size: var(--font-size-base);
        font-weight: var(--font-weight-bold);
        color: var(--ids-color-white);
        background: var(--ids-color-800);
        border: none;
        cursor: pointer;
        text-align: center;
        z-index: 1001;
    }

    .mobile-filter-apply:active {
        background: var(--ids-color-700);
    }

    /* Home header responsive */
    .home-header h1 {
        font-size: 36px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .product-images {
        position: static;
    }

    /* Only hide thumbnails on mobile when JS is active (progressive enhancement) */
    .product-images.js-enhanced .gallery-thumbnails {
        display: none;
    }

    .product-images.js-enhanced .gallery-dots {
        display: flex;
    }

    .pagination {
        justify-content: center;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }

    .footer-bottom-left {
        flex-direction: column;
    }

    .error-actions {
        flex-direction: column;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* Add padding on smaller screens where content would touch edges */
@media (max-width: 1180px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

/* =============================================================================
   Translation Pending Indicators
   Shows when content is displayed in German but page is in another language
   ============================================================================= */

/* Small badge on product cards */
.translation-pending {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    padding: 2px 6px;
    background-color: var(--ids-color-300);
    color: var(--ids-color-700);
    border-radius: 3px;
    margin-top: var(--spacing-xs);
}

/* Banner on product detail page */
.translation-pending-banner {
    background-color: var(--ids-color-250);
    border: 1px solid var(--ids-color-350);
    border-radius: 4px;
    padding: var(--spacing-sm) var(--spacing-md);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-small);
    color: var(--ids-color-700);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.translation-pending-banner .icon {
    font-size: var(--font-size-base);
}

/* Long description anchor link */
.long-description-link {
    display: inline-block;
    margin-top: var(--spacing-sm);
    color: var(--ids-color-primary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
}

.long-description-link:hover {
    text-decoration: underline;
}

/* =============================================================================
   Long Description Section (Rich HTML from Akeneo)
   ============================================================================= */
.product-long-description {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--ids-color-350);
}

.product-long-description h2,
.product-long-description h3,
.product-long-description h4 {
    font-weight: var(--font-weight-bold);
    color: var(--ids-color-800);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.product-long-description h2 {
    font-size: var(--font-size-headline);
    line-height: var(--line-height-headline);
}

.product-long-description h3 {
    font-size: var(--font-size-sidebar-heading);
}

.product-long-description h4 {
    font-size: var(--font-size-base);
}

.product-long-description h2:first-child,
.product-long-description h3:first-child,
.product-long-description h4:first-child {
    margin-top: 0;
}

.product-long-description p {
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-base);
}

.product-long-description ul,
.product-long-description ol {
    margin: var(--spacing-md) 0 var(--spacing-md) var(--spacing-lg);
}

.product-long-description li {
    margin-bottom: var(--spacing-sm);
    line-height: var(--line-height-base);
}

.product-long-description table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-lg) 0;
}

.product-long-description th,
.product-long-description td {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--ids-color-350);
    text-align: left;
    vertical-align: top;
}

.product-long-description th {
    background: var(--ids-color-250);
    font-weight: var(--font-weight-bold);
    color: var(--ids-color-800);
}

.product-long-description td {
    color: var(--ids-color-700);
}

.product-long-description img {
    max-width: 100%;
    height: auto;
    margin: var(--spacing-md) 0;
    border-radius: var(--radius-md);
}

.product-long-description video,
.product-long-description iframe {
    max-width: 100%;
    margin: var(--spacing-lg) 0;
    border-radius: var(--radius-md);
}

/* =============================================================================
   Product Info & More Products Sections (ISSUE-045b)
   Section headlines matching Figma IDS Headline Section style
   ============================================================================= */
.product-info-section,
.product-more-section {
    padding: var(--spacing-md) 0;
}

.section-headline {
    font-family: var(--font-family);
    font-size: var(--font-size-sidebar-heading);
    font-weight: var(--font-weight-extrabold);
    line-height: 1.15;
    color: var(--ids-color-800);
    margin: 0;
    padding: var(--spacing-sm) 0 var(--spacing-xs);
}

.product-info-section .product-attributes {
    margin: 0;
}

.product-more-section .product-related-links {
    margin-top: 0;
}

/* =============================================================================
   Product Variant Selector (ISSUE-045d)
   Based on Figma design (node 9875:2257) - each axis as separate group
   ============================================================================= */

/* Variant Groups Container */
.pdp-variant-groups {
    padding: var(--spacing-md) 0 var(--spacing-xl) 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

/* Single Variant Group (e.g., Figur, Groesse, Schaft) */
.pdp-variant-group {
    width: 100%;
    max-width: 554px;
}

.pdp-variant-group__header {
    padding-bottom: var(--spacing-sm);
}

.pdp-variant-group__title {
    font-family: var(--font-family);
    font-weight: var(--font-weight-extrabold);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--ids-color-800);
    margin: 0;
}

/* Variant Grid - 4 columns */
.pdp-variant-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
}

/* Individual Variant Item */
.pdp-variant-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xs) var(--spacing-md);
    min-height: 40px;
    border: 1px solid var(--ids-color-350);
    background: var(--ids-color-white);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--ids-color-800);
    text-decoration: none;
    cursor: pointer;
    transition: border-color var(--transition-fast);
    text-align: center;
}

.pdp-variant-item:hover {
    border-color: var(--ids-color-800);
}

/* Current/Selected variant */
.pdp-variant-item--current {
    border-color: var(--ids-color-800);
    background: var(--ids-color-300);
    cursor: default;
}

/* Unavailable variant (no exact match, but still links to best match) */
.pdp-variant-item--unavailable {
    background: var(--ids-color-250);
    color: var(--ids-color-500);
}

.pdp-variant-item--unavailable:hover {
    border-color: var(--ids-color-800);
}

/* =============================================================================
   Akeneo Category Tree (ISSUE-045e)
   Hierarchical category navigation from Figma SidebarItem component
   ============================================================================= */

/* Category list container */
.akeneo-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Level 1 categories */
.akeneo-category-list--level1 {
    /* Top level - no additional styling */
}

/* Level 2+ categories - nested with left border */
.akeneo-category-list--level2,
.akeneo-category-list--level3 {
    margin-left: 6px;
    padding-left: 0;
}

/* Category item */
.akeneo-category-item {
    margin: 0;
}

/* Level 1 item styling */
.akeneo-category-item--level1 {
    padding: 10px 8px 8px 0;
}

.akeneo-category-item--level1 > .akeneo-category-link {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 24px;
    color: var(--ids-color-800);
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: var(--spacing-xs);
}

.akeneo-category-item--level1 > .akeneo-category-link:hover {
    opacity: 0.7;
}

.akeneo-category-item--level1.akeneo-category-item--selected > .akeneo-category-link,
.akeneo-category-item--level1 > .akeneo-category-link.active {
    font-weight: var(--font-weight-bold);
}

/* Level 2 item styling */
.akeneo-category-item--level2 {
    border-left: 1px solid var(--ids-color-350);
    padding: 8px 0 0 12px;
}

.akeneo-category-item--level2 > .akeneo-category-link {
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 18px;
    color: var(--ids-color-400);
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: var(--spacing-xs);
}

.akeneo-category-item--level2 > .akeneo-category-link:hover {
    color: var(--ids-color-800);
}

.akeneo-category-item--level2.akeneo-category-item--selected > .akeneo-category-link,
.akeneo-category-item--level2 > .akeneo-category-link.active {
    color: var(--ids-color-800);
}

/* Level 3 item styling */
.akeneo-category-item--level3 {
    border-left: 1px solid var(--ids-color-350);
    padding: 8px 0 0 16px;
}

.akeneo-category-item--level3 > .akeneo-category-link {
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 18px;
    color: var(--ids-color-400);
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: var(--spacing-xs);
}

.akeneo-category-item--level3 > .akeneo-category-link:hover {
    color: var(--ids-color-800);
}

.akeneo-category-item--level3.akeneo-category-item--selected > .akeneo-category-link,
.akeneo-category-item--level3 > .akeneo-category-link.active {
    color: var(--ids-color-800);
}

/* Category count */
.akeneo-category-count {
    font-size: 14px;
    line-height: 18px;
    color: var(--ids-color-400);
}

/* Category children container */
.akeneo-category-children {
    padding: 10px 8px 0 6px;
}

/* Clear category filter link */
.clear-category-filter {
    display: inline-block;
    margin-top: var(--spacing-md);
    font-size: var(--font-size-small);
    color: var(--ids-color-800);
    text-decoration: underline;
}

.clear-category-filter:hover {
    opacity: 0.7;
}

/* =============================================================================
   Reference Entities (ISSUE-045f)
   Application areas, safety notices, cleaning symbols
   Matching Figma product-labels component design
   ============================================================================= */

/* Product Column Left - container for images + labels */
.product-column-left {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

/* Product Labels Component (Figma: product-labels) */
.product-labels {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding-top: var(--spacing-md);
}

.product-labels-headline {
    padding: var(--spacing-sm) 0 var(--spacing-xs);
}

.product-labels-headline h3 {
    font-family: var(--font-family);
    font-size: var(--font-size-sidebar-heading); /* 20px */
    font-weight: var(--font-weight-extrabold);
    line-height: 1.15;
    color: var(--ids-color-800);
    margin: 0;
}

.product-labels-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.product-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md) var(--spacing-sm) 0;
}

.product-label-icon {
    width: 40px;
    height: 40px;
    object-fit: cover;
    flex-shrink: 0;
}

.product-label-icon-placeholder {
    width: 40px;
    height: 40px;
    background: var(--ids-color-300);
    flex-shrink: 0;
}

.product-label-text {
    font-family: var(--font-family);
    font-size: var(--font-size-base); /* 16px */
    line-height: var(--line-height-base); /* 24px */
    color: var(--ids-color-800);
}

/* Product Safety Notices Component (Figma: product-safety-notices) */
.product-safety-notices {
    padding: var(--spacing-md) 0 var(--spacing-sm);
}

.product-safety-notices-headline {
    padding: var(--spacing-sm) 0;
}

.product-safety-notices-headline h3 {
    font-family: var(--font-family);
    font-size: var(--font-size-sidebar-heading); /* 20px */
    font-weight: var(--font-weight-extrabold);
    line-height: 1.15;
    color: var(--ids-color-800);
    margin: 0;
}

.product-safety-notice {
    display: flex;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) 0;
}

.product-safety-notice-caret {
    padding: 3px 0;
    font-size: 10px;
    line-height: 16px;
    color: var(--ids-color-800);
    flex-shrink: 0;
}

.product-safety-notice-content {
    flex: 1;
    font-family: var(--font-family);
    font-size: var(--font-size-mid); /* 15px */
    line-height: var(--line-height-mid); /* 22px */
    color: var(--ids-color-800);
}

.product-safety-notice-content strong {
    display: block;
    margin-bottom: var(--spacing-xs);
}

.product-safety-notice-body {
    font-size: var(--font-size-mid);
    line-height: var(--line-height-mid);
}

.product-safety-notice-body p {
    margin: 0;
}

/* =============================================================================
   Product Downloads (ISSUE-045g)
   IFU documents section - matches section-headline style
   ============================================================================= */
.product-downloads {
    padding: var(--spacing-md) 0;
}

.download-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--ids-color-text);
    text-decoration: none;
    padding: var(--spacing-xs) 0;
}

.download-link:hover {
    color: var(--ids-color-primary);
    text-decoration: underline;
}

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

/* =============================================================================
   More Products Section (Phase 12 - PDP canonical category link)
   ============================================================================= */
.more-products-section {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--ids-color-350);
}

.more-products-heading {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-regular);
    color: var(--ids-color-800);
}

.more-products-link {
    color: var(--ids-color-800);
    font-weight: var(--font-weight-bold);
    text-decoration: none;
}

.more-products-link:hover {
    text-decoration: underline;
}

/* =============================================================================
   Product Request Data (ISSUE-060)
   Call-to-action for requesting missing product information
   ============================================================================= */
.product-request-data {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    align-items: flex-start;
    padding: var(--spacing-xl) 0;
}

.product-request-data__question {
    font-family: var(--font-family);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-small);
    color: #000000;
    white-space: nowrap;
}

.product-request-data__link {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    font-family: var(--font-family);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-small);
    color: #000000;
    text-decoration: none;
    white-space: nowrap;
}

.product-request-data__link:hover {
    text-decoration: underline;
}

.product-request-data__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: rgba(30, 30, 30, 1);
}

/* Make request data link look like a button styled as link */
button.product-request-data__link {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* =============================================================================
   Manufacturer Links (ISSUE-060)
   Three action links: Info, Request, Update - matching Figma design
   ============================================================================= */
.manufacturer-links {
    display: flex;
    gap: 32px;
    align-items: center;
    padding-left: 0;
    padding-top: 6px;
    padding-bottom: 6px;
}

.manufacturer-link {
    display: flex;
    gap: 8px;
    align-items: center;
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 18px;
    color: #000000;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.manufacturer-link:hover {
    text-decoration: underline;
}

.manufacturer-link-icon {
    width: 20px;
    height: 20px;
    color: rgba(46, 53, 56, 1);
    flex-shrink: 0;
}

/* =============================================================================
   Contact Modal (ISSUE-060)
   Popup modal for product/manufacturer inquiries
   ============================================================================= */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.contact-modal[hidden] {
    display: none;
}

.contact-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.contact-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--ids-color-white);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.contact-modal__close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--ids-color-800);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.contact-modal__close:hover {
    background: var(--ids-color-250);
}

.contact-modal__close svg {
    width: 20px;
    height: 20px;
}

.contact-modal__content {
    padding: var(--spacing-xl);
}

.contact-modal__title {
    font-size: var(--font-size-headline);
    font-weight: var(--font-weight-extrabold);
    line-height: var(--line-height-headline);
    color: var(--ids-color-800);
    margin: 0 0 var(--spacing-xs) 0;
    padding-right: var(--spacing-xl);
}

.contact-modal__subtitle {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--ids-color-500);
    margin: 0 0 var(--spacing-lg) 0;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-form__honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.contact-form__field {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.contact-form__label {
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-small);
    color: var(--ids-color-800);
}

.contact-form__required {
    color: #cc0000;
}

.contact-form__input,
.contact-form__textarea {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--ids-color-350);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--ids-color-800);
    background: var(--ids-color-white);
    transition: border-color var(--transition-fast);
}

.contact-form__input:focus,
.contact-form__textarea:focus {
    outline: none;
    border-color: var(--ids-color-800);
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
    color: var(--ids-color-500);
}

.contact-form__textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form__actions {
    padding-top: var(--spacing-sm);
}

.contact-form__submit {
    width: 100%;
}

.contact-form__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.contact-form__error {
    margin: 0;
    padding: var(--spacing-sm) var(--spacing-md);
    background: #fff0f0;
    border: 1px solid #ffcccc;
    border-radius: var(--radius-sm);
    color: #cc0000;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
}

.contact-form__success {
    margin: 0;
    padding: var(--spacing-sm) var(--spacing-md);
    background: #f0fff0;
    border: 1px solid #ccffcc;
    border-radius: var(--radius-sm);
    color: #008800;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
}

/* Mobile responsiveness for modal */
@media (max-width: 768px) {
    .contact-modal {
        padding: 0;
        align-items: flex-end;
    }

    .contact-modal__dialog {
        max-width: none;
        max-height: 85vh;
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }

    .manufacturer-links {
        flex-wrap: wrap;
        gap: var(--spacing-md) var(--spacing-xl);
    }
}

/* =============================================================================
   Cookie Consent Banner (ISSUE-072)
   ============================================================================= */

/* Body padding when cookie banner is visible */
body.has-cookie-banner {
    padding-bottom: 80px;
}

@media (max-width: 600px) {
    body.has-cookie-banner {
        padding-bottom: 120px; /* More space on mobile (stacked layout) */
    }
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--ids-color-800);
    color: var(--ids-color-white);
    padding: var(--spacing-md) var(--spacing-lg);
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
}

.cookie-banner-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

/* Brand logo - builds trust (+7% opt-in per research) */
.cookie-banner-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.cookie-banner-logo {
    width: 28px;
    height: 28px;
    opacity: 0.9;
}

.cookie-banner-content p {
    margin: 0;
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    flex: 1;
    min-width: 200px;
}

.cookie-banner-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-shrink: 0;
}

/*
 * GDPR-compliant button design:
 * - Equal size and prominence (mandatory)
 * - Both solid buttons (not button + link)
 * - Minimum 44x44px touch targets (mobile)
 */
.cookie-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast), transform 0.1s ease;
    min-width: 100px;
    min-height: 44px; /* Mobile touch target */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cookie-btn:active {
    transform: scale(0.98);
}

/* Primary (Accept) - orange is natural action color */
.cookie-btn-primary {
    background: var(--ids-color-orange);
    color: var(--ids-color-800);
}

.cookie-btn-primary:hover {
    background: #e9a137;
}

/* Secondary (Decline) - solid button, equal prominence, but neutral */
.cookie-btn-secondary {
    background: var(--ids-color-700);
    color: var(--ids-color-white);
    border: none;
}

.cookie-btn-secondary:hover {
    background: var(--ids-color-500);
}

@media (max-width: 600px) {
    .cookie-banner {
        padding: var(--spacing-md);
    }

    .cookie-banner-brand {
        display: none; /* Hide logo on mobile for space */
    }

    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: var(--spacing-md);
    }

    .cookie-banner-content p {
        min-width: unset;
    }

    .cookie-banner-actions {
        justify-content: center;
        width: 100%;
    }

    /* Equal width buttons on mobile */
    .cookie-btn {
        flex: 1;
        max-width: 150px;
    }
}

/* =============================================================================
   Category Index Page
   ============================================================================= */

.category-index-heading {
    font-size: var(--font-size-sidebar-heading);
    font-weight: var(--font-weight-bold);
    line-height: 1.45;
    color: var(--ids-color-800);
    margin-bottom: var(--spacing-lg);
}

.category-index-tree {
    background: var(--ids-color-250);
    border-radius: 8px;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.category-index-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-index-list--nested {
    padding-left: var(--spacing-md);
    border-left: 1px solid var(--ids-color-350);
}

.category-index-node-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) 0;
}

.category-index-toggle {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--ids-color-500);
    flex-shrink: 0;
}

.category-index-toggle[aria-expanded="true"] .category-index-chevron {
    transform: rotate(90deg);
}

.category-index-chevron {
    transition: transform 0.15s ease;
}

.category-index-toggle-spacer {
    width: 16px;
    flex-shrink: 0;
}

.category-index-link {
    color: var(--ids-color-800);
    text-decoration: none;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-base);
}

.category-index-link:hover {
    text-decoration: underline;
}

.category-index-count {
    color: var(--ids-color-500);
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
}

.category-index-empty {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.category-index-empty h2 {
    color: var(--ids-color-800);
    margin-bottom: var(--spacing-sm);
}

.category-index-empty p {
    color: var(--ids-color-500);
}

/* Sidebar heading link (for hierarchy mode) */
.sidebar-heading-link {
    color: inherit;
    text-decoration: none;
}

.sidebar-heading-link:hover {
    text-decoration: underline;
}
