body.saa-catalog-no-scroll {
	overflow: hidden;
}

/* ===== SAA Catalog Shortcode ===== */
.saa-catalog {
	display: flex;
	align-items: flex-start;
	gap: 40px;
	max-width: 1280px;
	margin: 0 auto;
	padding: 40px 20px 70px;
	font-family: 'Montserrat', sans-serif;
}

/* ---- Sidebar ---- */
input.saa-catalog-search-input {
	border: 1px solid #ddd !important;
}
input.saa-catalog-search-input:focus {
	border: 1px solid #006838 !important;
}
.saa-catalog-sidebar {
	flex: 0 0 260px;
	width: 260px;
	position: sticky;
	top: 20px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
}
.saa-catalog-sidebar-header {
	display: none;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}
.saa-catalog-sidebar-close {
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	color: #334145;
	cursor: pointer;
	padding: 0;
}
.saa-catalog-search {
	margin-bottom: 24px;
}
.saa-catalog-search-input {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #EFEFEF;
	border-radius: 0px;
	font-size: 14px;
	font-family: 'Montserrat', sans-serif;
	box-sizing: border-box;
}
.saa-catalog-sidebar-title {
	font-family: 'Merriweather', serif;
	font-size: 20px;
	color: #334145;
	margin: 0 0 16px;
}
.saa-catalog-cat-list,
.saa-catalog-cat-children {
	list-style: none;
	margin: 0;
	padding: 0;
}
.saa-catalog-cat-children {
	padding-left: 20px;
	margin-top: 4px;
}
.saa-catalog-cat-item {
	margin-bottom: 6px;
}
.saa-catalog-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	padding: 4px 0;
	color: #334145;
	font-size: 14px;
}
.saa-catalog-checkbox input[type="checkbox"] {
	accent-color: #006838;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}
.saa-catalog-count {
	margin-left: auto;
	background: #F2FBF5;
	border-radius: 999px;
	padding: 1px 8px;
	font-size: 12px;
	color: #334145;
}
.saa-catalog-sidebar-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 20px;
	display:none;
}
.saa-catalog-clear,
.saa-catalog-apply {
	background: #006838;
	color: #FFFFFF;
	border: none;
	border-radius: 0px;
	padding: 10px 18px;
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	cursor: pointer;
}
.saa-catalog-clear:hover,
.saa-catalog-apply:hover {
	background: #004D28;
}
.saa-catalog-apply {
	display: none;
}

/* ---- Mobile filter drawer trigger ---- */
.saa-catalog-mobile-bar {
	display: none;
	margin-bottom: 20px;
}
.saa-catalog-filter-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: #FFFFFF !important;
	border: 1px solid #EFEFEF !important;
	border-radius: 8px;
	color: #334145;
	cursor: pointer;
}
.saa-catalog-filter-icon {
	display: flex;
	color: #006838;
}
.saa-catalog-filter-icon svg {
	width: 20px;
	height: 20px;
}
.saa-catalog-filter-toggle:focus-visible,
.saa-catalog-sidebar-close:focus-visible {
	outline: 2px solid #006838;
	outline-offset: 2px;
}
.saa-catalog-overlay {
	display: none;
}

/* ---- Main / Toolbar ---- */
.saa-catalog-main {
	flex: 1 1 auto;
	min-width: 0;
}
.saa-catalog-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: no-wrap; 
	gap: 12px;
	margin-bottom: 24px;
}
.saa-catalog-count-text {
	margin: 0;
	color: #334145;
	font-size: 14px;
}
.saa-catalog-orderby {
	padding: 8px 14px;
	border: 1px solid #EFEFEF;
	border-radius: 8px;
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	background: #FFFFFF;
	color: #334145;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	max-width: 250px;
}

/* Convention MP3 root archive only: centered search and year navigation. */
.saa-catalog--conventions .saa-catalog-toolbar--conventions {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 360px) minmax(0, 1fr);
	align-items: center;
	gap: 16px;
}
.saa-catalog--conventions .saa-catalog-toolbar--conventions .saa-catalog-count-text {
	justify-self: start;
}
.saa-catalog--conventions .saa-catalog-toolbar-search {
	position: relative;
	width: 100%;
	justify-self: center;
}
.saa-catalog--conventions .saa-catalog-toolbar-search .saa-catalog-search-input {
	width: 100%;
	min-height: 44px;
	padding: 10px 44px 10px 14px;
	border-radius: 6px;
}
.saa-catalog--conventions .saa-catalog-toolbar-search-icon {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #006838;
	pointer-events: none;
	line-height: 0;
}
.saa-catalog--conventions .saa-catalog-toolbar-search-icon svg {
	width: 18px;
	height: 18px;
}
.saa-catalog--conventions .saa-catalog-toolbar--conventions .saa-catalog-orderby {
	justify-self: end;
	width: 100%;
}
@media (max-width: 1100px) {
	.saa-catalog--conventions .saa-catalog-toolbar--conventions {
		grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
	}
	.saa-catalog--conventions .saa-catalog-toolbar--conventions .saa-catalog-count-text {
		grid-column: 1 / -1;
	}
}
@media (max-width: 782px) {
	.saa-catalog--conventions .saa-catalog-toolbar--conventions {
		grid-template-columns: minmax(0, 1fr);
	}
	.saa-catalog--conventions .saa-catalog-toolbar--conventions .saa-catalog-count-text {
		grid-column: auto;
	}
	.saa-catalog--conventions .saa-catalog-toolbar--conventions .saa-catalog-orderby {
		justify-self: stretch;
		max-width: none;
	}
}

