/**
 * Category Slider Styles
 */

.ah-cat-section .swiper-slide {
    height: auto;
}

.ah-collection-card {
    background: var(--ah-card-bg, #fff);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ah-card__wrap {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
    padding: 16px;
}

.ah-card__image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* Stała proporcja 4:3 dla wszystkich */
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #f5f5f5;
}

.ah-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transform: scale(1);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
}

.ah-img.hover-zoom:hover {
    transform: scale(1.06);
}

.ah-card__inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: auto;
}

.ah-card__info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    text-align: left;
}

.ah-card__title {
    font-size: 1.125rem;
    line-height: 1.2;
    margin: 0;
    color: #202328;
    font-weight: 600;
}

.ah-card__count {
    font-size: 0.875rem;
    opacity: 0.7;
    color: #6b7280;
}

.ah-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #111827;
    flex-shrink: 0;
    transition: transform 0.25s ease, background 0.25s ease;
}

.ah-card__btn svg {
    display: block;
    width: 20px;
    height: 20px;
}

.ah-card__wrap:hover .ah-card__btn {
    transform: translateX(2px);
    background: #e5e7eb;
}

/* Navigation */
.ah-swiper-nav--bottom {
    margin-top: 20px;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

.ah-swiper-nav--bottom .btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #202328;
    color: #fff;
    border: 0;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
    padding: 0;
}

.ah-swiper-nav--bottom .btn svg {
    display: block;
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.ah-swiper-nav--bottom .btn:hover:not([disabled]) {
    transform: translateY(-2px);
    background: #111827;
}

.ah-swiper-nav--bottom .btn:active:not([disabled]) {
    transform: translateY(0);
}

.ah-swiper-nav--bottom .btn.swiper-button-disabled,
.ah-swiper-nav--bottom .btn[disabled] {
    opacity: 0.3;
    cursor: not-allowed;
}

.ah-cat-section .swiper {
    padding-bottom: 4px;
}

/* Równe wysokości kart */
.ah-cat-section .swiper-wrapper {
    align-items: stretch;
}

/* Responsive */
@media (max-width: 768px) {
    .ah-card__image {
        padding-bottom: 85%; /* Nieco wyższe na mobile */
    }

    .ah-card__title {
        font-size: 1rem;
    }

    .ah-card__count {
        font-size: 0.8125rem;
    }

    .ah-swiper-nav--bottom .btn {
        width: 40px;
        height: 40px;
    }

    .ah-swiper-nav--bottom .btn svg {
        width: 18px;
        height: 18px;
    }
}