/*
Theme Name:   Storefront Child
Template:     storefront
Description:  Child theme for Storefront
Author:       StoreMida
Version:      1.0.1
Text Domain:  storefront-child
*/

/* ==========================================================================
   0. CSS CUSTOM PROPERTIES (Color Palette)
   ========================================================================== */

:root {
	--color-header:      #4a6fd8;
	--color-topbar:      #3a5cbf;
	--color-yellow:      #ffd700;
	--color-yellow-hover:#ffe44d;
	--color-blue-dark:   #1a2a6c;
	--color-accent:      #e94560;
	--color-green:       #0f9b58;
	--color-text-dark:   #1a1a2e;
	--color-text-mid:    #6c757d;
	--color-text-light:  #ffffff;
	--color-bg:          #f5f6fa;
	--color-card:        #ffffff;
	--color-border:      #e8e8e8;
	--radius-sm:         6px;
	--radius-md:         10px;
	--radius-lg:         16px;
	--shadow-card:       0 2px 8px rgba(0, 0, 0, 0.08);
	--shadow-hover:      0 4px 20px rgba(0, 0, 0, 0.12);
	--transition:        0.25s ease;
}

/* ==========================================================================
   1. GLOBAL / BASE
   ========================================================================== */

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: var(--color-text-dark);
	background-color: var(--color-bg);
	-webkit-font-smoothing: antialiased;
}

/* Sticky footer — push footer to bottom on short pages */
#page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

#content {
	flex: 1 0 auto;
}

.site-footer {
	flex-shrink: 0;
}

/* Wider layout */
.col-full {
	max-width: 1320px;
	padding-left: 20px;
	padding-right: 20px;
	margin-left: auto;
	margin-right: auto;
}

a {
	transition: color var(--transition);
}

img {
	max-width: 100%;
	height: auto;
}

/* ==========================================================================
   2. HEADER
   ========================================================================== */

.site-header {
	background-color: #ffffff;
	border-bottom: none;
	padding: 0;
	margin-bottom: 0;
}

/* ---- 2a. Top bar (hidden) ---- */

.top-bar {
	display: none !important;
}

/* ---- 2b. Main header bar ---- */

.main-header-bar {
	background-color: #ffffff;
	background-image: url('assets/img/header-bg.svg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	padding: 16px 0;
}

.main-header-bar__inner {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Logo */
.main-header-bar__inner > .custom-logo-link,
.main-header-bar__inner > .site-title-link {
	display: flex;
	align-items: center;
	text-decoration: none;
	flex-shrink: 0;
}

.main-header-bar__inner .custom-logo {
	width: auto;
	height: 120px;
	object-fit: contain;
	display: block;
}

.main-header-bar__inner .site-title {
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--color-text-light);
	letter-spacing: -0.5px;
	white-space: nowrap;
}

/* Board button */
/* Search */
.header-search {
	width: 300px;
	flex: none;
	margin-left: auto;
}

.header-search form {
	display: flex;
	position: relative;
	margin-bottom: 0;
}

.header-search .search-field,
.header-search input[type="search"] {
	width: 100%;
	padding: 12px 18px !important;
	padding-right: 110px !important;
	border: 2px solid var(--color-border) !important;
	border-radius: var(--radius-md) !important;
	background-color: var(--color-bg) !important;
	color: var(--color-text-dark);
	font-size: 0.95rem;
	font-family: inherit;
	outline: none !important;
	box-shadow: none !important;
	box-sizing: border-box;
	transition: border-color var(--transition), background-color var(--transition);
}

.header-search .search-field::placeholder,
.header-search input[type="search"]::placeholder {
	color: var(--color-text-mid);
}

.header-search .search-field:focus,
.header-search input[type="search"]:focus {
	border-color: var(--color-header) !important;
	background-color: #fff !important;
	box-shadow: none !important;
}

.header-search button[type="submit"],
.header-search input[type="submit"] {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	background: var(--color-header);
	border: none;
	color: #fff;
	padding: 10px 20px;
	border-radius: var(--radius-sm);
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1;
	box-sizing: border-box;
	transition: background-color var(--transition);
}

.header-search button[type="submit"]:hover,
.header-search input[type="submit"]:hover {
	background: var(--color-topbar);
}

/* Account & Cart */
.header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.header-action {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	color: var(--color-text-dark);
	text-decoration: none;
	padding: 6px 12px;
	border-radius: var(--radius-sm);
	transition: color var(--transition), background-color var(--transition);
	position: relative;
}

.header-action:hover {
	color: var(--color-header);
	background-color: var(--color-bg);
}

.header-action svg {
	flex-shrink: 0;
}

.header-action__label {
	font-size: 0.72rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

/* Account icon */
.header-action--account svg {
	stroke: var(--color-header);
}

.header-action--account:hover svg {
	stroke: var(--color-accent);
}

/* Cart icon */
.header-action--cart svg {
	stroke: var(--color-header);
}

.header-action--cart:hover svg {
	stroke: var(--color-accent);
}

.header-action__count {
	position: absolute;
	top: 0;
	right: 4px;
	background: var(--color-accent);
	color: #fff;
	font-size: 0.65rem;
	font-weight: 700;
	width: 18px;
	height: 18px;
	line-height: 18px;
	text-align: center;
	border-radius: 50%;
}

/* ---- 2b-2. Language switcher ---- */

.header-action--lang {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0;
	padding: 0;
	border: 2px solid var(--color-border);
	border-radius: var(--radius-sm);
	overflow: hidden;
}

.sc-lang-btn {
	background: transparent;
	border: none;
	padding: 6px 10px;
	font-size: 0.78rem;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	color: var(--color-text-mid);
	transition: background-color var(--transition), color var(--transition);
	line-height: 1;
}

.sc-lang-btn:hover {
	background-color: var(--color-bg);
	color: var(--color-text-dark);
}

.sc-lang-btn.is-active {
	background-color: var(--color-header);
	color: #fff;
}

.sc-lang-btn + .sc-lang-btn {
	border-left: 1px solid var(--color-border);
}

/* ---- 2c. Category navigation ---- */

.category-nav {
	background-color: rgba(58, 92, 191, 0.75);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(4px);
}

.category-nav .col-full {
	position: relative;
	display: flex;
	align-items: center;
}

/* ── Burger button — hidden on desktop ── */
.category-nav__burger {
	display: none;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	color: #fff;
	padding: 10px 4px;
	cursor: pointer;
}

/* ── Bar wrapper (desktop: flex row, mobile: dropdown) ── */
.category-nav__bar {
	display: flex;
	align-items: center;
	position: relative;
}

/* ── Toggle button (visible on all screens) ── */
.category-nav__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.1);
	border: none;
	color: #fff;
	font-size: 0.88rem;
	font-weight: 600;
	padding: 8px 18px;
	cursor: pointer;
	border-radius: var(--radius-sm) var(--radius-sm) 0 0;
	transition: background var(--transition), color var(--transition);
}

.category-nav__toggle:hover {
	background: rgba(255, 255, 255, 0.18);
}

.category-nav__toggle svg:first-of-type {
	stroke: currentColor;
}

/* Active state — when in shop/product section */
.category-nav__toggle--active {
	background: var(--color-yellow);
	color: var(--color-blue-dark);
	font-weight: 700;
}

.category-nav__toggle--active:hover {
	background: var(--color-yellow-hover);
}

.category-nav__toggle--active svg:first-of-type {
	stroke: var(--color-blue-dark);
}

.category-nav__chevron {
	transition: transform 0.25s ease;
	margin-left: 2px;
}

.category-nav.is-open .category-nav__chevron {
	transform: rotate(180deg);
}

/* ── Dropdown list (hidden by default) ── */
.category-nav__list {
	display: none;
	flex-direction: column;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 300px;
	background: var(--color-header, #1a1a2e);
	border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
	z-index: 1000;
	padding: 6px 0;
	list-style: none;
	margin: 0;
}

.category-nav.is-open .category-nav__list {
	display: flex;
}

/* ── Menu items ── */
.category-nav__item a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 20px;
	color: #fff !important;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
	white-space: nowrap;
	transition: background var(--transition), padding-left var(--transition);
}

.category-nav__item a:hover {
	background: rgba(255, 255, 255, 0.08);
	padding-left: 26px;
	color: var(--color-yellow) !important;
}

.category-nav__item--active a {
	color: var(--color-yellow) !important;
	background: rgba(255, 255, 255, 0.06);
}

/* ── "Усі товари" top item ── */
.category-nav__item--all a {
	font-weight: 600;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	padding-bottom: 12px;
	margin-bottom: 2px;
}

.category-nav__item--all a svg {
	opacity: 0.7;
}

/* ── Item count badge ── */
.category-nav__count {
	margin-left: auto;
	font-size: 0.75rem;
	font-weight: 600;
	background: rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.7);
	padding: 1px 8px;
	border-radius: 10px;
	min-width: 20px;
	text-align: center;
}

.category-nav__item a:hover .category-nav__count {
	background: rgba(255, 255, 255, 0.18);
	color: var(--color-yellow);
}


/* ── Last item: rounded bottom ── */
.category-nav__item:last-child a {
	border-radius: 0 0 var(--radius-md) var(--radius-md);
}


/* ==========================================================================
   3. CONTENT AREA / LAYOUT
   ========================================================================== */

#content {
	background-color: rgba(245, 246, 250, 0.1);
	background-image: url('assets/img/body-bg.svg');
	background-repeat: repeat;
	background-size: 518px 518px;
}

/* ── Breadcrumbs ── */
.sc-breadcrumbs {
	background: var(--color-card);
	border-bottom: 1px solid var(--color-border);
	padding: 10px 0;
	font-size: 0.82rem;
}

.sc-breadcrumbs .col-full {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0;
}

.sc-breadcrumbs a {
	color: var(--color-orange, #F5961B);
	text-decoration: none;
	transition: color var(--transition);
}

.sc-breadcrumbs a:hover {
	color: var(--color-text-dark);
}

.sc-breadcrumbs span {
	color: var(--color-text-dark);
	font-weight: 500;
}

.sc-breadcrumbs__sep {
	margin: 0 6px;
	color: var(--color-orange, #F5961B);
	flex-shrink: 0;
}

.site-content > .col-full,
.hentry {
	background-color: transparent;
}

.content-area {
	background-color: transparent;
}

.site-main {
	padding-top: 0;
}

/* Override Storefront inline styles for header colors */
.site-header,
.main-header-bar,
.top-bar,
.category-nav {
	/* !important to override Customizer inline styles */
}

/* ==========================================================================
   4. HOMEPAGE
   ========================================================================== */

/* ---- 4a. Promo banner ---- */

.promo-banner {
	background: linear-gradient(135deg, var(--color-header) 0%, var(--color-topbar) 50%, var(--color-accent) 100%);
	padding: 0;
	margin-bottom: 0;
}

.promo-banner .col-full {
	padding-top: 0;
	padding-bottom: 0;
}

.promo-banner__content {
	padding: 60px 40px;
	text-align: center;
	max-width: 640px;
	margin: 0 auto;
}

.promo-banner__title {
	font-size: 2rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 12px;
	line-height: 1.2;
}

.promo-banner__text {
	font-size: 1.05rem;
	color: rgba(255, 255, 255, 0.85);
	margin: 0 0 28px;
	line-height: 1.5;
}

.promo-banner__cta {
	display: inline-block;
	background-color: var(--color-accent);
	color: #fff;
	padding: 14px 36px;
	border-radius: var(--radius-md);
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color var(--transition), transform var(--transition);
}

.promo-banner__cta:hover {
	background-color: #d63a54;
	color: #fff;
	transform: translateY(-2px);
}

/* ---- 4b. Homepage sections (product grids) ---- */

.page-template-template-homepage .site-main {
	padding-top: 0;
}

.page-template-template-homepage .site-main > .storefront-product-section,
.page-template-template-homepage .site-main > section {
	padding: 40px 0;
	margin: 0;
}

.page-template-template-homepage .site-main > section:nth-child(even) {
	background-color: #fff;
}

/* Section titles with accent left border */
.storefront-product-section .section-title,
.page-template-template-homepage .site-main section > h2,
.page-template-template-homepage h2.section-title {
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--color-text-dark);
	border-left: 4px solid var(--color-accent);
	padding-left: 16px;
	margin-bottom: 28px;
	line-height: 1.3;
}

/* ---- 4c. Product category cards on homepage ---- */

.storefront-product-section ul.products.columns-4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.storefront-product-section ul.products.columns-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

/* ==========================================================================
   5. PRODUCT CARDS
   ========================================================================== */

ul.products li.product,
ul.products li.product-category {
	background: var(--color-card);
	border-radius: var(--radius-lg);
	border: 2px solid rgba(46, 111, 212, 0.25) !important;
	box-shadow:
		0 6px 24px rgba(123, 45, 142, 0.12),
		0 4px 16px rgba(46, 111, 212, 0.12),
		0 2px 8px rgba(0, 0, 0, 0.10);
	overflow: hidden;
	transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	position: relative;
}

ul.products li.product:hover,
ul.products li.product-category:hover {
	border-color: rgba(46, 111, 212, 0.5) !important;
}

ul.products li.product::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 5px;
	background: linear-gradient(90deg, #7B2D8E, #2E6FD4, #2EAA4A, #F5961B);
	opacity: 1;
	transition: height 0.35s ease;
	z-index: 1;
}

ul.products li.product:hover,
ul.products li.product-category:hover {
	box-shadow:
		0 16px 40px rgba(123, 45, 142, 0.18),
		0 8px 24px rgba(46, 111, 212, 0.16),
		0 4px 12px rgba(0, 0, 0, 0.12);
	transform: translateY(-8px);
}

ul.products li.product:hover::after {
	height: 7px;
}

/* Product image */
ul.products li.product a img,
ul.products li.product > a img {
	border-radius: 0;
	margin: 0;
	transition: transform 0.5s ease, filter 0.5s ease;
}

ul.products li.product:hover a img,
ul.products li.product:hover > a img {
	transform: scale(1.1);
	filter: brightness(1.05);
}

ul.products li.product > a {
	overflow: hidden;
}

ul.products li.product .attachment-woocommerce_thumbnail {
	display: block;
	width: 100%;
}

/* Product info area */
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2 {
	padding: 14px 16px 4px;
	font-size: 0.92rem;
	font-weight: 500;
	color: var(--color-text-dark);
	line-height: 1.4;
	margin: 0;
}

/* Star rating */
ul.products li.product .star-rating {
	margin: 4px 16px 0;
	font-size: 0.8rem;
	color: #f5a623;
}

/* Price */
ul.products li.product .price {
	padding: 8px 16px;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--color-accent);
}

