/* Shop — jasonkobs.com */

#shop .shop-intro h1 {
	padding-top: 0;
	margin-bottom: 8px;
}

#shop .shop-intro h2 {
	margin-left: 0;
}

.shop-intro .lead {
	margin-bottom: 0;
}

.shop-intro {
	margin-bottom: 48px;
}

.shop-cart > .shop-bar {
	margin-bottom: 0;
}

.shop-cart .shop-intro h2 {
	margin-top: 12px;
}

.shop-filters {
	margin: 0 0 8px;
}

.shop-filter-search {
	display: flex;
	gap: 8px;
	align-items: stretch;
	margin-bottom: 16px;
}

.shop-filter-label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.shop-filter-search input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 10px 12px;
	border: 2px solid rgba(6, 47, 95, 0.18);
	font-size: 16px;
	background: #fff;
	outline: none;
	transition: border-color 0.15s ease;
}

.shop-filter-search input[type="search"]:hover {
	border-color: rgba(6, 47, 95, 0.4);
}

.shop-filter-search input[type="search"]:focus {
	border-color: #062f5f;
}

.shop-filter-submit {
	padding: 10px 18px;
	border: 2px solid #062f5f;
	background: #062f5f;
	color: #fff;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	cursor: pointer;
}

.shop-bar {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.shop-cats a {
	margin-right: 16px;
	font-weight: 600;
}

.shop-cats a.is-active {
	text-decoration: underline;
}

.shop-result-count,
.shop-empty {
	font-weight: 600;
	margin: 0 0 20px;
}

[data-shop-item][hidden],
.shop-empty[hidden] {
	display: none !important;
}

.shop-card {
	display: block;
	margin-bottom: 32px;
	color: inherit;
}

.shop-card:hover {
	text-decoration: none;
}

.shop-card img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: center;
	display: block;
	mix-blend-mode: multiply;
	background: #f4f4f4;
}

.shop-card h3 {
	margin: 12px 0 4px;
	font-size: 18px;
	line-height: 1.3;
}

.shop-card .price,
.shop-price {
	font-weight: 800;
	font-size: 20px;
}

.shop-hero img {
	width: 100%;
	height: auto;
	mix-blend-mode: multiply;
	background: #f4f4f4;
	margin-bottom: 8px;
}

.shop-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 8px 0 24px;
}

.shop-thumbs button {
	border: 0;
	padding: 0;
	background: none;
	cursor: pointer;
	width: 72px;
}

.shop-thumbs img {
	width: 100%;
	height: auto;
	mix-blend-mode: multiply;
}

.shop-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 16px 0 28px;
}

.shop-qty-wrap {
	margin: 18px 0 0;
}

.shop-qty-label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.shop-qty-control {
	display: inline-flex;
	align-items: stretch;
	border: 2px solid #062f5f;
}

.shop-qty-btn {
	width: 40px;
	border: 0;
	background: #fff;
	color: #062f5f;
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.shop-qty-btn:hover,
.shop-qty-btn:focus {
	background: #062f5f;
	color: #fff;
	outline: none;
}

.shop-qty-control .shop-qty {
	width: 56px;
	border: 0;
	border-left: 2px solid #062f5f;
	border-right: 2px solid #062f5f;
	text-align: center;
	font-weight: 700;
	font-size: 16px;
	color: #062f5f;
	-moz-appearance: textfield;
}

.shop-qty-control .shop-qty::-webkit-outer-spin-button,
.shop-qty-control .shop-qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.shop-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	padding: 12px 22px;
	border: 2px solid #062f5f;
	background: #062f5f;
	color: #fff !important;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	cursor: pointer;
	min-width: 168px;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.shop-btn .shop-btn-label {
	color: #fff !important;
}

.shop-btn:hover {
	background: #1aa2de;
	border-color: #1aa2de;
	text-decoration: none;
}

.shop-btn:disabled,
.shop-btn.is-busy {
	cursor: wait;
	opacity: 1;
}

.shop-btn:disabled:hover,
.shop-btn.is-busy:hover {
	background: #062f5f;
	border-color: #062f5f;
}

.shop-btn.is-added,
.shop-btn.is-added:hover,
.shop-btn.is-added:disabled:hover {
	background: #1aa2de;
	border-color: #1aa2de;
}

.shop-btn.is-loading .shop-btn-label {
	padding-left: 22px;
}

.shop-btn.is-loading::before {
	content: '';
	position: absolute;
	left: 16px;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: shop-btn-spin 0.6s linear infinite;
}

.shop-btn.is-added {
	background: #1aa2de;
	border-color: #1aa2de;
}

@keyframes shop-btn-spin {
	to { transform: rotate(360deg); }
}

.shop-btn-ghost {
	background: #fff;
	color: #062f5f !important;
}

.shop-btn-ghost:hover {
	color: #fff !important;
}

.shop-note {
	font-size: 14px;
	margin-top: 8px;
}

.shop-desc h4,
.shop-desc h5 {
	margin-top: 16px;
}

.shop-desc ul,
.shop-desc ol {
	margin: 0 0 1rem;
	padding-left: 40px;
}

.shop-desc li {
	margin-bottom: 4px;
}

.shop-related {
	margin: 56px 0 48px;
}

.shop-related h2 {
	margin: 0 0 16px;
	padding-top: 0;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #062f5f;
}

.shop-related-list {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 16px;
}

.shop-related-item {
	display: block;
	color: inherit;
	min-width: 0;
}

.shop-related-item:hover,
.shop-related-item:focus {
	text-decoration: none;
	color: #1aa2de;
}

.shop-related-item img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: center;
	display: block;
	mix-blend-mode: multiply;
	background: #f4f4f4;
	margin-bottom: 8px;
}

