/* Cinnamon Ridge Shop - color palette matched to the live Lovable storefront */
:root {
	--crf-navy: #2d3b4a;
	--crf-navy-dark: #24303c;
	--crf-orange: #d98e3f;
	--crf-orange-dark: #c17a2e;
	--crf-cream: #f4efe8;
	--crf-text: #24303c;
}

.crf-shop-section {
	max-width: 1200px;
	margin: 0 auto;
	padding: 48px 24px;
}

.crf-shop-eyebrow {
	display: inline-block;
	background: var(--crf-orange);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 4px 10px;
	margin-bottom: 12px;
}

.crf-shop-heading {
	font-size: 32px;
	margin: 0 0 24px;
	color: var(--crf-text);
}

.crf-shop-error {
	color: #b33;
	font-style: italic;
}

.crf-product-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(4, 1fr);
}
.crf-product-grid.crf-columns-2 { grid-template-columns: repeat(2, 1fr); }
.crf-product-grid.crf-columns-3 { grid-template-columns: repeat(3, 1fr); }
.crf-product-grid.crf-columns-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 782px) {
	.crf-product-grid,
	.crf-product-grid.crf-columns-2,
	.crf-product-grid.crf-columns-3,
	.crf-product-grid.crf-columns-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.crf-product-grid,
	.crf-product-grid.crf-columns-2,
	.crf-product-grid.crf-columns-3,
	.crf-product-grid.crf-columns-4 {
		grid-template-columns: 1fr;
	}
}

.crf-product-card {
	background: #fff;
	border: 1px solid #e5e0d8;
	border-radius: 10px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	min-width: 0;
	transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.crf-product-card:hover {
	border-color: var(--crf-orange);
	box-shadow: 0 8px 20px rgba(36, 48, 60, 0.1);
	transform: translateY(-3px);
}
.crf-product-card img,
.crf-product-card .crf-product-title,
.crf-product-card-placeholder {
	cursor: pointer;
}

.crf-product-card img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	margin-bottom: 12px;
	background: #f2f2f2;
	border-radius: 6px;
}

.crf-product-card-placeholder {
	width: 100%;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f2f2f2;
	color: #999;
	margin-bottom: 12px;
	font-size: 13px;
}

.crf-product-title {
	font-size: 16px;
	margin: 0 0 6px;
	color: var(--crf-text);
}

.crf-product-price {
	font-weight: 700;
	margin-bottom: 12px;
	color: var(--crf-text);
}

.crf-add-to-cart,
.crf-bundle-add-to-cart {
	background: var(--crf-orange) !important;
	color: #fff !important;
	border: none !important;
	outline: none !important;
	border-radius: 50px;
	padding: 10px 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}
.crf-add-to-cart:hover,
.crf-bundle-add-to-cart:not(:disabled):hover {
	background: var(--crf-orange-dark);
}
.crf-add-to-cart:disabled,
.crf-bundle-add-to-cart:disabled {
	background: #ccc;
	cursor: not-allowed;
}

/* Announcement bar */
.crf-announcement-bar {
	background: var(--crf-navy-dark);
	color: #fff;
	text-align: center;
	font-size: 13px;
	padding: 8px 40px;
	position: relative;
}
.crf-announcement-close {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: #fff;
	font-size: 18px;
	cursor: pointer;
}

/* Cart toggle + drawer */
.crf-cart-toggle {
	background: var(--crf-orange);
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 8px 14px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-weight: 700;
}
.crf-cart-icon {
	width: 18px;
	height: 18px;
	display: inline-block;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 4h-2l-1 2h2l3.6 7.59-1.35 2.44c-.16.28-.25.61-.25.97 0 1.1.9 2 2 2h12v-2h-11.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1h-14.31l-.94-2z'/></svg>") no-repeat center / contain;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 4h-2l-1 2h2l3.6 7.59-1.35 2.44c-.16.28-.25.61-.25.97 0 1.1.9 2 2 2h12v-2h-11.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1h-14.31l-.94-2z'/></svg>") no-repeat center / contain;
}

.crf-cart-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
	z-index: 9998;
}
.crf-cart-overlay.is-open {
	opacity: 1;
	pointer-events: auto;
}

.crf-cart-drawer {
	position: fixed;
	top: 0;
	right: 0;
	height: 100%;
	width: 380px;
	max-width: 90vw;
	background: #fff;
	transform: translateX(100%);
	transition: transform 0.25s ease;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
}
.crf-cart-drawer.is-open {
	transform: translateX(0);
}

