/* MAHINESKA - Główne style */

:root {
    --primary-color: #4CAF50;
    --primary-dark: #45a049;
    --secondary-color: #2196F3;
    --text-dark: #333;
    --text-light: #666;
    --text-muted: #999;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 12px rgba(0,0,0,0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #0b538b;
    transition: transform 0.25s ease-out;
}

@media (max-width: 768px) {
    .main-header {
        z-index: 1001;
    }

    /* Chowanie nagłówka przy scrollu w dół na mobile */
    .main-header.header-hidden {
        transform: translateY(-100%);
    }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 0px;
    gap: 20px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-dark);
}

.logo-img {
    max-width: 70px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.main-nav {
    display: flex;
    gap: 30px;
    flex: 1;
    justify-content: center;
}

.header-search {
    flex: 1;
    max-width: 400px;
    margin-left: auto;
    margin-right: 20px;
    position: relative;
}

.header-search-wrapper {
    position: relative;
    width: 100%;
	height:80%;
}

.header-search-form {
    display: flex;
    gap: 0;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    background: var(--bg-white);
}

.header-search-input {
    flex: 1;
    padding: 8px 12px;
    border: none;
    font-size: 14px;
    outline: none;
}

.header-search-input:focus {
    border-color: var(--primary-color);
}

.header-search-btn {
    padding: 8px 12px;
    border: none;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.header-search-btn:hover {
    background: var(--primary-dark);
}

.user-info-header {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-dark);
}

.user-name-header {
    white-space: nowrap;
    font-weight: 500;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-item-dropdown {
    position: relative;
    display: inline-block;
}

.nav-item-dropdown .nav-link {
    display: block;
    cursor: pointer;
}

.categories-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    min-width: 280px;
    max-width: 400px;
    max-height: 600px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10000;
    padding: 0px;
    border: 1px solid var(--border-color);
}

.nav-item-dropdown:hover .categories-dropdown,
.categories-dropdown:hover {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: block !important;
}

.categories-loading {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
}

.category-group {
    padding: 0;
    border-bottom: 1px solid var(--border-color);
}

.category-group:last-child {
    border-bottom: none;
}

.category-group-title {
    padding: 10px 16px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: transparent;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-group-title.clickable {
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.category-group-title.clickable:hover {
    background: rgba(76, 175, 80, 0.1);
}

.category-group-title.category-link {
    text-decoration: none;
    color: var(--text-dark);
    transition: background 0.2s, color 0.2s;
}

.category-group-title.category-link:hover {
    background: rgba(76, 175, 80, 0.1);
    color: var(--primary-color);
}

.category-arrow {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 10px;
}

.category-group-items {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-left: 20px;
}

.category-group-items.collapsed {
    max-height: 0;
    padding: 0;
    padding-left: 20px;
    opacity: 0;
    transform: translateY(-10px);
}

.category-group-items.expanded {
    max-height: 1000px;
    padding: 4px 0;
    padding-left: 20px;
    opacity: 1;
    transform: translateY(0);
}

.category-dropdown-item {
    display: block;
    padding: 8px 16px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    margin: 0;
}

.category-dropdown-item:hover {
    background: rgba(76, 175, 80, 0.1);
    color: var(--primary-color);
    padding-left: 20px;
}

.category-dropdown-item.all-link {
    font-weight: 600;
    color: var(--text-dark);
    border-top: 1px solid var(--border-color);
    margin-top: 4px;
    padding-top: 10px;
}

.category-dropdown-item.single-category {
    display: block;
    padding: 10px 16px;
    margin: 0;
}

/* Header Search Results */
.header-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 10000;
    display: none;
    border: 1px solid var(--border-color);
}

.header-search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-color);
}

.header-search-result-item:last-child {
    border-bottom: none;
}

.header-search-result-item:hover {
    background: rgba(76, 175, 80, 0.1);
}

.header-search-result-item.header-search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    cursor: default;
}

.header-search-result-item.header-search-no-results:hover {
    background: transparent;
}

.header-search-result-image {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-light);
}

.header-search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.header-search-result-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.4;
}

.header-search-result-title mark {
    background: rgba(76, 175, 80, 0.2);
    color: var(--primary-color);
    font-weight: 700;
    padding: 0 2px;
}

.header-search-result-details {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.4;
}

.header-search-result-details mark {
    background: rgba(76, 175, 80, 0.2);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0 2px;
}


.header-categories {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.categories-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s;
    padding: 8px 0;
    display: block;
}

.categories-link:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

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

.flag-icon {
    font-size: 20px;
    line-height: 1;
}

.flag-icon-img {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    display: inline-block;
    vertical-align: middle;
}