ul.products li.product .price del {
	font-size: 0.85rem;
	color: var(--color-text-mid);
	font-weight: 400;
}

ul.products li.product .price ins {
	text-decoration: none;
	font-weight: 700;
	color: var(--color-accent);
}

/* Add to cart button */
ul.products li.product .button,
ul.products li.product a.add_to_cart_button,
ul.products li.product a.product_type_simple,
ul.products li.product a.product_type_variable {
	display: block;
	width: calc(100% - 32px);
	margin: auto 16px 16px;
	padding: 10px 16px;
	background-color: var(--color-yellow);
	color: var(--color-blue-dark);
	border: none;
	border-radius: var(--radius-sm);
	font-size: 0.88rem;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--transition);
	text-transform: none;
}

ul.products li.product .button:hover,
ul.products li.product a.add_to_cart_button:hover {
	background-color: var(--color-yellow-hover);
	color: var(--color-blue-dark);
}

/* Sale badge */
ul.products li.product .onsale,
span.onsale {
	background-color: var(--color-accent);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: var(--radius-sm);
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	line-height: 1.4;
	text-transform: uppercase;
	border: none;
}

/* Share button — positioned right of price */
ul.products li.product {
	/* already position:relative from above — ensure price row is a reference */
}

ul.products li.product .sc-share-btn {
	position: absolute;
	right: 4px;
	bottom: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1.5px solid var(--color-green, #2EAA4A);
	border-radius: 50%;
	background: #fff;
	color: var(--color-green, #2EAA4A);
	cursor: pointer;
	transition: all 0.2s ease;
	z-index: 3;
}

ul.products li.product .sc-share-btn:hover {
	border-color: var(--color-green, #2EAA4A);
	color: #fff;
	background: var(--color-green, #2EAA4A);
}

ul.products li.product .sc-share-btn svg {
	flex-shrink: 0;
}

/* Share toast notification */
.sc-share-toast {
	position: fixed;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%) translateY(20px);
	background: var(--color-blue-dark, #1a1a2e);
	color: #fff;
	padding: 10px 24px;
	border-radius: var(--radius-sm, 8px);
	font-size: 0.88rem;
	font-weight: 500;
	z-index: 99999;
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.3s ease;
	pointer-events: none;
	white-space: nowrap;
}

.sc-share-toast.show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

/* Category cards — image as full background, title overlay at bottom */

ul.products li.product.product-category img,
ul.products .wc-block-grid__product.product-category img,
.wc-block-grid__products li.product.product-category img,
.wc-block-grid__products .wc-block-grid__product.product-category img {
	margin-bottom: 0 !important;
}

ul.products li.product-category a {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	overflow: hidden;
	height: 100%;
	position: relative;
	min-height: 220px;
}

/* Category image — full card background */
ul.products li.product-category a img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.5s ease, filter 0.5s ease;
	border-bottom: none;
}

ul.products li.product-category:hover a img {
	transform: scale(1.08);
	filter: brightness(1.05);
}

/* Category title — pinned to bottom, fixed 2-line height */
ul.products li.product-category a h2,
ul.products li.product-category a .woocommerce-loop-category__title {
	padding: 8px 14px 10px;
	font-size: 0.95rem;
	font-weight: 800;
	text-align: center;
	margin: 0;
	letter-spacing: 0.3px;
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 2;
	color: #fff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(4px);
	line-height: 1.35;
	height: calc(0.95rem * 1.35 * 2 + 16px + 2px);
	overflow: visible;
	display: flex;
	align-items: center;
	justify-content: center;
}

ul.products li.product-category a:hover h2,
ul.products li.product-category a:hover .woocommerce-loop-category__title {
	background: rgba(0, 0, 0, 0.65);
}

/* Category count badge — above title bar, top-right */
ul.products li.product-category a h2 .count,
ul.products li.product-category a .woocommerce-loop-category__title .count {
	position: absolute;
	top: -12px;
	right: 8px;
	font-size: 0.68rem;
	font-weight: 700;
	color: #333;
	background: #fff;
	border: 2px solid #F5961B;
	padding: 2px 10px;
	border-radius: 10px;
	letter-spacing: 0.3px;
	text-shadow: none;
	line-height: 1.4;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* 4 categories per row on desktop */
ul.products.columns-4 li.product-category,
ul.products.columns-3 li.product-category,
ul.products.columns-5 li.product-category {
	width: auto !important;
}

ul.products.columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.home ul.products {
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

/* ==========================================================================
   6. SINGLE PRODUCT PAGE
   ========================================================================== */

.single-product div.product {
	background: var(--color-card);
	border-radius: var(--radius-lg);
	padding: 30px;
	box-shadow: 0 4px 15px rgba(74, 111, 216, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
	border: 1px solid rgba(74, 111, 216, 0.25) !important;
	margin-top: 20px;
}

.single-product div.product .summary .price {
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--color-accent);
	display: inline-block;
}

/* Share button — single product page */
.sc-share-btn--single {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	vertical-align: middle;
	float: right;
	margin-top: 4px;
	padding: 6px 14px;
	border: 1.5px solid var(--color-green, #2EAA4A);
	border-radius: 20px;
	background: #fff;
	color: var(--color-green, #2EAA4A);
	font-size: 0.85rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.sc-share-btn--single:hover {
	background: var(--color-green, #2EAA4A);
	color: #fff;
}

.sc-share-btn--single svg {
	flex-shrink: 0;
}

/* Callback button — single product */
.sc-callback-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	clear: both;
	width: 100%;
	margin-top: 12px;
	background: #fff;
	border: 1.5px solid var(--color-accent, #3b82f6);
	border-radius: var(--radius-sm, 8px);
	padding: 10px 16px;
	font-size: 14px;
	color: var(--color-accent, #3b82f6);
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}
.sc-callback-btn:hover {
	background: var(--color-accent, #3b82f6);
	color: #fff;
}
.sc-callback-btn svg { flex-shrink: 0; }

/* Callback modal */
.sc-callback-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(0,0,0,0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.sc-callback-modal {
	background: #fff;
	border-radius: 12px;
	padding: 28px 24px 24px;
	max-width: 420px;
	width: 100%;
	position: relative;
	box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.sc-callback-close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #666;
	line-height: 1;
}
.sc-callback-modal h3 {
	margin: 0 0 4px;
	font-size: 18px;
}
.sc-callback-product {
	color: #666;
	font-size: 13px;
	margin: 0 0 16px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.sc-callback-modal label {
	display: block;
	margin-bottom: 12px;
	font-size: 13px;
	font-weight: 500;
	color: #333;
}
.sc-callback-modal input[type="text"],
.sc-callback-modal input[type="tel"],
.sc-callback-modal textarea {
	display: block;
	width: 100%;
	margin-top: 4px;
	padding: 10px 12px;
	border: 1.5px solid #ddd;
	border-radius: 8px;
	font-size: 14px;
	box-sizing: border-box;
	transition: border-color 0.2s;
}
.sc-callback-modal input:focus,
.sc-callback-modal textarea:focus {
	border-color: var(--color-accent, #3b82f6);
	outline: none;
}
.sc-callback-submit {
	width: 100%;
	padding: 12px;
	background: var(--color-accent, #3b82f6);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
	margin-top: 4px;
}
.sc-callback-submit:hover { background: var(--color-accent-hover, #2563eb); }
.sc-callback-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.sc-callback-status {
	text-align: center;
	margin-top: 10px;
	font-size: 13px;
	min-height: 18px;
}
.sc-callback-status--ok { color: #16a34a; }
.sc-callback-status--err { color: #dc2626; }
.sc-callback-success {
	text-align: center;
	padding: 20px 0 8px;
}
.sc-callback-success__icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	background: #16a34a;
	color: #fff;
	border-radius: 50%;
	font-size: 28px;
	line-height: 56px;
	font-weight: 700;
}
.sc-callback-success p {
	font-size: 15px;
	color: #333;
	margin: 0 0 20px;
}

.single-product div.product .single_add_to_cart_button {
	background-color: var(--color-green);
	color: #fff;
	border: none;
	padding: 14px 36px;
	border-radius: var(--radius-sm);
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color var(--transition);
	text-transform: none;
}

.single-product div.product .single_add_to_cart_button:hover {
	background-color: #0b8a4d;
}

/* Hide short description on single product */
.single-product .woocommerce-product-details__short-description {
	display: none;
}

/* Stock availability display */
.single-product div.product p.stock {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85rem;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 20px;
	margin: 10px 0;
}

.single-product div.product p.stock.in-stock {
	background: #e6f4ea;
	color: #1e7e34;
}

.single-product div.product p.stock.out-of-stock {
	background: #fce4e4;
	color: #d63638;
}

/* Product attributes block — after product_meta */
.sc-product-attrs {
	margin-top: 12px;
	padding: 14px 16px;
	background: var(--color-bg-secondary, #f8f9fa);
	border: 1px solid var(--color-border, #e5e7eb);
	border-radius: var(--radius-sm, 8px);
}

.sc-product-attr {
	padding: 4px 0;
	font-size: 0.9rem;
	line-height: 1.5;
}

.sc-product-attr__label {
	font-weight: 600;
	color: var(--color-text-secondary, #6b7280);
}

.sc-product-attr__value {
	color: var(--color-text, #1a1a1a);
}

/* SKU on catalog cards (manager only) */
.sc-loop-sku {
	font-size: 0.7rem;
	color: var(--color-text-secondary, #9ca3af);
	margin: 2px 0 0;
	font-family: monospace;
}

/* Hide SKU on single product for non-managers */
.single-product .sku_wrapper { display: none !important; }
body.sc-is-manager .sku_wrapper { display: inline !important; }

/* Manager — delete product button on single product */
.sc-product-delete-btn {
	display: inline-block;
	margin: 4px 0 0 8px;
	padding: 2px 10px;
	font-size: 0.8rem;
	color: #dc2626;
	border: 1px solid #dc2626;
	border-radius: 4px;
	text-decoration: none;
	transition: all 0.15s;
}
.sc-product-delete-btn:hover {
	background: #dc2626;
	color: #fff;
}

/* Stock on catalog cards */
ul.products li.product .stock {
	font-size: 0.75rem;
	font-weight: 600;
	margin: 4px 0 0;
	padding: 2px 8px;
	border-radius: 10px;
	display: inline-block;
}

ul.products li.product .stock.in-stock {
	background: #e6f4ea;
	color: #1e7e34;
}

ul.products li.product .stock.out-of-stock {
	background: #fce4e4;
	color: #d63638;
}

/* Hide H2 in description tab */
.woocommerce-Tabs-panel--description h2 {
	display: none;
}

/* Related / Upsell products — same card grid as category */
section.related.products,
section.upsells.products {
	margin-top: 40px;
	padding-top: 30px;
	border-top: 1px solid var(--color-border);
}

section.related.products > h2,
section.upsells.products > h2 {
	font-size: 1.3rem;
	font-weight: 700;
	margin: 0 0 20px;
}

section.related.products ul.products,
section.upsells.products ul.products {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
	section.related.products ul.products,
	section.upsells.products ul.products {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
}

@media (max-width: 480px) {
	section.related.products ul.products,
	section.upsells.products ul.products {
		grid-template-columns: 1fr;
		gap: 10px;
	}
}

/* ==========================================================================
   7. BREADCRUMBS
   ========================================================================== */

.woocommerce-breadcrumb,
.storefront-breadcrumb {
	display: none !important;
}

.woocommerce-breadcrumb {
	font-size: 0.82rem;
	color: var(--color-text-mid);
}

.woocommerce-breadcrumb a {
	color: var(--color-text-mid);
	text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
	color: var(--color-accent);
}

.storefront-breadcrumb {
	padding: 0;
	margin-bottom: 0;
}

.storefront-breadcrumb .col-full {
	padding-top: 12px;
	padding-bottom: 12px;
}

/* ==========================================================================
   8. BUTTONS (Global)
   ========================================================================== */

button,
input[type="submit"],
.button,
.wc-block-components-button {
	font-family: inherit;
	border-radius: var(--radius-sm);
	transition: background-color var(--transition), transform var(--transition);
}

.button.alt,
button.alt,
input[type="submit"].alt,
#respond input#submit.alt,
a.button.alt,
.checkout-button,
.wc-block-components-checkout-place-order-button {
	background-color: var(--color-accent);
	border: none;
	color: #fff;
	text-transform: none;
	font-weight: 600;
	border-radius: var(--radius-sm);
}

.button.alt:hover,
button.alt:hover,
a.button.alt:hover,
.checkout-button:hover {
	background-color: #d63a54;
}

.button:not(.alt),
a.button:not(.alt) {
	border-radius: var(--radius-sm);
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */

.site-footer {
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
	color: rgba(255, 255, 255, 0.8);
	padding: 48px 0 0;
	margin-top: 0;
}

.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer .widget-title {
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 16px;
	letter-spacing: 0.3px;
}

.site-footer a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	transition: color var(--transition);
}

.site-footer a:hover {
	color: #fff;
}

.site-footer .widget {
	margin-bottom: 32px;
}

.site-footer ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.site-footer ul li {
	padding: 4px 0;
	font-size: 0.9rem;
}

.footer-widgets {
	background-color: transparent;
	padding: 40px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-widgets .col-full {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 30px;
}

.footer-widgets .block {
	padding: 0;
}

/* Site info / copyright */
.site-info {
	background-color: rgba(0, 0, 0, 0.25);
	padding: 20px 24px;
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.6);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.site-info a {
	color: rgba(255, 255, 255, 0.75);
}

.site-info a:hover {
	color: #fff;
}

.footer-bottom-copy {
	display: inline-flex;
	align-items: center;
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
	transition: color var(--transition);
	flex-shrink: 0;
}

.footer-bottom-copy:hover {
	color: #fff;
}

.footer-bottom-copy img {
	height: 30px !important;
	width: auto !important;
	max-width: none !important;
}

.footer-bottom-copy span {
	font-size: 0.85rem;
}

@media (max-width: 480px) {
	.site-info {
		flex-direction: column;
		gap: 10px;
		text-align: center;
	}
}

/* ==========================================================================
   10. WOOCOMMERCE WIDGETS / SIDEBAR
   ========================================================================== */

.widget {
	font-size: 0.9rem;
}

.widget-area .widget {
	background: var(--color-card);
	border-radius: var(--radius-md);
	padding: 20px;
	box-shadow: var(--shadow-card);
	border: 1px solid var(--color-border);
	margin-bottom: 20px;
}

.widget-area .widget-title {
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--color-border);
}

/* Price filter */
.widget_price_filter .price_slider_wrapper .ui-widget-content {
	background: var(--color-border);
}

.widget_price_filter .ui-slider .ui-slider-handle {
	background: var(--color-accent);
	border: none;
}

.widget_price_filter .ui-slider .ui-slider-range {
	background: var(--color-accent);
}

/* ==========================================================================
   11. CART & CHECKOUT
   ========================================================================== */

table.shop_table {
	border-radius: var(--radius-md);
	overflow: hidden;
	border: 1px solid var(--color-border);
}

table.shop_table th {
	background-color: var(--color-bg);
	font-weight: 600;
}

.cart-collaterals .cart_totals {
	background: var(--color-card);
	border-radius: var(--radius-md);
	padding: 20px;
	box-shadow: var(--shadow-card);
}

/* Hide order summary totals block on cart page */
.wp-block-woocommerce-cart-order-summary-totals-block {
	display: none;
}

/* Rename "Estimated total" → Ukrainian */
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	font-size: 0 !important;
	line-height: 0;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label::after {
	content: 'Орієнтовна сума';
	font-size: 1.125rem;
	line-height: normal;
}

body.lang-ru .wc-block-components-totals-footer-item .wc-block-components-totals-item__label::after {
	content: 'Ориентировочная сумма';
}

/* ==========================================================================
   12. PAGINATION
   ========================================================================== */

.woocommerce-pagination ul.page-numbers {
	display: flex;
	gap: 6px;
	justify-content: center;
	border: none;
}

.woocommerce-pagination ul.page-numbers li {
	border: none;
	overflow: visible;
}

.woocommerce-pagination ul.page-numbers li a,
.woocommerce-pagination ul.page-numbers li span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: var(--radius-sm);
	font-size: 0.9rem;
	font-weight: 500;
	background: var(--color-card);
	color: var(--color-text-dark);
	border: 1px solid var(--color-border);
	text-decoration: none;
	transition: all var(--transition);
}

.woocommerce-pagination ul.page-numbers li a:hover {
	background: var(--color-accent);
	color: #fff;
	border-color: var(--color-accent);
}

.woocommerce-pagination ul.page-numbers li span.current {
	background: var(--color-accent);
	color: #fff;
	border-color: var(--color-accent);
	font-weight: 700;
}

/* ==========================================================================
   13. MESSAGES & NOTICES
   ========================================================================== */

.woocommerce-message,
.woocommerce-info {
	border-top-color: var(--color-green);
	background: #f0faf4;
	border-radius: var(--radius-sm);
}

.woocommerce-message::before,
.woocommerce-info::before {
	color: var(--color-green);
}

.woocommerce-error {
	border-top-color: var(--color-accent);
	border-radius: var(--radius-sm);
}

/* ==========================================================================
   14. FORMS
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select,
.input-text {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	padding: 10px 14px;
	font-family: inherit;
	font-size: 0.9rem;
	transition: border-color var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus,
.input-text:focus {
	border-color: var(--color-accent);
	outline: none;
	box-shadow: 0 0 0 2px rgba(233, 69, 96, 0.1);
}

/* ==========================================================================
   15. SHOP / ARCHIVE PAGE
   ========================================================================== */

.storefront-sorting {
	display: none;
}

.woocommerce-products-header,
.entry-header {
	padding: 20px 0 10px;
	margin-bottom: 10px;
}

.storefront-full-width-content .woocommerce-products-header,
.storefront-full-width-content .entry-header {
	padding-bottom: 10px !important;
}

.woocommerce-products-header__title,
.entry-header .entry-title {
	font-size: 1.6rem;
	font-weight: 700;
	margin: 0;
}

.woocommerce-result-count,
.woocommerce-ordering {
	font-size: 0.85rem;
	color: var(--color-text-mid);
}

.woocommerce-ordering select {
	padding: 8px 12px;
	font-size: 0.85rem;
}

/* ==========================================================================
   16. RESPONSIVE — TABLET (≤ 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
	.col-full {
		padding-left: 16px;
		padding-right: 16px;
	}

	.storefront-product-section ul.products.columns-4 {
		grid-template-columns: repeat(3, 1fr);
	}

	.home ul.products {
		grid-template-columns: repeat(3, 1fr);
	}

	.promo-banner__content {
		padding: 40px 24px;
	}

	.promo-banner__title {
		font-size: 1.6rem;
	}
}

/* ==========================================================================
   17. RESPONSIVE — MOBILE (≤ 768px)
   ========================================================================== */

@media (max-width: 768px) {
	/* Header stacking */
	.main-header-bar__inner {
		flex-wrap: wrap;
		gap: 12px;
	}

	.main-header-bar .site-branding {
		order: 1;
	}

	.header-actions {
		order: 2;
		margin-left: auto;
	}

	.header-search {
		order: 3;
		flex-basis: 100%;
	}

	/* Category nav — mobile: sandwich menu */
	.category-nav__burger {
		display: flex;
	}

	.category-nav__bar {
		display: none;
		flex-direction: column;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--color-header, #1a1a2e);
		border-radius: 0 0 var(--radius-md) var(--radius-md);
		box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
		z-index: 1000;
		padding: 6px 0;
	}

	.category-nav.is-mobile-open .category-nav__bar {
		display: flex;
	}

	.category-nav__toggle {
		width: 100%;
		border-radius: 0;
		padding: 12px 20px;
		justify-content: flex-start;
	}

	/* Catalog dropdown inside mobile — inline, no absolute */
	.category-nav__list {
		position: static;
		min-width: unset;
		border-radius: 0;
		box-shadow: none;
		background: rgba(255, 255, 255, 0.04);
		padding: 0;
		display: none;
	}

	.category-nav.is-open .category-nav__list {
		display: flex;
	}

	.category-nav__item a {
		padding-left: 36px;
		white-space: normal;
		font-size: 0.85rem;
	}

	.category-nav__item--all a {
		padding-left: 36px;
	}

	/* Оголошення & Блог links — yellow in mobile menu */
	a.category-nav__toggle {
		color: var(--color-yellow) !important;
		text-decoration: none;
	}

	a.category-nav__toggle svg {
		stroke: var(--color-yellow);
	}

	/* Active link — dark text on yellow background */
	a.category-nav__toggle--active {
		color: var(--color-blue-dark) !important;
	}

	a.category-nav__toggle--active svg {
		stroke: var(--color-blue-dark);
	}

	/* Product grid */
	.home ul.products,
	.storefront-product-section ul.products.columns-4,
	.storefront-product-section ul.products.columns-3 {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	ul.products li.product .woocommerce-loop-product__title,
	ul.products li.product h2 {
		padding: 10px 12px 4px;
		font-size: 0.85rem;
	}

	ul.products li.product .price {
		padding: 6px 12px;
		font-size: 1rem;
	}

	ul.products li.product .button,
	ul.products li.product a.add_to_cart_button {
		width: calc(100% - 24px);
		margin: auto 12px 12px;
		padding: 8px 12px;
		font-size: 0.82rem;
	}

	/* Promo banner */
	.promo-banner__content {
		padding: 32px 16px;
	}

	.promo-banner__title {
		font-size: 1.3rem;
	}

	.promo-banner__text {
		font-size: 0.9rem;
	}

	.promo-banner__cta {
		padding: 12px 28px;
		font-size: 0.9rem;
	}

	/* Single product */
	.single-product div.product {
		padding: 16px;
		border-radius: var(--radius-sm);
	}

	/* Footer */
	.footer-widgets .col-full {
		grid-template-columns: 1fr;
	}

	/* Section titles */
	.storefront-product-section .section-title,
	.page-template-template-homepage .site-main section > h2 {
		font-size: 1.15rem;
	}
}

/* ==========================================================================
   18. RESPONSIVE — SMALL MOBILE (≤ 480px)
   ========================================================================== */

@media (max-width: 480px) {
	.top-bar__inner {
		flex-direction: column;
		gap: 4px;
		text-align: center;
	}

	.main-header-bar .site-branding .site-title {
		font-size: 1.3rem;
	}

	.header-action__label {
		display: none;
	}

	.header-action {
		padding: 6px 8px;
	}

	.storefront-product-section ul.products.columns-4,
	.storefront-product-section ul.products.columns-3 {
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}

	ul.products li.product .button,
	ul.products li.product a.add_to_cart_button {
		font-size: 0.78rem;
		padding: 8px 8px;
		width: calc(100% - 16px);
		margin: auto 8px 10px;
	}
}

/* ==========================================================================
   19. STOREFRONT OVERRIDES / SPECIFICITY FIXES
   ========================================================================== */

.home.post-type-archive-product .site-header {
	margin-bottom: 5px;
}

/* Override Storefront's default header padding */
#masthead {
	padding: 0;
	border-bottom: none;
}

#masthead .site-branding {
	padding: 0;
	margin: 0;
}

/* Override Storefront Customizer inline background-color on header */
.site-header {
	background-color: #ffffff !important;
}

/* Ensure content areas are clean */
.page-template-template-homepage #primary {
	padding-top: 0;
}

.page-template-template-homepage .entry-content,
.page-template-template-homepage .page .entry-content {
	padding: 0;
}

/* Remove default storefront bottom margin on product loops */
.page-template-template-homepage .storefront-product-section {
	margin-bottom: 0;
}

/* Override parent theme's products grid (float-based) with modern grid */
ul.products {
	display: grid;
	gap: 20px;
}

ul.products::before,
ul.products::after {
	display: none !important;
	content: none !important;
}

ul.products li.product {
	float: none;
	width: auto !important;
	margin: 0 !important;
}

ul.products.columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

ul.products.columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

ul.products.columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

ul.products.columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 768px) {
	ul.products.columns-3,
	ul.products.columns-4,
	ul.products.columns-5 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	ul.products.columns-2,
	ul.products.columns-3,
	ul.products.columns-4,
	ul.products.columns-5 {
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}
}

@media (max-width: 360px) {
	ul.products.columns-2,
	ul.products.columns-3,
	ul.products.columns-4,
	ul.products.columns-5 {
		grid-template-columns: 1fr;
		gap: 10px;
	}
}

/* Ensure product images don't overflow cards */
ul.products li.product a {
	display: block;
	overflow: hidden;
}

/* Fix Storefront's default link colors in header */
.site-header a {
	color: inherit;
}

/* Hide storefront handheld footer bar if not needed */
.storefront-handheld-footer-bar {
	background-color: var(--color-header);
}

.storefront-handheld-footer-bar ul li a {
	color: rgba(255, 255, 255, 0.8);
}

.storefront-handheld-footer-bar ul li.cart .count {
	background-color: var(--color-accent);
}

/* ==========================================================================
   20. LIVE SEARCH DROPDOWN
   ========================================================================== */

.live-search-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: 6px;
	background: var(--color-card);
	border-radius: var(--radius-md);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
	z-index: 9999;
	max-height: 420px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.live-search-dropdown.is-open {
	display: block;
}

/* ---- Items ---- */

.live-search-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	text-decoration: none;
	color: var(--color-text-dark);
	border-bottom: 1px solid var(--color-border);
	transition: background-color 0.15s ease;
}

.live-search-item:last-child {
	border-bottom: none;
}

.live-search-item:hover,
.live-search-item.is-active {
	background-color: #eef3ff;
}

.live-search-item__thumb {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: var(--radius-sm);
	flex-shrink: 0;
	background: var(--color-bg);
}

.live-search-item__info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.live-search-item__title {
	font-size: 0.88rem;
	font-weight: 500;
	color: var(--color-text-dark);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.live-search-item__price {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--color-accent);
}

.live-search-item__price del {
	font-weight: 400;
	color: var(--color-text-mid);
	font-size: 0.78rem;
}

.live-search-item__price ins {
	text-decoration: none;
}

/* ---- No results ---- */

.live-search-empty {
	padding: 24px 14px;
	text-align: center;
	color: var(--color-text-mid);
	font-size: 0.9rem;
}

/* ---- Loading spinner ---- */

.live-search-spinner {
	display: flex;
	justify-content: center;
	padding: 24px 0;
}

.live-search-spinner::after {
	content: '';
	width: 24px;
	height: 24px;
	border: 3px solid var(--color-border);
	border-top-color: var(--color-accent);
	border-radius: 50%;
	animation: live-search-spin 0.6s linear infinite;
}

@keyframes live-search-spin {
	to { transform: rotate(360deg); }
}

/* ---- Mobile (≤ 768px) ---- */

@media (max-width: 768px) {
	.live-search-dropdown {
		max-height: 320px;
	}

	.live-search-item__thumb {
		width: 40px;
		height: 40px;
	}

	.live-search-item {
		padding: 8px 12px;
		gap: 10px;
	}

	.live-search-item__title {
		font-size: 0.82rem;
	}

	.live-search-item__price {
		font-size: 0.8rem;
	}
}

/* ==========================================================================
   21. CLASSIC CHECKOUT — OBLAST → CITY → WAREHOUSE CASCADE
   ========================================================================== */

/* Hide billing country (always Ukraine) and billing state (WOOCCM re-adds it) */
#billing_country_field,
#billing_state_field {
	display: none !important;
}

/* Email is optional — hide WOOCCM's required asterisk */
#billing_email_field label .required {
	display: none !important;
}

/* Hide plugin's empty containers & shipping section (we provide our own) */
#wcus-billing-fields,
#wcus-shipping-fields,
.woocommerce-shipping-fields {
	display: none !important;
}

/* Hide subtotal and shipping rows in order review — total = product price */
.woocommerce-checkout .cart-subtotal,
.woocommerce-checkout .woocommerce-shipping-totals {
	display: none !important;
}

/* Hide payment method label (only COD, no need to show choice) */
.woocommerce-checkout .wc_payment_method label[for="payment_method_cod"] {
	display: none !important;
}

/* ---- Billing fields heading (same style as #order_review_heading) ---- */

.woocommerce-checkout .woocommerce-billing-fields > h3 {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--color-text-dark);
	margin: 0 0 15px;
}

/* ---- Billing fields wrapper (same card as cascade) ---- */

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 16px;
	padding: 20px;
	background: var(--color-card);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row {
	margin: 0;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-wide {
	grid-column: 1 / -1;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-first,
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-last {
	width: 100%;
	float: none;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper label {
	display: block;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--color-text-dark);
	margin-bottom: 6px;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper label abbr {
	color: var(--color-accent);
	text-decoration: none;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper input.input-text,
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper select {
	display: block;
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	font-family: inherit;
	font-size: 0.9rem;
	color: var(--color-text-dark);
	background-color: var(--color-bg);
	box-sizing: border-box;
	transition: border-color var(--transition), box-shadow var(--transition);
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper input.input-text:focus,
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper select:focus {
	border-color: var(--color-accent);
	outline: none;
	box-shadow: 0 0 0 2px rgba(233, 69, 96, 0.1);
}

/* ---- Cascade container (same card style) ---- */

#sc-shipping-cascade {
	margin-top: 24px;
	padding: 20px;
	background: var(--color-card);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
}

#sc-shipping-cascade h3 {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--color-text-dark);
	margin: 0 0 18px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--color-border);
}

#sc-shipping-cascade .form-row {
	margin-bottom: 14px;
}

#sc-shipping-cascade .form-row:last-of-type {
	margin-bottom: 0;
}

#sc-shipping-cascade label {
	display: block;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--color-text-dark);
	margin-bottom: 6px;
}

#sc-shipping-cascade label abbr {
	color: var(--color-accent);
	text-decoration: none;
}

/* ---- Selects & inputs ---- */

.sc-cascade-select,
#sc-shipping-cascade .input-text {
	display: block;
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	font-family: inherit;
	font-size: 0.9rem;
	color: var(--color-text-dark);
	background-color: var(--color-card);
	transition: border-color var(--transition), box-shadow var(--transition);
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
}

.sc-cascade-select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 36px;
}

.sc-cascade-select:focus,
#sc-shipping-cascade .input-text:focus {
	border-color: var(--color-accent);
	outline: none;
	box-shadow: 0 0 0 2px rgba(233, 69, 96, 0.1);
}

.sc-cascade-select:disabled,
#sc-shipping-cascade .input-text:disabled {
	background-color: #f0f0f0;
	color: var(--color-text-mid);
	cursor: not-allowed;
}

/* ---- City autocomplete ---- */

#sc-shipping-cascade .sc-autocomplete-wrap {
	position: relative !important;
	display: block !important;
	width: 100%;
}

#sc-shipping-cascade .sc-autocomplete-list {
	display: none;
	position: absolute !important;
	top: 100%;
	left: 0;
	width: 100%;
	z-index: 1000;
	margin: 0;
	padding: 0;
	list-style: none;
	background: var(--color-card);
	border: 1px solid var(--color-border);
	border-radius: 0 0 var(--radius-sm) var(--radius-sm);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	max-height: 240px;
	overflow-y: auto;
	overscroll-behavior: contain;
	box-sizing: border-box;
}

.sc-autocomplete-list li {
	padding: 10px 14px;
	font-size: 0.9rem;
	cursor: pointer;
	border-bottom: 1px solid var(--color-border);
	transition: background-color 0.15s ease;
}

.sc-autocomplete-list li:last-child {
	border-bottom: none;
}

.sc-autocomplete-list li[data-ref]:hover {
	background-color: #eef3ff;
}

.sc-autocomplete-list li.sc-autocomplete-loading,
.sc-autocomplete-list li.sc-autocomplete-empty {
	color: var(--color-text-mid);
	cursor: default;
	text-align: center;
}

.sc-autocomplete-list li.sc-autocomplete-loading {
	padding: 16px 14px;
}

/* ---- Order review ---- */

.woocommerce-checkout #order_review_heading {
	font-size: 1.2rem;
	font-weight: 700;
	margin-top: 0;
}

.woocommerce-checkout #order_review {
	background: var(--color-card);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 20px;
}

#order_review .shop_table.woocommerce-checkout-review-order-table {
	margin-bottom: 0;
	border-collapse: collapse !important;
}

#order_review .shop_table.woocommerce-checkout-review-order-table th,
#order_review .shop_table.woocommerce-checkout-review-order-table td {
	border: 1px solid var(--color-border) !important;
	padding: 10px 12px;
	vertical-align: middle;
}

/* ---- Product row: thumbnail + name + qty ---- */

.sc-review-item {
	display: flex;
	align-items: center;
	gap: 12px;
}

.sc-review-thumb {
	width: 50px;
	height: 50px;
	object-fit: cover;
	border-radius: var(--radius-sm);
	flex-shrink: 0;
}

.sc-review-name {
	font-size: 0.88rem;
	line-height: 1.3;
}

#order_review .cart_item .product-quantity-col {
	text-align: center;
	white-space: nowrap;
}

#order_review .cart_item .product-total {
	text-align: right;
	font-weight: 600;
	white-space: nowrap;
}

#payment .place-order {
	padding: 1.41575em;
	padding-top: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 0;
	float: none;
	width: 100%;
}

