/* ==========================================================================
   Shop page (/shop/) redesign: inc/features/shop-page.php (live 2026-10-20, panel layout).
   Colours and type follow BRAND.md: headings #3f573e, links/outlines #2f3f2e, names #555555,
   labels #666666, pills radius 999px, square buttons, focus 2px #3f573e, hover only with a mouse.
   ========================================================================== */

/* 0. Panel layout (BRAND.md "Panel layout"; shared values + .swp-panel + body.swp-panels in base.css section 31).
   The page background (--swp-panel-page; white since 2026-10-20) and every section a bordered white panel, 24px apart. Header and footer unchanged.
   Panels: title row (H1 + intro + ZIP), Departments, New & Just In (.swp-panel), filter column, product grid,
   Brands, FAQ (.swp-panel). Here: Flatsome's own boxes that become panels, and the page background behind the title row and
   the top band (both sit outside #main). */
/* div.shop-page-title: Flatsome also gives the H1 the class "shop-page-title", which must stay transparent. */
body.swp-shop-panels div.shop-page-title,
body.swp-shop-panels .swp-shop-band {
	background: var(--swp-panel-page);
}
body.swp-shop-panels div.shop-page-title {
	margin: 0;
	padding: var(--swp-panel-gap) 0 0;
}
/* flow-root: the last panel's margin stays inside the grey wrapper (no white strip from margin collapsing) */
body.swp-shop-panels div.shop-page-title,
body.swp-shop-panels .swp-shop-band {
	display: flow-root;
}
body.swp-shop-panels h1.shop-page-title {
	background: none;
}
body.swp-shop-panels #main {
	padding-top: 0;
	padding-bottom: var(--swp-panel-gap);
}
body.swp-shop-panels .shop-page-title .page-title-inner,
body.swp-shop-panels .category-page-row .shop-container {
	margin-bottom: var(--swp-panel-gap);
	padding: var(--swp-panel-pad);
	background: #fff;
	border: 1px solid var(--swp-panel-line);
	border-radius: var(--swp-panel-radius);
}
/* The title row is Flatsome's own container: same outer width as the panels inside the other containers. */
body.swp-shop-panels .shop-page-title .page-title-inner {
	width: calc(100% - 30px);
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	align-items: flex-start;
}
body.swp-shop-panels .shop-page-title .page-title-inner > .flex-col {
	padding: 0;
}
body.swp-shop-panels .category-page-row {
	padding-top: 0;
}
@media (min-width: 850px) {
	/* The filter column is a panel on desktop; on phones it lives in Flatsome's drawer (no panel). */
	body.swp-shop-panels #shop-sidebar.col-inner {
		margin-bottom: var(--swp-panel-gap);
		padding: 28px 24px;
		background: #fff;
		border: 1px solid var(--swp-panel-line);
		border-radius: var(--swp-panel-radius);
	}
}
body.swp-shop-panels .swp-shop-intro,
body.swp-shop-panels .swp-shop-tiles,
body.swp-shop-panels .swp-shop-brands,
body.swp-shop-panels .swp-shop-new {
	margin-bottom: 0;
}
body.swp-shop-panels .swp-shop-new {
	padding-top: 0;
	border-top: 0;
}
body.swp-shop-panels .swp-shop-intro {
	margin-top: 12px;
}
body.swp-shop-panels .swp-shop-faq .accordion {
	margin-bottom: 0;
}
@media (max-width: 849px) {
	/* side margin on phones so the panel outlines stay visible */
	body.swp-shop-panels .shop-page-title .page-title-inner {
		width: calc(100% - 2 * var(--swp-panel-side));
	}
	body.swp-shop-panels .swp-shop-top,
	body.swp-shop-panels .swp-shop-bottom,
	body.swp-shop-panels .category-page-row > .col {
		padding-left: var(--swp-panel-side);
		padding-right: var(--swp-panel-side);
	}
}
/* 1. Title row: H1 left, ZIP pill + "How Buying Works" right */
.shop-page-title .page-title-inner h1 {
	font-size: 32px;
	line-height: 1.2;
	color: #3f573e;
	text-wrap: balance;
}
.swp-shop-zip {
	display: flex;
	align-items: center;
	gap: 16px;
}
.swp-shop-zip .swp-zip-contact {
	margin: 0;
}
.swp-shop-how {
	font-size: 15px;
	color: #2f3f2e;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}

/* 2. Intro, section headings */
.swp-shop-top {
	padding-top: 4px;
}
.swp-shop-intro {
	max-width: 760px;
	margin: 0 0 28px;
	font-size: 16px;
	line-height: 1.6;
	color: #3d4a3b;
	text-wrap: pretty;
}
.swp-shop-h2 {
	margin: 0 0 16px;
	font-size: 24px;
	line-height: 1.25;
	font-weight: 700;
	color: #3f573e;
	text-transform: none;
	letter-spacing: normal;
}
.swp-shop-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 4px;
}
.swp-shop-head a {
	flex: none; /* "See All New" stays on one line beside the heading */
	font-size: 15px;
	color: #2f3f2e;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}

/* 3. Department tiles (UX Block "Shop - Departments": image boxes with the class swp-shop-tile) */
.swp-shop-tiles {
	margin-bottom: 24px;
}
.swp-shop-tile .box-image img {
	transition: transform .3s;
}
.swp-shop-tile .box-text {
	padding: 10px 0 0;
	text-align: left;
}
.swp-shop-tile-name {
	margin: 0;
	font-size: 19px;
	line-height: 1.3;
	font-weight: 600;
	color: #2f3f2e;
}
@media (hover: hover) {
	.swp-shop-tile:hover .box-image img {
		transform: scale(1.03);
	}
	.swp-shop-tile:hover .swp-shop-tile-name,
	.swp-shop-head a:hover,
	.swp-shop-how:hover {
		color: #557353;
	}
}

/* 4. "New & Just In" */
.swp-shop-new {
	margin-bottom: 32px;
	padding-top: 8px;
	border-top: 1px solid #e3e6e0;
}

/* 5. Filter column (the shop sidebar; a drawer on phones) */
.swp-shop-filters {
	font-size: 15px;
}
.swp-sf-group {
	padding: 0 0 18px;
	margin: 0 0 18px;
	border-bottom: 1px solid #e3e6e0;
}
.swp-sf-title {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 700;
	color: #3f573e;
}
.swp-sf-list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.swp-sf-list li {
	margin: 0 0 4px;
	list-style: none;
}
.swp-sf-opt {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 32px;
	color: #2f3f2e;
}
.swp-sf-opt small {
	margin-left: auto;
	font-size: 13px;
	color: #666666;
}
.swp-sf-box {
	flex: none;
	width: 18px;
	height: 18px;
	border: 1.5px solid #2f3f2e;
	background: #fff;
}
.swp-sf-opt.is-on .swp-sf-box {
	background: #2f3f2e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.swp-sf-opt.is-on {
	font-weight: 700;
}
@media (hover: hover) {
	.swp-sf-opt:hover {
		color: #557353;
		text-decoration: underline;
	}
}
.swp-sf-price {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}
.swp-sf-price label {
	flex: 1 1 0;
	margin: 0;
}
.swp-sf-price input {
	width: 100%;
	height: 36px;
	margin: 0;
	padding: 0 8px;
	border: 1.5px solid #2f3f2e;
	border-radius: 0;
	box-shadow: none;
}
.swp-sf-go {
	height: 36px;
	margin: 0;
	padding: 0 12px;
	border: 1.5px solid #2f3f2e;
	border-radius: 0;
	background: #fff;
	color: #2f3f2e;
	font-weight: 700;
	text-transform: none;
}
.swp-sf-clear a {
	color: #2f3f2e;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* 6. Bar above the grid: count + sort */
.swp-shop-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 16px;
}
.swp-shop-count {
	margin: 0;
	font-size: 15px;
	color: #666666;
}
/* base.css section 9 hides .woocommerce-ordering sitewide (legacy); the shop bar shows it again. */
.swp-shop-bar .woocommerce-ordering {
	display: block;
	margin: 0;
}
.swp-shop-bar .woocommerce-ordering select {
	margin: 0;
	border: 1.5px solid #2f3f2e;
	border-radius: 0;
	color: #2f3f2e;
	text-transform: none;
}
/* "Load More Products" (Flatsome infinite scroll, button mode): the sage secondary pill (BRAND.md; Jay, 2026-10-20,
   option A; final sizes): white, 1.5px #7a9a74 outline, #2f3f2e text, radius 999px, Lato 700 15px, 40px tall; no icon, no 3D
   base. Hover (mouse only): fill #f2f3f1. Keyboard focus: 2px #2f3f2e outline. */
.view-more-button.products-archive {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 20px;
	border: 1.5px solid #7a9a74;
	border-radius: 999px;
	background: #fff;
	color: #2f3f2e;
	font-family: Lato, sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	transition: background-color 150ms ease-out;
}
.view-more-button.products-archive:is(:hover, :focus, :active) {
	color: #2f3f2e;
	box-shadow: none;
}
@media (hover: hover) {
	.view-more-button.products-archive:hover {
		background: #f2f3f1;
	}
}
.view-more-button.products-archive:focus-visible {
	outline: 2px solid #2f3f2e;
	outline-offset: 3px;
}

/* 7. Brands + FAQ */
.swp-shop-bottom {
	padding-top: 24px;
	padding-bottom: 40px;
}
.swp-shop-brands {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 40px;
}
.swp-shop-brands a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 16px;
	border: 1.5px solid #2f3f2e;
	border-radius: 999px;
	color: #2f3f2e;
	font-size: 15px;
}
@media (hover: hover) {
	.swp-shop-brands a:hover {
		background: #f2f3f1;
		text-decoration: underline;
	}
}
.swp-shop-faq .accordion-title {
	font-size: 17px;
	color: #2f3f2e;
	text-transform: none;
}
.swp-shop-faq .accordion-inner p {
	color: #3d4a3b;
}

/* 8. Focus (keyboard) */
.swp-shop-tile a:focus-visible,
.swp-sf-opt:focus-visible,
.swp-shop-brands a:focus-visible,
.swp-shop-how:focus-visible,
.swp-shop-head a:focus-visible,
.swp-sf-go:focus-visible {
	outline: 2px solid #3f573e;
	outline-offset: 2px;
}

/* 9. Phones (the filter column is Flatsome's drawer: "Filter" button in the title row) */
@media (max-width: 849px) {
	.shop-page-title .page-title-inner h1 {
		font-size: 24px;
	}
	.swp-shop-zip {
		flex-direction: column;
		gap: 8px;
		margin-top: 8px;
	}
	/* Phones already have the ZIP line under the header: keep only "How Buying Works" here. */
	.swp-shop-zip .swp-zip-contact {
		display: none;
	}
	.swp-shop-tile-name {
		font-size: 16px;
	}
	.swp-shop-h2 {
		font-size: 21px;
	}
	.swp-shop-filters {
		padding: 20px;
	}
}
