/* ===================================================================
   KOLEKCJE MEBLI - STYLE FRONTEND
   =================================================================== */

/* -------------------------------------------------------------------
   MAIN LAYOUT - Podstawowa struktura
   ------------------------------------------------------------------- */

.kolekcje-main,
.kolekcja-single-main {
    background: #fff;
    padding: 0;
    margin: 0;
}

/* Container-content zapewnia odpowiednią szerokość */
.kolekcje-main .container-content,
.kolekcja-single-main .container-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* -------------------------------------------------------------------
   GRID LAYOUT - 3 KOLUMNY (responsive)
   ------------------------------------------------------------------- */

.kolekcje-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.kolekcje-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.kolekcje-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.kolekcje-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsive - 2 kolumny na tabletach */
@media (max-width: 992px) {
    .kolekcje-grid,
    .kolekcje-grid--3,
    .kolekcje-grid--4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Responsive - 1 kolumna na mobile */
@media (max-width: 576px) {
    .kolekcje-grid,
    .kolekcje-grid--2,
    .kolekcje-grid--3,
    .kolekcje-grid--4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* -------------------------------------------------------------------
   MINIATURKI KOLEKCJI - Hover efekt (zamiana obrazków)
   ------------------------------------------------------------------- */

.kolekcja-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kolekcja-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.kolekcja-tile__imgwrap {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f5f5f5;
}

.kolekcja-tile__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.kolekcja-tile__img.hover {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.kolekcja-tile__imgwrap:hover .kolekcja-tile__img.main {
    opacity: 0;
}

.kolekcja-tile__imgwrap:hover .kolekcja-tile__img.hover {
    display: block;
    opacity: 1;
}

.kolekcja-tile__title {
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin: 0;
}

.kolekcja-tile__title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.kolekcja-tile__title a:hover {
    color: #0073aa;
}

/* -------------------------------------------------------------------
   SINGLE KOLEKCJA - Strona pojedynczej kolekcji
   ------------------------------------------------------------------- */

.kolekcja-single__header {
    margin-bottom: 40px;
}

.kolekcja-single__title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.kolekcja-single__imgwrap {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 12px;
}

.kolekcja-single__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kolekcja-single__desc {
    margin: 40px 0;
    font-size: 16px;
    line-height: 1.8;
}

.kolekcja-single__products-title {
    font-size: 24px;
    font-weight: 600;
    margin: 40px 0 30px;
    text-align: center;
}

/* Produkty używają standardowych stylów WooCommerce - .woocommerce .products */
.kolekcja-single__products .woocommerce {
    margin-bottom: 40px;
}

.kolekcja-single__btn-wrap {
    text-align: center;
    margin: 50px 0;
}

.kolekcja-single__btn {
    display: inline-block;
    padding: 15px 40px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.kolekcja-single__btn:hover {
    background: #005a87;
}

/* -------------------------------------------------------------------
   KATEGORIE KOLEKCJI - Filtry
   ------------------------------------------------------------------- */

.kolekcje-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0;
}

.kolekcje-categories a {
    padding: 10px 20px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.kolekcje-categories a:hover,
.kolekcje-categories a.active {
    background: #0073aa;
    color: #fff;
}

/* -------------------------------------------------------------------
   PAGINACJA
   ------------------------------------------------------------------- */

.kolekcje-pagination {
    margin: 50px 0;
    text-align: center;
}

.kolekcje-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.kolekcje-pagination .page-numbers:hover,
.kolekcje-pagination .page-numbers.current {
    background: #0073aa;
    color: #fff;
}

/* -------------------------------------------------------------------
   TYTUŁ STRONY
   ------------------------------------------------------------------- */

.kolekcje-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin: 40px 0;
}
