/* =============================================================================
   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);
}

/* =============================================================================
   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);
}

.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;
}

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

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

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

.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: 1fr 1fr;
    gap: var(--spacing-3xl);
    margin-top: var(--spacing-lg);
}

.product-images {
    position: sticky;
    top: var(--spacing-lg);
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* Main gallery image */
.gallery-main {
    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;
}

/* 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;
}

/* 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
   ============================================================================= */

/* 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);
        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;
    }

    /* Header needs relative positioning for menu dropdown */
    .header {
        position: relative;
    }

    /* 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;
    }

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

    .sidebar {
        width: 100%;
        order: 2;
    }

    .content {
        order: 1;
    }

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

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

    .product-images {
        position: static;
    }

    .thumbnail {
        flex: 0 0 50px;
        width: 50px;
        height: 50px;
    }

    .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;
}
