/*
 * Single product design treatment (client request, 2026-06-24).
 *
 * Brings the design-preview branch's product-page treatment to the live theme
 * — matted gallery stage, cream option/add-on panels, gold framing + accents,
 * flattened price strips, full-width CTA, cream related band with card tiles —
 * with the SAME exception as the category work: typography is left untouched
 * (client is not making font changes at this time). Every font-family / size /
 * weight / style, letter-spacing and text-transform from the preview rules has
 * been removed; colour, background, border, shadow, radius, spacing and layout
 * carry over as-is. (font-size is kept ONLY on the decorative icomoon glyphs,
 * which are icons, not text.)
 *
 * Loaded after production/style.css on single product pages only, via
 * functions-product-styling.php. Every wrapper targeted here is present in
 * live markup (#ws-gallery, .ws-cart-group-wrap, .component_inner,
 * .ws_add_ons_wrap, .complentary-area, .ws-product-title-wrap, ...).
 */

/* --- Tokens (font tokens intentionally omitted) --------------------------- */
:root {
	--kf-paper: #faf7f1;
	--kf-ink: #262c33;
	--kf-ink-soft: #4d5560;
	--kf-muted: #79828c;
	--kf-navy: #234e76;
	--kf-blue: #3a73a8;
	--kf-gold: #b6924f;
	--kf-gold-soft: #d8bf94;
	--kf-green: #2c6e51;
	--kf-green-deep: #225a41;
	--kf-line: #e5ded0;
	--kf-line-soft: #efeae0; /* defined here: preview referenced it but never set it */
	--kf-radius-sm: 10px;
	--kf-ring: 0 0 0 1px rgba(38, 44, 51, .07);
	--kf-ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- Title -------------------------------------------------------------- */
.ws-product-title-wrap {
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 0; /* production draws a #bec5cb rule here — drop it */
}
.ws-product-title-wrap:before {
	content: '';
	display: block;
	width: 64px;
	height: 2px;
	background: linear-gradient(90deg, var(--kf-gold), var(--kf-gold-soft));
	margin: 6px 0 20px;
}
.ws-product-title-wrap .product_title { color: var(--kf-navy); }
.ws-back-button { color: var(--kf-muted); }
.ws-back-button:hover { color: var(--kf-navy); }

/* --- Gallery: matted, framed stage -------------------------------------- */
#ws-gallery {
	background: radial-gradient(140% 120% at 50% 45%, #ffffff 0%, #ffffff 52%, rgba(247, 240, 226, .9) 100%);
	border: 0;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: var(--kf-ring), 0 26px 52px -36px rgba(35, 78, 118, .4);
	position: relative;
	padding: 44px 40px 30px;
	margin-bottom: 32px; /* breathing room below the image container */
}
#ws-gallery:before {
	content: '';
	position: absolute;
	inset: 14px;
	border: 1px solid rgba(182, 146, 79, .35);
	border-radius: 10px;
	pointer-events: none;
	z-index: 1;
}
#ws-gallery .woocommerce-main-image {
	display: block;
	border-radius: 12px;
	overflow: hidden;
}
/* the bouquet IS the page — production caps the img at ~40-50% width inside an
   80% right-floated box via #content-weighted selectors; match them */
.woocommerce #content div.product div.images .woocommerce-main-image,
.woocommerce div.product div.images .woocommerce-main-image {
	float: none;
	width: 100%;
	margin-top: 0;
}
.woocommerce #content div.product div.images .woocommerce-main-image img,
.woocommerce div.product div.images .woocommerce-main-image img {
	width: 100%;
	height: auto;
	display: block;
}
/* thumbnails: horizontal swatch row under the hero image */
.woocommerce #content div.product div.images div.thumbnails,
.woocommerce div.product div.images div.thumbnails {
	float: none;
	width: 100%;
	display: flex;
	gap: 10px;
	justify-content: flex-start;
	padding-top: 14px;
}
.woocommerce #content div.product div.images div.thumbnails .woocommerce-product-gallery__image {
	flex: 0 0 88px;
}
#ws-gallery .woocommerce-main-image img { border-radius: 0; }
#ws-gallery .thumbnails { padding: 10px 12px 12px; }
#ws-gallery .thumbnails .woocommerce-product-gallery__image img,
#ws-gallery .thumbnails img {
	border: 0;
	border-radius: var(--kf-radius-sm);
	box-shadow: none;
	opacity: .7;
	transition: opacity .18s var(--kf-ease);
}
#ws-gallery .thumbnails a:hover img { opacity: 1; }

