/* =========================================================
   Custom Shop - variables
========================================================= */
:root {
	--shop-cream: #eef2e3;
	--shop-cream-dark: #e3e9d4;
	--shop-dark-green: #1c3a2a;
	--shop-green-mid: #2f5240;
	--shop-badge-bg: #dfe8d0;
	--shop-badge-text: #2f5240;
	--shop-organic-bg: #f7d9d9;
	--shop-organic-text: #8a3b3b;
	--shop-price: #8a3b3b;
	--shop-border: #dfe3d2;
	--shop-white: #ffffff;
	--shop-radius: 10px;
	--shop-shadow: 0 6px 18px rgba(28, 58, 42, 0.08);
	--shop-font-serif: Georgia, 'Times New Roman', serif;
	--shop-font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

.custom-shop-wrapper {
	background: var(--shop-cream);
	color: var(--shop-dark-green);
	font-family: var(--shop-font-sans);
}

/* =========================================================
   Hero
========================================================= */
.custom-shop-hero {
    position: relative;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;

    background-color: var(--shop-dark-green);
    background-image:
        linear-gradient(rgba(10, 26, 17, 0.55), rgba(10, 26, 17, 0.55)),
        url('../images/bg-shop.webp');

    background-size: cover;
    background-position: center;
}

.custom-shop-hero-inner h1 {
    font-family: "EB Garamond" !important;
    font-weight: 500 !important;
    font-size: 60px !important;
    color: #F4F6EF !important;
    letter-spacing: 0.01em;
    text-align: center;
}

/* =========================================================
   Layout
========================================================= */
.custom-shop-layout {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 48px;
	margin: 0 auto;
	padding: 48px 32px 96px;
}

@media (max-width: 900px) {
	.custom-shop-layout {
		grid-template-columns: 1fr;
		padding: 32px 20px 64px;
	}
}

/* =========================================================
   Sidebar
========================================================= */

.custom-shop-intro h2 {
	font-family: var(--shop-font-serif);
	font-weight: 400;
	font-size: 2rem;
	margin: 0 0 15px;
	color: var(--shop-dark-green);
}

.custom-shop-tagline {
	margin: 0 0 28px;
	font-size: 0.95rem;
	color: var(--shop-green-mid);
}

.custom-filters-heading {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--shop-dark-green);
	margin: 0 0 4px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--shop-dark-green);
	display: inline-block;
}

.shop-filter-box {
	margin: 22px 0;
}

.shop-filter-box h4 {
    text-transform: uppercase;
    margin: 0 0 10px;
    font-family: "EB Garamond" !important;
    font-size: 18px;
    color: #123320 !important;
    letter-spacing: 0.01em;
    line-height: 1.04em;
}

.custom-filter-input {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 14px;
	border: 1px solid var(--shop-border);
	border-radius: 999px;
	font-size: 0.9rem;
	background: var(--shop-white);
	color: var(--shop-dark-green);
}

.custom-filter-input:focus {
	outline: 2px solid var(--shop-green-mid);
	outline-offset: 1px;
}

/* Accordion filter groups (Plant Type / Product Bearing / Hardiness Zone / Price) */
/* Filter group labels (Plant Type / Product Bearing / Hardiness Zone).
   Plain text labels - click to hide/show; expanded by default. */
.custom-accordion-toggle {
	margin: 0;
	padding: 14px 0;
	border-bottom: 1px solid var(--shop-border);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--shop-dark-green);
	cursor: pointer;
	position: relative;
}

.custom-accordion-toggle::after {
	content: '\2212'; /* minus sign, shown when expanded */
	position: absolute;
	right: 2px;
	top: 12px;
	font-size: 0.9rem;
	font-weight: 400;
	color: var(--shop-green-mid);
}

.custom-accordion[data-open="false"] .custom-accordion-toggle::after {
	content: '+';
}

.custom-accordion-panel {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.25s ease;
}

.custom-accordion[data-open="true"] .custom-accordion-panel {
	max-height: 600px;
	padding-top: 14px;
}

.custom-checkbox-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.custom-checkbox-item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 16px;
    color: #123320 !important;
    cursor: pointer;
}

.custom-checkbox-item small {
	margin-left: auto;
	color: #9aa992;
	font-size: 0.8rem;
	display: none;
}

.custom-filter-button, .custom-clear-filters {
    border: 1px solid #123320 !important;
    background: #123320 !important;
    color: #fff !important;
    border-radius: 10px !important;
    font-size: 14px !important;
}

.custom-filter-button:hover,
.custom-clear-filters:hover {
	background: var(--shop-dark-green);
	color: var(--shop-white);
}

.custom-clear-filters {
	margin-top: 12px;
}

/* =========================================================
   Toolbar
========================================================= */
.custom-shop-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	flex-wrap: wrap;
	gap: 12px;
}

.custom-result-count {
	font-size: 0.9rem;
	color: var(--shop-green-mid);
}