#payment .payment_methods li .payment_box {
	padding-top: 0;
	padding-bottom: 0;
	font-size: 0.7rem;
}

.woocommerce-terms-and-conditions-wrapper {
	font-size: 0.7rem;
}

/* ---- Place order button ---- */

.woocommerce-checkout #place_order {
	background-color: var(--color-green);
	color: #fff;
	border: none;
	padding: 14px 36px;
	border-radius: var(--radius-sm);
	font-size: 1rem;
	font-weight: 600;
	width: 100%;
	cursor: pointer;
	transition: background-color var(--transition);
	text-transform: none;
}

.woocommerce-checkout #place_order:hover {
	background-color: #0b8a4d;
}

/* ==========================================================================
   22. ORDER RECEIVED / THANK YOU PAGE
   ========================================================================== */

/* Hide "Order extra" heading + empty table */
.woocommerce-order > h2.woocommerce-order-details__title,
.woocommerce-order > table.order_details {
	display: none !important;
}

/* Success notice */
.woocommerce-order .woocommerce-notice--success {
	background: #f0faf4;
	border: 1px solid #b8e6cc;
	border-top: 3px solid var(--color-green);
	border-radius: var(--radius-md);
	padding: 16px 20px;
	font-size: 1rem;
	font-weight: 600;
	color: var(--color-text-dark);
	margin-bottom: 20px;
}