/* --- Favorites / Drop-a-Hint row ---------------------------------------- */
.ws-wishlist-area,
.ws-drop-a-hint-area {
	border-top: 0 !important;
	border-bottom: 0 !important;
}
.ws-wishlist-area {
	margin-top: 20px;
	margin-bottom: 14px;
	padding-top: 12px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--kf-line-soft) !important;
}
.ws-wishlist-area a,
.ws-wishlist-area .drop-a-hint { color: var(--kf-ink-soft); }
.ws-wishlist-area a:hover { color: var(--kf-navy); }
.ws-wishlist-area .icon { color: var(--kf-gold); }
.ws-wishlist-area [class*="col-"] { border: 0 !important; }

/* Stacked page (<1024px): clean stacked Favorites / Drop-a-Hint. The wishlist
   row's own col-sm-6 keeps the two actions split until 544px, but the product
   layout already stacks at 1024px — so centre + full-width them across the
   whole stacked range (otherwise Favorites reads as left-aligned in its half
   column between 544–1023px). Drop the side divider + negative margins meant
   for the side-by-side layout, hairline-separate the rows, inline the icons. */
@media (max-width: 1023px) {
	.ws-wishlist-area .row { margin-left: 0; margin-right: 0; }
	.ws-wishlist-area .row > [class*="col-"] { float: none; width: 100%; padding-left: 0; padding-right: 0; }
	.ws-wishlist-hint-wrap {
		border-right: 0 !important;
		margin-right: 0 !important;
		padding: 0 0 14px !important;
		text-align: center;
	}
	.ws-drop-a-hint-area {
		border-top: 1px solid var(--kf-line-soft) !important;
		padding: 14px 0 0 !important;
		text-align: center;
		width: 100%;
	}
	.ws-wishlist-area .ws_wishlist_wrap { width: 100% !important; }
	.ws-wishlist-area .yith-wcwl-add-to-wishlist,
	.ws-wishlist-area .yith-wcwl-add-button {
		display: flex;
		justify-content: center;
		text-align: center;
		width: 150px;
		margin: 0 auto;
	}
	.ws-wishlist-area .add_to_wishlist,
	.ws-drop-a-hint-area .drop-a-hint {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		padding: 6px 0 !important;
	}
	/* drop-a-hint's icon is absolutely positioned for the desktop 44px indent —
	   inline it for the centred mobile layout */
	.ws-drop-a-hint-area .drop-a-hint { padding-left: 0 !important; }
	.ws-drop-a-hint-area .drop-a-hint .icon {
		position: static;
		font-size: 20px;
	}
}

/* --- Buy column --------------------------------------------------------- */
.single-product .ws-cart-group-wrap {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 0 0 8px 4px;
}
/* Side-by-side with the gallery (col-lg engages at 1024px): drop the top gap
   above the options. Below 1024px the buy column stacks under the gallery and
   keeps production's top margin for separation. */
@media (min-width: 1024px) {
	.single-product .ws-cart-group-wrap { margin-top: 0 !important; }
}
/* Stacked (<1024px): the columns are a Bootstrap-3 float grid (col-xs-12 is
   float:left + position:relative) and the composite buy column carries
   absolutely-positioned labels — on a float the summary column can catch up
   beside the gallery and the options panel bleeds over the product image.
   Force the gallery + summary columns to block so they stack cleanly. */
@media (max-width: 1023px) {
	.single-product .row:has(> [class*="col-"] > #ws-gallery) > [class*="col-"] {
		float: none !important;
		width: 100% !important;
		margin-bottom: 40px;
	}
}
.ws-cart-group-wrap > form.cart .single_add_to_cart_button {
	display: block;
	float: none;
	width: 100%;
	margin: 0 0 10px;
}

/* --- Price -------------------------------------------------------------- */
.ws-total-price-wrap p.price,
.single-product div.product p.price { color: var(--kf-navy); }
.single-product div.product p.price del { color: var(--kf-muted); }
.single-product div.product p.price ins { text-decoration: none; }

