/* Key Food Hollywood — single product layout (v2)
   Scoped to #kf-single so nothing else on the site is affected.
   High specificity + a few !important rules are intentional: Divi and
   page-builder stylesheets load after this file. */

#kf-single {
	--kf-brand: #0b6bd3;
	--kf-brand-dark: #084f9d;
	--kf-accent: #d62828;
	--kf-ink: #17202a;
	--kf-muted: #5b6672;
	--kf-line: #e5e9ef;
	--kf-surface: #ffffff;
	--kf-soft: #f5f7fa;
	--kf-radius: 18px;

	font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--kf-ink);
	background: var(--kf-surface);
	padding: 28px 20px 64px;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
}
#kf-single *,
#kf-single *::before,
#kf-single *::after { box-sizing: border-box; }

#kf-single .kf-wrap {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
}

/* Kill inherited theme constraints on our children */
#kf-single .kf-grid > *,
#kf-single .kf-summary > * { float: none; }

#kf-single a { text-decoration: none; }

#kf-single .kf-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 500;
	color: var(--kf-muted);
	margin-bottom: 22px;
	transition: color .18s ease;
}
#kf-single .kf-back:hover { color: var(--kf-brand); }

/* ---------- layout ---------- */
#kf-single .kf-grid {
	display: grid !important;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}

/* ---------- media ---------- */
#kf-single .kf-media { min-width: 0; }
#kf-single .kf-media__frame {
	position: relative;
	border-radius: var(--kf-radius);
	overflow: hidden;
	background: var(--kf-soft);
	border: 1px solid var(--kf-line);
	box-shadow: 0 18px 40px -28px rgba(11, 32, 60, .5);
	aspect-ratio: 4 / 3;
}
#kf-single .kf-media__frame img,
#kf-single .kf-media__img {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	display: block;
	margin: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}
#kf-single .kf-media__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	background: var(--kf-brand);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	padding: 7px 12px;
	border-radius: 999px;
}

#kf-single .kf-trust {
	display: flex !important;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none !important;
	margin: 18px 0 0 !important;
	padding: 0 !important;
}
#kf-single .kf-trust li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 500;
	color: var(--kf-muted);
	background: var(--kf-soft);
	border: 1px solid var(--kf-line);
	border-radius: 999px;
	padding: 8px 14px;
	margin: 0 !important;
	list-style: none !important;
	white-space: nowrap;
}
#kf-single .kf-trust li::before { content: none !important; }
#kf-single .kf-trust__dot {
	width: 7px; height: 7px; border-radius: 50%;
	background: var(--kf-brand); flex: none;
}

/* ---------- summary ---------- */
#kf-single .kf-summary { min-width: 0; }

#kf-single .kf-eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--kf-brand);
	margin-bottom: 10px;
}

#kf-single .kf-title {
	font-family: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
	font-size: clamp(30px, 4vw, 46px);
	line-height: 1.08;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--kf-ink);
	margin: 0 0 14px !important;
	padding: 0 !important;
	text-transform: none !important;
	word-break: normal;
	overflow-wrap: break-word;
	hyphens: none;
}

#kf-single .kf-desc,
#kf-single .kf-desc p {
	font-size: 17px;
	line-height: 1.65;
	color: var(--kf-muted);
	margin: 0 0 22px;
	padding: 0;
}

#kf-single .kf-price-row {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 10px;
	padding-bottom: 22px;
	margin-bottom: 22px;
	border-bottom: 1px solid var(--kf-line);
}
#kf-single .kf-price,
#kf-single .kf-price .woocommerce-Price-amount,
#kf-single .kf-price bdi {
	font-family: "Bricolage Grotesque", "DM Sans", sans-serif;
	font-size: clamp(30px, 3.4vw, 40px);
	font-weight: 800;
	line-height: 1;
	color: var(--kf-accent) !important;
}
#kf-single .kf-price p, #kf-single .kf-price span { margin: 0; }
#kf-single .kf-unit {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--kf-muted);
}

/* ---------- buy box ---------- */
#kf-single .kf-buybox {
	position: relative;
	background: var(--kf-soft);
	border: 1px solid var(--kf-line);
	border-radius: var(--kf-radius);
	padding: 22px;
}
#kf-single .kf-buybox__head {
	display: block;
	padding-right: 136px;
	min-height: 54px;
	margin-bottom: 16px;
}