/* Order overview list (number, date, total, payment) */
.woocommerce-order .woocommerce-order-overview {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
	padding: 0;
	margin: 0 0 20px;
	background: var(--color-card);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 20px;
}

.woocommerce-order .woocommerce-order-overview li {
	font-size: 0.85rem;
	color: var(--color-text-mid);
	padding: 0;
	border: none;
}

.woocommerce-order ul.order_details li:first-child {
	padding-top: 0;
}

.woocommerce-order .woocommerce-order-overview li strong {
	display: block;
	font-size: 1rem;
	color: var(--color-text-dark);
	margin-top: 4px;
}

/* Hide "Оплата готівкою при отриманні." between overview and details */
.woocommerce-order > p {
	display: none !important;
}

/* Order details section */
.woocommerce-order .woocommerce-order-details {
	background: var(--color-card);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 20px;
	margin-bottom: 20px;
}

.woocommerce-order .woocommerce-order-details__title {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--color-text-dark);
	margin: 0 0 15px;
}

.woocommerce-order .woocommerce-order-details .shop_table {
	border-collapse: collapse !important;
	margin: 0;
	border: none;
	box-shadow: none;
}

.woocommerce-order .woocommerce-order-details .shop_table th,
.woocommerce-order .woocommerce-order-details .shop_table td {
	border: 1px solid var(--color-border) !important;
	padding: 10px 12px;
	vertical-align: middle;
	font-size: 0.9rem;
}

.woocommerce-order .woocommerce-order-details .shop_table thead th {
	background: var(--color-bg);
	font-weight: 600;
}

.woocommerce-order .woocommerce-order-details .shop_table tfoot th {
	text-align: left;
	font-weight: 600;
}

.woocommerce-order .woocommerce-order-details .shop_table a {
	color: var(--color-text-dark);
	text-decoration: none;
}

.woocommerce-order .woocommerce-order-details .shop_table a:hover {
	color: var(--color-accent);
}

/* Customer details (billing + shipping addresses) */
.woocommerce-order .woocommerce-customer-details {
	background: var(--color-card);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 20px;
	margin-bottom: 20px;
}

.woocommerce-order .woocommerce-customer-details .col2-set {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	width: 100%;
	float: none;
	overflow: hidden;
}

.woocommerce-order .woocommerce-customer-details .woocommerce-column--billing-address {
	display: none !important;
}

.woocommerce-order .woocommerce-customer-details .woocommerce-column {
	padding: 16px;
	background: var(--color-bg);
	border-radius: var(--radius-sm);
	float: none;
	width: 100% !important;
	box-sizing: border-box;
}

.woocommerce-order .woocommerce-customer-details .woocommerce-column__title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--color-text-dark);
	margin: 0 0 10px;
}

.woocommerce-order .woocommerce-customer-details address {
	font-size: 0.9rem;
	font-style: normal;
	line-height: 1.6;
	color: var(--color-text-dark);
}

