:root {
	--caneyse-red: #e33620;
	--caneyse-ink: #171717;
	--caneyse-border: #dedbd6;
	--caneyse-soft: #fff7f3;
}

.caneyse-bundle-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 5px 10px;
	border-radius: 999px;
	background: var(--caneyse-red);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
}

.wc-block-product,
ul.products li.product {
	position: relative;
}

.caneyse-product-offer {
	display: grid;
	gap: 4px;
	margin: 14px 0 18px;
	padding: 14px 16px;
	border: 1px solid #f0b5aa;
	border-radius: 6px;
	background: var(--caneyse-soft);
	color: var(--caneyse-ink);
}

.caneyse-product-offer strong {
	font-size: 15px;
}

.caneyse-product-offer span {
	color: #555;
	font-size: 13px;
	line-height: 1.45;
}

.caneyse-cart-progress {
	display: grid;
	gap: 14px;
	margin: 0 0 24px;
	padding: 18px 20px;
	border: 1px solid var(--caneyse-border);
	border-left: 4px solid var(--caneyse-red);
	border-radius: 6px;
	background: #fff;
	color: var(--caneyse-ink);
}

.caneyse-progress-row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 8px 14px;
	align-items: center;
}

.caneyse-progress-row strong {
	font-size: 15px;
}

.caneyse-progress-row a {
	color: var(--caneyse-red);
	font-size: 13px;
	font-weight: 800;
}

.caneyse-progress-track {
	grid-column: 1 / -1;
	height: 7px;
	overflow: hidden;
	border-radius: 999px;
	background: #ece9e5;
}

.caneyse-progress-track span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--caneyse-red);
	transition: width 180ms ease;
}

.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.checkout-button,
.single_add_to_cart_button {
	border-color: var(--caneyse-red) !important;
	background: var(--caneyse-red) !important;
	color: #fff !important;
	font-weight: 800 !important;
}

.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover,
.checkout-button:hover,
.single_add_to_cart_button:hover {
	background: #bb2817 !important;
}

.caneyse-menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--caneyse-border);
	border-radius: 4px;
	background: #fff;
	color: var(--caneyse-ink);
	cursor: pointer;
}

.caneyse-menu-toggle span,
.caneyse-menu-toggle::before,
.caneyse-menu-toggle::after {
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
	content: '';
	transition: transform 160ms ease, opacity 160ms ease;
}

.caneyse-menu-toggle span {
	margin: 5px 0;
}

@media (max-width: 980px) {
	body.home .dm-nav {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) auto auto !important;
		align-items: center !important;
		gap: 10px !important;
		min-height: 64px !important;
		padding: 10px 16px !important;
		background: rgba(255, 255, 255, 0.98) !important;
		z-index: 500 !important;
	}

	body.home .dm-wrap {
		margin: 0 !important;
		overflow: visible !important;
	}

	body.home.admin-bar .dm-nav {
		top: 32px;
	}

	body.home .dm-nav > p {
		display: none !important;
	}

	body.home .dm-brand {
		gap: 8px !important;
		font-size: 20px !important;
	}

	body.home .dm-mark {
		width: 38px !important;
		height: 38px !important;
		font-size: 13px !important;
	}

	body.home .caneyse-menu-toggle {
		display: flex;
		flex-direction: column;
		grid-column: 3;
		grid-row: 1;
	}

	body.home .dm-actions {
		display: flex !important;
		grid-column: 2;
		grid-row: 1;
		width: auto !important;
	}

	body.home .dm-actions .dm-pill:first-child {
		display: none !important;
	}

	body.home .dm-actions .dm-pill:last-child {
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		min-width: 54px;
		height: 44px;
		padding: 0 12px !important;
	}

	body.home .dm-menu {
		display: none !important;
		grid-column: 1 / -1;
		grid-row: 2;
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 0 !important;
		width: 100%;
		padding: 8px 0 4px;
		border-top: 1px solid var(--caneyse-border);
	}

	body.home .dm-nav.caneyse-menu-open .dm-menu {
		display: flex !important;
	}

	body.home .dm-menu a {
		display: flex;
		align-items: center;
		min-height: 44px;
		padding: 0 8px;
		border-bottom: 1px solid #f0eeeb;
	}

	body.home .dm-top a {
		color: #fff !important;
		font-weight: 900;
		text-decoration: underline !important;
	}

	body.home .dm-nav.caneyse-menu-open .caneyse-menu-toggle::before {
		transform: translateY(7px) rotate(45deg);
	}

	body.home .dm-nav.caneyse-menu-open .caneyse-menu-toggle span {
		opacity: 0;
	}

	body.home .dm-nav.caneyse-menu-open .caneyse-menu-toggle::after {
		transform: translateY(-7px) rotate(-45deg);
	}

	body.home .dm-hero {
		min-height: calc(100svh - 105px) !important;
		padding: 34px 20px !important;
	}

	body.home .dm-hero h1 {
		font-size: clamp(36px, 10.5vw, 44px) !important;
		line-height: 1.02 !important;
	}

	body.home .dm-hero p {
		font-size: 17px !important;
		line-height: 1.42 !important;
	}

	body.home .dm-btns {
		gap: 10px !important;
		margin-top: 20px !important;
	}
}

@media (max-width: 782px) {
	body.home.admin-bar .dm-nav {
		top: 46px;
	}
}

@media (max-width: 640px) {
	body.home .dm-top {
		padding: 8px 12px !important;
		font-size: 12px !important;
		line-height: 1.35 !important;
	}

	body.home .dm-btns .dm-btn {
		width: 100%;
	}

	body.single-product.product-type-simple {
		padding-bottom: calc(78px + env(safe-area-inset-bottom));
	}

	body.single-product.product-type-simple .wp-block-woocommerce-add-to-cart-form form.cart {
		position: fixed !important;
		z-index: 9998;
		bottom: 0;
		left: 0;
		right: 0;
		display: grid !important;
		grid-template-columns: 74px minmax(0, 1fr);
		gap: 10px;
		align-items: stretch;
		box-sizing: border-box;
		width: auto;
		margin: 0 !important;
		padding: 10px 14px calc(10px + env(safe-area-inset-bottom)) !important;
		border-top: 1px solid var(--caneyse-border);
		background: rgba(255, 255, 255, 0.98);
		box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
	}

	body.single-product.product-type-simple .wp-block-woocommerce-add-to-cart-form form.cart .quantity,
	body.single-product.product-type-simple .wp-block-woocommerce-add-to-cart-form form.cart .quantity input {
		width: 74px !important;
		height: 48px !important;
		margin: 0 !important;
	}

	body.single-product.product-type-simple .wp-block-woocommerce-add-to-cart-form form.cart .single_add_to_cart_button {
		width: 100% !important;
		min-height: 48px !important;
		margin: 0 !important;
		border-radius: 4px !important;
	}

	body.single-product.product-type-simple.sold-individually .wp-block-woocommerce-add-to-cart-form form.cart {
		grid-template-columns: minmax(0, 1fr);
	}

	body.single-product.product-type-simple.sold-individually .wp-block-woocommerce-add-to-cart-form .single_add_to_cart_button {
		grid-column: 1 / -1 !important;
	}

	.caneyse-cart-progress {
		margin-bottom: 18px;
		padding: 16px;
	}

	.caneyse-progress-row {
		grid-template-columns: 1fr;
	}

	.caneyse-progress-row a {
		justify-self: start;
	}
}