/* ---- Safety net: native WooCommerce toolbar markup (non-shortcode pages) ---- */
.woocommerce .woocommerce-result-count {
	margin: 0 0 24px;
	color: #334145;
	font-size: 14px;
	font-family: 'Montserrat', sans-serif;
}
.woocommerce .woocommerce-ordering {
	margin: 0 0 24px;
}
a.added_to_cart.wc-forward {
    display: none;
}
.woocommerce .woocommerce-ordering select.orderby {
	padding: 8px 14px;
	border: 1px solid #EFEFEF;
	border-radius: 8px;
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	background: #FFFFFF;
	color: #334145;
	-webkit-appearance: none;
	appearance: none; 
	cursor: pointer;
	max-width: 250px;
}

/* ---- Grid ---- */
.saa-catalog-results.is-loading {
	opacity: 0.5;
	pointer-events: none;
	transition: opacity .15s ease;
}
.saa-catalog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.saa-catalog-empty {
	grid-column: 1 / -1;
	color: #334145;
	font-size: 14px;
}

/* ---- Card (also used by native WooCommerce loops - related products, etc.) ---- */
.saa-catalog-card,
li.product {
	background: #FFFFFF;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0,0,0,0.06);
	display: flex;
	flex-direction: column;
	transition: box-shadow .2s ease, transform .2s ease;
}
.saa-catalog-card:hover,
li.product:hover {
	box-shadow: 0 6px 20px rgba(0,0,0,0.10);
	transform: translateY(-2px);
}
.saa-catalog-card-media {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	position: relative;
}
.saa-catalog-card-media::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: repeating-radial-gradient(circle at 15% 15%, rgba(255,255,255,0.25) 0, rgba(255,255,255,0.25) 1px, transparent 1px, transparent 100%);
	opacity: 0.5;
}
.saa-catalog-card-icon {
	position: relative;
	z-index: 1;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #334145;
}

.saa-catalog-card-media:has(.saa-catalog-card-image) {
	background-color: #ffffff;
}
.saa-catalog-card-media:has(.saa-catalog-card-image)::before {
	display: none;
}
.saa-catalog-card-body {
	padding: 16px 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1 1 auto;
}
.saa-catalog-card-title {
	font-family: 'Merriweather', serif;
	font-size: 16px;
	color: #334145;
	text-decoration: none;
	line-height: 1.35;
}
.saa-catalog-card-title:hover {
	color: #006838;
}
.saa-catalog-card-footer {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.saa-catalog-card-price {
	font-weight: 600;
	color: #334145;
	font-size: 15px;
}
.saa-catalog-card-footer .button,
.saa-catalog-card-footer a.add_to_cart_button,
.saa-catalog-card-footer a.button,
li.product a.button {
	background: #006838 !important;
	color: #FFFFFF !important;
	border-radius: 0px !important;
	padding: 12px 20px !important;
	font-size: 13px !important;
	font-weight: 500 !important; 
	text-decoration: none !important;
	white-space: nowrap;
}
.saa-catalog-card-footer .button:hover,
li.product a.button:hover {
	background: #004D28 !important;
}

/* ---- Pagination ---- */
.saa-catalog-pagination {
	display: flex;
	gap: 8px;
	margin-top: 30px;
	flex-wrap: wrap;
}
.saa-catalog-page-btn {
	border-radius: 0px !important;
	border: 1px solid #EFEFEF;
	background: #FFFFFF;
	color: #334145;
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	cursor: pointer;
	line-height: 1.2;
	padding: 10px 25px !important;
}
.saa-catalog-page-btn.is-active {
	background: #006838;
	border-color: #006838;
	color: #FFFFFF;
}

/* ===== Convention Audio (MP3s) category list view ===== */
.saa-convention-list {
	display: flex;
	flex-direction: column;
}
.saa-convention-block {
	padding-bottom: 30px;
	margin-bottom: 30px;
	border-bottom: 1px solid #EFEFEF;
}
.saa-convention-list .saa-convention-block:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}
.saa-convention-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}
.saa-convention-title {
	margin: 0;
	font-family: 'Merriweather', serif;
	font-size: 20px;
	flex: 1 1 auto;
	min-width: 200px;
}
.saa-convention-title a {
	color: #334145;
	text-decoration: none;
}
.saa-convention-title a:hover {
	color: #006838;
}
.saa-convention-select-all {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #334145;
	cursor: pointer;
	white-space: nowrap;
}
.saa-convention-select-all input {
	accent-color: #006838;
	width: 16px;
	height: 16px;
}
.saa-convention-block .saa-track-list {
	margin: 0;
	border-top: none;
}
.saa-convention-track-label {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1 1 auto;
	cursor: pointer;
	min-width: 0;
}
.saa-convention-track-checkbox {
	accent-color: #006838;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}
.saa-convention-footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 16px;
	margin-top: 14px;
	flex-wrap: wrap;
}
.saa-convention-selected-count {
	font-size: 13px;
	color: #334145;
	font-weight: 600;
}
.saa-convention-add-btn {
	background: #006838;
	color: #FFFFFF;
	border: none;
	border-radius: 0px;
	padding: 10px 22px;
	font-weight: 700;
	cursor: pointer;
}
.saa-convention-add-btn:hover:not(:disabled) {
	background: #004D28;
}
.saa-convention-add-btn:disabled {
	background: #C7D7CD;
	cursor: not-allowed;
}