.woocommerce-order .woocommerce-customer-details address p {
	margin: 4px 0;
}

/* ---- Responsive checkout & thank you ---- */

@media (max-width: 768px) {
	.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
		grid-template-columns: 1fr;
		padding: 16px;
	}

	#sc-shipping-cascade {
		padding: 16px;
	}

	.woocommerce-checkout #order_review {
		padding: 14px;
	}

	.woocommerce-order .woocommerce-order-overview {
		grid-template-columns: 1fr 1fr;
	}

	.woocommerce-order .woocommerce-customer-details .woocommerce-columns {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   20. WP ADVERTS — CLASSIFIEDS BOARD
   ========================================================================== */

/* ---- 20a. Hero banner ---- */

.adverts-hero {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 20px;
	background: linear-gradient(135deg, var(--color-header) 0%, var(--color-blue-dark) 100%);
	border-radius: var(--radius-lg);
	padding: 7px 18px;
	margin-bottom: 24px;
}

.adverts-hero__title {
	font-size: 1.8rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 6px;
	line-height: 1.2;
}

.adverts-hero__subtitle {
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.8);
	margin: 0;
	max-width: 100%;
}

.adverts-hero__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 14px 20px;
	margin-bottom: 16px;
	background-color: var(--color-yellow);
	color: var(--color-text-dark);
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
	border-radius: var(--radius-md);
	white-space: nowrap;
	box-shadow: 0 4px 14px rgba(255, 215, 0, 0.35);
	transition: background-color var(--transition), box-shadow var(--transition), transform var(--transition);
	box-sizing: border-box;
}

.adverts-hero__cta:hover,
.adverts-hero__cta:focus {
	background-color: var(--color-yellow-hover);
	color: var(--color-text-dark);
	box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
	transform: translateY(-2px);
}

.adverts-hero__cta svg {
	flex-shrink: 0;
}

/* ---- 20a2. Two-column layout ---- */

/* Force full width for classifieds pages */
.page-id-125 .entry-content,
.page-id-126 .entry-content,
.page-id-127 .entry-content {
	max-width: none !important;
	text-align: left !important;
}

.page-id-125 .entry-content a,
.page-id-126 .entry-content a,
.page-id-127 .entry-content a {
	text-decoration: none !important;
}

.adverts-layout {
	display: grid;
	grid-template-columns: 305px 1fr;
	gap: 24px;
	align-items: start;
}

.adverts-layout__sidebar {
	grid-column: 1;
	grid-row: 1;
}

.adverts-layout__main {
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
}

/* ---- 20a3. Categories sidebar ---- */

.adverts-cats {
	background: var(--color-card);
	border-radius: var(--radius-md);
	border: 1px solid var(--color-border);
	box-shadow: var(--shadow-card);
	overflow: hidden;
	position: sticky;
	top: 24px;
}

.adverts-cats__title {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--color-text-dark);
	margin: 0;
	padding: 16px 18px;
	border-bottom: 2px solid var(--color-bg);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.adverts-cats__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.adverts-cats__item {
	border-bottom: 1px solid var(--color-border);
}

.adverts-cats__item:last-child {
	border-bottom: none;
}

.adverts-cats__parent {
	display: flex;
	align-items: center;
}

.adverts-cats__link {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
	padding: 12px 18px;
	text-decoration: none;
	color: var(--color-text-dark);
	font-size: 0.88rem;
	font-weight: 500;
	transition: background-color var(--transition), color var(--transition);
	min-width: 0;
}

.adverts-cats__link:hover {
	background-color: var(--color-bg);
	color: var(--color-header);
}

.adverts-cats__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: var(--radius-sm);
	background: var(--color-bg);
	color: var(--color-header);
	flex-shrink: 0;
	transition: background-color var(--transition);
}

.adverts-cats__link:hover .adverts-cats__icon {
	background: rgba(74, 111, 216, 0.12);
}

.adverts-cats__name {
	flex: 1;
	min-width: 0;
	word-break: break-word;
}

.adverts-cats__name-last {
	white-space: nowrap;
}

.adverts-cats__name .adverts-cats__count {
	position: relative;
	top: -0.6em;
	margin-left: 2px;
	font-size: 0.6rem;
	font-weight: 700;
	color: #fff;
	background: var(--color-header);
	padding: 1px 5px;
	border-radius: 8px;
	line-height: 1.4;
	min-width: 14px;
	text-align: center;
	display: inline-block;
	vertical-align: top;
}

.adverts-cats__children .adverts-cats__count {
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--color-text-mid);
	background: var(--color-bg);
	padding: 1px 6px;
	border-radius: 8px;
	line-height: 1.4;
}

.adverts-cats__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 100%;
	min-height: 44px;
	padding: 0;
	border: none;
	background: none;
	color: var(--color-text-mid);
	cursor: pointer;
	flex-shrink: 0;
	transition: color var(--transition), transform var(--transition);
}

.adverts-cats__toggle:hover {
	color: var(--color-header);
}

.adverts-cats__toggle svg {
	transition: transform var(--transition);
}

.adverts-cats__item.is-open > .adverts-cats__parent > .adverts-cats__toggle svg {
	transform: rotate(180deg);
}

/* Children — hidden by default */
.adverts-cats__children {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
	background: var(--color-bg);
}

.adverts-cats__item.is-open > .adverts-cats__children {
	max-height: 600px;
}

.adverts-cats__children li a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 9px 18px 9px 60px;
	font-size: 0.84rem;
	color: var(--color-text-mid);
	text-decoration: none;
	transition: color var(--transition), background-color var(--transition);
}

.adverts-cats__children li a:hover {
	color: var(--color-header);
	background: rgba(74, 111, 216, 0.06);
}

.adverts-cats__children li:last-child a {
	padding-bottom: 12px;
}

.adverts-cats__children li:first-child a {
	padding-top: 12px;
}

/* ---- 20b. Search bar (inside hero) ---- */

.adverts-hero .adverts-options {
	width: 100%;
	background: none;
	border: none;
	box-shadow: none;
	padding: 0;
	margin: 0;
}

.adverts-hero .adverts-search-form {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 0 !important;
}

.adverts-hero .adverts-search {
	display: contents;
}

.adverts-hero .adverts-search .advert-input {
	flex: 1;
	width: auto !important;
	float: none !important;
	padding: 0 !important;
}

.adverts-hero .adverts-search .advert-input input[type="text"] {
	width: 100% !important;
	padding: 12px 16px !important;
	border: 2px solid rgba(255,255,255,0.25) !important;
	border-radius: var(--radius-md) !important;
	background: rgba(255,255,255,0.15) !important;
	font-size: 0.95rem;
	font-family: inherit;
	color: #fff;
	outline: none !important;
	box-shadow: none !important;
	box-sizing: border-box;
	transition: border-color var(--transition), background-color var(--transition);
}

.adverts-hero .adverts-search .advert-input input[type="text"]::placeholder {
	color: rgba(255,255,255,0.6);
}

.adverts-hero .adverts-search .advert-input input[type="text"]:focus {
	border-color: rgba(255,255,255,0.5) !important;
	background: rgba(255,255,255,0.25) !important;
}

.adverts-hero .adverts-options-left {
	display: none !important;
}

.adverts-hero .adverts-options-right {
	float: none !important;
	margin: 0;
	flex-shrink: 0;
}

.adverts-hero .adverts-options-fallback {
	display: none !important;
}

.adverts-hero a.adverts-form-submit.adverts-button-small {
	padding: 12px 20px !important;
	background-color: var(--color-yellow) !important;
	color: var(--color-text-dark) !important;
	white-space: nowrap;
}

input.adverts-button,
a.adverts-form-submit.adverts-button-small,
.adverts-form input[type="submit"],
.adverts-form button[type="submit"] {
	display: inline-block !important;
	padding: 7px 32px !important;
	background: #1e7e34 !important;
	color: #fff !important;
	font-size: 1rem !important;
	font-weight: 600 !important;
	font-family: inherit;
	text-align: center !important;
	text-decoration: none !important;
	border: none !important;
	border-radius: 10px !important;
	cursor: pointer;
	transition: background .2s, box-shadow .2s;
	box-shadow: 0 2px 8px rgba(30, 126, 52, 0.3);
	line-height: 1.4 !important;
	width: auto;
}

input.adverts-button:hover,
a.adverts-form-submit.adverts-button-small:hover,
.adverts-form input[type="submit"]:hover,
.adverts-form button[type="submit"]:hover {
	background: #166b2a !important;
	box-shadow: 0 4px 14px rgba(30, 126, 52, 0.45);
}

.adverts-field-actions input.adverts-button[type="submit"],
.adverts-form .adverts-field-actions input[type="submit"] {
	color: #fff !important;
}

.adverts-options-left {
	float: none !important;
}

/* ---- 20c. Listings grid ---- */

.adverts-list {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.adverts-list .adverts-list-empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 48px 24px;
	background: var(--color-card);
	border-radius: var(--radius-md);
	border: 2px dashed var(--color-border);
	color: var(--color-text-mid);
	font-size: 1rem;
}

/* Card — override all WPAdverts defaults */
.adverts-list .advert-item,
.adverts-list .advert-item.advert-item-col-3,
.adverts-list .advert-item.advert-item-col-3:nth-child(n) {
	display: flex !important;
	flex-direction: column;
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	background: var(--color-card);
	border-radius: var(--radius-md);
	border: 1px solid var(--color-border);
	overflow: hidden;
	transition: box-shadow var(--transition), transform var(--transition);
	box-shadow: var(--shadow-card);
	position: relative;
}

.adverts-list .advert-item:hover {
	box-shadow: var(--shadow-hover);
	transform: translateY(-2px);
}

.adverts-list .advert-item a {
	text-decoration: none !important;
	color: inherit;
}

/* Image */
.adverts-list .advert-item .advert-img {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 4/3;
	background: linear-gradient(135deg, var(--color-bg) 0%, #e2e6f0 100%) !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	border-bottom: 1px solid var(--color-border);
	overflow: hidden;
	position: relative;
	line-height: normal !important;
}

.adverts-list .advert-item .advert-img:empty::after {
	content: '';
	display: block;
	width: 48px;
	height: 48px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%23bfc5d3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	opacity: 0.6;
}

.adverts-list .advert-item .advert-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Title */
.adverts-list .advert-item .advert-post-title {
	padding: 14px 16px 8px !important;
	position: relative;
	clear: none !important;
}

.adverts-list .advert-item .advert-link {
	font-size: 0.95rem !important;
	font-weight: 600;
	color: var(--color-text-dark) !important;
	line-height: 1.35 !important;
	display: block !important;
	height: auto !important;
	text-decoration: none !important;
}

.adverts-list .advert-item .advert-link-wrap {
	position: absolute !important;
	inset: 0;
	z-index: 2;
	width: 100% !important;
	height: 100% !important;
	overflow: visible !important;
}

/* Bottom info: date, location, price */
.adverts-list .advert-item .advert-published {
	padding: 0 16px 14px !important;
	margin-top: auto;
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
}

.adverts-list .advert-item .advert-date {
	font-size: 0.8rem;
	color: var(--color-text-mid);
	display: inline !important;
	padding: 0 !important;
}

.adverts-list .advert-item .advert-location {
	font-size: 0.8rem;
	color: var(--color-text-mid);
	display: inline !important;
}

.adverts-list .advert-item .advert-location::before {
	content: '';
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-right: 3px;
	vertical-align: -1px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: contain;
}

/* Show location even in col-3 mode (WPAdverts hides col-1-only by default) */
.adverts-list .advert-item .advert-item-col-1-only.advert-location {
	display: inline !important;
}

/* Price — override plugin absolute positioning */
.adverts-list .advert-item .advert-price {
	position: static !important;
	background: none !important;
	font-size: 1.05rem !important;
	font-weight: 700;
	color: var(--color-green) !important;
	margin-left: auto;
	padding: 0 !important;
	min-width: 0 !important;
	text-align: right !important;
	border-radius: 0 !important;
}

/* ---- 20d. Pagination ---- */

.adverts-pagination {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 28px;
}

.adverts-pagination a,
.adverts-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border-radius: var(--radius-sm);
	font-size: 0.9rem;
	font-weight: 500;
	text-decoration: none;
	transition: all var(--transition);
	border: 1px solid var(--color-border);
	background: var(--color-card);
	color: var(--color-text-dark);
}

.adverts-pagination a:hover {
	border-color: var(--color-header);
	color: var(--color-header);
}

.adverts-pagination .current {
	background: var(--color-header);
	color: #fff;
	border-color: var(--color-header);
}

/* ---- 20d. Single advert page — two-column layout ---- */

/* Hide duplicate entry-title on single advert pages */
.single-advert .entry-header {
	display: none !important;
}

/* Main card */
.wpadverts-single {
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 2px 16px rgba(0,0,0,.07);
	overflow: visible;
	display: grid;
	grid-template-columns: 420px 1fr;
	grid-template-rows: auto auto auto 1fr auto auto;
	grid-template-areas:
		"gallery title"
		"gallery info"
		"gallery details"
		"gallery actions"
		"gallery contact"
		"desc    desc";
}