.lang-code {
    font-weight: 600;
    color: var(--text-dark);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--text-dark);
    transition: background 0.3s;
    border-radius: 8px 8px 0 0;
}

.lang-option:last-child {
    border-radius: 0 0 8px 8px;
}

.lang-option:hover {
    background: var(--bg-light);
}

.lang-option.active {
    background: rgba(76, 175, 80, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}


/* Buttons */
.btn-primary, .btn-secondary, .btn-search {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-light);
}

.btn-search {
    background: var(--secondary-color);
    color: white;
    padding: 12px 30px;
}

.btn-search:hover {
    background: #1976D2;
}


/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    position: relative;
    padding: 5px 0px;
    margin-bottom: 20px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="sparks" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23sparks)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 23px;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Main Content */
.main-content {
    padding: 0px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-dark);
}

/* Show All Button */
.slider-show-all {
    text-align: center;
    margin-top: 20px;
}

.btn-show-all {
    display: inline-block;
    padding: 6px 22px;
    margin-bottom: 15px;
    background: transparent;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--secondary-color);
    cursor: pointer;
    position: relative;
}

.btn-show-all::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.btn-show-all:hover {
    background: var(--secondary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* Products Slider */
.products-slider-wrapper {
    position: relative;
    margin-bottom: 0px;
    padding: 0 60px;
}

.products-slider-container {
    overflow: hidden;
    position: relative;
}

.products-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 25px;
    margin-bottom: 0;
    will-change: transform;
}

.products-slider .machine-card {
    flex: 0 0 calc((100% - 75px) / 4); /* 4 kolumny z gap 25px */
    min-width: 0;
    max-width: calc((100% - 75px) / 4);
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #0b538b;
    color: #0b538b;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.slider-nav-btn:hover {
    background: #0b538b;
    color: white;
    box-shadow: 0 4px 12px rgba(11, 83, 139, 0.3);
}

.slider-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-prev {
    left: -25px;
}

.slider-next {
    right: -25px;
}

/* Machines Grid */
.machines-grid:not(.products-slider) {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.machines-grid.list-view {
    grid-template-columns: 1fr;
}

.machines-grid.list-view .machine-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    grid-template-rows: auto auto;
    max-width: 100%;
}

.machines-grid.list-view .machine-image {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
}

.machines-grid.list-view .machine-info {
    grid-column: 2;
    grid-row: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.machine-thumbnails-list {
    display: none;
    margin: 15px 0;
    gap: 8px;
    flex-wrap: wrap;
}

.machines-grid.list-view .machine-thumbnails-list {
    display: flex;
    max-width: 624px; /* 6 kolumn x 100px + 5px + 5 gap x 8px */
    flex-wrap: nowrap;
}

.machine-thumbnail-item {
    width: 100px;
    height: 100px;
    max-width: 100px;
    max-height: 100px;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    background: transparent;
    position: relative;
    z-index: 10;
}

.machine-thumbnail-item:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.machine-thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
}

.machine-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.machine-card:hover {
    box-shadow: var(--shadow-hover);
}

.machine-card:hover .machine-title {
    text-decoration: underline;
}

.machine-card .machine-image:hover ~ .machine-info .machine-title {
    text-decoration: none;
}

.machine-image {
    width: 100%;
    aspect-ratio: 1;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    cursor: pointer;
}

.machine-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.stock-badge-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    padding: 6px 12px;
    background: rgba(76, 175, 80, 0.95);
    color: white;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.machine-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.machine-actions {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 20px;
    margin-bottom: 0;
    position: relative;
    z-index: 10;
    flex-wrap: wrap;
}

.btn-favourite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: white;
    border: 2px solid #dc3545;
    border-radius: 6px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.15);
}

.btn-favourite:hover {
    background: #fff5f5;
    border-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.25);
}

.btn-favourite.active {
    background: white;
    color: #333;
    border-color: #dc3545;
}

.btn-favourite.active:hover {
    background: #fff5f5;
    border-color: #c82333;
}

.btn-favourite svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: none;
    stroke: #dc3545;
    stroke-width: 2;
}

.btn-favourite.active svg {
    fill: #dc3545;
    stroke: #dc3545;
}

.btn-favourite span {
    display: none;
}

.header-favourites-link {
    display: inline-block;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-left: 20px;
    padding: 8px 0;
}

.header-favourites-link:hover {
    text-decoration: underline;
    color: var(--text-dark);
}

.btn-call {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 6px rgba(33, 150, 243, 0.25);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-call::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-call:hover {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    box-shadow: 0 6px 12px rgba(33, 150, 243, 0.35);
    transform: translateY(-1px);
}

.btn-call:hover::before {
    left: 100%;
}

.btn-call:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.25);
}