/* ===== Single Product: Grouped (Convention Audio) ===== */
.saa-product-hero-media {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 16px;
	aspect-ratio: 4 / 3;
	position: relative;
	overflow: hidden;
}
.saa-product-hero-media::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: repeating-radial-gradient(circle at 15% 15%, rgba(255,255,255,0.25) 0, rgba(255,255,255,0.25) 1px, transparent 1px, transparent 100%);
	opacity: 0.5;
}
.saa-product-hero-icon {
	position: relative;
	z-index: 1;
	width: 84px;
	height: 84px;
	border-radius: 50%;
	background: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #334145;
}
.saa-product-hero-icon svg {
	width: 42px;
	height: 42px;
}
.saa-product-hero-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 16px;
}
.saa-product-hero-media:has(.saa-product-hero-image)::before {
	display: none;
}

.saa-volume-discount {
	margin: 20px 0;
}
.saa-volume-discount h3 {
	font-family: 'Merriweather', serif;
	font-size: 16px;
	color: #334145;
	margin: 0 0 8px;
}
.saa-volume-discount p {
	color: #334145;
	font-size: 14px;
	line-height: 1.6;
	margin: 0;
}

.saa-checkout-badges {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 20px;
}
.saa-checkout-label {
	color: #334145;
	font-size: 13px;
	font-weight: 600;
}
.saa-payment-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.saa-payment-badge {
	background: #F2FBF5;
	color: #334145;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 999px;
}

.saa-track-list {
	list-style: none;
	margin: 40px 0 0;
	padding: 0;
	border-top: 1px solid #EFEFEF;
}
.saa-track-row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 8px;
	border-bottom: 1px solid #EFEFEF;
}
.saa-track-row:nth-child(odd) {
	background: #F8FBF9;
}
.saa-track-icon {
	color: #006838;
	flex-shrink: 0;
	display: flex;
}
.saa-track-icon svg {
	width: 22px;
	height: 22px;
}
.saa-track-title {
    flex: 1 1 auto;
    color: #334145;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    font-family: 'Montserrat';
} 
.saa-track-title:hover {
	color: #006838;
}
.saa-track-price {
	color: #334145;
	font-weight: 600;
	font-size: 15px;
	flex-shrink: 0;
}
.saa-track-cart {
	flex-shrink: 0;
}
.saa-track-cart a.button,
.saa-track-cart a.add_to_cart_button {
	background: #006838 !important;
	color: #FFFFFF !important;
	border-radius: 0px !important;
	padding: 12px 20px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	white-space: nowrap;
}
.saa-track-cart a.button:hover {
	background: #004D28 !important;
}