/* Title */
.sc-advert-title {
	grid-area: title;
	font-size: 1.4rem;
	font-weight: 700;
	color: #222;
	padding: 24px 28px 0;
	margin: 0;
	line-height: 1.3;
}

/* Gallery — left column */
.wpadverts-single .wpadverts-slides {
	grid-area: gallery;
	background: #f8f9fb;
	border-radius: 14px 0 0 0;
	overflow: hidden;
	align-self: start;
	position: sticky;
	top: 80px;
}

.wpadverts-single .wpadverts-slide-img {
	border-radius: 0 !important;
	width: 100%;
	height: auto;
}

.wpadverts-single .wpadverts-slide-nav {
	background: rgba(0,0,0,.03) !important;
}

/* Author + Price — right column */
.adverts-single-box {
	grid-area: info;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 28px !important;
	border-bottom: 1px solid #eef0f4;
	background: none !important;
}

.adverts-single-author {
	display: flex;
	align-items: center;
	gap: 12px;
}

.adverts-single-author-avatar img {
	width: 40px !important;
	height: 40px !important;
	border-radius: 50% !important;
	object-fit: cover;
}

.adverts-single-author-name {
	font-size: 13px;
	line-height: 1.5;
	color: #555;
}

.adverts-single-price {
	float: none !important;
}

.adverts-single-price .adverts-price-box {
	display: inline-block;
	background: #e6f4ea !important;
	color: #1e7e34 !important;
	font-size: 1.3rem;
	font-weight: 700;
	padding: 6px 18px;
	border-radius: 10px;
	border: none !important;
}

/* Details grid — right column */
.adverts-single-grid-details {
	grid-area: details;
	padding: 0 28px !important;
	border: none !important;
}

.adverts-single-grid-details .adverts-grid-row {
	display: flex;
	align-items: center;
	padding: 12px 0 !important;
	border-bottom: 1px solid #f0f1f5 !important;
	border-top: none !important;
}

.adverts-single-grid-details .adverts-grid-row:last-child {
	border-bottom: none !important;
}

.adverts-single-grid-details .adverts-grid-col {
	float: none !important;
	width: auto !important;
}

.adverts-single-grid-details .adverts-col-30 {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 180px;
	color: #888;
	font-size: 13px;
}

.adverts-single-grid-details .adverts-col-65 {
	font-size: 14px;
	color: #333;
}

.adverts-single-grid-details .adverts-col-65 a {
	color: var(--color-header);
	text-decoration: none;
}

.adverts-single-grid-details .adverts-col-65 a:hover {
	text-decoration: underline;
}

