/* =============================================
   Shop Archive Page (/sklep/)
   ============================================= */

.shop-archive {
    padding: 8rem 0 12rem;
}

.shop-archive__title {
    text-align: center;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 6rem;
}

.shop-archive__empty {
    text-align: center;
    color: var(--color-neutral-500, #9d9d9c);
    grid-column: 1 / -1;
    padding: 4rem 0;
}

/* ---- Category cards ---- */

.shop-cats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3.2rem;
    margin-bottom: 6rem;
}

.shop-cat {
    flex: 0 1 24rem;
}

.shop-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.shop-cat__image {
    width: 100%;
    margin-bottom: 2.4rem;
}

.shop-cat__image img {
    width: 100%;
    height: auto;
    display: block;
}

.shop-cat__desc {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--color-neutral-900, #000000);
    margin-bottom: 2.4rem;
    flex: 1;
}

.shop-cat__btn {
    width: 100%;
    max-width: 20rem;
}

/* Override WooCommerce button styles (a.button has higher specificity than .button) */
.shop-archive a.shop-cat__btn:not(.button--outline),
.shop-archive a.shop-cat__btn:not(.button--outline):visited {
    display: inline-block;
    width: 100%;
    max-width: 20rem;
    padding: 1.5rem 1.5rem 1.1rem;
    font-size: 2.3rem;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    color: #ffffff;
    background-color: var(--color-primary-400, #00b1eb);
    border: 3px solid var(--color-primary-400, #00b1eb);
    border-radius: 6rem;
    transition: 0.25s ease-in-out;
    box-shadow: none;
}

.shop-archive a.shop-cat__btn,
.shop-archive a.shop-cat__btn:visited {
    display: inline-block;
    width: 100%;
    max-width: 20rem;
    padding: 1.5rem 1.5rem 1.1rem;
    font-size: 2.3rem;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    color: var(--color-primary-400, #00b1eb);
    background-color: transparent;
    border: 3px solid var(--color-primary-400, #00b1eb);
    border-radius: 6rem;
    transition: 0.25s ease-in-out;
    box-shadow: none;
}

.shop-archive a.shop-cat__btn:hover,
.shop-archive a.shop-cat__btn:active {
    color: #ffffff;
    background-color: var(--color-primary-400, #00b1eb);
    border-color: var(--color-primary-400, #00b1eb);
    box-shadow: none;
}

/* ---- Subcategory filters ---- */

.shop-filters {
    margin-bottom: 5rem;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.shop-filters .products-filters__item {
    cursor: pointer;
    background: none;
    border: 2px solid var(--color-primary-400, #00b1eb);
    color: var(--color-primary-400, #00b1eb);
}

.shop-filters .products-filters__item + .products-filters__item {
    margin-left: 1.2rem;
}

@media (max-width: 768px) {
    .shop-filters .products-filters__item + .products-filters__item {
        margin-left: 0;
    }
}

.shop-filters .products-filters__item.is-active,
.shop-filters .products-filters__item:hover {
    background-color: var(--color-primary-400, #00b1eb);
    color: var(--color-neutral-100, #ffffff);
}

/* ---- Products grid ---- */

.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.2rem;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .shop-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .shop-products-grid {
        grid-template-columns: 1fr;
    }
}

.shop-product {
    display: flex;
    flex-direction: column;
    text-align: center;
    color: var(--color-neutral-900, #000000);
    transition: color 0.25s ease-in-out;
}

.shop-product:hover {
    color: var(--color-primary-400, #00b1eb);
}

.shop-product__image {
    width: 100%;
    margin-bottom: 3.2rem;
}

.shop-product__image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.shop-product__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

.shop-product__name {
    font-size: 1.6rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.shop-product__sku {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
}

.shop-product__order {
    width: 100%;
}

