:root {
	--white: #fff;
	--sale-color-1: #0066b2;
	--sale-color-2: #f0f8ff;
	--nav-color: #0066b2;
	--color-teal: #53bfa8;
	--color-teal-2: #d7f5f0;
	--color-pink: #f2637a;
	--color-pink-2: #f7d7d7;
	--color-red: #da2026;
	--color-red-2: #f7d7d7;
	--color-lime: #bdd751;
	--color-lime-2: #e6f5c4;
	--color-salmon: #df4e3a;
	--color-salmon-2: #f7d7d7;
	--color-green: #1e7b5e;
	--color-green-2: #d5e6b2;
	--color-maroon: #800000;
	--nav-blue: #80b4cc;
	--nav-blue-2: #d9eff9;
	--nav-text: #373737;
}

.section-decription {
	margin-bottom: 20px;
	font-size: clamp(1.4em, 2.5vw, 1.1em);
	color: var(--gray-700);
	max-width: 60ch;
}

.horizontal-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.horizontal-nav li {
	margin: 1em 0.7rem 0;
}

.horizontal-nav a {
	padding: 0.2rem 0.2rem;
	color: inherit;
	text-decoration: none;
	border-radius: 0;
	transition: background-color 0.15s, color 0.15s;
	font-weight: 400;
}

.horizontal-nav a:hover,
.horizontal-nav a:focus {
	text-decoration: none;
	outline: 2px solid hsl(183.3, 22.6%, 52.4%);
	border-radius: 5px;
	color: hsl(183.3, 22.6%, 52.4%);
	background-color: white;	
}

.horizontal-nav a.active,
.horizontal-nav a[aria-current="page"] {
	text-decoration: none;
	outline: 2px solid hsl(183.3, 22.6%, 52.4%);
	border-radius: 5px;
	color: hsl(183.3, 22.6%, 52.4%);
	background-color: white;	
}

.horizontal-nav a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
	border-radius: 5px;
}

@media (max-width: 480px) {
	.horizontal-nav ul {
		justify-content: flex-start;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.horizontal-nav li {
		white-space: nowrap;
	}
}

@media screen and (min-width: 768px) {
	.affix-sale {
		top: 107px;
		background-color: #fff;
		width: 1470px;
	}
}

.sect-header {
	padding: 50px 0 0;
}

.sect-subheader {
	padding: 50px 0 0;
}

p {
	color: var(--gray-700);
}

h1 {
	margin-top: 50px;
	margin-bottom: 10px;
	font-size: clamp(2em, 4vw, 3em);
	color: var(--gray-900);
	font-family: var(--ff);
	font-weight: 100;
}

h2 {
	margin-top: 100px;
	margin-bottom: 30px;
	color: var(--gray-900);
	font-size: clamp(1.9em, 5vw, 2.5em);
}

h3 {
	margin: 0;
	font-family: var(--ff);
	color: var(--gray-800);
}

.btn {
	max-width: 90%;
}

/* Section nav — matches /catalog/sale/ */
.nav {
	display: flex;
	justify-content: space-around;
	background-color: transparent;
	padding: 0;
	margin: 25px 0 25px;
	gap: 15px;
}

.nav a {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 15px 5px;
	color: var(--nav-text);
	text-decoration: none;
	border: 2px solid var(--nav-blue);
	background-color: var(--nav-blue-2);
	font-weight: 400;
}

.nav a:hover {
	background-color: var(--nav-blue);
	border: 2px solid var(--nav-blue);
	color: white;
	text-shadow: none;
	transition: all 0.5s ease-out;
	text-decoration: none;
}

.nav-sale {
	display: flex;
	justify-content: space-around;
	padding: 0;
	margin: 25px 0 25px;
	gap: 15px;
	padding-top: 25px;
	margin: 0 auto;
}

.nav-sale a {
	flex: 1;
	text-align: center;
	padding: 15px 5px;
	color: var(--color-green);
	text-decoration: none;
	border: 2px solid var(--color-green);
	background-color: var(--color-green);
	font-weight: 100;
	min-height: 75px;
}

.nav-sale a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 10px;
	text-decoration: none;
	color: inherit;
	text-decoration: none;
}