.crf-cart-drawer-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	border-bottom: 1px solid #eee;
	background: var(--crf-navy);
	color: #fff;
}
.crf-cart-drawer-header h3 { margin: 0; }
.crf-cart-drawer-close {
	background: none;
	border: none;
	color: #fff;
	font-size: 22px;
	cursor: pointer;
}

.crf-cart-lines {
	flex: 1;
	overflow-y: auto;
	padding: 16px 20px;
}
.crf-cart-empty {
	color: #888;
	text-align: center;
	margin-top: 40px;
}
.crf-cart-line {
	display: flex;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #f0f0f0;
	align-items: center;
}
.crf-cart-line-remove {
	background: none !important;
	border: none !important;
	outline: none !important;
	border-radius: 0 !important;
	width: auto !important;
	height: auto !important;
	color: #aaa !important;
	font-size: 22px !important;
	line-height: 1 !important;
	cursor: pointer;
	padding: 4px 6px !important;
	flex-shrink: 0;
	transition: color 0.15s ease;
}
.crf-cart-line-remove:hover {
	color: #b33 !important;
	background: none !important;
}
.crf-cart-line-remove:disabled {
	opacity: 0.4 !important;
	cursor: not-allowed;
}
.crf-cart-line img {
	width: 56px;
	height: 56px;
	object-fit: cover;
}
.crf-cart-line-info { flex: 1; }
.crf-cart-line-title { font-weight: 600; }
.crf-cart-line-qty { font-size: 13px; color: #888; }

.crf-cart-footer {
	padding: 16px 20px 20px;
	border-top: 1px solid #eee;
}
.crf-cart-subtotal {
	display: flex;
	justify-content: space-between;
	font-weight: 700;
	margin-bottom: 12px;
}
.crf-cart-footer .crf-cart-checkout {
	display: block;
	text-align: center;
	background: var(--crf-orange);
	color: #fff;
	padding: 12px;
	text-decoration: none;
	font-weight: 700;
}
.crf-cart-footer .crf-cart-checkout:hover { background: var(--crf-orange-dark); color: #fff; }

/* Bundle builder */
.crf-bundle-builder {
	max-width: 1200px;
	margin: 0 auto;
	padding: 48px 24px;
}
.crf-bundle-progress {
	color: var(--crf-orange-dark);
	font-weight: 600;
}
.crf-bundle-options {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 16px;
	margin: 24px 0;
}
.crf-bundle-option {
	border: 2px solid #e5e0d8;
	padding: 12px;
	text-align: center;
	cursor: pointer;
	display: block;
	position: relative;
}
.crf-bundle-option input {
	position: absolute;
	top: 8px;
	left: 8px;
}
.crf-bundle-option img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	margin-bottom: 8px;
}
.crf-bundle-option:has(input:checked) {
	border-color: var(--crf-orange);
	background: #fff8ef;
}

/* --- Shop page visual refresh (Aug 2026) --- */

.crf-bundle-option {
	border-radius: 10px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.crf-bundle-option:hover {
	border-color: var(--crf-orange);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}
.crf-bundle-option img {
	border-radius: 6px;
}
.crf-bundle-option span {
	display: block;
	margin-top: 4px;
	font-size: 14px;
	color: var(--crf-text);
}
.crf-bundle-option input {
	width: 18px;
	height: 18px;
	accent-color: var(--crf-orange);
	cursor: pointer;
}
.crf-bundle-option:has(input:checked) {
	box-shadow: 0 0 0 3px rgba(217, 142, 63, 0.25);
}

.crf-bundle-builder {
	background: var(--crf-cream);
	border-radius: 16px;
	margin-top: 32px;
	margin-bottom: 32px;
}

.crf-bundle-progress {
	font-size: 15px;
	margin-bottom: 4px;
}

/* Cart line quantity stepper */
.crf-cart-line-qty-controls {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
}
.crf-cart-qty-btn {
	background: #fff !important;
	border: 1px solid #ddd !important;
	outline: none !important;
	border-radius: 50% !important;
	width: 24px !important;
	height: 24px !important;
	min-width: 24px !important;
	padding: 0 !important;
	font-size: 15px !important;
	line-height: 1 !important;
	color: var(--crf-text) !important;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.15s ease, color 0.15s ease;
}
.crf-cart-qty-btn:hover {
	border-color: var(--crf-orange) !important;
	color: var(--crf-orange) !important;
	background: #fff !important;
}
.crf-cart-qty-btn:disabled {
	opacity: 0.4 !important;
	cursor: not-allowed;
}
.crf-cart-qty-value {
	min-width: 16px;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
}