.adverts-single-grid-details .adverts-round-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 8px;
	background: var(--color-bg, #f5f6fa);
	color: var(--color-header, #4a6fd8);
	font-size: 14px;
}

/* Actions (contact button + edit/publish) — right column */
.adverts-single-actions {
	grid-area: actions;
	padding: 16px 28px !important;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

a.adverts-show-contact,
a.adverts-show-contact:visited {
	display: inline-block !important;
	padding: 12px 28px !important;
	background: var(--color-header, #4a6fd8) !important;
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	border: none !important;
	border-radius: 10px !important;
	cursor: pointer;
	transition: background .2s;
	text-decoration: none !important;
}

a.adverts-show-contact:hover {
	background: var(--color-blue-dark, #3a5bbf) !important;
}

/* Contact box — right column, below actions */
.adverts-contact-box {
	grid-area: contact;
	margin: 0 28px 0 0 !important;
	padding: 16px 20px !important;
	background: #f8f9fb !important;
	border: 1px solid #eef0f4 !important;
	border-radius: 10px !important;
}

.adverts-contact-method {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 6px 0 !important;
	font-size: 14px;
}

.adverts-contact-icon {
	color: var(--color-header, #4a6fd8);
	font-size: 16px;
}

/* Description — full width below gallery+info */
.adverts-content {
	grid-area: desc;
	padding: 24px 28px !important;
	font-size: 15px;
	line-height: 1.7;
	color: #444;
	border-top: 1px solid #eef0f4;
}

/* Edit / Publish buttons */
a.adverts-button,
a.adverts-button:visited {
	display: inline-block !important;
	padding: 7px 28px !important;
	background: var(--color-header, #4a6fd8) !important;
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	border: none !important;
	border-radius: 10px !important;
	cursor: pointer;
	transition: background .2s;
	text-decoration: none !important;
	text-align: center;
	line-height: 1.4;
}

a.adverts-button:hover {
	background: var(--color-blue-dark, #3a5bbf) !important;
}

/* Publish button — green accent */
a.adverts-button[href*="action=publish"],
input.adverts-button[name="submit"] {
	background: #1e7e34 !important;
}

a.adverts-button[href*="action=publish"]:hover,
input.adverts-button[name="submit"]:hover {
	background: #166b2a !important;
}

/* Single page responsive */
@media (max-width: 768px) {
	.wpadverts-single {
		grid-template-columns: 1fr;
		grid-template-areas:
			"gallery"
			"title"
			"info"
			"details"
			"actions"
			"contact"
			"desc";
	}
	.wpadverts-single .wpadverts-slides {
		position: static;
		border-radius: 14px 14px 0 0;
	}
	.adverts-single-box {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		padding: 16px 18px !important;
	}
	.adverts-single-grid-details {
		padding: 0 18px !important;
	}
	.adverts-single-grid-details .adverts-col-30 {
		min-width: 140px;
	}
	.adverts-content {
		padding: 18px !important;
	}
	.adverts-single-actions {
		padding: 12px 18px !important;
	}
	.adverts-contact-box {
		margin: 0 18px 18px !important;
	}
}

/* ---- 20e. Add listing form ---- */

.adverts-form {
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
}

.adverts-form fieldset {
	border: none;
	padding: 0;
	margin: 0;
	background-color: transparent;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
fieldset,
fieldset legend {
	background-color: transparent !important;
}

/* Card sections */
.sc-form-card {
	background: var(--color-card);
	border-radius: var(--radius-lg);
	padding: 24px 28px;
	box-shadow: var(--shadow-card);
	border: 1px solid var(--color-border);
}

/* Inside cards: grid layout for field rows */
.sc-form-card--ad_main {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 0 16px;
}
.sc-form-card--ad_main .adverts-field-header {
	grid-column: 1 / -1;
}
.sc-form-card--ad_main .adverts-field-name-post_title {
	grid-column: span 5;
}
.sc-form-card--ad_main .adverts-field-name-adverts_price {
	grid-column: span 2;
}
.sc-form-card--ad_main .adverts-field-name-advert_category {
	grid-column: span 5;
}

.sc-form-card--ad_contacts {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 0 16px;
}
.sc-form-card--ad_contacts .adverts-field-header {
	grid-column: 1 / -1;
}
.sc-form-card--ad_contacts .adverts-field-name-adverts_person {
	grid-column: span 4;
}
.sc-form-card--ad_contacts .adverts-field-name-adverts_email {
	grid-column: span 4;
}
.sc-form-card--ad_contacts .adverts-field-name-adverts_phone {
	grid-column: span 4;
}

/* Labels — no wrap in compact rows */
.sc-form-card label {
	white-space: nowrap;
}

/* Header section — outer wrapper */
.adverts-control-group.adverts-field-header {
	margin-top: 0;
	margin-bottom: 8px;
	padding-bottom: 0;
	border-bottom: none;
}
.adverts-control-group.adverts-field-header:first-child {
	margin-top: 0;
}
/* Header section — inner div (single line below title) */
.adverts-control-group > .adverts-field-header {
	padding-bottom: 10px;
	border-bottom: 2px solid var(--color-bg);
	margin: 0;
}

.adverts-field-header .adverts-field-header-title {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--color-header);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.adverts-control-group {
	margin-bottom: 18px;
	overflow: visible !important;
}

.adverts-control-group label {
	display: block;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--color-text-dark);
	margin-bottom: 6px;
}

.adverts-form-required {
	color: var(--color-accent) !important;
	margin-left: 2px;
}

.adverts-control-group input[type="text"],
.adverts-control-group input[type="email"],
.adverts-control-group input[type="tel"],
.adverts-control-group input[type="url"],
.adverts-control-group input[type="number"],
.adverts-control-group textarea,
.adverts-control-group select {
	width: 100% !important;
	padding: 12px 16px !important;
	border: 2px solid var(--color-border) !important;
	border-radius: var(--radius-md) !important;
	background: #fff !important;
	font-size: 0.95rem;
	font-family: inherit;
	color: var(--color-text-dark);
	outline: none !important;
	box-shadow: none !important;
	box-sizing: border-box;
	transition: border-color var(--transition), background-color var(--transition);
}

.adverts-control-group input:focus,
.adverts-control-group textarea:focus,
.adverts-control-group select:focus {
	border-color: var(--color-header) !important;
}

.adverts-control-group textarea {
	min-height: 140px;
	resize: vertical;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

.adverts-control-group select {
	appearance: auto;
}

/* Gallery / image upload — inner area only */
.adverts-field-gallery .adverts-plupload-upload-ui {
	border: 2px dashed var(--color-border);
	border-radius: var(--radius-md);
	padding: 24px;
	text-align: center;
	background: var(--color-bg);
	transition: border-color var(--transition);
}
.adverts-field-gallery .adverts-plupload-upload-ui:hover {
	border-color: var(--color-header);
}

/* Flash success message after ad submission */
.sc-adverts-flash-success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
	border-radius: var(--radius-md);
	padding: 14px 20px;
	margin-bottom: 20px;
	font-size: 0.95rem;
	font-weight: 500;
}

/* Flash error message — soft style */
div.adverts-flash-messages.adverts-flash-error {
	color: #fff;
	border-radius: var(--radius-md);
	padding: 14px 20px;
	font-size: 0.9rem;
}

/* Field validation — only red border on input, no background */
.adverts-form .adverts-field-error {
	border: none !important;
	background-color: transparent !important;
}
.adverts-form .adverts-field-error input,
.adverts-form .adverts-field-error textarea,
.adverts-form .adverts-field-error select,
.adverts-form .adverts-field-error .adverts-multiselect-input {
	border-color: #e74c3c !important;
}
.adverts-form .adverts-field-error-list {
	list-style: none !important;
	margin: 4px 0 0 0 !important;
	padding: 0 !important;
}
.adverts-form .adverts-field-error-list > li {
	color: #e74c3c;
	font-size: 0.85rem;
	margin: 0 !important;
	padding: 0 !important;
}

/* Submit button card-like styling */
.adverts-form fieldset > .adverts-control-group.adverts-field-actions {
	background: var(--color-card);
	border-radius: var(--radius-lg);
	padding: 20px 28px;
	box-shadow: var(--shadow-card);
	border: 1px solid var(--color-border);
	text-align: right;
}

/* Category multiselect — label on top, input full width (like text fields) */
.adverts-form.adverts-form-aligned .adverts-control-group.adverts-field-name-advert_category label {
	float: none !important;
	display: block !important;
	width: 100% !important;
}
.adverts-form.adverts-form-aligned .adverts-control-group > div.adverts-multiselect-holder {
	display: block !important;
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	position: relative;
}
.adverts-form .adverts-multiselect-input {
	width: 100% !important;
	box-sizing: border-box;
}
/* Hide raw <select> before JS converts it to multiselect widget */
.adverts-form select.adverts-multiselect {
	display: none;
}
.adverts-form .adverts-multiselect-options {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100% !important;
	min-width: 280px;
	z-index: 200;
	box-sizing: border-box;
}
/* Ensure category field allows dropdown overflow */
.adverts-form .adverts-field-name-advert_category {
	overflow: visible !important;
}

@media (max-width: 600px) {
	.sc-form-card {
		padding: 16px;
	}
	.sc-form-card--ad_main,
	.sc-form-card--ad_contacts {
		grid-template-columns: 1fr;
	}
	.sc-form-card--ad_main .adverts-field-name-post_title,
	.sc-form-card--ad_main .adverts-field-name-adverts_price,
	.sc-form-card--ad_main .adverts-field-name-advert_category,
	.sc-form-card--ad_contacts .adverts-field-name-adverts_person,
	.sc-form-card--ad_contacts .adverts-field-name-adverts_email,
	.sc-form-card--ad_contacts .adverts-field-name-adverts_phone {
		grid-column: 1 / -1;
	}
}

/* Location cascade field — two fields in a row */
.sc-adverts-location {
	display: flex;
	flex-direction: row;
	gap: 16px;
}
.sc-adverts-location > * {
	flex: 1;
}

.sc-adverts-location__select {
	width: 100% !important;
	padding: 12px 16px !important;
	border: 2px solid var(--color-border) !important;
	border-radius: var(--radius-md) !important;
	background: var(--color-bg) !important;
	font-size: 0.95rem;
	font-family: inherit;
	color: var(--color-text-dark);
	outline: none !important;
	box-sizing: border-box;
	appearance: auto;
}

.sc-adverts-location__select:focus {
	border-color: var(--color-header) !important;
	background: #fff !important;
}

.sc-adverts-location__city-wrap {
	position: relative;
}

/* Override WPAdverts overflow:hidden on the location field's control group */
.adverts-control-group:has(.sc-adverts-location) {
	overflow: visible !important;
}

.sc-adverts-location__city-input {
	width: 100% !important;
	padding: 12px 16px !important;
	border: 2px solid var(--color-border) !important;
	border-radius: var(--radius-md) !important;
	background: #fff !important;
	font-size: 0.95rem;
	font-family: inherit;
	color: var(--color-text-dark);
	outline: none !important;
	box-sizing: border-box;
}

.sc-adverts-location__city-input:focus {
	border-color: var(--color-header) !important;
	background: #fff !important;
}

.sc-adverts-location__city-input:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.sc-adverts-location__results {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 999999;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	background: #fff !important;
	border: 2px solid #4a6fd8 !important;
	border-top: none !important;
	border-radius: 0 0 10px 10px !important;
	max-height: 220px;
	overflow-y: auto;
	box-shadow: 0 4px 20px rgba(0,0,0,.12) !important;
}

.sc-adverts-location__results:empty {
	display: none;
}

.sc-adverts-location__results li {
	padding: 10px 16px;
	font-size: 0.9rem;
	cursor: pointer;
	transition: background-color 0.15s;
}

.sc-adverts-location__results li:hover {
	background: var(--color-bg);
	color: var(--color-header);
}

/* Form submit area — now handled by card styling on .adverts-field-actions */

/* Checkbox / account section */
.adverts-form-input-group-checkbox label {
	display: inline !important;
	font-weight: 400 !important;
	font-size: 0.88rem;
	color: var(--color-text-mid);
}

.adverts-form-input-group-checkbox a {
	color: var(--color-header);
	font-weight: 600;
}

/* ---- 20f. Single advert page ---- */

.adverts-single-details {
	background: var(--color-card);
	border-radius: var(--radius-lg);
	padding: 28px 32px;
	box-shadow: var(--shadow-card);
	border: 1px solid var(--color-border);
}

/* ---- 20g. Manage listings ---- */

.adverts-manage-list {
	background: var(--color-card);
	border-radius: var(--radius-md);
	border: 1px solid var(--color-border);
	overflow: hidden;
}

/* ---- 20h. Responsive ---- */

@media (max-width: 992px) {
	.adverts-hero {
		flex-direction: column;
		text-align: center;
		padding: 28px 24px;
	}

	.adverts-hero__subtitle {
		max-width: 100%;
	}

	.adverts-layout {
		grid-template-columns: 1fr;
	}

	.adverts-layout__sidebar {
		grid-column: 1;
		grid-row: 1;
	}

	.adverts-layout__main {
		grid-column: 1;
		grid-row: 2;
	}

	.adverts-cats {
		position: static;
	}

	.adverts-list {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 600px) {
	.adverts-hero {
		padding: 24px 18px;
	}

	.adverts-hero__title {
		font-size: 1.4rem;
	}

	.adverts-hero__cta {
		padding: 12px 22px;
		font-size: 0.9rem;
	}

	.adverts-list {
		grid-template-columns: 1fr !important;
	}

	.adverts-search {
		flex-direction: column;
	}

	.adverts-form {
		padding: 20px 18px;
	}
}

/* ==========================================================================
   21. AUTH GATE — Login / Register on Add Listing page
   ========================================================================== */

.sc-auth {
	max-width: 480px;
	margin: 0 auto;
}

.sc-auth__header {
	text-align: center;
	margin-bottom: 28px;
}

.sc-auth__title {
	font-size: 1.6rem;
	font-weight: 800;
	color: var(--color-text-dark);
	margin: 0 0 8px;
}

.sc-auth__subtitle {
	font-size: 0.95rem;
	color: var(--color-text-mid);
	margin: 0;
	line-height: 1.5;
}

.sc-auth__card {
	background: var(--color-card);
	border-radius: var(--radius-lg);
	padding: 32px 36px;
	box-shadow: var(--shadow-card);
	border: 1px solid var(--color-border);
}

/* Tabs */
.sc-auth__tabs {
	display: flex;
	gap: 0;
	margin-bottom: 24px;
	border-bottom: 2px solid var(--color-bg);
}

.sc-auth__tab {
	flex: 1;
	padding: 12px 16px;
	border: none;
	background: none;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--color-text-mid);
	cursor: pointer;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	transition: color var(--transition), border-color var(--transition);
}

.sc-auth__tab:hover {
	color: var(--color-header);
}

.sc-auth__tab.is-active {
	color: var(--color-header);
	border-bottom-color: var(--color-header);
}

/* Message */
.sc-auth__message {
	padding: 12px 16px;
	border-radius: var(--radius-sm);
	font-size: 0.9rem;
	margin-bottom: 18px;
	line-height: 1.4;
}

.sc-auth__message--error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

.sc-auth__message--success {
	background: #f0fdf4;
	color: #15803d;
	border: 1px solid #bbf7d0;
}

.sc-auth__message--info {
	background: #eff6ff;
	color: #1d4ed8;
	border: 1px solid #bfdbfe;
}

/* Form fields */
.sc-auth__field {
	margin-bottom: 16px;
}

.sc-auth__field label {
	display: block;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--color-text-dark);
	margin-bottom: 6px;
}

.sc-auth__field input {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid var(--color-border);
	border-radius: var(--radius-md);
	background: var(--color-bg);
	font-size: 0.95rem;
	font-family: inherit;
	color: var(--color-text-dark);
	outline: none;
	box-sizing: border-box;
	transition: border-color var(--transition), background-color var(--transition);
}

.sc-auth__field input:focus {
	border-color: var(--color-header);
	background: #fff;
}

/* Submit button */
.sc-auth__submit {
	display: block;
	width: 100%;
	padding: 14px 20px;
	margin-top: 4px;
	background: var(--color-header);
	color: #fff;
	font-size: 0.95rem;
	font-weight: 700;
	font-family: inherit;
	border: none;
	border-radius: var(--radius-md);
	cursor: pointer;
	transition: background-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.sc-auth__submit:hover {
	background: var(--color-topbar);
	box-shadow: 0 4px 14px rgba(74, 111, 216, 0.35);
	transform: translateY(-1px);
}

.sc-auth__submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

/* Divider */
.sc-auth__divider {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 24px 0;
	color: var(--color-text-mid);
	font-size: 0.85rem;
}

.sc-auth__divider::before,
.sc-auth__divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--color-border);
}

/* Social buttons */
.sc-auth__social {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sc-auth__social-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 12px 16px;
	border: 2px solid var(--color-border);
	border-radius: var(--radius-md);
	background: var(--color-card);
	font-size: 0.9rem;
	font-weight: 600;
	font-family: inherit;
	color: var(--color-text-dark);
	cursor: pointer;
	transition: border-color var(--transition), background-color var(--transition), transform var(--transition);
}

.sc-auth__social-btn:hover {
	border-color: var(--color-text-mid);
	background: var(--color-bg);
	transform: translateY(-1px);
}

.sc-auth__social-btn svg {
	flex-shrink: 0;
}

/* Lost password link */
.sc-auth__lost-password {
	text-align: center;
	margin: 12px 0 0;
}

.sc-auth__lost-password a {
	color: var(--color-header);
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
}

.sc-auth__lost-password a:hover {
	text-decoration: underline;
}

/* Hide WooCommerce defaults when our auth card replaces them */
.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register {
	display: none;
}

/* Hide entry-title when auth card has its own title (not logged in) */
.woocommerce-account:not(.logged-in) .entry-title {
	display: none;
}

/* Responsive */
@media (max-width: 600px) {
	.sc-auth__card {
		padding: 24px 18px;
	}
}

/* ==========================================================================
   21b. "Мої оголошення" — two-column layout
   ========================================================================== */

.sc-manage-wrap {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 30px;
	align-items: start;
}

.sc-manage-sidebar {
	position: sticky;
	top: 100px;
}

.sc-manage-sidebar__btn {
	display: block;
	width: 100%;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	text-align: center;
	text-decoration: none !important;
	transition: all .2s;
	box-sizing: border-box;
}

.sc-manage-sidebar__btn--list {
	background: #fff;
	color: var(--color-text, #333) !important;
	border: 1px solid var(--color-border, #e0e0e0);
	margin-bottom: 8px;
}

.sc-manage-sidebar__btn--list:hover {
	background: #f5f6fa;
}

.sc-manage-sidebar__btn--add {
	background: #1e7e34;
	color: #fff !important;
}

.sc-manage-sidebar__btn--add:hover {
	background: #166b2a;
}

.sc-manage-title {
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 16px;
}

.sc-manage-content {
	min-width: 0;
}

@media (max-width: 768px) {
	.sc-manage-wrap {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.sc-manage-sidebar {
		position: static;
		display: flex;
		gap: 10px;
	}
	.sc-manage-sidebar__btn {
		flex: 1;
	}
}

/* Advert moderation status notices on manage page */
.sc-advert-rejected {
	background: #fce4e4;
	border-left: 4px solid #d63638;
	padding: 10px 14px;
	margin: 8px 0 0;
	border-radius: 0 6px 6px 0;
	font-size: 13px;
	color: #8b1a1a;
}
.sc-advert-rejected strong {
	display: block;
	margin-bottom: 4px;
	color: #d63638;
}
.sc-advert-rejected p {
	margin: 0;
}
.sc-advert-pending {
	background: #fff8e1;
	border-left: 4px solid #f0b849;
	padding: 10px 14px;
	margin: 8px 0 0;
	border-radius: 0 6px 6px 0;
	font-size: 13px;
	color: #6d5200;
}

/* ==========================================================================
   22. MY ACCOUNT — WooCommerce login/register page
   ========================================================================== */

/* My Account — use our auth card for not-logged-in state */
.woocommerce-account:not(.logged-in) .entry-content {
	max-width: 480px !important;
	margin: 0 auto;
}

/* ==========================================================================
   23. CATEGORY FAQ — Accordion
   ========================================================================== */

.sc-faq {
	margin: 40px 0 20px;
}

.sc-faq__title {
	font-size: 1.3rem;
	font-weight: 700;
	margin: 0 0 16px;
	color: var(--color-text-dark);
}

.sc-faq__item {
	background: var(--color-card);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	margin-bottom: 8px;
	overflow: hidden;
	box-shadow: var(--shadow-card);
}

.sc-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 14px 18px;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--color-text-dark);
	font-family: inherit;
	gap: 12px;
	text-align: left;
	transition: background var(--transition);
}

.sc-faq__q:hover {
	background: var(--color-bg);
}

.sc-faq__q span {
	flex: 1;
}

.sc-faq__q svg {
	flex-shrink: 0;
	transition: transform var(--transition);
}

.sc-faq__item.is-open .sc-faq__q svg {
	transform: rotate(180deg);
}

.sc-faq__item.is-open .sc-faq__q {
	border-bottom: 1px solid var(--color-border);
}

.sc-faq__a {
	display: none;
}

.sc-faq__item.is-open .sc-faq__a {
	display: block;
}

.sc-faq__a-inner {
	padding: 14px 18px;
	font-size: 0.88rem;
	line-height: 1.7;
	color: var(--color-text-mid);
}

.sc-faq__a-inner p {
	margin: 0 0 10px;
}

.sc-faq__a-inner p:last-child {
	margin-bottom: 0;
}

.sc-faq__a-inner ul,
.sc-faq__a-inner ol {
	margin: 0 0 10px 18px;
	padding: 0;
}

.sc-faq__a-inner li {
	margin-bottom: 4px;
}

/* ==========================================================================
   24. BLOG — CARD GRID
   ========================================================================== */

/* Grid container */
.sc-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	margin: 24px 0 40px;
}

/* Remove default article styles on blog listing */
.blog #primary article,
.category #primary article,
.tag #primary article {
	margin-bottom: 0;
	padding: 0;
	border: none;
}

/* Card link — the whole card is clickable */
.sc-blog-card__link {
	display: flex;
	flex-direction: column;
	background: var(--color-card);
	border-radius: var(--radius-lg);
	border: 2px solid rgba(46, 111, 212, 0.25);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	box-shadow:
		0 6px 24px rgba(123, 45, 142, 0.10),
		0 4px 16px rgba(46, 111, 212, 0.10),
		0 2px 8px rgba(0, 0, 0, 0.08);
	transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
	position: relative;
	height: 100%;
}

.sc-blog-card__link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #7B2D8E, #2E6FD4, #2EAA4A, #F5961B);
	transition: height 0.35s ease;
}

.sc-blog-card__link:hover {
	border-color: rgba(46, 111, 212, 0.5);
	box-shadow:
		0 16px 40px rgba(123, 45, 142, 0.16),
		0 8px 24px rgba(46, 111, 212, 0.14),
		0 4px 12px rgba(0, 0, 0, 0.10);
	transform: translateY(-6px);
	color: inherit;
}

.sc-blog-card__link:hover::after {
	height: 6px;
}

/* Thumbnail */
.sc-blog-card__thumb {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: var(--color-bg);
}

.sc-blog-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.sc-blog-card__link:hover .sc-blog-card__thumb img {
	transform: scale(1.08);
}

.sc-blog-card__no-thumb {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-border);
}

/* Body */
.sc-blog-card__body {
	padding: 18px 20px 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* Category badge */
.sc-blog-card__cat {
	display: inline-block;
	align-self: flex-start;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #fff;
	background: linear-gradient(135deg, #7B2D8E, #2E6FD4);
	padding: 3px 10px;
	border-radius: 4px;
	margin-bottom: 10px;
}

/* Title */
.sc-blog-card__title {
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--color-text-dark);
	margin: 0 0 8px;
}

.sc-blog-card__link:hover .sc-blog-card__title {
	background-image: linear-gradient(135deg, #7B2D8E, #2E6FD4, #2EAA4A);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* Excerpt */
.sc-blog-card__excerpt {
	font-size: 0.88rem;
	line-height: 1.55;
	color: var(--color-text-mid);
	margin: 0 0 auto;
	padding-bottom: 14px;
}

/* Meta row */
.sc-blog-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 14px;
	border-top: 1px solid var(--color-border);
	font-size: 0.8rem;
	color: var(--color-text-mid);
}

.sc-blog-card__read {
	font-weight: 600;
	color: var(--color-header);
	transition: color var(--transition);
}

.sc-blog-card__link:hover .sc-blog-card__read {
	color: var(--color-accent);
}

/* Responsive */
@media (max-width: 900px) {
	.sc-blog-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}

@media (max-width: 540px) {
	.sc-blog-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

/* Hide sidebar on blog pages — full-width */
.blog #secondary,
.category #secondary,
.tag #secondary,
.single-post #secondary {
	display: none;
}

.blog #primary,
.category #primary,
.tag #primary,
.single-post #primary {
	width: 100%;
}

/* ==========================================================================
   25. SINGLE BLOG POST
   ========================================================================== */

.single-post .hentry {
	background: var(--color-card);
	border-radius: var(--radius-lg);
	padding: 40px 48px;
	box-shadow: 0 4px 15px rgba(74, 111, 216, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
	border: 1px solid rgba(74, 111, 216, 0.2);
	max-width: 820px;
	margin: 20px auto 40px;
}

/* Title */
.single-post .entry-title {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--color-text-dark);
	margin: 0 0 4px;
}

/* Meta row below title */
.sc-post-meta {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	padding: 12px 0 20px;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--color-border);
	font-size: 0.85rem;
	color: var(--color-text-mid);
}

.sc-post-meta time,
.sc-post-meta__author,
.sc-post-meta__comments {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.sc-post-meta__comments {
	color: var(--color-text-mid);
	text-decoration: none;
}

.sc-post-meta__comments:hover {
	color: var(--color-accent);
}

.sc-post-meta svg {
	opacity: 0.6;
}

/* Hide default Storefront post meta in single post */
.single-post .entry-header > .posted-on,
.single-post .entry-header > .post-author,
.single-post .entry-header > .post-comments {
	display: none;
}

/* Remove parent theme border-bottom on entry-header (our sc-post-meta handles it) */
.single-post .hentry .entry-header {
	border-bottom: none;
	margin-bottom: 0;
}

/* Featured image */
.single-post .entry-content > .wp-post-image {
	width: 100%;
	height: auto;
	border-radius: var(--radius-md);
	margin-bottom: 28px;
}

/* Content typography */
.single-post .entry-content h2 {
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--color-text-dark);
	margin: 32px 0 14px;
}

.single-post .entry-content h3 {
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--color-text-dark);
	margin: 24px 0 10px;
}

.single-post .entry-content p {
	font-size: 1rem;
	line-height: 1.75;
	color: var(--color-text-dark);
	margin: 0 0 16px;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
	margin: 0 0 20px 24px;
	padding: 0;
}

.single-post .entry-content li {
	font-size: 1rem;
	line-height: 1.7;
	margin-bottom: 6px;
}

.single-post .entry-content li strong {
	color: var(--color-header);
}

/* Hide taxonomy aside */
.single-post .entry-taxonomy {
	display: none;
}

/* Share block */
.sc-post-share {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	padding: 20px 0;
	margin-top: 32px;
	border-top: 1px solid var(--color-border);
}

.sc-post-share__label {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--color-text-dark);
	margin-right: 4px;
}

