/* ===== SHOP PAGE ===== */
.shop-page {
    padding-top: 3.7rem;
    padding-bottom: 8rem;
}

.shop-page__inner {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
}

/* --- Sidebar --- */
.shop-page__sidebar {
    width: 22rem;
    flex-shrink: 0;
    position: sticky;
    top: 12rem;
}

.shop-page__sidebar-title {
    font-size: var(--font-size-18);
    font-weight: var(--font-weight-regular);
    line-height: 1;
    color: var(--color-navy-dark);
    margin: 0 0 2.2rem;
}

.shop-page__categories {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.shop-page__cat-label {
    display: flex;
    align-items: center;
    gap: max(10px, 1rem);
    cursor: pointer;
}

.shop-page__cat-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.shop-page__cat-checkbox {
    width: 1.6rem;
    height: 1.6rem;
    flex-shrink: 0;
    border: 0.1rem solid var(--color-navy-dark);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-page__cat-checkbox::after {
    content: '';
    display: none;
    width: 1rem;
    height: 0.7rem;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='7' viewBox='0 0 10 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.707108 2.76592L3.67007 5.70709L8.70711 0.707092' stroke='%23131E46' stroke-linecap='square'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.shop-page__cat-input:checked ~ .shop-page__cat-checkbox::after {
    display: block;
}

.shop-page__cat-text {
    font-size: var(--font-size-14);
    font-weight: var(--font-weight-light);
    line-height: 1;
    color: var(--color-navy-dark);
    transition: color .3s ease;
}

.shop-page__cat-label:hover .shop-page__cat-text{
    color: var(--color-gold);
}

.shop-page__cat-input:checked ~ .shop-page__cat-text {
    font-weight: var(--font-weight-medium);
}

/* --- Products grid --- */
.shop-page__products {
    flex: 1;
    min-width: 0;
}

.shop-page__products ul.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.shop-page__products ul.products li.product {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Reset WooCommerce pseudo-elements */
.shop-page ul.products::after,
.shop-page ul.products::before {
    display: none !important;
}

/* --- Product Badges --- */
.product-card__thumb {
    position: relative;
}

.product-card__badges {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    z-index: 2;
}

.product-card__badge {
    display: inline-block;
    padding: max(4px, 0.4rem) max(10px, 1rem);
    font-size: max(10px, 1rem);
    font-weight: var(--font-weight-regular);
    line-height: 1;
    color: var(--color-white);
}

.product-card__badge--new      { background: #E74C3C; }
.product-card__badge--featured  { background: var(--color-gold); }
.product-card__badge--bestseller { background: var(--color-navy-dark); }

/* --- Pagination --- */
.shop-page .woocommerce-pagination {
    margin-top: 4rem;
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}

.shop-page .woocommerce-pagination ul.page-numbers {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    list-style: none;
    margin: 0;
    padding: 0;
    width: auto;
    height: auto;
    border: none;
    background: transparent;
}

.shop-page .woocommerce-pagination ul.page-numbers li {
    border-right: unset;
    margin: 0;
    padding: 0;
}

.shop-page .woocommerce-pagination ul.page-numbers li > a.page-numbers,
.shop-page .woocommerce-pagination ul.page-numbers li > span.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.4rem;
    height: 4.4rem;
    font-size: var(--font-size-14);
    font-weight: var(--font-weight-regular);
    line-height: 1;
    color: var(--color-navy-dark);
    text-decoration: none;
    border: 0.1rem solid #D8D8D8;
    background: transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.shop-page .woocommerce-pagination ul.page-numbers li > a.page-numbers:hover {
    background: #F5F5F5;
    border-color: var(--color-navy-dark);
}

.shop-page .woocommerce-pagination ul.page-numbers li > span.page-numbers.current {
    background: var(--color-navy-dark);
    color: var(--color-white);
    border-color: var(--color-navy-dark);
}

/* Strzałki prev/next */
.shop-page .woocommerce-pagination ul.page-numbers li > a.prev.page-numbers,
.shop-page .woocommerce-pagination ul.page-numbers li > a.next.page-numbers {
    border: none !important;
    background: transparent !important;
    color: transparent !important;
    width: 4.4rem;
    height: 4.4rem;
    font-size: 0;
}

.shop-page .woocommerce-pagination ul.page-numbers li > a.prev.page-numbers::before,
.shop-page .woocommerce-pagination ul.page-numbers li > a.next.page-numbers::before {
    content: '';
    display: block;
    width: 2rem;
    height: 2rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: background-image 0.3s ease;
}

.shop-page .woocommerce-pagination ul.page-numbers li > a.prev.page-numbers::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23131E46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E");
}

.shop-page .woocommerce-pagination ul.page-numbers li > a.prev.page-numbers:hover::before {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23B88E70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E");
}

.shop-page .woocommerce-pagination ul.page-numbers li > a.next.page-numbers::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23131E46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
}

.shop-page .woocommerce-pagination ul.page-numbers li > a.next.page-numbers:hover::before {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23B88E70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
}
/* --- No products --- */
.woocommerce-info {
    font-size: var(--font-size-16);
    font-weight: var(--font-weight-light);
    line-height: 1.5;
    color: var(--color-navy-dark);
    padding: 3.2rem;
    background: #F5F5F5;
    text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .shop-page__products ul.products {
        grid-template-columns: repeat(2, 1fr);
    }

    .shop-page__sidebar {
        width: 18rem;
    }
}

@media (max-width: 768px) {
    .shop-page__inner {
        flex-direction: column;
        gap: 3.2rem;
    }

    .shop-page__sidebar {
        width: 100%;
        position: static;
    }

    .shop-page__categories {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.2rem;
    }

    .shop-page__products ul.products {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 460px) {
    .shop-page__products ul.products {
        grid-template-columns: 1fr;
    }

}


.woocommerce-shop .product-card{
    background-color: #F5F5F5;
}