/* ============================================
   KOSMETOLOGIA - ARCHIVES & TAXONOMIES
   POPRAWKI WEDŁUG WYTYCZNYCH
   ============================================ */

/* Wyłączenie breadcrumbs od astry theme */
.page-id-2365 .ast-header-breadcrumb,
.page-id-2367 .ast-header-breadcrumb,
.page-id-2369 .ast-header-breadcrumb,
.page-id-2371 .ast-header-breadcrumb,
.page-id-2373 .ast-header-breadcrumb,
.taxonomy-kategoria-zabiegow .ast-header-breadcrumb,
.taxonomy-problemy-skorne .ast-header-breadcrumb,
.taxonomy-efekty-zabiegow .ast-header-breadcrumb,
.taxonomy-partie-ciala .ast-header-breadcrumb,
.single-zabiegi .ast-header-breadcrumb {
    display: none !important;
}

/* Fix dla ast-container - tylko dla kosmetologii */
.kosmetologia-archive-page .ast-container,
.kosmetologia-taxonomy-page .ast-container {
    display: flex;
    flex-direction: column;
}

/* Archive/Taxonomy headers - TYLKO var(--ast-global-color-0) */
.archive-header,
.taxonomy-header,
.problem-header {
    background: var(--ast-global-color-0);
    color: var(--ast-global-color-4);
    border-radius: 16px;
    padding: 40px 20px;
    margin-bottom: 50px;
    text-align: center;
}

.archive-title,
.taxonomy-title,
.problem-title {
    margin: 0 0 15px 0;
    color: var(--ast-global-color-4);
}

.archive-stats strong,
.problem-meta strong {
    font-weight: 700;
}

/* Section titles */
.section-title {
    margin-bottom: 30px;
    text-align: center;
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */

.categories-section {
    margin-bottom: 60px;
}

.categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.category-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Image area — identycznie jak treatment-image */
.category-image {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e0e6ed 100%);
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

/* Placeholder SVG — kiedy brak zdjęcia */
.category-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-placeholder svg {
    width: 60px;
    height: 60px;
    stroke: var(--ast-global-color-0);
    fill: none;
    stroke-width: 2;
    opacity: 0.3;
}

/* Content area — dolna część z padding */
.category-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.category-name {
    margin: 0;
    color: var(--ast-global-color-3);
    font-size: 18px;
}

.category-description {
    color: #6c757d;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
}

.category-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    margin-top: auto;
    border-top: 1px solid #e0e6ed;
}

.category-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--ast-global-color-0);
}

.category-arrow {
    color: var(--ast-global-color-0);
    font-size: 20px;
    transition: transform 0.3s;
}

.category-card:hover .category-arrow {
    transform: translateX(5px);
}

/* ============================================
   TREATMENTS GRID
   ============================================ */

.treatments-section,
.taxonomy-treatments,
.problem-treatments {
    margin-bottom: 60px;
}

.treatments-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.treatment-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.treatment-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.treatment-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Treatment image */
.treatment-image {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e0e6ed 100%);
    overflow: hidden;
}

.treatment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.treatment-card:hover .treatment-image img {
    transform: scale(1.05);
}

.treatment-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.treatment-placeholder svg {
    width: 60px;
    height: 60px;
    stroke: var(--ast-global-color-0);
    fill: none;
    stroke-width: 2;
    opacity: 0.3;
}

/* Badge */
.treatment-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--ast-global-color-0);
    color: var(--ast-global-color-4);
    z-index: 2;
}

/* Treatment content */
.treatment-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.treatment-category {
    color: var(--ast-global-color-0);
    background-color: var(--ast-global-color-8);
    border: 1px solid var(--ast-global-color-0);
    border-radius: 0.5rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    width: fit-content;
}

.treatment-title {
    font-size: 18px;
    color: var(--ast-global-color-3);
    margin: 0;
}

.treatment-excerpt {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.treatment-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    margin-top: auto;
    border-top: 1px solid #e0e6ed;
}

.treatment-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--ast-global-color-0);
}

.treatment-duration {
    font-size: 13px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 4px;
}

.treatment-duration svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 50px 0 30px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 15px;
    background: white;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    color: var(--ast-global-color-3);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.pagination .page-numbers:hover {
    border-color: var(--ast-global-color-0);
    color: var(--ast-global-color-0);
    background: var(--ast-global-color-8);
}

.pagination .page-numbers.current {
    background: var(--ast-global-color-0);
    border-color: var(--ast-global-color-0);
    color: var(--ast-global-color-4);
}

.pagination .page-numbers.dots {
    border: none;
    background: none;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .treatments-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .treatment-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .category-content {
        padding: 25px;
    }
}

@media (min-width: 1025px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .treatments-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .category-content {
        padding: 30px;
    }
}

@media (min-width: 1400px) {
    .treatments-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .archive-header,
    .taxonomy-header,
    .problem-header {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
    
    .category-image {
        height: 180px;
    }
    
    .category-content {
        padding: 15px;
    }
    
    .treatment-image {
        height: 180px;
    }
    
    .treatment-content {
        padding: 15px;
    }
    
    .pagination .page-numbers {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        font-size: 14px;
    }
    
    .treatment-placeholder svg {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .categories-section,
    .treatments-section,
    .taxonomy-treatments,
    .problem-treatments {
        margin-bottom: 40px;
    }
    
    .category-description {
        font-size: 13px;
    }
    
    .treatment-title {
        font-size: 16px;
    }
    
    .treatment-excerpt {
        font-size: 13px;
    }

}