/* Quantity pill sits in the top-right corner of the buy box */
#kf-single .kf-buybox .quantity {
	position: absolute !important;
	top: 22px;
	right: 22px;
	z-index: 2;
}

/* Add to cart + Call sit side by side */
#kf-single .kf-buybox__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}
#kf-single .kf-cart { flex: 1 1 220px; min-width: 0; }
#kf-single .kf-buybox__label {
	font-size: 15px; font-weight: 700; margin: 0; color: var(--kf-ink);
}
#kf-single .kf-buybox__hint {
	font-size: 13px; color: var(--kf-muted); margin: 0;
}

/* Woo add-to-cart form, forced into a clean row */
#kf-single form.cart {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	width: 100% !important;
}
#kf-single form.cart::before,
#kf-single form.cart::after { content: none !important; display: none !important; }

#kf-single .quantity {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	position: relative;
	background: #fff;
	border: 1px solid var(--kf-line);
	border-radius: 12px;
	overflow: hidden;
	height: 54px;
	flex: 0 0 132px;
	width: 132px !important;
	max-width: 132px !important;
	min-width: 132px;
	border-radius: 999px;
	gap: 0;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
/* Themes print a visible "Quantity:" label inside the field — the buy box
   already has a Quantity heading, so hide every variant of it. */
#kf-single .quantity label,
#kf-single .quantity > label,
#kf-single form.cart .quantity label,
#kf-single .quantity .screen-reader-text,
#kf-single .quantity-label,
#kf-single form.cart > label[for^="quantity"] {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}
#kf-single .quantity input.qty,
#kf-single .quantity input[type="number"],
#kf-single .quantity .input-text {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	height: 52px !important;
	min-height: 52px !important;
	border: 0 !important;
	outline: none !important;
	background: transparent !important;
	text-align: center !important;
	font-family: "DM Sans", sans-serif !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	color: var(--kf-ink) !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	line-height: 52px !important;
	appearance: textfield;
	-moz-appearance: textfield;
}
#kf-single .quantity:focus-within {
	border-color: var(--kf-brand);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--kf-brand) 18%, transparent);
}
/* Native spinners off — the − / + buttons replace them */
#kf-single .quantity input[type=number]::-webkit-outer-spin-button,
#kf-single .quantity input[type=number]::-webkit-inner-spin-button {
	-webkit-appearance: none !important;
	appearance: none !important;
	margin: 0 !important;
	display: none !important;
}

/* − / + stepper buttons */
#kf-single .kf-step {
	flex: 0 0 34px;
	width: 34px !important;
	height: 34px !important;
	min-height: 34px !important;
	margin: 0 4px !important;
	padding: 0 !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	border: 0 !important;
	border-radius: 999px !important;
	background: transparent !important;
	color: var(--kf-ink) !important;
	font-size: 20px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	cursor: pointer;
	transition: background .15s ease;
}
#kf-single .kf-step:hover { background: color-mix(in srgb, var(--kf-brand) 12%, transparent) !important; }
#kf-single .kf-step::after { content: none !important; }

/* Subtotal row */
#kf-single .kf-subtotal {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 18px 0;
	padding-top: 18px;
	border-top: 1px solid var(--kf-line);
}
#kf-single .kf-subtotal__label {
	font-size: 15px;
	font-weight: 500;
	color: var(--kf-muted);
}
#kf-single .kf-subtotal__value,
#kf-single .kf-subtotal__value .amount,
#kf-single .kf-subtotal__value bdi {
	font-family: "Bricolage Grotesque", sans-serif !important;
	font-size: 30px;
	font-weight: 800;
	color: var(--kf-ink);
	line-height: 1.1;
}

/* Add to cart + call buttons */
#kf-single .kf-btn,
#kf-single button.button,
#kf-single .single_add_to_cart_button,
#kf-single form.cart button[type="submit"] {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 54px;
	min-height: 54px;
	padding: 0 26px !important;
	border: 0;
	border-radius: 12px !important;
	font-family: "DM Sans", sans-serif !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	cursor: pointer;
	transition: background .18s ease, transform .18s ease, color .18s ease;
	white-space: nowrap;
	width: auto !important;
	float: none !important;
	margin: 0 !important;
}
#kf-single .single_add_to_cart_button,
#kf-single form.cart button[type="submit"] {
	flex: 1 1 220px;
	background: var(--kf-accent) !important;
	color: #fff !important;
}
#kf-single .single_add_to_cart_button:hover,
#kf-single form.cart button[type="submit"]:hover {
	background: #b31f1f !important;
	transform: translateY(-1px);
}
/* Divi injects an arrow on buttons — remove it */
#kf-single .single_add_to_cart_button::after,
#kf-single .kf-btn::after,
#kf-single form.cart button::after { content: none !important; display: none !important; }