/* "Product Price: $x" row (JS-injected above the buy box) */
.product-type-variable .product-simple-price,
.product-type-simple .product-simple-price {
	color: var(--kf-muted);
	border-top: 0;
	border-bottom: 0;
	float: none; /* production float:right made it overlap the card below */
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin-top: 12px;
	margin-bottom: 6px;
	padding: 6px 6px 8px;
}
.product-type-variable .product-simple-price .woocommerce-Price-amount,
.product-type-simple .product-simple-price .woocommerce-Price-amount { color: var(--kf-navy); }

/* Price strip: flatten production's #bec5cb rules + 50% float */
.product-type-simple .ws-total-price-wrap,
.product-type-variable .ws-composite-total-wrap,
.ws-total-price-wrap,
.ws-composite-total-wrap {
	border-top: 0 !important;
	border-bottom: 0 !important;
	float: none !important;
	width: 100% !important;
}
.ws-composite-total-wrap {
	border-top: 1px solid var(--kf-line-soft) !important;
	margin-top: 6px;
	padding-top: 12px !important;
	padding-bottom: 10px;
}
.ws-composite-total-wrap .ws-title { color: var(--kf-navy); padding-top: 10px; }
.ws-composite-total-wrap .ws-composite-total { color: var(--kf-navy); }

/* --- Quantity ----------------------------------------------------------- */
.single-product form.cart .quantity .qty,
.woocommerce .quantity .qty {
	color: var(--kf-ink);
	border: 1px solid var(--kf-line);
	border-radius: var(--kf-radius-sm);
	background: #fff;
}
.single-product form.cart .quantity .qty:focus {
	border-color: var(--kf-blue);
	box-shadow: 0 0 0 3px rgba(90, 147, 196, .22);
	outline: 0;
}

/* "Add and continue shopping" — ghost text link */
.woocommerce button.button.alt.continue-shopping-btn {
	background-color: transparent !important;
	border: 0;
	border-radius: 0;
	color: var(--kf-green) !important;
	padding: 14px 0 2px;
	margin-top: 2px;
	clear: both;
	text-decoration: underline;
	text-underline-offset: 5px;
	text-decoration-color: var(--kf-gold-soft);
	text-decoration-thickness: 1px;
	box-shadow: none !important;
	transform: none !important;
}
.woocommerce button.button.alt.continue-shopping-btn:hover {
	background-color: transparent !important;
	color: var(--kf-green-deep) !important;
	text-decoration: underline;
	text-decoration-color: var(--kf-gold);
}

/* --- Composite available-options panel: cream containment panel --------- */
.ws-cart-group-wrap .component.options-style-radios,
fieldset.component_option_radio_buttons_fieldset {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}
/* the border carrier is .component_inner (2px navy + blue wash) — soften it */
.component.options-style-radios .component_inner {
	background-color: var(--kf-paper) !important;
	border: 0 !important;
	border-radius: 14px !important;
	box-shadow: var(--kf-ring) !important;
	padding: 20px 22px !important;
}
.component.options-style-radios .component_option_radio_button {
	border: 1px solid var(--kf-line) !important;
	background: #fff !important;
}
.component.options-style-radios .component_option_radio_button:hover {
	border-color: var(--kf-gold) !important;
}
.component.options-style-radios .component_option_radio_button.selected {
	border-color: var(--kf-navy) !important;
	background: var(--kf-navy) !important;
}
.component .select_label,
.component.options-style-radios .component_inner .select_label {
	color: var(--kf-gold) !important;
	margin-bottom: 12px !important;
}
.component_option_radio_button { border-radius: 3px !important; }
body.woocommerce ul.component_option_radio_buttons_container { padding-right: 0 !important; }

/* Composite option cards (Standard / Deluxe / Premium) */
.component_option_radio_button_container .radio_button_description .title,
.component.options-style-radios .component_option_radio_button_container .radio_button_description .title {
	color: var(--kf-navy);
}
body.woocommerce ul.component_option_radio_buttons_container li.component_option_radio_button_container .radio_button_description .price {
	color: var(--kf-gold);
}
.component.options-style-thumbnails .component_option_thumbnail .thumbnail_image img {
	width: 72px !important;
	height: 72px !important;
}

/* Composite main CTA: full-width statement button */
.ws-cart-group-wrap .composite_add_to_cart_button,
.woocommerce div.product form.cart button.composite_add_to_cart_button {
	display: block;
	float: none;
	width: 100%;
	margin: 8px 0 10px;
	padding-top: 16px;
	padding-bottom: 16px;
}