.machine-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.machine-model {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.machine-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.machine-location {
    font-size: 14px;
    color: var(--text-muted);
}

.machine-location::before {
    content: "📍 ";
}

.machine-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    color: var(--primary-color);
}

/* Category Sliders */
.category-slider-section {
    margin-bottom: 50px;
}

.category-slider-header {
    margin-bottom: 20px;
}

.category-slider-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.category-slider-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.category-slider-title a:hover {
    color: var(--primary-color);
}

.category-name {
    font-weight: 500;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.empty-state p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, #0a1628 0%, #15243d 100%);
    color: var(--bg-white);
    padding: 25px 0 25px;
    margin-top: 80px;
    border-top: 3px solid #0b538b;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 0px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: var(--bg-white);
    font-size: 24px;
    font-weight: 700;
}

.footer-section h4 {
    margin-bottom: 18px;
    color: var(--bg-white);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #0b538b;
    padding-bottom: 8px;
    display: inline-block;
    width: fit-content;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 14px;
    margin-top: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 14px;
    padding: 2px 0;
}

.footer-section a:hover {
    color: #0b538b;
    transform: translateX(5px);
    padding-left: 5px;
}

.footer-contact a[href^="mailto:"] {
    color: #0b538b;
}

.footer-contact a[href^="mailto:"]:hover {
    color: #0b538b;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 1200px) {
    .machines-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .machines-grid:not(.products-slider) {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-slider-wrapper {
        padding: 0 50px;
    }
    
    .products-slider .machine-card {
        flex: 0 0 calc((100% - 25px) / 2); /* 2 kolumny na tabletach */
        max-width: calc((100% - 25px) / 2);
    }
    
    .slider-prev {
        left: -15px;
    }
    
    .slider-next {
        right: -15px;
    }
}

/* ============================================
   MOBILE RESPONSIVE STYLES (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 15px;
    }

    /* Header Mobile */
    .main-header {
        position: sticky;
        top: 0;
        z-index: 1000;
        padding-top: 0;
    }

    .header-content {
        flex-wrap: wrap;
        padding: 12px 0;
        gap: 12px;
        position: relative;
    }

    /* Logo Mobile */
    .logo {
        flex: 0 0 auto;
        gap: 8px;
    }

    .logo-img {
        max-width: 50px;
        max-height: 50px;
    }

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

    .logo-subtitle {
        font-size: 10px;
		
    }


    /* Header Categories - Hide on mobile */
    .header-categories {
        display: none;
    }

    /* Header Search Mobile */
    .header-search {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin: 0;
        flex: 1 1 100%;
    }

    .header-search-form {
        border-radius: 8px;
    }

    .header-search-input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 10px 12px;
    }

    .header-search-btn {
        padding: 10px 14px;
    }

    /* Header Actions Mobile - Hide on mobile, show in hamburger menu */
    .header-actions {
        display: none;
    }

    .user-info-header {
        font-size: 12px;
        order: 1;
    }

    .user-name-header {
        font-size: 12px;
    }


    .btn-secondary {
        padding: 8px 14px;
        font-size: 13px;
        flex: 1 1 auto;
        min-width: 0;
    }

    /* Hero Banner Mobile */
    .hero-banner {
        padding: 15px 0;
        margin-bottom: 15px;
    }

    .hero-title {
        font-size: 16px;
        padding: 0 15px;
    }

    /* Products Grid Mobile */
    .machines-grid:not(.products-slider) {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .machines-grid.list-view {
        grid-template-columns: 1fr;
    }

    .machines-grid.list-view .machine-card {
        grid-template-columns: 1fr;
    }

    .machines-grid.list-view .machine-image {
        grid-column: 1;
        grid-row: 1;
    }

    .machines-grid.list-view .machine-info {
        grid-column: 1;
        grid-row: 2;
        padding: 15px;
    }

    /* Machine Card Mobile */
    .machine-card {
        border-radius: 10px;
    }

    .machine-info {
        padding: 12px;
    }

    .machine-title {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .machine-model {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .machine-price {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .machine-actions {
        gap: 8px;
        padding-top: 12px;
        flex-wrap: wrap;
    }

    .btn-call {
        padding: 6px 14px;
        font-size: 14px;
        flex: 1 1 auto;
    }

    .btn-favourite {
        width: 32px;
        height: 32px;
    }

    /* Products Slider Mobile */
    .products-slider-wrapper {
        padding: 0 20px;
        margin-bottom: 30px;
    }

    .products-slider {
        gap: 15px;
    }

    .products-slider .machine-card {
        flex: 0 0 calc(100% - 15px);
        max-width: calc(100% - 15px);
    }

    .slider-nav-btn {
        width: 40px;
        height: 40px;
    }

    .slider-prev {
        left: -10px;
    }

    .slider-next {
        right: -10px;
    }

    /* Categories Grid Mobile */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .category-card {
        padding: 15px;
        min-height: 70px;
    }

    /* Section Title Mobile */
    .section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    /* Footer Mobile */
    .main-footer {
        margin-top: 40px;
        padding: 20px 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    /* Categories Dropdown Mobile */
    .categories-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        max-height: none;
        padding: 0;
        margin: 0;
    }

    .category-group {
        border-bottom: 1px solid var(--border-color);
    }

    .category-group-title {
        padding: 12px 20px;
        font-size: 15px;
    }

    .category-dropdown-item {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Search Results Mobile */
    .header-search-results {
        max-height: 60vh;
        border-radius: 8px;
        margin-top: 4px;
    }

    .header-search-result-item {
        padding: 12px;
    }

    .header-search-result-image {
        width: 45px;
        height: 45px;
    }

    /* Listings Header Mobile */
    .listings-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    /* Language Selector Mobile */
    .language-selector {
        order: -1;
    }

    .lang-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .lang-code {
        display: none;
    }

    .lang-dropdown {
        right: auto;
        left: 0;
    }
}

/* ============================================
   SMALL MOBILE STYLES (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    /* Logo Extra Small */
    .logo h1 {
        font-size: 16px;
    }

    .logo-img {
        max-width: 55px;
        max-height: 55px;
    }

    /* Header Extra Small */
    .header-content {
        padding: 10px 0;
        padding-bottom: 5px;
        gap: 5px;
    }


    /* Header Search Extra Small */
    .header-search-input {
  font-size: 14px;
        padding: 5px 8px;
    }

    .header-search-btn {
        padding: 9px 12px;
    }

    /* Header Actions Extra Small */
    .user-info-header {
        font-size: 11px;
    }

    .user-name-header {
        font-size: 11px;
    }

    .btn-secondary {
        padding: 7px 12px;
        font-size: 12px;
    }

    /* Hero Extra Small */
    .hero-title {
        font-size: 14px;
    }

    /* Section Title Extra Small */
    .section-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    /* Machine Card Extra Small */
    .machine-info {
        padding: 10px;
    }

    .machine-title {
        font-size: 15px;
    }

    .machine-price {
        font-size: 16px;
    }

    .machine-actions {
        gap: 6px;
    }

    .btn-call {
        padding: 6px 12px;
        font-size: 13px;
    }

    /* Categories Grid Extra Small */
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Products Slider Extra Small */
    .products-slider-wrapper {
        padding: 0 15px;
    }

    .slider-nav-btn {
        width: 35px;
        height: 35px;
    }

    .slider-prev {
        left: -5px;
    }

    .slider-next {
        right: -5px;
    }


    /* Footer Extra Small */
    .footer-section h3,
    .footer-section h4 {
        font-size: 16px;
    }

    .footer-section a {
        font-size: 13px;
    }

    /* Notification Mobile */
    .favourite-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
        padding: 12px 16px;
    }

    .favourite-notification-message {
        font-size: 13px;
    }
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: calc(90vh - 60px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 50px;
}

.lightbox img {
    max-width: 100%;
    max-height: calc(90vh - 60px);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.4);
}

.lightbox-dots {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    justify-content: center;
    align-items: center;
}

.lightbox-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.lightbox-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.lightbox-dot.active {
    background: white;
    width: 12px;
    height: 12px;
    border-color: white;
}

@media (max-width: 768px) {
    .lightbox-content {
        max-height: calc(90vh - 80px);
        padding-bottom: 60px;
    }
    
    .lightbox img {
        max-height: calc(90vh - 80px);
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
    }
    
    .lightbox-dots {
        margin-top: 15px;
    }
}

/* Favourite Notification Popup */
.favourite-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
    transform: translateX(0);
}

.favourite-notification.hide {
    animation: slideOutRight 0.3s ease-in forwards;
}

.favourite-notification-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.favourite-notification-icon svg {
    width: 100%;
    height: 100%;
    fill: #dc3545;
    stroke: #dc3545;
}

.favourite-notification-message {
    flex: 1;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Registration Success Notification Popup */
.registration-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #0b538b;
    color: white;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(11, 83, 139, 0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
    transform: translateX(0);
}

.registration-notification.hide {
    animation: slideOutRight 0.3s ease-in forwards;
}

.registration-notification-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.registration-notification-icon svg {
    width: 100%;
    height: 100%;
    stroke: white;
}

.registration-notification-message {
    flex: 1;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    padding: 10px;
    z-index: 10002;
    position: relative;
    /* Usunięta animacja na przycisku */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hamburger:hover {
    background: var(--bg-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hamburger:active {
    transform: scale(0.95);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    /* Bez animacji transformacji */
    border-radius: 2px;
    display: block;
}


/* Hamburger Menu Overlay */
.hamburger-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0; /* pełne przykrycie ekranu, bez dziury na dole */
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    /* Bez animacji pojawiania */
    pointer-events: none;
}

.hamburger-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* Hamburger Menu Sidebar */
.hamburger-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100vw;
    height: 100vh;      /* wysokość widoku */
    min-height: 100vh;  /* zabezpieczenie na mobile */
    background: var(--bg-white);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    /* Bez animacji wysuwania */
    overflow-y: auto;
    display: none; /* domyślnie ukryty na PC */
    flex-direction: column;
}

.hamburger-sidebar.active {
    left: 0;
}

.hamburger-sidebar-header {
    padding: 20px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(11, 83, 139, 0.05) 0%, rgba(11, 83, 139, 0.02) 100%);
    flex-shrink: 0;
    position: relative;
}

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

.hamburger-sidebar-header .logo h1 {
    font-size: 18px;
    margin: 0;
    color: var(--text-dark);
    font-family: 'BBH Sans Hegarty', 'Inter', sans-serif;
}

.hamburger-sidebar-header .logo-subtitle {
    font-size: 10px;
    color: var(--text-light);
	
}

.hamburger-close {
    background: none;
    border: none;
    font-size: 30px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    /* Bez animacji hover – prosty przycisk X */
    line-height: 1;
    box-sizing: border-box;
}

.hamburger-close:hover {
    background: var(--bg-light);
}

.hamburger-sidebar-content {
    flex: 1;
    padding: 0;
    overflow-y: auto;
}

.hamburger-menu-section {
    border-bottom: 1px solid var(--border-color);
}

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

.hamburger-user-info {
    background: linear-gradient(135deg, rgba(11, 83, 139, 0.1) 0%, rgba(11, 83, 139, 0.05) 100%);
    padding: 16px 20px;
}

.hamburger-user-text {
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 500;
    margin-top: 10px;
    margin-bottom: 10px;
}

.hamburger-user-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

.hamburger-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    color: var(--text-dark);
    position: relative;
    text-decoration: none;
    font-size: 18px;  /* trochę większa czcionka wyborów w menu */
    font-weight: 500;
    /* Bez animacji na hover */
    cursor: pointer;
}

.hamburger-menu-link:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    /* Bez przesuwania tekstu przy hover – statyczny wygląd */
}

