/* Shop archive — Brandprint redesign (Figma 1:93) */

.woocommerce-shop main,
.tax-product_cat main,
.tax-product_tag main,
.post-type-archive-product main { padding: 0; margin: 0; }

.woocommerce-shop .woocommerce,
.tax-product_cat .woocommerce,
.post-type-archive-product .woocommerce { padding: 0 !important; }

/* Suppress global h1/h2 underline within shop area */
.bp-shop h1::after, .bp-shop h2::after, .bp-shop h3::after,
.bp-shop__page-title::after,
.bp-card h1::after, .bp-card h2::after, .bp-card h3::after { display: none !important; }
.bp-shop h1, .bp-shop h2, .bp-shop h3,
.bp-shop__page-title,
.bp-card h1, .bp-card h2, .bp-card h3 { margin-bottom: 0; }

/* Breadcrumbs */
.bp-shop__breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 1724px;
    margin: 21px auto 16px;
    padding: 0 20px;
    box-sizing: border-box;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    line-height: 16px;
    color: #000;
}
.bp-shop__breadcrumbs a { color: #000; text-decoration: none; }
.bp-shop__breadcrumbs a:hover { color: #e82693; }
.bp-shop__breadcrumbs-sep {
    display: inline-flex;
    width: 9px;
    height: 18px;
    color: #a7a7a7;
}
.bp-shop__breadcrumbs-sep svg { width: 100%; height: 100%; }
.bp-shop__breadcrumbs-current { color: #a7a7a7; }

/* Page title */
.bp-shop__page-header {
    max-width: 1724px;
    margin: 0 auto 24px;
    padding: 0 20px;
    box-sizing: border-box;
}
.bp-shop__page-title {
    font-family: "Open Sans", sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #212529;
    margin: 0;
    line-height: 1.2;
}

/* Layout: sidebar + content */
.bp-shop {
    max-width: 1724px;
    margin: 0 auto 60px;
    padding: 0 20px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 262px 1fr;
    gap: 40px;
    font-family: "Open Sans", sans-serif;
}

/* ---- Sidebar ---- */
.bp-shop__sidebar { font-family: "Open Sans", sans-serif; }
.bp-shop__cats {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    overflow: hidden;
}
.bp-shop__cat { border-bottom: 1px solid #dee2e6; }
.bp-shop__cat:last-child { border-bottom: 0; }
.bp-shop__cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    color: #212529;
    text-decoration: none;
    font-size: 14px;
    line-height: 18px;
    transition: background .2s ease, color .2s ease;
}
.bp-shop__cat-link:hover { background: #fdeef6; color: #e82693; }
.bp-shop__cat.is-active > .bp-shop__cat-row > .bp-shop__cat-link,
.bp-shop__subcat.is-active > .bp-shop__cat-link {
    background: #e82693;
    color: #fff;
    font-weight: 600;
}
.bp-shop__cat-row {
    display: flex;
    align-items: stretch;
}
.bp-shop__cat-row > .bp-shop__cat-link { flex: 1 1 auto; }
.bp-shop__cat-toggle {
    flex: 0 0 auto;
    background: none;
    border: 0;
    cursor: pointer;
    color: #212529;
    font-size: 18px;
    line-height: 1;
    padding: 0 14px;
    transition: background .2s ease, color .2s ease;
}
.bp-shop__cat-toggle:hover { background: #fdeef6; color: #e82693; }
.bp-shop__cat.is-active > .bp-shop__cat-row > .bp-shop__cat-toggle {
    background: #e82693;
    color: #fff;
}
.bp-shop__subcats {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    display: none;
}
.bp-shop__cat.is-open > .bp-shop__subcats { display: block; }
.bp-shop__subcat { border-bottom: 1px solid #dee2e6; }
.bp-shop__subcat:last-child { border-bottom: 0; }
.bp-shop__subcat .bp-shop__cat-link {
    padding: 8px 14px 8px 28px;
    font-size: 13px;
    color: #495057;
}
.bp-shop__subcat .bp-shop__cat-link:hover { background: #fdeef6; color: #e82693; }

.bp-shop__filters { font-family: "Open Sans", sans-serif; }
.bp-shop__filters-title {
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    color: #212529;
    margin: 0 0 8px;
    border-bottom: 1px solid #949ca4;
    padding-bottom: 8px;
}
.bp-shop__filter-group {
    margin-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 12px;
}
.bp-shop__filter-group:last-of-type { border-bottom: 0; }
.bp-shop__filter-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 6px 0;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 17px;
    color: #212529;
    text-align: left;
    margin: 0 0 0;
}
.bp-shop__filter-chevron {
    width: 10px;
    height: 10px;
    margin-left: 8px;
    border-right: 2px solid #6c757d;
    border-bottom: 2px solid #6c757d;
    transform: rotate(45deg);
    transition: transform .2s ease;
    flex-shrink: 0;
}
.bp-shop__filter-group.is-open .bp-shop__filter-chevron {
    transform: rotate(-135deg);
}
.bp-shop__filter-body {
    display: none;
    margin-top: 10px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 6px;
}
.bp-shop__filter-group.is-open .bp-shop__filter-body { display: block; }
.bp-shop__filter-body::-webkit-scrollbar { width: 6px; }
.bp-shop__filter-body::-webkit-scrollbar-thumb { background: #ced4da; border-radius: 3px; }
.bp-shop__filter-body::-webkit-scrollbar-track { background: transparent; }
.bp-shop__price-form {
    display: flex;
    align-items: center;
    gap: 6px;
}
.bp-shop__price-input {
    flex: 1 1 0;
    width: 100%;
    height: 38px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    color: #212529;
    text-align: center;
    box-sizing: border-box;
    outline: none;
}
.bp-shop__price-input::placeholder { color: #949ca4; }
.bp-shop__price-input:focus { border-color: #e82693; }
.bp-shop__price-sep { color: #949ca4; }

.bp-shop__color-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
}
.bp-shop__color-item label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    line-height: 20px;
    color: #212529;
    cursor: pointer;
}
.bp-shop__color-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}
.bp-shop__color-swatch {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 1px solid #ddd;
    border-radius: 3px;
    flex-shrink: 0;
}
.bp-shop__color-item input:checked + .bp-shop__color-swatch {
    outline: 2px solid #e82693;
    outline-offset: 1px;
}

.bp-shop__plain-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.bp-shop__plain-list label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #212529;
    cursor: pointer;
}

.bp-shop__apply-btn {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: #e82693;
    color: #fff;
    border: 0;
    border-radius: 6px;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
}
.bp-shop__apply-btn:hover { background: #c91f7d; }
.bp-shop__clear-link {
    display: inline-block;
    margin-top: 12px;
    color: #e82693;
    font-size: 13px;
    text-decoration: underline;
}
.bp-shop__clear-link:hover { color: #c91f7d; }

.bp-shop__content { min-width: 0; }

.bp-shop__sortbar {
    background: #f0f3f6;
    border-radius: 10px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.bp-shop__sortbar--bottom { margin: 32px 0; }
.bp-shop__sortbar .woocommerce-ordering {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}
.bp-shop__sortbar .woocommerce-ordering::before {
    content: 'Sortuj wg:';
    font-size: 14px;
    color: #444;
    font-weight: 400;
    line-height: 20px;
}
.bp-shop__sortbar .woocommerce-ordering select,
.bp-shop__perpage select {
    height: 41px;
    min-width: 175px;
    padding: 0 28px 0 14px;
    background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23212529' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 11px center;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    color: #212529;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}
.bp-shop__sortbar .woocommerce-ordering select { min-width: 230px; }
.bp-shop__perpage {
    display: flex;
    align-items: center;
    gap: 12px;
}
.bp-shop__perpage label {
    font-size: 14px;
    color: #444;
    line-height: 20px;
}

/* Hide WooCommerce default result-count (we don't show it in the design) */
.bp-shop__content .woocommerce-result-count { display: none; }

/* ---- Product grid ---- */
.bp-shop__grid.products {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 60px 24px;
}
@media (max-width: 1500px) { .bp-shop__grid.products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1199px) { .bp-shop__grid.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .bp-shop__grid.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; } }

/* Force-override WooCommerce's default float-left layout */
.bp-shop__grid.products li.product { width: 100% !important; margin: 0 !important; float: none !important; clear: none !important; }

.bp-card { list-style: none; }
.bp-card__link {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}
.bp-card__media {
    aspect-ratio: 1 / 1;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 14px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color .2s ease;
}
.bp-card:hover .bp-card__media { border-color: #e82693; }
.bp-card__image,
.bp-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 0;
}
.bp-card__body {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 6px;
}
.bp-card__sku {
    margin: 0;
    font-family: "Inter", "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 17px;
    color: #212529;
}
.bp-card__title {
    margin: 0;
    font-family: "Inter", "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #212529;
}
.bp-card__price {
    margin: 0;
    text-align: center;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #212529;
}
.bp-card__price-sep { margin: 0 6px; color: #9c9797; }
.bp-card__swatches {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}
.bp-card__swatch {
    width: 20px;
    height: 20px;
    border: 1px solid #ddd;
    border-radius: 3px;
    display: inline-block;
}

/* Pagination */
.bp-shop__content .woocommerce-pagination {
    margin: 32px 0 0;
    text-align: center;
}
.bp-shop__content .woocommerce-pagination .page-numbers {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    gap: 6px;
}
.bp-shop__content .woocommerce-pagination a.page-numbers,
.bp-shop__content .woocommerce-pagination span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #fff;
    color: #212529;
    text-decoration: none;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
}
.bp-shop__content .woocommerce-pagination span.page-numbers.current,
.bp-shop__content .woocommerce-pagination a.page-numbers:hover {
    background: #e82693;
    border-color: #e82693;
    color: #fff;
}

.bp-shop__empty {
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    color: #777272;
    margin: 0;
    padding: 40px 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 991px) {
    .bp-shop { grid-template-columns: 1fr; gap: 24px; }
    .bp-shop__sidebar { order: 2; }
    .bp-shop__content { order: 1; }
}

.bp-card__price-label{font-size:10px;font-weight:400;color:#9c9797;margin-left:3px;text-transform:lowercase;}