.nav-sale a:hover {
	background-color: var(--sale-color-2);
	background-color: var(--sale-color-1);
	border: 2px solid var(--sale-color-1);
	color: white;
	text-shadow: none;
	transition: all 0.5s ease-out;
	text-decoration: none;
}

a.nav-item-1 {
	background-color: var(--color-teal);
	border: 2px solid var(--color-teal);
	color: var(--white);
}

a.nav-item-1:hover {
	background-color: var(--color-teal-2);
	border: 2px solid var(--color-teal);
	color: var(--color-teal);
}

a.nav-item-2 {
	background-color: var(--color-pink);
	border: 2px solid var(--color-pink);
	color: var(--white);
}

a.nav-item-2:hover {
	background-color: var(--color-pink-2);
	border: 2px solid var(--color-pink);
	color: var(--color-pink);
}

a.nav-item-3 {
	background-color: var(--color-red);
	border: 2px solid var(--color-red);
	color: var(--white);
}

a.nav-item-3:hover {
	background-color: var(--color-red-2);
	border: 2px solid var(--color-red);
	color: var(--color-red);
}

a.nav-item-4 {
	background-color: var(--color-lime);
	border: 2px solid var(--color-lime);
	color: var(--white);
}

a.nav-item-4:hover {
	background-color: var(--color-lime-2);
	border: 2px solid var(--color-green);
	color: var(--color-green);
}

a.nav-item-5 {
	background-color: var(--color-salmon);
	border: 2px solid var(--color-salmon);
	color: var(--white);
}

a.nav-item-5:hover {
	background-color: var(--color-salmon-2);
	border: 2px solid var(--color-salmon);
	color: var(--color-salmon);
}

a.nav-item-6 {
	background-color: var(--color-green);
	border: 2px solid var(--color-green);
	color: var(--white);
}

a.nav-item-6:hover {
	background-color: var(--color-green-2);
	border: 2px solid var(--color-green);
	color: var(--color-green);
}

a.nav-item-7 {
	background-color: var(--nav-blue-2);
	border: 2px solid var(--nav-blue);
	color: var(--nav-text);
}

a.nav-item-7:hover {
	background-color: var(--nav-blue);
	border: 2px solid var(--nav-blue);
	color: var(--white);
}

.featured {
	background-color: var(--sale-color-1);
	color: white;
	font-size: 1.1em;
	font-weight: 100;
	padding: 5px 50px;
	align-content: end;
	float: right;
	position: relative;
	top: -55px;
	right: -55px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	box-shadow: -5px 5px 0px var(--gray-600);
}

.sale-featured {
	padding: 50px;
	margin-top: 50px;
	margin-bottom: 0px;
	background-color: var(--gray-150);
}

.section-instruments h2 {
	color: var(--color-teal);
}

.section-instruments button {
	background-color: var(--color-teal-2);
	color: var(--color-teal);
	border: 2px solid var(--color-teal);
	font-weight: 400;
}

.section-instruments button:hover {
	background-color: var(--color-teal);
	color: var(--white);
	border: 2px solid var(--color-teal);
}

.section-cases h2 {
	color: var(--color-red);
}

.section-cases button {
	background-color: var(--color-red-2);
	color: var(--color-red);
	border: 2px solid var(--color-red);
	font-weight: 400;
}

.section-cases button:hover {
	background-color: var(--color-red);
	color: var(--white);
	border: 2px solid var(--color-red);
}

.section-bows h2 {
	color: var(--color-pink);
}

.section-bows button {
	background-color: var(--color-pink-2);
	color: var(--color-pink);
	border: 2px solid var(--color-pink);
	font-weight: 400;
}

.section-bows button:hover {
	background-color: var(--color-pink);
	color: var(--white);
	border: 2px solid var(--color-pink);
}