.saa-copyright-disclaimer {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	background: #F2FBF5;
	border-radius: 16px;
	padding: 30px;
	margin-top: 40px;
}
.saa-copyright-disclaimer h4 {
	font-family: 'Merriweather', serif;
	font-size: 15px;
	color: #334145;
	margin: 0 0 8px;
}
.saa-copyright-disclaimer p {
	color: #334145;
	font-size: 13px;
	line-height: 1.6;
	margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
	.saa-catalog-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 782px) {
	.saa-catalog {
		flex-direction: column;
		gap: 24px;
		padding: 24px 16px 50px;
	}
	.saa-catalog-sidebar {
		position: fixed;
		top: 0;
		left: 0;
		width: 50%;
		height: 100vh;
		max-height: none;
		overflow-y: auto;
		background: #FFFFFF;
		z-index: 1000;
		padding: 24px;
		box-shadow: 4px 0 20px rgba(0,0,0,0.15);
		transform: translateX(-100%);
		transition: transform .3s ease;
	}
	.saa-catalog-sidebar.is-open {
		transform: translateX(0);
	}
	.saa-catalog-sidebar-header {
		display: flex;
	}
	.saa-catalog-sidebar-actions{
		display: flex;
	}
	.saa-catalog-mobile-bar {
		display: block;
	}
	.saa-catalog-apply {
		display: block;
		width: 100%;
	}
	.saa-catalog-overlay {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(0,0,0,0.45);
		z-index: 999;
		opacity: 0;
		pointer-events: none;
		transition: opacity .3s ease;
	}
	.saa-catalog-overlay.is-open {
		opacity: 1;
		pointer-events: auto;
	}
	.saa-catalog-cat-list {
		display: flex;
		flex-wrap: wrap;
		gap: 8px 16px;
	}
	.saa-catalog-cat-item {
		margin-bottom: 0;
	}
	.saa-catalog-cat-children {
		flex-basis: 100%;
		display: flex;
		flex-wrap: wrap;
		gap: 8px 16px;
		padding-left: 0;
	}
	.saa-catalog-toolbar {
		align-items: flex-start;
	}
	.saa-catalog-orderby {
		width: 100%;
	}
	.saa-copyright-disclaimer {
		grid-template-columns: 1fr;
	}
	
	.saa-track-title {
		flex-basis: 100%;
		order: 1;
	}
	.saa-track-icon {
		order: 0;
	}
	.saa-track-price {
		order: 2;
	}
	.saa-track-cart {
		order: 3;
		margin-left: auto;
	}
	.saa-convention-header {
		flex-direction: column;
		align-items: flex-start;
	}
	.saa-convention-track-label {
		flex-wrap: wrap;
	}
	.saa-convention-track-label .saa-track-title {
		flex-basis: calc(100% - 30px);
		order: 0;
	}
	.saa-convention-footer {
		flex-direction: column;
		align-items: stretch;
	}
	.saa-convention-add-btn {
		width: 100%;
	}
}

@media (max-width: 480px) {
	.saa-catalog-grid {
		grid-template-columns: 1fr;
	}
	.saa-catalog-card-footer {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* =========================================================================
   Search Results page only - full width, no sidebar, count/search/sort
   toolbar, 4-column grid. Scoped entirely to body.search (native WordPress
   class on the search results view) plus the .saa-catalog--search /
   --search modifier classes, so the Shop and category pages are untouched.
   ========================================================================= */

body.search .ast-container {
	max-width: none;
	width: 100%;
}

.saa-catalog--search {
	max-width: none;
	width: 100%;
}

.saa-catalog-toolbar--search {
	display: grid;
	grid-template-columns: 1fr minmax(240px, 480px) 1fr;
	align-items: center;
	gap: 16px;
}
.saa-catalog-toolbar--search .saa-catalog-count-text {
	justify-self: start;
}
.saa-catalog-toolbar-search {
	justify-self: center;
	width: 100%;
}
.saa-catalog-toolbar-search .saa-catalog-search-input {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #EFEFEF;
	border-radius: 0px;
	font-size: 14px;
	font-family: 'Montserrat', sans-serif;
	box-sizing: border-box;
}
.saa-catalog-toolbar-search .saa-catalog-search-input:focus {
	outline: none;
	border-color: #006838;
}
.saa-catalog-toolbar--search .saa-catalog-orderby {
	justify-self: end;
}

.saa-catalog-grid--search {
	grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
	.saa-catalog-grid--search {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 1024px) {
	.saa-catalog-toolbar--search {
		grid-template-columns: 1fr;
		justify-items: stretch;
	}
	.saa-catalog-toolbar-search {
		justify-self: stretch;
		order: 2;
	}
	.saa-catalog-toolbar--search .saa-catalog-orderby {
		justify-self: stretch;
		order: 3;
	}
	.saa-catalog-grid--search {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.saa-catalog-grid--search {
		grid-template-columns: 1fr;
	}
}

/* Complete product covers with no added spacing or cropping */
.saa-catalog-card-media:has(.saa-catalog-card-image) {
    display: block;
    aspect-ratio: auto;
    height: auto;
    padding: 0;
    margin: 0;
    line-height: 0;
    background: transparent;
}

.saa-catalog-card-media .saa-catalog-card-image {
    position: static;
    inset: auto;
    display: block;
    width: 100% !important;
    height: 264px !important; 
    max-width: 100%;
    max-height: none;
    padding: 0;
    margin: 0;
    object-fit: cover;
    border-radius: 0;
    object-position: top;
} 

