/* Home Category Cars Sections - shared styles */
.home-category-section {
    padding: var(--sectionPadding);
    background-color: #fff;
    overflow: hidden;
}

#home-krovininiai-keleiviniai-section {
    padding-bottom: 2rem;
}

#home-lengvieji-section {
    padding-top: 0;
}

/* Category Buttons */
.cs-category-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.cs-category-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--headerColor);
    background-color: #fff;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.cs-category-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: rgba(217, 11, 11, 0.05);
}

.cs-category-btn.active {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.cs-category-btn.active:hover {
    background-color: var(--primary);
    color: #fff;
    opacity: 0.9;
}

/* Category Slider Container */
.cs-category-slider {
    position: relative;
    transition: opacity 0.3s ease, height 0.3s ease;
    min-height: 300px;
    background-color: #fff;
}

.cs-category-slider[style*="display: none"] {
    display: none !important;
}

.cs-category-slider .cs-slider-wrapper {
    background-color: #fff;
}

.home-category-section .cs-content {
    text-align: left;
    margin-bottom: 2rem;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
}

.home-category-section .cs-content:has(.cs-topper) {
    text-align: center;
}

.home-category-section .cs-topper {
    text-align: center;
    margin-bottom: 2rem;
}

.home-category-section .cs-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--headerColor);
    margin: 0;
}

.home-category-section .cs-slider-container {
    position: relative;
    max-width: 80rem;
    margin: 0 auto;
}

.home-category-section .cs-slider-wrapper {
    overflow: hidden;
    position: relative;
}

.home-category-section .cs-slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 100;
    min-height: 300px;
}

.home-category-section .keen-slider {
    overflow: visible;
}

.home-category-section .keen-slider__slide {
    min-width: 0;
}

.home-category-section .cs-item {
    list-style: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    /*border: 1px solid rgba(0, 0, 0, 0.08);*/
    border-radius: 0.75rem;
    background-color: #fff;
    transition: border-color 0.3s;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.home-category-section .cs-item:hover {
    border-color: rgba(0, 0, 0, 0.12);
}

.home-category-section .cs-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-grow: 1;
    text-decoration: none;
    color: inherit;
}

.home-category-section .cs-picture {
    position: relative;
    width: 100%;
    aspect-ratio: 300 / 220;
    overflow: hidden;
    background-color: #fff;
}

.home-category-section .cs-picture img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.home-category-section .cs-item:hover .cs-picture img {
    transform: scale(1.05);
}

.home-category-section .cs-h3 {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    margin: 0;
    padding: 0.5rem 0.75rem;
    font-size: clamp(1.125rem, 1.6vw, 1.375rem);
    font-weight: 600;
    text-align: left;
    color: #1a1a1a;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 0.375rem;
    z-index: 2;
    transition: color 0.3s;
}

.home-category-section .cs-price-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 1rem 1.25rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 2;
    width: 100%;
}

.home-category-section .cs-price-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.home-category-section .cs-price-group {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.home-category-section .cs-price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.home-category-section .cs-price-unit {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.home-category-section .cs-link-text-overlay {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 3;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    backdrop-filter: blur(4px);
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1;
    justify-content: center;
    align-items: center;
    display: flex;
    gap: 0.5rem;
}

.home-category-section .cs-link-text-label {
    white-space: nowrap;
}

.home-category-section .cs-arrow {
    display: inline;
    vertical-align: baseline;
    margin-left: 0.25rem;
    transition: transform 0.3s;
    filter: brightness(1000);
}

.home-category-section .cs-item:hover .cs-h3 {
    color: var(--primary);
}

.home-category-section .cs-link:hover .cs-arrow {
    transform: translateX(5px);
}

.home-category-section .cs-flex {
    padding: 1rem;
    border-radius: 0 0 6px 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    background-color: #fff;
}

.home-category-section .cs-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.home-category-section .cs-spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
}

.home-category-section .cs-spec-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #D90B0B;
    flex-shrink: 0;
}

.home-category-section .cs-spec-icon[src*="transmission.svg"] {
    width: 1.1rem;
}

.home-category-section .cs-spec-value {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--bodyTextColor);
    text-align: center;
    line-height: 1.2;
}

.home-category-section .cs-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.home-category-section .cs-slider-arrow:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #fff;
    transition: none;
}

.home-category-section .cs-slider-arrow:hover svg {
    stroke: #fff;
    fill: var(--primary);
}

.home-category-section .cs-slider-arrow:hover svg path {
    stroke: #fff;
}

.home-category-section .cs-slider-arrow svg {
    stroke: var(--headerColor);
}

.home-category-section .cs-slider-container .cs-slider-prev {
    left: -1.5rem;
}

.home-category-section .cs-slider-container .cs-slider-next {
    right: -1.5rem;
}

/* Mobile - hide arrows when showing 1.2 items */
@media only screen and (max-width: 47.9375rem) {
    .home-category-section .cs-slider-arrow {
        display: none;
    }

    .home-category-section .cs-slider-wrapper {
        overflow: visible;
    }
    
    .home-category-section {
        overflow: visible;
        padding-right: 0;
    }
    
    .home-category-section .cs-title {
        padding-right: 1rem;
    }
}

