/**
 * assets/css/shop-filters.css
 * Копіювати у /wp-content/themes/{тема}/assets/css/shop-filters.css
 */

:root {
	--sf-green: #32A951;
	--sf-green-dark: #1f8a3d;
	--sf-green-light: #e9f7ee;
	--sf-red: #e6483f;
	--sf-gray: #8a8f98;
	--sf-border: #e3e6ea;
	--sf-text: #221E1B;
}

.sf-shop-layout {
    display: grid;
    grid-template-columns: 28rem 1fr;
    gap: 2rem;
    align-items: start;
    padding-bottom: 8rem;
}

@media ( max-width: 900px ) {
	.sf-shop-layout {
		grid-template-columns: 1fr;
	}
}

/* ---------------- Сайдбар ---------------- */
.sf-box {
    border: 1px solid #B0B0B0;
    border-radius: 2rem;
    overflow: hidden;
    margin-bottom: 2.4rem;
}

.sf-box__title {
    background: var(--sf-green);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    margin: 0;
    padding: 0.95rem 1.8rem 1.15rem 1.8rem;
}

.sf-breadcrumbs {
	font-size: 12px;
	color: #8a8f98;
	padding: 10px 16px;
}
.sf-breadcrumbs a {
	color: #212121;
	text-decoration: none;
}
.sf-breadcrumbs a:hover {
	color: var(--sf-green);
	text-decoration: underline;
}
.sf-breadcrumbs__sep {
	margin: 0 6px;
	color: #626262;
}
.sf-breadcrumbs__current {
	color: #626262;
}

.sf-cat-list,
.sf-cat-children,
.sf-checkbox-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sf-cat-item {
	border-bottom: 1px solid var(--sf-border);
}
.sf-cat-item:last-child { border-bottom: none; }

.sf-cat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sf-cat-link {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 1.4rem 0.5rem 1.5rem 1.8rem;
    text-decoration: none;
    color: var(--sf-text);
    font-size: 1.2rem;
    width: 100%;
    line-height: 1;
    gap: 0.8rem;
}

.sf-cat-item.depth-0 > .sf-cat-row > .sf-cat-link {
	font-weight: 600;
}

.sf-cat-count {
    background: #EBEBEB;
    color: #626262;
    font-size: 0.8rem;
    padding: 0.2rem;
    border-radius: 0.6rem;
    width: 1.8rem;
    height: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

li.sf-cat-item.depth-0 {
    background: #F6FFF8;
}

ul.sf-cat-products {
    background: #FFF;
}

.sf-cat-toggle {
    border: none;
    background: transparent;
    font-size: 2.5rem;
    line-height: 1;
    width: 3.3rem;
    height: 2rem;
    cursor: pointer;
    color: #221E1B;
    padding: 0;
    display: flex;
    align-items: flex-end;
}

.sf-cat-children .sf-cat-link {
	padding-left: 32px;
	font-size: 13.5px;
	color: #4b5563;
}
.sf-cat-children .sf-cat-children .sf-cat-link {
	padding-left: 48px;
}

.sf-cat-products {
    list-style: none;
    margin: 0;
    padding: 0 0 0 2.6rem;
}

.sf-cat-item.depth-1 .sf-cat-products {
	padding-left: 48px;
}
.sf-cat-item.depth-2 .sf-cat-products {
	padding-left: 64px;
}
.sf-cat-product-link {
    display: block;
    padding: 1.15rem 0.8rem;
    font-size: 13px;
    color: #000000;
    text-decoration: none;
    font-weight: 400;
}

.sf-cat-product-link:hover {
	color: var(--sf-green-dark);
	text-decoration: underline;
}

.sf-checkbox-list li {
    padding: 1.1rem 1rem 1.1rem 3.4rem;
    border-bottom: none;
}

.sf-checkbox-list li:last-child { border-bottom: none; }

.sf-checkbox-list label {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.1rem;
    color: #000000;
    cursor: pointer;
}

ul.sf-checkbox-list {
    padding-bottom: 0.7rem;
}

/* ---------------- Верхня частина контенту ---------------- */
.sf-shop-title {
    color: var(--sf-green);
    font-size: 2.15rem;
    font-weight: 700;
    margin: -0.3rem 0 1rem;
}

.sf-shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #B0B0B0;
    padding-bottom: 1rem;
    margin-bottom: 1.6rem;
}