.shop-related-name {
	display: block;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	max-height: 2.6em;
	overflow: hidden;
}

.shop-related-price {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	font-weight: 800;
}

@media (max-width: 900px) {
	.shop-related-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 500px) {
	.shop-related-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.shop-cart [hidden] {
	display: none !important;
}

.shop-cart-empty {
	text-align: center;
}

.shop-cart-empty p {
	max-width: 28em;
	margin-left: auto;
	margin-right: auto;
}

.shop-cart.is-empty .shop-intro {
	margin-bottom: 16px;
}

.shop-cart-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 40px 56px;
	align-items: start;
	margin-bottom: 48px;
}

.shop-cart-row {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr) auto;
	gap: 16px 20px;
	align-items: start;
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 2px solid rgba(6, 47, 95, 0.18);
}

.shop-cart-thumb {
	display: block;
	background: #f4f4f4;
}

.shop-cart-thumb img,
.shop-cart-row img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: center;
	display: block;
	mix-blend-mode: multiply;
}

.shop-cart-info h3 {
	margin: 0 0 6px;
	padding-top: 0;
	font-size: 18px;
	line-height: 1.3;
}

.shop-cart-info h3 a {
	color: inherit;
}

.shop-cart-info h3 a:hover {
	color: #1aa2de;
	text-decoration: none;
}

.shop-cart-unit {
	font-size: 14px;
	margin-bottom: 12px;
}

.shop-cart-row-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

.shop-cart-remove {
	border: 0;
	background: none;
	padding: 0;
	color: #1aa2de;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.shop-cart-remove:hover {
	text-decoration: underline;
}

.shop-cart-line {
	font-size: 16px;
	font-weight: 800;
	white-space: nowrap;
	padding-top: 2px;
}

.shop-cart-aside {
	border: 2px solid #062f5f;
	padding: 24px;
	position: sticky;
	top: 24px;
}

.shop-cart-count {
	margin: 0 0 16px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.shop-cart-totals {
	display: grid;
	gap: 10px;
	margin-bottom: 8px;
}

.shop-cart-total-row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font-size: 15px;
}

.shop-cart-total-row.is-grand {
	margin-top: 6px;
	padding-top: 12px;
	border-top: 2px solid #062f5f;
	font-weight: 800;
	font-size: 18px;
}

.shop-pay {
	margin-top: 24px;
}

.shop-pay h3 {
	margin: 0 0 16px;
	padding-top: 0;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.shop-cart-aside .shop-btn {
	width: 100%;
	min-width: 0;
}

#paypal-button-wrap {
	margin-top: 12px;
}

.shop-missing-keys {
	padding: 16px;
	border: 2px dashed #062f5f;
	margin: 16px 0;
}

@media (max-width: 800px) {
	.shop-back {
		justify-content: center;
		text-align: center;
		padding-top: 24px;
		padding-bottom: 24px;
		margin-bottom: 8px;
	}

	.shop-cart-layout {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.shop-cart-aside {
		position: static;
		width: 100%;
	}
}

@media (max-width: 600px) {
	.shop-cart-row {
		grid-template-columns: 88px minmax(0, 1fr);
	}

	.shop-cart-line {
		grid-column: 2;
		padding-top: 0;
	}
}