.section-strings h2 {
	color: var(--color-green);
}

.section-strings button {
	background-color: var(--color-green-2);
	color: var(--color-green);
	border: 2px solid var(--color-green);
	font-weight: 400;
}

.section-strings button:hover {
	background-color: var(--color-green);
	color: var(--white);
	border: 2px solid var(--color-green);
}

.section-books h2 {
	color: var(--color-salmon);
}

.section-books button {
	background-color: var(--color-salmon-2);
	color: var(--color-salmon);
	border: 2px solid var(--color-salmon);
	font-weight: 400;
}

.section-books button:hover {
	background-color: var(--color-salmon);
	color: var(--white);
	border: 2px solid var(--color-salmon);
}

.section-accessories h2 {
	color: var(--color-green);
}

.section-accessories button {
	background-color: var(--color-green-2);
	color: var(--color-green);
	border: 2px solid var(--color-green);
	font-weight: 400;
}

.section-accessories button:hover {
	background-color: var(--color-green);
	color: var(--white);
	border: 2px solid var(--color-green);
}

.section-fun h2 {
	color: var(--color-teal);
}

.section-fun button {
	background-color: var(--color-teal-2);
	color: var(--color-teal);
	border: 2px solid var(--color-teal);
	font-weight: 400;
}

.section-fun button:hover {
	background-color: var(--color-teal);
	color: var(--white);
	border: 2px solid var(--color-teal);
}

.sale-featured-dark {
	padding: 50px;
	margin-top: 50px;
	margin-bottom: 0px;
	background-color: var(--gray-900);
	color: var(--gray-100);
}

.sale-section {
	margin-top: 50px;
}

.btn-checkout {
	background-color: #5a771d !important;
	color: #fff;
	font-size: 1em !important;
}

#searchresultsheader .btn-buy,
.wishlistitem .btn {
	background-color: #5a771d;
}

.buttons-container {
	display: flex;
	justify-content: start;
	align-items: center;
	gap: 10px;
}

.search-cards-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 25px;
	grid-auto-rows: 1fr;
}

.product-title-card {
	font-size: 1em;
	font-weight: 500;
	text-align: center;
	margin-bottom: 10px;
	overflow: inherit;
}

.product-title-card a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-decoration-color: var(--gray-300);
}

.product-title-card a:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-decoration-color: var(--sale-color-1);
}

a.product-card-link {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-decoration-color: var(--color-teal);
	color: var(--color-teal);
	font-weight: 500;
}

@media (max-width: 1000px) {
	.search-cards-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}

	.product-title-card {
		font-size: 0.85em;
	}

	:is(.btn-wishlist, .btn-wishlist:hover),
	.onhand {
		font-size: 0.75em;
	}
}

:is(.btn-wishlist, .btn-wishlist:hover) {
	background-color: transparent;
	color: var(--gray-800);
	font-size: 0.8em;
	font-weight: 500;
}

.price {
	font-size: 1.3em;
	font-weight: 600;
	text-align: center;
	margin: 20px 0;
	color: #5a771d;
}

.onhand,
.wishlst-and-qty {
	font-size: 0.9em;
	text-align: center;
	white-space: nowrap;
}

.btn-checkout-ghost {
	background-color: white;
	color: var(--gray-800);
	border: 1px solid var(--gray-800);
	font-size: 0.9em;
}

/* A clicked button keeps DOM focus, so returning to the page with the browser's
   Back button restores it — and override.css's `.btn:focus { color: #fff }` then
   paints white text on the white resting background, blanking the button out.
   Reset plain :focus back to the resting style. */
.btn-checkout-ghost:focus {
	background-color: white;
	color: var(--gray-800);
	border: 1px solid var(--gray-800);
	outline: none;
}

.btn-checkout-ghost:hover,
.btn-checkout-ghost:focus-visible {
	background-color: var(--gray-800);
	color: white;
	border: 1px solid var(--gray-100);
}