.sf-shop-count {
	color: #000;
    font-size: 1rem;
    margin-top: -1rem;
}

.sf-shop-sort select {
	border: 1px solid #000;
    border-radius: 0.5rem;
    padding: 0.7rem 2rem;
    font-size: 1.2rem;
    background: transparent;
    margin: 0.5rem 0;
    min-width: 17rem;
}

/* ---------------- Сітка товарів ---------------- */
.sf-products-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 4.5rem;
}

@media ( max-width: 1100px ) {
	.sf-products-grid { grid-template-columns: repeat(2, 1fr); }
}

[data-role="sf-products-wrap"].is-loading {
	opacity: .5;
	pointer-events: none;
	transition: opacity .15s ease;
}

/* ---------------- Картка товару ---------------- */
.sf-card {
    border: 1px solid #B0B0B0;
    border-radius: 2.4rem;
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: box-shadow .15s ease;
    box-shadow: 0px 4px 4px 0px #32A95133;
}
.sf-card:hover {
	box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

.sf-card__image {
	display: block;
	margin: 0 auto 8px;
}
.sf-card__image img {
	max-height: 10rem;
	width: auto;
	margin: 0 auto;
}

.sf-card__title {
    font-size: 1.4rem;
    font-weight: 400;
    color: #000;
    text-decoration: none;
    margin-top: -1.4rem;
}

.sf-card__windows-mac {
    font-size: 1rem;
    color: #221E1B;
}

.sf-card__platforms,
.sf-card__availability,
.sf-card__requires {
	display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
    font-size: 1.1rem;
    color: #221E1B;
    line-height: 1.1;
    font-weight: 400;
    padding: 0.2rem 0 0.6rem;
    letter-spacing: -0.5px;
}

.sf-card__requires {
	color: #a8710a;
}

.sf-icon-check::before { content: "✓"; color: var(--sf-green); font-weight: 700; }
.sf-icon-warning::before { content: "⚠"; }

.sf-card__rating {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 12.5px;
	color: var(--sf-gray);
}

.sf-card__price-excl {
	color: var(--sf-green);
    font-size: 1.9rem;
    font-weight: 500;
    letter-spacing: -0.5px;
    margin-top: -0.1rem;
}

.sf-card__price-incl {
    color: #989898;
    font-size: 1.3rem;
    font-weight: 500;
    padding-top: 0.4rem;
}

.sf-card__lizenz {
	text-align: left;
    border-radius: inherit;
}

.sf-card--warning .sf-card__lizenz {
	border-color: var(--sf-red);
}

.sf-card__lizenz-label {
	font-size: 1.25rem;
    color: #221E1B;
    margin: 0.3rem 0 1rem;
    text-align: center;
    font-weight: 500;
}

.sf-card__lizenz-block {
    width: 17rem;
    margin: 0 auto;
    padding-bottom: 1rem;
    border-radius: 0.2rem;
    margin-bottom: -0.3rem;
}

.sf-card__lizenz-options {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
}

.sf-card__lizenz-options label {
    display: flex;
    align-items: center;
    gap: 1.3rem;
    font-size: 1.1rem;
    cursor: pointer;
    margin-left: 0.7rem;
}

.sf-card__lizenz-options input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    flex: 0 0 auto;
    width: 1.3rem;
    height: 1.3rem;
    margin: 0;
    border: none;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: border-color .15s ease;
    box-shadow: 0px 4px 4px 0px #00000040;
}
.sf-card__lizenz-options input[type="radio"]:hover {
	border-color: var(--sf-green);
}
.sf-card__lizenz-options input[type="radio"]:checked {
	border-color: var(--sf-green);
}
.sf-card__lizenz-options input[type="radio"]:checked::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--sf-green);
	transform: translate( -50%, -50% );
}