.custom-shop-sort select {
	padding: 9px 14px;
	border-radius: 999px;
	border: 1px solid var(--shop-border);
	background: var(--shop-white);
	color: var(--shop-dark-green);
	font-size: 0.88rem;
}

/* =========================================================
   Loading overlay
========================================================= */
.custom-shop-products-stage {
	position: relative;
	min-height: 220px;
}

.custom-shop-products-stage.is-loading .custom-product-grid {
	opacity: 0.35;
	pointer-events: none;
	filter: saturate(0.7);
	transition: opacity 0.25s ease, filter 0.25s ease;
}

.custom-shop-loading {
	display: none;
	position: absolute;
	inset: 0;
	z-index: 5;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 18px;
	background: linear-gradient(
		180deg,
		rgba(238, 242, 227, 0.55) 0%,
		rgba(238, 242, 227, 0.72) 100%
	);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	border-radius: var(--shop-radius);
	pointer-events: none;
}

.custom-shop-loading.is-visible {
	display: flex;
	animation: custom-shop-overlay-in 0.28s ease;
}

.custom-shop-loading-text {
	font-family: var(--shop-font-serif);
	font-size: 1rem;
	letter-spacing: 0.04em;
	color: var(--shop-dark-green);
	opacity: 0.9;
}

.custom-shop-loader {
	position: relative;
	width: 64px;
	height: 64px;
}

.custom-shop-loader-orb {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	border-radius: 50%;
	background: var(--shop-dark-green);
	box-shadow: 0 0 0 0 rgba(28, 58, 42, 0.25);
	animation: custom-shop-orbit 1.15s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.custom-shop-loader-orb--a {
	background: #123320;
	animation-delay: 0s;
}

.custom-shop-loader-orb--b {
	background: #8a3b3b;
	width: 12px;
	height: 12px;
	margin: -6px 0 0 -6px;
	animation-delay: -0.38s;
}

.custom-shop-loader-orb--c {
	background: #2f5240;
	width: 10px;
	height: 10px;
	margin: -5px 0 0 -5px;
	animation-delay: -0.76s;
}

@keyframes custom-shop-orbit {
	0% {
		transform: rotate(0deg) translateX(22px) rotate(0deg) scale(0.85);
		opacity: 0.65;
	}
	50% {
		transform: rotate(180deg) translateX(22px) rotate(-180deg) scale(1.15);
		opacity: 1;
	}
	100% {
		transform: rotate(360deg) translateX(22px) rotate(-360deg) scale(0.85);
		opacity: 0.65;
	}
}

@keyframes custom-shop-overlay-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.custom-shop-loader-orb {
		animation: custom-shop-pulse 1.2s ease-in-out infinite;
		transform: none !important;
	}

	.custom-shop-loader-orb--b,
	.custom-shop-loader-orb--c {
		left: calc(50% + 18px);
	}

	.custom-shop-loader-orb--c {
		left: calc(50% - 18px);
	}

	@keyframes custom-shop-pulse {
		0%,
		100% {
			opacity: 0.45;
			transform: scale(0.9);
		}
		50% {
			opacity: 1;
			transform: scale(1.05);
		}
	}
}

/* =========================================================
   Product grid + card
========================================================= */
.custom-product-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
	transition: opacity 0.3s ease, filter 0.3s ease;
}

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

@media (max-width: 600px) {
	.custom-product-grid {
		grid-template-columns: 1fr;
	}
}

.custom-product-card {
	background: var(--shop-white);
	border-radius: var(--shop-radius);
	overflow: hidden;
	box-shadow: var(--shop-shadow);
	display: flex;
	flex-direction: column;
}



.custom-product-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.custom-product-card:hover .custom-product-image img {
	transform: scale(1.04);
}

.custom-product-body {
	padding: 18px 20px 22px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.custom-product-eyebrow {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--shop-green-mid);
}

.custom-product-title {
	margin: 0;
	font-family: var(--shop-font-serif);
	font-size: 1.2rem;
	font-weight: 700;
}

.custom-product-title a {
	color: var(--shop-dark-green);
	text-decoration: none;
}

.custom-product-title a:hover {
	text-decoration: underline;
}

.custom-product-price {
	font-size: 1rem;
	font-weight: 600;
	color: var(--shop-price);
}

.custom-product-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 6px 0 4px;
}

.custom-badge {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	padding: 5px 10px;
	border-radius: 999px;
	background: var(--shop-badge-bg);
	color: var(--shop-badge-text);
}

.custom-badge-organic {
	background: var(--shop-organic-bg);
	color: var(--shop-organic-text);
}

.custom-select-options-btn {
    margin-top: 10px;
    text-align: center;
    font-family: "Inter", Sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    border-style: none;
    border-radius: 8px;
    padding: 20px;
    color: #FBF7EE !important;
    background-color: #123320 !important;
    transition: all 0.2s;
}

.custom-select-options-btn:hover {
	background: var(--shop-green-mid);
	color: var(--shop-white);
}

.custom-no-products {
	grid-column: 1 / -1;
	text-align: center;
	padding: 48px 0;
	color: var(--shop-green-mid);
}