/* Keyboard users still get a clear focus ring. */
.btn-checkout-ghost:focus-visible {
	outline: 2px solid var(--gray-800);
	outline-offset: 2px;
}

.btn-more {
	background-color: var(--sale-color-2);
	color: var(--nav-color);
	border: 2px solid var(--sale-color-1);
	font-weight: 300;
}

.btn-more:hover {
	background-color: var(--sale-color-1);
	border: 2px solid var(--sale-color-1);
	color: white;
}

.buybuttondetail {
	text-align: center;
	padding-bottom: 15px;
	padding-top: 15px;
}

.btn-buy,
.btn-jsi {
	width: initial;
	min-height: 50px;
	padding: 10px 25px;
	font-weight: 400;
}

.btn-checkout {
	font-weight: 100;
}

.btn-checkout {
	background-color: #5a771d;
	color: #fff;
}

.btn-checkout:hover {
	background-color: #415615;
}

.regularpricemessage {
	font-style: italic;
}

#sale .promo-link {
	backdrop-filter: blur(8px);
	background-color: rgba(15, 33, 20, 0.4);
	box-shadow: rgba(37, 38, 43, 0.2) 1px 2px 3px -1px;
	color: #fff;
	font-size: 0.7em;
	font-weight: 700;
	padding: 0.3em 0.8em;
	position: absolute;
	text-transform: uppercase;
	max-width: 300px;
	display: none;
}

.gradient-text {
	background: linear-gradient(45deg, #ff6b6b, #f06595, #cc5de8);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.product-card-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	list-style: none;
	padding: 0;
	margin: 0;
	justify-items: center;
	align-items: center;
}

.product-card {
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
	background: #fff;
	padding: 20px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	place-items: center;
	border: 2px solid var(--color-teal);
	display: flex;
}

.product-card p {
	margin-top: 10px;
	margin-bottom: 0;
}

.product-card-title {
	font-size: 1.2em;
	font-weight: 500;
	text-align: center;
	color: var(--color-green);
}

.product-card-price {
	font-size: 1.2em;
	font-weight: 500;
	text-align: center;
	color: var(--color-green);
	margin-bottom: 15px;
}

.product-card:hover {
	border: 2px solid var(--color-green);
}

.product-card-includes {
	font-size: 0.9em;
	font-style: italic;
	text-align: center;
	width: 90%;
}

@media (max-width: 600px) {
	.nav {
		flex-direction: column;
	}

	.nav a {
		padding: 14px;
	}

	.nav-sale {
		flex-direction: column;
		display: block;
	}

	.nav-sale a {
		padding: 14px;
	}
}

.grid-container {
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: auto;
	grid-gap: 20px;
}

.grid-container h2 {
	margin: 10px 0;
	font-size: 1.7em;
}

.grid-container p {
	margin: 0.5em 0 0 0;
	font-size: 0.95em;
}

.grid-container a:hover {
	color: #333;
}

@media (min-width: 30em) {
	.grid-container {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 60em) {
	.grid-container {
		grid-template-columns: repeat(3, 1fr);
	}
}

.card {
	background: white;
	text-decoration: none;
	color: #444;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: column;
	min-height: 100%;
	position: relative;
	top: 0;
	transition: all 0.1s ease-in;
}

.card:hover {
	top: -2px;
	box-shadow: 0 4px 5px rgba(0, 0, 0, 0.2);
}

.card article {
	padding: 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.card h1 {
	font-size: 20px;
	margin: 0;
	color: #333;
}

.card p {
	flex: 1;
	line-height: 1.4;
}

.card span {
	font-size: 12px;
	font-weight: bold;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 2em 0 0 0;
}

.card .thumb {
	padding-bottom: 80%;
	background-size: cover;
	background-position: center center;
}

.card picture {
	display: block;
	position: relative;
	padding-bottom: 80%;
	overflow: hidden;
}

.card picture img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

@media (min-width: 60em) {
	.item-1 {
		grid-column: 1 / span 2;
	}

	.item-1 h1 {
		font-size: 24px;
	}
}