/* --- Add-ons: contained in a cream wash panel, hairline rows ------------ */
.ws_add_ons_wrap {
	background: var(--kf-paper);
	border: 0;
	border-radius: 14px;
	box-shadow: var(--kf-ring);
	padding: 22px 24px 12px;
	margin-top: 26px;
}
.ws_add_ons_title { color: var(--kf-navy); margin-bottom: 14px; }
.ws_add_ons_title:before {
	content: '\eaee';
	font-family: 'icomoon';
	font-style: normal;
	font-size: 16px; /* decorative glyph size */
	color: var(--kf-gold-soft);
	margin-right: 10px;
	vertical-align: 2px;
}
.ws_add_ons_wrap .component.options-style-thumbnails,
.ws_add_ons_wrap .component,
.ws_add_ons_wrap .component_option_thumbnail,
.ws_add_ons_wrap .component_option_thumbnail_container,
.ws_add_ons_wrap .composite_form,
.ws_add_ons_wrap .cart_group {
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}
.ws_add_ons_wrap .component.options-style-thumbnails {
	border-bottom: 1px solid rgba(182, 146, 79, .18) !important;
	margin-bottom: 0 !important;
	padding-top: 10px;
	padding-bottom: 12px;
}
.ws_add_ons_wrap .component.options-style-thumbnails:hover {
	border-color: var(--kf-line-soft) !important;
	box-shadow: none !important;
}
.ws-addons-composite_form-wrap > .composite_form:last-child .component.options-style-thumbnails { border-bottom: 0 !important; }
.ws_add_ons_wrap .component_option_thumbnail .image img,
.ws_add_ons_wrap .thumbnail_image img {
	background: #fff;
	border: 0;
	border-radius: var(--kf-radius-sm);
	box-shadow: var(--kf-ring);
}
.ws_add_ons_wrap .thumbnail_description { color: var(--kf-ink-soft); }

/* --- Related / recently-viewed: cream closing band with card tiles ------ */
.complentary-area {
	background: var(--kf-paper);
	padding-top: 34px;
	padding-bottom: 30px;
}
.complentary-area h2,
.section-related h2 { color: var(--kf-navy); margin: 0 0 18px; }
.complentary-area ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 190px));
	justify-content: center;
	gap: 22px 18px;
	margin: 0 !important;
}
.complentary-area ul.products::before,
.complentary-area ul.products::after { content: none !important; display: none !important; }
.complentary-area ul.products li.product {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 10px 10px 12px !important;
	background: radial-gradient(120% 115% at 50% 42%, #ffffff 0%, #ffffff 55%, rgba(247, 240, 226, .85) 100%);
	border: 0;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: var(--kf-ring), 0 18px 38px -28px rgba(35, 78, 118, .32);
	position: relative;
	transition: box-shadow .25s var(--kf-ease);
}
.complentary-area ul.products li.product:hover {
	box-shadow: var(--kf-ring), 0 26px 48px -28px rgba(35, 78, 118, .42);
}
.complentary-area ul.products li.product a img {
	background: #fff;
	border-radius: 10px;
	margin: 0;
	width: 100%;
	max-width: 100%;
}
.complentary-area ul.products li.product .woocommerce-LoopProduct-link-wrap {
	background-color: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	margin-top: 0 !important;
	padding: 12px 14px 16px !important;
	text-align: center;
}
.complentary-area ul.products li.product h3,
.complentary-area ul.products li.product h2 { color: var(--kf-ink); }
.complentary-area ul.products li.product .price { color: var(--kf-gold); }

/* Recently Viewed (RVPW plugin shortcode) — its auto-display is disabled, so
   the plugin no longer enqueues its grid CSS and the shortcode markup arrives
   unstyled (list bullets, full-width "huge" tiles, a stray add-to-cart button).
   Its markup differs from the WooCommerce loop (ul.rvpw-grid > li.rvpw-product),
   so give it the same cream card grid as the related products above. */
.complentary-area .rvpw-products { margin: 0; }
.complentary-area .rvpw-heading { color: var(--kf-navy); margin-bottom: 18px; }
.complentary-area ul.rvpw-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 190px));
	justify-content: center;
	gap: 22px 18px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