#kf-single .kf-btn--outline {
	flex: 1 1 200px;
	width: auto !important;
	background: #fff !important;
	color: var(--kf-brand) !important;
	border: 1.5px solid var(--kf-brand) !important;
}
#kf-single .kf-btn--outline:hover {
	background: var(--kf-brand) !important;
	color: #fff !important;
}

#kf-single .kf-meta {
	font-size: 13px;
	color: var(--kf-muted);
	margin: 14px 0 0;
}

/* ---------- related ---------- */
#kf-single .kf-related { margin-top: 72px; }
#kf-single .related > h2,
#kf-single .kf-related h2 {
	font-family: "Bricolage Grotesque", "DM Sans", sans-serif;
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -.01em;
	margin: 0 0 24px;
	color: var(--kf-ink);
	text-align: left;
}
#kf-single ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
#kf-single ul.products::before,
#kf-single ul.products::after { content: none !important; display: none !important; }
#kf-single ul.products li.product {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	clear: none !important;
	background: #fff;
	border: 1px solid var(--kf-line);
	border-radius: var(--kf-radius);
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease;
}
#kf-single ul.products li.product:hover {
	transform: translateY(-3px);
	box-shadow: 0 20px 34px -26px rgba(11, 32, 60, .55);
}
#kf-single ul.products li.product img {
	width: 100% !important;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	margin: 0 !important;
	border-radius: 0 !important;
}
#kf-single ul.products li.product .woocommerce-loop-product__title {
	font-family: "Bricolage Grotesque", "DM Sans", sans-serif;
	font-size: 17px !important;
	font-weight: 700;
	color: var(--kf-ink);
	padding: 14px 16px 0 !important;
	margin: 0 !important;
}
#kf-single ul.products li.product .price {
	display: block;
	padding: 6px 16px 16px;
	color: var(--kf-accent) !important;
	font-weight: 700;
	font-size: 17px;
	margin: 0 !important;
}
#kf-single ul.products li.product .button,
#kf-single ul.products li.product .added_to_cart { display: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
	#kf-single .kf-grid { gap: 34px; }
	#kf-single ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	#kf-single .kf-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 768px) {
	#kf-single { padding: 20px 16px 48px; }
	#kf-single ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	#kf-single .kf-buybox { padding: 18px; }
	#kf-single .kf-buybox__head { padding-right: 132px; min-height: 50px; }
	#kf-single .kf-buybox .quantity { top: 18px; right: 18px; }
	#kf-single .kf-buybox__actions { flex-direction: column; align-items: stretch; }
	#kf-single .kf-cart { flex: 0 0 auto; width: 100%; }
	#kf-single .kf-btn--outline { flex: 0 0 auto; width: 100% !important; }
	#kf-single form.cart { flex-direction: column; align-items: stretch; }
	#kf-single form.cart > * { flex: 0 0 auto !important; }
	#kf-single .kf-buybox .quantity { width: 124px !important; max-width: 124px !important; min-width: 124px; }
	#kf-single .kf-subtotal__value { font-size: 26px; }
	#kf-single .single_add_to_cart_button,
	#kf-single form.cart button[type="submit"] { width: 100% !important; flex: 0 0 54px !important; height: 54px; }
}
@media (max-width: 420px) {
	#kf-single ul.products { grid-template-columns: minmax(0, 1fr); }
}

/* Hide leftovers some themes print around the product */
body.kf-single-page .woocommerce-breadcrumb,
body.kf-single-page .woocommerce-tabs,
body.kf-single-page .product_meta { display: none !important; }

/* v2.4 — nothing but the number lives inside the quantity pill */
#kf-single .quantity > *:not(input):not(.kf-step) { display: none !important; }
#kf-single .quantity { font-size: 0 !important; }
#kf-single .quantity input.qty,
#kf-single .quantity .kf-step { font-size: 18px !important; }