.sf-badge-popular {
	background: var(--sf-green-dark);
	color: #fff;
	font-size: 10.5px;
	font-style: normal;
	font-weight: 700;
	border-radius: 4px;
	padding: 1px 6px;
	margin-left: auto;
}

.sf-card__lizenz-warning {
    color: #FF2119;
    font-size: 1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    padding: 1.5rem 0 0.7rem 1rem;
}

.sf-card__add-to-cart {
	background: #fff;
    border: 1.5px solid var(--sf-green);
    color: #221E1B;
    font-weight: 400;
    font-size: 13.5px;
    letter-spacing: .02em;
    text-transform: uppercase;
    border-radius: 0.5rem;
    padding: 1rem;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
    width: 100%;
    max-width: 15.3rem;
    margin: 0 auto;
}
.sf-card__add-to-cart:hover {
	background: var(--sf-green);
	color: #fff;
}
.sf-card__add-to-cart.is-added {
	background: var(--sf-green-dark);
	color: #fff;
	border-color: var(--sf-green-dark);
}
.sf-card__add-to-cart.is-loading {
	opacity: .6;
	cursor: progress;
}

.sf-card__meta {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 1rem;
    color: #221E1B;
    justify-content: flex-start;
    width: 100%;
    max-width: 15rem;
    margin: 0 auto 0.8rem;
}
.sf-card__meta li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
}

ul.sf-cat-children {
    background: #fff;
}

/* ---------------- Пагінація ---------------- */
.sf-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 32px;
}
.sf-page-btn {
	border: 1px solid var(--sf-border);
	background: #fff;
	border-radius: 6px;
	width: 34px;
	height: 34px;
	cursor: pointer;
	font-size: 14px;
}
.sf-page-btn.is-active {
	background: var(--sf-green);
	color: #fff;
	border-color: var(--sf-green);
}







@media (max-width: 767px) { 


.sf-cat-toggle {
    font-size: 20px;
    line-height: 1;
    width: 20px;
    height: 20px;
}

.sf-box {
    border: 1px solid #b0b0b0;
    border-radius: 2rem;
    overflow: hidden;
    margin-bottom: 20px;
}

.sf-checkbox-list label {
    font-size: 14px;
}

.sf-shop-title {
    font-size: 20px;
}

.sf-shop-count {
    color: #000;
    font-size: 12px;
    margin-top: -1rem;
}

.sf-shop-sort select {
    border: 1px solid #000;
    border-radius: .5rem;
    padding: .7rem 2rem;
    font-size: 12px;
    background: transparent;
    margin: .5rem 0;
    min-width: 17rem;
}

.sf-card__image img {
    max-height: 110px;
    width: auto;
    margin: 0 auto;
}

.sf-card__title {
    font-size: 14px;
}

.sf-card__windows-mac {
    font-size: 10px;
    color: #221e1b;
}

.sf-card__platforms, .sf-card__availability, .sf-card__requires {
    font-size: 10px;
}

.sf-card__price-excl {
    color: var(--sf-green);
    font-size: 18px;
    line-height: 1.2;
}

.sf-card__lizenz-label {
    font-size: 12px;
}

.sf-card__lizenz-options label {
    font-size: 12px;
}

.sf-card__lizenz-options input[type="radio"] {
    width: 15px;
    height: 15px;
}

.sf-card__add-to-cart {
    max-width: 145px;
    margin: 15px auto 5px;
}

.sf-card__meta {
    font-size: 10px;
    color: #221e1b;
    justify-content: flex-start;
    width: 100%;
    max-width: fit-content;
}

.sf-cat-link {
    font-size: 14px;
}

.sf-box__title {
    font-size: 14px;
}

.page-template-shop-page {
    overflow-x: hidden;
}



}