.complentary-area ul.rvpw-grid > li.rvpw-product {
	list-style: none !important;
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 10px 10px 12px !important;
	background: radial-gradient(120% 115% at 50% 42%, #ffffff 0%, #ffffff 55%, rgba(247, 240, 226, .85) 100%);
	border: 0;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: var(--kf-ring), 0 18px 38px -28px rgba(35, 78, 118, .32);
	position: relative;
	text-align: center;
	transition: box-shadow .25s var(--kf-ease);
}
.complentary-area ul.rvpw-grid > li.rvpw-product:hover {
	box-shadow: var(--kf-ring), 0 26px 48px -28px rgba(35, 78, 118, .42);
}
.complentary-area .rvpw-product__link {
	display: flex;
	flex-direction: column;
	text-decoration: none;
}
.complentary-area .rvpw-product img {
	background: #fff;
	border-radius: 10px;
	margin: 0 0 10px;
	width: 100%;
	height: auto;
	max-width: 100%;
}
.complentary-area .rvpw-product .woocommerce-loop-product__title { color: var(--kf-ink); margin: 0 0 4px; }
.complentary-area .rvpw-product .price { color: var(--kf-gold); }
/* drop the stray "Select options" button — the other card grids don't carry one */
.complentary-area .rvpw-product .button,
.complentary-area .rvpw-product .add_to_cart_button { display: none !important; }

/* Unify the two headings ("You may also like…" + "Recently Viewed Products")
   so the recently-viewed row reads as an intentional, matching section rather
   than tacked on the bottom — same centred navy heading with flanking gold
   hairlines (production only gives the up-sells heading that treatment). */
.complentary-area .upsells > h2,
.complentary-area .rvpw-heading {
	color: var(--kf-navy) !important;
	text-align: center;
	overflow: hidden;
	margin: 0 0 22px !important;
	font-size: 20px !important;
	line-height: 1.3;
}
.complentary-area .upsells > h2:before,
.complentary-area .upsells > h2:after,
.complentary-area .rvpw-heading:before,
.complentary-area .rvpw-heading:after {
	content: "";
	display: inline-block;
	height: 1px;
	width: 50%;
	vertical-align: middle;
	position: relative;
	background-color: var(--kf-gold-soft) !important;
}
.complentary-area .upsells > h2:before,
.complentary-area .rvpw-heading:before { right: 16px; margin-left: -50%; }
.complentary-area .upsells > h2:after,
.complentary-area .rvpw-heading:after { left: 16px; margin-right: -50%; }
/* breathing room so recently-viewed sits as its own block, not crammed under */
.complentary-area .section-related.ced { margin-top: 10px; }

/* Card text down to tile scale — the RVPW titles/prices live outside ul.products
   so the loop's size rules never reach them and they render at full heading
   size. Size only; typeface unchanged. */
.complentary-area .woocommerce-loop-product__title { font-size: 14px !important; line-height: 1.35 !important; }
.complentary-area .price,
.complentary-area .price .woocommerce-Price-amount { font-size: 15px !important; line-height: 1.3 !important; }
.complentary-area .price .from { font-size: 12px; }

/* Collapse empty complementary remnants + doubled decorative dividers */
.section-related:empty { display: none; }
.complentary-area:not(:has(li)):not(:has(p)) { display: none; }
.footer-divider {
	background-image: none;
	background-color: var(--kf-line);
	height: 1px;
	opacity: .8;
	margin: 8px 0;
}
main > .container:has(.footer-divider) + .container:has(.footer-divider) { display: none; }

/* --- Meta / SKU --------------------------------------------------------- */
.product_meta, .item-sku, .sku_wrapper { color: var(--kf-muted); }

/* --- Wishlist & drop-a-hint --------------------------------------------- */
.ws-wishlist-area a, .drop-a-hint { color: var(--kf-blue); }
.ws-wishlist-area a:hover, .drop-a-hint:hover { color: var(--kf-navy); }

/* --- Description panels -------------------------------------------------- */
.ws-primary-description, .ws-secondary-description { color: var(--kf-ink-soft); }
.woocommerce-Tabs-panel h2,
.woocommerce-tabs h2,
.ws-primary-description h2,
.ws-secondary-description h2 { color: var(--kf-navy); margin-bottom: 14px; }
.ws-primary-description ul li::marker,
.ws-secondary-description ul li::marker { color: var(--kf-gold); }
.ws-primary-description ul li,
.ws-secondary-description ul li { margin-bottom: 4px; }
