/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/* ── Shop Pagination ─────────────────────────────────────────── */
.shop-pagination {
	margin: 2em 0 1em;
	text-align: center;
}

.shop-pagination ul {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.shop-pagination li {
	margin: 0;
	padding: 0;
}

.shop-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	color: #555;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s ease;
	line-height: 1;
}

.shop-pagination a.page-numbers:hover {
	border-color: var(--primary-color, #446084);
	color: var(--primary-color, #446084);
	background: rgba(68, 96, 132, 0.04);
}

.shop-pagination .page-numbers.current {
	background: var(--primary-color, #446084);
	border-color: var(--primary-color, #446084);
	color: #fff;
	pointer-events: none;
}

.shop-pagination .page-numbers.dots {
	border: none;
	background: none;
	min-width: auto;
	padding: 0 4px;
	color: #999;
}

.shop-pagination .page-numbers.prev,
.shop-pagination .page-numbers.next {
	font-size: 18px;
	padding: 0 12px;
}

/* ── Sorting Bar ─────────────────────────────────────────────── */
.shop-sorting-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0;
	margin-bottom: 16px;
	border-bottom: 1px solid #eee;
}

.shop-sorting-bar__count {
	font-size: 14px;
	color: #666;
}

.shop-sorting-bar__count strong {
	color: #333;
}

.shop-sorting-bar__sort select {
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 7px 32px 7px 12px;
	font-size: 13px;
	color: #555;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	min-width: 180px;
}

.shop-sorting-bar__sort select:hover {
	border-color: #bbb;
}

.shop-sorting-bar__sort select:focus {
	outline: none;
	border-color: var(--primary-color, #446084);
	box-shadow: 0 0 0 1px var(--primary-color, #446084);
}

/* ── Filter Sidebar ──────────────────────────────────────────── */
#product-filters {
	padding-right: 20px;
}

#product-filters .widget {
	margin-bottom: 8px;
	padding-bottom: 8px;
	border-bottom: 1px solid #f0f0f0;
}

#product-filters .widget:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

#product-filters .widget-title,
#product-filters .cpaf-widget-title,
#product-filters .cpaf-accordion__title {
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #333;
	margin-bottom: 8px;
}

#product-filters .cpaf-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

#product-filters .cpaf-list__item {
	margin: 0;
	padding: 0;
}

#product-filters .cpaf-list__item a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 0;
	text-decoration: none;
	color: #555;
	font-size: 14px;
	transition: color 0.15s;
}

#product-filters .cpaf-list__item a:hover {
	color: var(--primary-color, #446084);
}

#product-filters .cpaf-list__item--active a {
	color: #333;
	font-weight: 500;
}

#product-filters .cpaf-list__item--empty {
	opacity: 0.35;
}

#product-filters .cpaf-count {
	margin-left: auto;
	font-size: 12px;
	color: #999;
}

/* Checkbox styling */
#product-filters .cpaf-checkbox {
	width: 16px;
	height: 16px;
	border: 1.5px solid #ccc;
	border-radius: 3px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: all 0.15s;
}

#product-filters .cpaf-list__item--active .cpaf-checkbox {
	background: var(--primary-color, #446084);
	border-color: var(--primary-color, #446084);
	color: #fff;
}

/* Accordion */
#product-filters .cpaf-accordion {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

#product-filters .cpaf-accordion__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 0;
	border: none;
	background: none;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #333;
	margin-bottom: 8px;
}

#product-filters .cpaf-accordion__arrow {
	transition: transform 0.2s;
}

#product-filters .cpaf-accordion--open .cpaf-accordion__arrow {
	transform: rotate(180deg);
}

/* Stock toggle */
#product-filters .cpaf-stock-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 0;
	font-size: 14px;
	color: #555;
	text-decoration: none;
	transition: color 0.15s;
}

#product-filters .cpaf-stock-toggle:hover {
	color: #333;
}

/* Star rating in filters */
#product-filters .star-rating {
	font-size: 12px;
}

/* Active filter chips */
.cpaf-active-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 16px;
}

.cpaf-active-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	background: #f5f5f5;
	border: 1px solid #e0e0e0;
	border-radius: 20px;
	font-size: 12px;
	color: #555;
	text-decoration: none;
	transition: all 0.15s;
}

.cpaf-active-chip:hover {
	background: #eee;
	border-color: #ccc;
	color: #333;
}

.cpaf-active-chip__remove {
	display: inline-flex;
	opacity: 0.5;
}

.cpaf-active-chip:hover .cpaf-active-chip__remove {
	opacity: 1;
}

/* Price filter inputs */
#product-filters .cpaf-price-form input[type="number"] {
	width: 80px;
	padding: 6px 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 13px;
}

#product-filters .cpaf-price-form .button {
	padding: 6px 14px;
	font-size: 13px;
}

/* Multi-select apply button */
#product-filters .cpaf-multi-apply,
#product-filters .cpaf-rating-apply,
#product-filters .cpaf-price-multi-apply {
	display: block;
	width: 100%;
	margin-top: 10px;
	padding: 8px 16px;
	background: var(--primary-color, #446084);
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: opacity 0.2s;
}

#product-filters .cpaf-multi-apply:hover,
#product-filters .cpaf-rating-apply:hover {
	opacity: 0.85;
}

/* ── Product Grid Spacing ────────────────────────────────────── */
#product-grid .products-grid {
	margin-top: 4px;
}

#product-grid .box-text {
	padding: 10px 0 0;
}

#product-grid .product-title {
	font-size: 14px;
	line-height: 1.4;
	margin: 0 0 4px;
}

#product-grid .product-title a {
	color: #333;
	text-decoration: none;
}

#product-grid .product-title a:hover {
	color: var(--primary-color, #446084);
}

#product-grid .price {
	font-size: 14px;
}

#product-grid .price del {
	color: #999;
	font-size: 13px;
}

#product-grid .price ins {
	text-decoration: none;
	color: var(--primary-color, #446084);
	font-weight: 600;
}

#product-grid .add-to-cart-button {
	margin-top: 8px;
}

#product-grid .add-to-cart-button .button {
	font-size: 12px;
	padding: 8px 16px;
}

/* ── AJAX loading state ──────────────────────────────────────── */
#product-grid.is-loading .products-grid {
	opacity: 0.4;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

/* ── Hide duplicate breadcrumb ───────────────────────────────── */
#product-grid .woocommerce-breadcrumb {
	display: none;
}


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/

.shop-pagination .page-numbers {
	min-width: 34px;
	height: 34px;
	font-size: 13px;
}

.shop-sorting-bar {
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.shop-sorting-bar__sort select {
	min-width: 100%;
}

#product-filters {
	padding-right: 0;
}

}