.hamburger-menu-link.expanded svg {
    transform: rotate(180deg);
}

.hamburger-menu-link svg {
    /* Bez animacji obrotu – zmiana stanu natychmiastowa */
    flex-shrink: 0;
}

.hamburger-menu-badge {
    background: #dc3545;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    line-height: 1.4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-left: 8px;
}

/* Hamburger Categories Dropdown */
.hamburger-categories-dropdown {
    display: none;
    padding: 0 20px 15px;
    background: var(--bg-light);
}

.hamburger-category-group {
    margin-bottom: 8px;
}

.hamburger-category-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-dark);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-category-title:hover {
    color: var(--primary-color);
}

.hamburger-category-title.clickable {
    cursor: pointer;
}

.hamburger-category-title.category-link {
    cursor: pointer;
}

.hamburger-category-items {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    /* Bez animacji rozwijania kategorii – zmiana stanu natychmiastowa */
}

.hamburger-category-items.expanded {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
}

.hamburger-category-item {
    display: block;
    padding: 8px 15px;
    font-size: 14px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-category-item:hover {
    background: rgba(11, 83, 139, 0.1);
    color: var(--primary-color);
    padding-left: 20px;
}

.hamburger-category-item.all-link {
    font-weight: 600;
    color: var(--primary-color);
}

/* Breadcrumbs */
.breadcrumbs {
    margin-top: 15px;
    padding: 20px 0;
    font-size: 16px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: #0b538b;
    text-decoration: none;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

.breadcrumbs a:hover {
    color: #094a7a;
    text-decoration: none;
}

.breadcrumbs span {
    color: var(--text-muted);
    font-weight: 400;
}

/* Mobile styles for hamburger */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .hamburger-sidebar {
        display: flex;
        width: 100%;
        width: 100vw;
    }
}