.sc-share-btn--post {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: 1.5px solid var(--color-green, #2EAA4A);
	border-radius: 20px;
	background: #fff;
	color: var(--color-green, #2EAA4A);
	font-size: 0.82rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
}

.sc-share-btn--post:hover {
	background: var(--color-green, #2EAA4A);
	color: #fff;
}

.sc-share-btn--post svg {
	flex-shrink: 0;
}

/* Post navigation */
.sc-post-nav {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding: 24px 0 0;
	margin-top: 20px;
}

/* Border-top only when no share block above */
.sc-post-nav:first-child,
.entry-taxonomy + .sc-post-nav {
	border-top: 1px solid var(--color-border);
}

.sc-post-nav__link {
	display: flex;
	flex-direction: column;
	gap: 4px;
	text-decoration: none;
	max-width: 45%;
	padding: 12px 16px;
	border-radius: var(--radius-sm);
	transition: background var(--transition);
}

.sc-post-nav__link:hover {
	background: var(--color-bg);
}

.sc-post-nav__next {
	text-align: right;
	margin-left: auto;
}

.sc-post-nav__dir {
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--color-header);
}

.sc-post-nav__title {
	font-size: 0.9rem;
	color: var(--color-text-dark);
	font-weight: 500;
	line-height: 1.4;
}

/* Comments section */
.single-post #comments {
	max-width: 820px;
	margin: 0 auto 40px;
	background: var(--color-card);
	border-radius: var(--radius-lg);
	padding: 30px 48px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	border: 1px solid rgba(74, 111, 216, 0.15);
}

.single-post .comment-reply-title {
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--color-text-dark);
}

.single-post .must-log-in {
	font-size: 0.92rem;
	color: var(--color-text-mid);
}

.single-post .must-log-in a {
	color: var(--color-header);
	font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
	.single-post .hentry {
		padding: 24px 20px;
		margin: 12px auto 24px;
	}

	.single-post .entry-title {
		font-size: 1.5rem;
	}

	.single-post #comments {
		padding: 20px;
	}

	.sc-post-nav {
		flex-direction: column;
	}

	.sc-post-nav__link {
		max-width: 100%;
	}

	.sc-post-nav__next {
		text-align: left;
	}
}

/* ==========================================================================
   23. SHOP FILTERS SIDEBAR
   ========================================================================== */

.sc-shop-with-filters {
	display: flex;
	gap: 24px;
	align-items: flex-start;
}

.sc-shop-products {
	flex: 1;
	min-width: 0;
}

/* Filters sidebar */
.sc-filters-sidebar {
	flex: 0 0 240px;
	width: 240px;
	position: sticky;
	top: 20px;
	background: var(--color-card, #fff);
	border: 1px solid var(--color-border, #e5e7eb);
	border-radius: var(--radius-md, 12px);
	box-shadow: var(--shadow-card, 0 1px 3px rgba(0,0,0,.06));
	padding: 16px;
	box-sizing: border-box;
}

.sc-filters-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--color-text, #1a1a1a);
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--color-border, #e5e7eb);
}

/* Accordion group */
.sc-filter-group {
	border-bottom: 1px solid var(--color-border, #e5e7eb);
}

.sc-filter-group:last-of-type {
	border-bottom: none;
}

.sc-filter-group__toggle {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 10px 0;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	color: var(--color-text, #1a1a1a);
	gap: 8px;
}

.sc-filter-group__toggle span:first-child {
	flex: 1;
	text-align: left;
}

.sc-filter-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	font-size: 11px;
	font-weight: 700;
	border-radius: 10px;
	background: var(--color-accent, #F5961B);
	color: #fff;
}

.sc-filter-chevron {
	flex-shrink: 0;
	transition: transform 0.2s ease;
	color: var(--color-text-secondary, #6b7280);
}

.sc-filter-group.is-open .sc-filter-chevron {
	transform: rotate(180deg);
}

.sc-filter-group__body {
	padding: 0 0 10px;
}

/* Checkboxes */
.sc-filter-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 0;
	cursor: pointer;
	font-size: 13px;
	color: var(--color-text, #1a1a1a);
	line-height: 1.3;
}

.sc-filter-checkbox input[type="checkbox"] {
	display: none;
}

.sc-filter-checkbox__mark {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	border: 2px solid var(--color-border, #d1d5db);
	border-radius: 4px;
	background: #fff;
	position: relative;
	transition: all 0.15s ease;
}

.sc-filter-checkbox input:checked + .sc-filter-checkbox__mark {
	background: var(--color-accent, #F5961B);
	border-color: var(--color-accent, #F5961B);
}

.sc-filter-checkbox input:checked + .sc-filter-checkbox__mark::after {
	content: '';
	position: absolute;
	left: 5px;
	top: 2px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.sc-filter-checkbox__label {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sc-filter-checkbox__count {
	flex-shrink: 0;
	font-size: 12px;
	color: var(--color-text-secondary, #9ca3af);
}

/* Apply button */
.sc-filters-apply {
	display: block;
	width: 100%;
	margin-top: 12px;
	padding: 10px;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	color: #fff;
	background: var(--color-accent, #F5961B);
	border: none;
	border-radius: var(--radius-sm, 8px);
	cursor: pointer;
	transition: background 0.15s ease;
}

.sc-filters-apply:hover {
	background: var(--color-accent-hover, #e0880f);
}

.sc-filters-clear {
	display: block;
	width: 100%;
	text-align: center;
	margin-top: 8px;
	font-size: 13px;
	color: var(--color-text-secondary, #6b7280);
	text-decoration: none;
}

.sc-filters-clear:hover {
	color: var(--color-accent, #F5961B);
	text-decoration: underline;
}

/* Hide default Storefront sidebar on shop pages — we use our own filter sidebar */
.post-type-archive-product #secondary,
.tax-product_cat #secondary,
.tax-product_tag #secondary {
	display: none;
}

.post-type-archive-product #primary,
.tax-product_cat #primary,
.tax-product_tag #primary {
	width: 100%;
}

/* Mobile filter elements — hidden on desktop */
.sc-filters-mobile-toggle,
.sc-filters-mobile-header {
	display: none;
}

@media (max-width: 768px) {
	/* Hide sidebar, show toggle button */
	.sc-filters-sidebar {
		display: none;
		position: fixed;
		inset: 0;
		z-index: 9999;
		width: 100%;
		max-width: 100%;
		height: 100%;
		flex: none;
		border-radius: 0;
		border: none;
		box-shadow: none;
		padding: 0;
		overflow-y: auto;
		background: var(--color-card, #fff);
	}

	.sc-filters-sidebar.is-open {
		display: flex;
		flex-direction: column;
	}

	/* Mobile filter header */
	.sc-filters-mobile-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 14px 16px;
		border-bottom: 1px solid var(--color-border, #e5e7eb);
		background: var(--color-card, #fff);
		position: sticky;
		top: 0;
		z-index: 1;
	}

	.sc-filters-mobile-header__title {
		font-size: 16px;
		font-weight: 700;
	}

	.sc-filters-mobile-close {
		background: none;
		border: none;
		font-size: 26px;
		line-height: 1;
		color: var(--color-text-secondary, #6b7280);
		cursor: pointer;
		padding: 4px;
	}

	.sc-filters-mobile-close:hover {
		color: var(--color-accent, #F5961B);
	}

	/* Inner scrollable area */
	.sc-filters-sidebar.is-open .sc-filters-title {
		display: none; /* replaced by mobile header */
	}

	.sc-filters-sidebar .sc-filter-group,
	.sc-filters-sidebar .sc-filters-apply,
	.sc-filters-sidebar .sc-filters-clear {
		padding-left: 16px;
		padding-right: 16px;
	}

	.sc-filters-sidebar .sc-filter-group__body {
		padding-left: 16px;
		padding-right: 16px;
	}

	.sc-filters-sidebar .sc-filters-apply {
		margin: 12px 16px;
		width: calc(100% - 32px);
	}

	.sc-filters-sidebar .sc-filters-clear {
		margin-bottom: 16px;
	}

	/* Toggle button */
	.sc-filters-mobile-toggle {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		padding: 8px 16px;
		margin-bottom: 12px;
		font-size: 14px;
		font-weight: 600;
		font-family: inherit;
		color: var(--color-text, #1a1a1a);
		background: var(--color-card, #fff);
		border: 1px solid var(--color-border, #e5e7eb);
		border-radius: var(--radius-sm, 8px);
		cursor: pointer;
		box-shadow: var(--shadow-card, 0 1px 3px rgba(0,0,0,.06));
	}

	.sc-filters-mobile-toggle svg {
		flex-shrink: 0;
	}

	.sc-filters-mobile-toggle .sc-filter-active-count {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 20px;
		height: 20px;
		padding: 0 6px;
		font-size: 11px;
		font-weight: 700;
		border-radius: 10px;
		background: var(--color-accent, #F5961B);
		color: #fff;
	}

	.sc-shop-with-filters {
		flex-direction: column;
	}
}
