/**
 * Byron Bay Candles — Client-specific CSS overrides.
 *
 * Loaded LAST in the cascade for highest priority.
 * Only styles specific to this client that don't belong in the
 * shared component CSS.
 *
 * RULES:
 * - Every var() MUST have a hardcoded fallback: var(--theme-palette-color-N, #hex)
 * - Every rule MUST have a WHY comment
 * - Every section MUST have a @date tag
 * - No !important — use cascade specificity
 * - Use .byronbay- prefix for client-specific classes
 *
 * @package Blocksy_Child
 * @client  Byron Bay Candles
 */

/* ==========================================================================
   Announcement Bar — Mobile/Tablet Responsive
   WHY: The announcement bar text is set via inline styles in the Blocksy
   HTML element (font-size: 14px, line-height: 16px). Inline styles can't
   use media queries, so we override here for mobile where Figma specifies
   larger text (16px/24px) to accommodate wrapping on narrower viewports.
   @date 2026-02-24
   ========================================================================== */

/* Tablet: same as desktop (14px/16px) — no override needed, inline styles apply.
   Row height set to 40px via Customizer. */

/* Mobile: larger text for readability on small screens.
   Figma: 16px font-size, 24px line-height, 52px row height (set via Customizer). */
@media (max-width: 689px) {
	[data-row="top"] [data-id="text"] span {
		font-size: 16px;
		line-height: 24px;
	}
}

/* ==========================================================================
   Mega Menu — Heading & Divider Styling
   WHY: Blocksy's mega menu Customizer has no option to add a divider line
   under column headings, make full-width heading rows span the grid, or
   control heading font weight/size independently from sub-items. These are
   Byron Bay's design choices per the live site layout.
   @date 2026-02-25
   ========================================================================== */

/* Full-width heading row (e.g., "Scented Diffusers" above columns).
   Spans all grid columns with a divider line below. Needs both top
   corners rounded since it spans the full width of the dropdown. */
nav > ul > [class*="ct-mega-menu"] > .sub-menu > li:has(> .ct-column-heading) {
	grid-column: 1 / -1;
	border-bottom: 1px solid var(--theme-palette-color-12, #E0DCD7);
	padding-bottom: 12px;
	border-top-left-radius: inherit;
	border-top-right-radius: inherit;
}

/* Full-width heading text — bold and larger than column headings.
   Padding matches sub-item hover padding (--menu-item-padding set by
   Blocksy's "solid" dropdown style) so the heading aligns with items below. */
nav > ul > [class*="ct-mega-menu"] > .sub-menu > li > .ct-column-heading {
	font-weight: 700;
	font-size: 15px;
	padding: var(--menu-item-padding, 13px);
}

/* --- Candles mega menu: column headings ARE headings --- */
/* CSS class .byronbay-mega-candles set on menu item (portable across environments). */

/* Column heading — bold with divider line (Candles pattern). */
nav > ul > .byronbay-mega-candles > .sub-menu > li.menu-item-has-children > .ct-menu-link {
	border-bottom: 1px solid var(--theme-palette-color-12, #E0DCD7);
	padding-bottom: 10px;
	margin-bottom: 4px;
	font-weight: 700;
	font-size: 14px;
}

/* --- Diffusers mega menu: column headings are NOT headings --- */
/* CSS class .byronbay-mega-diffusers set on menu item (portable across environments). */

/* Column headings in Diffusers look like regular items — same font as sub-items.
   Blocksy styles depth-1 sub-menu links differently from depth-2; this forces
   column headings to match their child items exactly. */
nav > ul > .byronbay-mega-diffusers > .sub-menu > li.menu-item-has-children > .ct-menu-link {
	font-weight: 400;
	font-size: 13px;
	line-height: 1.4;
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 0;
}

/* ==========================================================================
   B2 — Hide Payment Methods Icons on Bundle Product Pages Only
   WHY: Bundle product pages show payment method icons (Stripe, PayPal, etc.)
   that add visual noise to an already complex layout. Hiding them only on
   bundle pages keeps them visible elsewhere (simple/variable products).
   @date 2026-03-11
   ========================================================================== */
.single-product.postid-635032 .ct-payment-methods,
body.single-product .product-type-bundle .ct-payment-methods {
	display: none;
}

/* ==========================================================================
   B3 — Hide Candle Label Text on Bundle Page
   WHY: The Product Addons heading "Candle Label" (h2.wc-pao-addon-heading)
   on bundle products adds redundant text when the addon options are already
   self-explanatory. This is Byron-specific — other sites may want it visible.
   @date 2026-03-11
   ========================================================================== */
body.single-product .product-type-bundle h2.wc-pao-addon-heading {
	display: none;
}


/* ==========================================================================
   Footer Middle Row — Top Corner Radius
   WHY: Blocksy Customizer only supports uniform border-radius on footer rows,
   not per-corner. Design requires 24px radius on top-left and top-right
   of the middle row only, matching the live site design.
   @date 2026-03-13
   ========================================================================== */
footer [data-row="middle"] {
	border-top-left-radius: 24px;
	border-top-right-radius: 24px;
	position: relative;
	margin-top: -24px;
	z-index: 1;
}

/* ==========================================================================
   PDP — Live Site Styling Match (Items 1-12)
   @date 2026-03-26
   ========================================================================== */

/* ITEM 1: Border around PDP summary — matches live site #F3EADE border.
   Height depends on content, not image. */
.entry-summary.entry-summary-items {
	border: 1px solid #F3EADE;
	border-radius: 8px;
	padding: 24px;
}

@media (max-width: 999px) {
	.entry-summary.entry-summary-items {
		border: none;
		padding: 0;
	}
}

/* ITEM 11: Payment icons row */
.bc-payment-icons {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-wrap: wrap;
	padding: 12px 0 0;
}

.bc-payment-icons svg {
	flex-shrink: 0;
}

/* ITEM 12: Afterpay styling — match live site */
.single-product .afterpay-paragraph,
.single-product square-placement {
	font-size: 13px;
	color: var(--theme-palette-color-4, #6F6F6F);
}

/* ==========================================================================
   Product Addons — input field styling
   WHY: WooCommerce Product Addons plugin renders unstyled inputs.
   @date 2026-03-26
   ========================================================================== */
.wc-pao-addon-wrap input[type="text"],
.wc-pao-addon-wrap textarea {
	width: 100%;
	border: 1px solid #E7E7E7;
	border-radius: 2px;
	box-sizing: border-box;
}

/* ==========================================================================
   FIX: Product info links — brownish default, black hover
   Live: text-brand-font (brownish), hover shows darker
   @date 2026-03-26
   ========================================================================== */
.bc-product-info-item {
	color: var(--theme-palette-color-3, #655B51) !important;
	transition: color 0.2s;
}

.bc-product-info-item:hover {
	color: var(--theme-palette-color-1, #111) !important;
}

.bc-product-info-icon {
	color: inherit;
}

/* Afterpay text — thin font weight to match live */
.single-product .afterpay-paragraph {
	font-weight: 200 !important;
}

.single-product square-placement {
	font-weight: 200;
}

/* ==========================================================================
   Gift wrap — Isolated styling (won't inherit from other rules)
   @date 2026-03-26
   ========================================================================== */
label.wc-pao-addon-name[data-addon-name=Gift wrap] {
	all: unset;
	display: block;
	font-family: var(--theme-body-font-family, inherit);
	font-size: 16px;
	font-weight: 400;
	font-style: normal;
	color: var(--theme-palette-color-2, #393939);
	margin-bottom: 4px;
}

.wc-pao-addon-description p {
	all: unset;
	display: block;
	font-family: var(--theme-body-font-family, inherit);
	font-size: clamp(16px, 1.125rem, 18px);
	font-weight: 400;
	font-style: normal;
	color: var(--theme-palette-color-1, #111);
	margin-bottom: 8px;
}

/* Product tab content — 18px with 16px fallback (Byron-specific)
   Targets Description, ACF tabs, Additional Info content.
   @date 2026-03-26 */
.woocommerce-tabs .entry-content,
.woocommerce-tabs .entry-content p,
.woocommerce-tabs .entry-content li,
.woocommerce-tabs .bc-acf-tab-content,
.woocommerce-tabs .bc-acf-tab-content p,
.woocommerce-tabs .bc-acf-tab-content li {
	font-size: clamp(16px, 1.125rem, 18px);
	line-height: 1.75;
}

/* ==========================================================================
   Product tabs accordion — chevron icons, hide +, last tab border
   @date 2026-03-26
   ========================================================================== */

/* Hide the default + SVG icon inside accordion headings */
.woocommerce-tabs .ct-accordion-heading svg {
	display: none !important;
}

/* Add chevron down (closed state) via ::after */
.woocommerce-tabs .ct-accordion-heading::after {
	content: '';
	display: inline-block;
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	margin-left: auto;
	background: currentColor;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	-webkit-mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	mask-size: contain;
	mask-repeat: no-repeat;
	transition: transform 0.3s ease;
}

/* Chevron up when tab is open/active */
.woocommerce-tabs .ct-accordion-heading[aria-expanded="true"]::after,
.woocommerce-tabs .ct-accordion-heading.active::after {
	transform: rotate(180deg);
}


/* Horizontal line after the last accordion tab */
.woocommerce-tabs .ct-accordion-tab:last-child .ct-accordion-heading {
	border-bottom: 1px solid var(--theme-palette-color-16, #CFCFCF);
}



/* Product card buttons — bigger font to match live site */
[data-products] .ct-woo-card-actions .button {
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-weight: 500;
}





/* Reviews spacing */
.single-product .bc-reviews-bundle {
	margin-top: 50px;
}

/* ==========================================================================
   ATC Row — definitive layout (Qty label + stepper + button + wishlist)
   WHY: Blocksy type-2 quantity uses absolute-positioned +/- buttons inside
   a block-level .quantity div. The "Qty:" label (output via
   woocommerce_before_quantity_input_field) also lives inside .quantity.
   We override .quantity to flex so that label, decrease, input, increase
   all sit in one inline row, then the ATC button + wishlist follow.
   @date 2026-03-27
   ========================================================================== */

/* Hide B2B pricing table inside cart actions */
.ct-cart-actions .b2bwhs_shop_table {
	display: none !important;
}

/* Main flex row: quantity box | ATC button | wishlist */
.ct-product-add-to-cart .ct-cart-actions {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	gap: 8px !important;
}

/* --- Quantity box: make it flex so label + buttons + input sit inline --- */
.ct-cart-actions > .quantity {
	display: flex !important;
	align-items: center !important;
	flex: 0 0 auto;
	max-width: none;
	width: auto !important;
	gap: 0;
	position: relative;
}

/* "Qty:" label inside .quantity */
.ct-cart-actions > .quantity > .bc-qty-label {
	flex: 0 0 auto;
	font-size: 14px;
	font-weight: 700;
	color: var(--theme-palette-color-1, #111);
	white-space: nowrap;
	margin-right: 8px;
	order: -1;
}

/* Override Blocksy type-2 absolute positioning — make +/- buttons flex items.
   WHY: Live site shows bordered stepper [ - | 1 | + ] with dividers between
   each section. Blocksy type-2 uses absolute positioning which can't do this.
   @date 2026-03-27 */
.ct-cart-actions > .quantity[data-type="type-2"] .ct-decrease,
.ct-cart-actions > .quantity[data-type="type-2"] .ct-increase {
	position: static !important;
	flex: 0 0 auto;
	width: 36px;
	height: var(--theme-button-min-height, 40px);
	display: flex !important;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--theme-border-color, #c0c0c0);
	border-radius: 0;
	background: transparent;
	cursor: pointer;
}

/* Decrease button: left side of stepper — round left corners */
.ct-cart-actions > .quantity[data-type="type-2"] .ct-decrease {
	order: 0;
	border-right: none;
	border-radius: var(--theme-form-field-border-radius, 3px) 0 0 var(--theme-form-field-border-radius, 3px);
}

/* Input field: centre of stepper — top/bottom borders only */
.ct-cart-actions > .quantity[data-type="type-2"] .input-text.qty {
	width: 45px !important;
	height: var(--theme-button-min-height, 40px) !important;
	text-align: center;
	padding: 0 !important;
	order: 1;
	border: 1px solid var(--theme-border-color, #c0c0c0) !important;
	border-radius: 0 !important;
	-moz-appearance: textfield;
}

.ct-cart-actions > .quantity[data-type="type-2"] .input-text.qty::-webkit-inner-spin-button,
.ct-cart-actions > .quantity[data-type="type-2"] .input-text.qty::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Increase button: right side of stepper — round right corners */
.ct-cart-actions > .quantity[data-type="type-2"] .ct-increase {
	order: 2;
	border-left: none;
	border-radius: 0 var(--theme-form-field-border-radius, 3px) var(--theme-form-field-border-radius, 3px) 0;
}

/* --- ATC button fills remaining space --- */
.ct-cart-actions > .single_add_to_cart_button {
	flex: 1 1 auto !important;
	min-width: 0;
	text-transform: uppercase !important;
	letter-spacing: 0.05em;
	font-weight: 600 !important;
}

.ct-cart-actions > .single_add_to_cart_button::after {
	content: " \2192";
	margin-left: 6px;
}

/* --- Wishlist button fixed size --- */
.ct-cart-actions > .ct-wishlist-button-single {
	flex: 0 0 auto;
}

/* ==========================================================================
   Homepage: Value Proposition Cards — CSS Grid for equal-height cards
   WHY: Gutenberg columns don't support equal-height (items-stretch) or the
   exact breakpoints we need (2-col mobile/tablet, 4-col desktop).
   Live site uses grid-cols-2 lg:grid-cols-4, fixed 214px height.
   @date 2026-04-07
   ========================================================================== */
.bc-value-cards {
	display: grid !important;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

/* Desktop (>999.98px): 4 columns, wider gap */
@media (min-width: 999.98px) {
	.bc-value-cards {
		grid-template-columns: repeat(4, 1fr);
		gap: 32px;
	}
}

/* Card inner — equal height via stretch + fixed min-height */
.bc-value-cards > .wp-block-column {
	width: 100% !important;
	flex-basis: unset !important;
}

.bc-value-cards > .wp-block-column > .wp-block-group {
	height: 100%;
	min-height: 214px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

/* Icon spacing */
.bc-value-card-icon,
.bc-icon--verified {
	margin-bottom: 16px;
	line-height: 0;
}

/* ==========================================================================
   Homepage: Refill Cards (Media & Text blocks) — video/image + text
   WHY: Media & Text handles responsive stacking natively (media on top on
   mobile). Video object-fit cover + height need CSS since block settings
   only control width ratio. Stacking at 999px instead of default 600px.
   @date 2026-04-08
   ========================================================================== */

/* Video: object-fit cover, fixed height, border-radius + overflow clip.
   WHY: Media & Text block has no border-radius or overflow setting on the
   media figure. Block editor can't do this. @date 2026-04-08 */
.bc-refill-card .wp-block-media-text__media {
	border-radius: 8px;
	overflow: hidden;
}

.bc-refill-card .wp-block-media-text__media video {
	width: 100%;
	height: 640px;
	object-fit: cover;
}

/* Stack at tablet (999px) instead of default 600px
   WHY: Media & Text default is 600px, but live site stacks at ~1024px */
@media (max-width: 999.98px) {
	.bc-refill-card.wp-block-media-text {
		grid-template-columns: 100% !important;
	}

	.bc-refill-card.wp-block-media-text > .wp-block-media-text__media {
		grid-column: 1;
		grid-row: 1;
	}

	.bc-refill-card.wp-block-media-text > .wp-block-media-text__content {
		grid-column: 1;
		grid-row: 2;
		/* WHY: 30px gap between video and text when stacked on mobile.
		   Media & Text has no block spacing setting for stacked gap. @date 2026-04-08 */
		padding-top: 30px;
	}

	.bc-refill-card .wp-block-media-text__media video {
		height: 351px;
	}
}

/* ==========================================================================
   Homepage: Logo Carousel — partner brand logos
   WHY: Live site uses Glider.js with edge-to-edge logos, no gap on mobile,
   ~215px per logo on desktop (7 visible). Logos are square, no grayscale
   on live site. Carousel dots + swipe via product-slider.js.
   @date 2026-04-08
   ========================================================================== */
.bc-logo-carousel__list {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 16px;
	transition: transform 0.3s ease;
}

/* Desktop: 7 logos visible with gap (account for 6 gaps of 16px) */
.bc-logo-carousel__item {
	flex: 0 0 calc((100% - 96px) / 7);
	display: flex;
	align-items: center;
	justify-content: center;
}

.bc-logo-carousel__img {
	width: 100%;
	height: auto;
	object-fit: contain;
	display: block;
}

/* Tablet: 4 logos with gap */
@media (max-width: 999.98px) {
	.bc-logo-carousel__list {
		gap: 8px;
	}

	.bc-logo-carousel__item {
		flex: 0 0 calc((100% - 24px) / 4);
	}
}

/* Mobile: 2 logos, no gap, touching */
@media (max-width: 689px) {
	.bc-logo-carousel__list {
		gap: 0;
	}

	.bc-logo-carousel__item {
		flex: 0 0 calc(100% / 2);
	}
}

/* ==========================================================================
   Homepage: Badge/Award Grid — certification badges
   WHY: Badges have different aspect ratios. max-height ensures consistency.
   Flex wrap handles responsive layout. Not achievable via block settings.
   @date 2026-04-08
   ========================================================================== */
/* Badge sizing now managed via block settings (width + height on each image).
   No CSS needed for aspect-ratio. */

/* ==========================================================================
   Homepage: What Inspires Us — text aligned TOP (not centered like refill cards)
   WHY: Overrides the :not(:has(.bc-refill-video)) centering rule.
   Also handles YouTube embed + image sizing to match refill video heights.
   @date 2026-04-08
   ========================================================================== */

/* YouTube embed — overflow:hidden clips iframe to Column's border-radius
   (set via block settings). Match refill video height. @date 2026-04-08 */
.bc-inspire-card .wp-block-column:has(.wp-block-embed) {
	overflow: hidden;
}

.bc-inspire-card .wp-block-embed {
	margin: 0 !important;
	height: 100%;
}

/* WHY: WordPress adds padding-top:56.25% for 16:9 aspect ratio on embeds.
   Override to match refill video heights (640px/351px). @date 2026-04-08 */
.bc-inspire-card .wp-block-embed__wrapper {
	height: 640px;
	padding-top: 0 !important;
	position: relative;
}

.bc-inspire-card .wp-block-embed__wrapper iframe {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
}

@media (max-width: 999.98px) {
	.bc-inspire-card .wp-block-embed__wrapper {
		height: 351px;
	}
}

/* Behind the Scenes — Media & Text with imageFill.
   WHY: Match refill video heights (640px/351px) for visual consistency.
   imageFill uses background-size:cover so fixed height works. @date 2026-04-08 */
.bc-inspire-card.is-image-fill > .wp-block-media-text__media {
	height: 640px;
}

@media (max-width: 999.98px) {
	.bc-inspire-card.is-image-fill > .wp-block-media-text__media {
		height: 351px;
	}
}

/* ==========================================================================
   Homepage: Article Carousel — blog post cards
   WHY: Card styling (image aspect-ratio, text footer, hover scale) not
   achievable via shortcode block settings alone.
   @date 2026-04-08
   ========================================================================== */
.bc-article-carousel__list {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 16px;
}

.bc-article-carousel__item {
	flex: 0 0 calc((100% - 32px) / 3);
}

.bc-article-carousel__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
	border-radius: 6px;
	overflow: hidden;
	background: var(--theme-palette-color-6, #FAF6F2) !important;
}

/* WHY CSS: Fixed image height matches live site (392px desktop, 232px mobile).
   Block editor can't set height on shortcode-rendered images. @date 2026-04-08 */
.bc-article-carousel__image {
	overflow: hidden;
	height: 392px;
}

.bc-article-carousel__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.3s ease;
}

.bc-article-carousel__link:hover .bc-article-carousel__image img {
	transform: scale(1.03);
}

@media (max-width: 689px) {
	.bc-article-carousel__image {
		height: 232px;
	}
}

.bc-article-carousel__content {
	background: var(--theme-palette-color-6, #FAF6F2);
	padding: 16px 20px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
}

.bc-article-carousel__date {
	font-size: 12px;
	color: var(--theme-palette-color-4, #888888);
}

.bc-article-carousel__title {
	font-size: 16px;
	font-weight: 500;
	margin: 0;
	line-height: 1.3;
}

.bc-article-carousel__title a {
	color: var(--theme-palette-color-3, #746A5F);
	text-decoration: none;
}

.bc-article-carousel__title a:hover {
	color: var(--theme-palette-color-1, #111111);
}

.bc-article-carousel__excerpt {
	font-size: 14px;
	color: var(--theme-palette-color-4, #888888);
	margin: 0;
	line-height: 1.5;
	flex: 1;
}

/* WHY CSS: "Read More →" link at bottom of card. Matches live site styling.
   margin-top:auto pushes it to the bottom of the flex column. @date 2026-04-08 */
.bc-article-carousel__read-more {
	font-size: 14px;
	font-weight: 500;
	color: var(--theme-palette-color-3, #746A5F);
	text-decoration: none;
	margin-top: auto;
	padding-top: 8px;
}

.bc-article-carousel__read-more:hover {
	color: var(--theme-palette-color-1, #111111);
}

@media (max-width: 999.98px) {
	.bc-article-carousel__item {
		flex: 0 0 calc((100% - 16px) / 2);
	}
}

@media (max-width: 689px) {
	.bc-article-carousel__item {
		flex: 0 0 100%;
	}
}

/* ==========================================================================
   FiboSearch Header Search Bar — Desktop, matching live site
   WHY: FiboSearch renders via child theme template override (icon-flexible layout).
   Shows full search bar on desktop (>689px), icon on mobile (<689px).
   Block editor cannot control third-party plugin output styling.
   Styles matched pixel-for-pixel from live site (byronbaycandles.com):
   - Layout: Logo + Search in left 1fr column (search fills remaining space)
   - Input: 16px/400, #888 text, #BFBFBF placeholder, #E7E7E7 border, 6px radius
   - Icon: 24x24 magnifier, #888 fill
   Search element moved from middle to start column via Customizer.
   @date 2026-04-14
   ========================================================================== */

/* --- LAYOUT: Search fills remaining space in left column --- */

/* Left column gap between logo and search.
   WHY: Live site has ~24px gap between logo and search input. @date 2026-04-14 */
[data-row="middle"] [data-column="start"] {
	gap: 24px;
}

/* Search element grows to fill remaining space in the left column.
   WHY: Live site search has flex:1 — takes all space between logo and icons.
   @date 2026-04-14 */
[data-row="middle"] [data-id="search"] {
	flex: 1 1 0%;
	min-width: 200px;
}

[data-id="search"] .dgwt-wcas-search-wrapp {
	max-width: 100%;
	width: 100%;
}

/* --- SEARCH INPUT STYLING: match live site --- */

/* Form wrapper — border, radius to match live site.
   WHY: Live uses 1px solid #E7E7E7, 6px radius. @date 2026-04-14 */
[data-id="search"] .dgwt-wcas-search-wrapp .dgwt-wcas-search-form {
	border-radius: 6px;
	border: 1px solid #E7E7E7;
	height: auto;
}

/* Input field — font, padding, colors from live site.
   WHY: Live uses 16px/400 weight, 10px padding with 40px right for icon,
   text color #888, placeholder #BFBFBF, 6px radius, 24px line-height.
   Selector must beat FiboSearch specificity (0,4,1). @date 2026-04-14 */
[data-id="search"] .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input,
[data-id="search"] .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input:hover,
[data-id="search"] .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input:focus {
	height: auto;
	padding: 10px 40px 10px 10px;
	font-size: 16px;
	font-weight: 400;
	color: #888888;
	line-height: 24px;
	border: none;
	border-radius: 6px;
	background: transparent;
	box-shadow: none;
}

/* Placeholder color — live site uses #BFBFBF.
   WHY: Staging default is darker, live has lighter muted placeholder. @date 2026-04-14 */
[data-id="search"] .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input::placeholder {
	color: #BFBFBF;
	opacity: 1;
	font-style: normal;
}

/* Submit button — 40px wide container, transparent bg, centered icon.
   WHY: Live icon container is 40px wide, flex-centered. @date 2026-04-14 */
[data-id="search"] .dgwt-wcas-search-wrapp .dgwt-wcas-search-form .dgwt-wcas-search-submit {
	width: 40px;
	height: 100%;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 0 6px 6px 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Magnifier icon — 24x24, #888 fill, matching live site.
   WHY: Live uses 24x24 stroke SVG. Staging uses fill SVG.
   Match size and color. @date 2026-04-14 */
[data-id="search"] .dgwt-wcas-search-wrapp .dgwt-wcas-search-form .dgwt-wcas-ico-magnifier {
	width: 24px;
	height: 24px;
	fill: #888888;
}

/* Phone number — prevent wrapping to two lines.
   WHY: At narrow widths the phone number breaks into two lines.
   Not controllable via block editor. @date 2026-04-09 */
[data-id="contacts"] {
	white-space: nowrap;
}

/* Tablet/Mobile: search bar in mobile bottom row — full width, matching live.
   WHY: Mobile bottom row shows persistent FiboSearch bar (not icon). The bar
   must span full width with same input styling as desktop. Desktop-specific
   flex:1 rules are reverted; width comes from parent container instead.
   @date 2026-04-15 */
@media (max-width: 999.98px) {
	/* Revert desktop flex-grow — mobile search width comes from row container */
	[data-device="mobile"] [data-id="search"] {
		flex: none;
		width: 100%;
	}

	[data-device="mobile"] [data-id="search"] .dgwt-wcas-search-wrapp {
		max-width: 100%;
		width: 100%;
	}

	/* Mobile search input — same styling as desktop, full width.
	   WHY: FiboSearch renders identical markup; just needs full-width container.
	   @date 2026-04-15 */
	[data-device="mobile"] [data-id="search"] .dgwt-wcas-search-wrapp .dgwt-wcas-search-form {
		border-radius: 6px;
		border: 1px solid #E7E7E7;
		height: auto;
	}

	[data-device="mobile"] [data-id="search"] .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input {
		height: auto;
		padding: 10px 40px 10px 10px;
		font-size: 16px;
		font-weight: 400;
		color: #888888;
		line-height: 24px;
		border: none;
		border-radius: 6px;
		background: transparent;
		box-shadow: none;
	}

	[data-device="mobile"] [data-id="search"] .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input::placeholder {
		color: #BFBFBF;
		opacity: 1;
	}

	[data-device="mobile"] [data-id="search"] .dgwt-wcas-search-wrapp .dgwt-wcas-search-form .dgwt-wcas-search-submit {
		width: 40px;
		height: 100%;
		padding: 0;
		background: transparent;
		border: none;
		border-radius: 0 6px 6px 0;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	[data-device="mobile"] [data-id="search"] .dgwt-wcas-search-wrapp .dgwt-wcas-search-form .dgwt-wcas-ico-magnifier {
		width: 24px;
		height: 24px;
		fill: #888888;
	}
}

/* Collapse empty middle column — now unused after moving search to start.
   WHY: Blocksy 3-column grid gives equal 1fr to start and end with a
   middle column in between. With middle empty, force it to 0 width so
   start and end split the full width. @date 2026-04-14 */
[data-row="middle"] [data-column="middle"]:empty,
[data-row="middle"] [data-column="middle"]:has(:empty) {
	display: none;
}

#header [data-row="middle"] > .ct-container {
	grid-template-columns: 1fr auto;
}


/* ==========================================================================
   Offcanvas Mobile Menu — Light theme to match live site
   WHY: Blocksy default offcanvas is dark (rgba(18,21,25,0.98)). Live site
   uses a light/warm background (#FAF6F2) with dark text. Customizer
   offcanvasBackground key does not reliably override the default. CSS
   override on .ct-panel-inner is more reliable.
   @date 2026-04-15
   ========================================================================== */

/* Panel background — warm off-white matching live site.
   Selector must beat Blocksy inline CSS: [data-header*="type-1"] #offcanvas .ct-panel-inner */
[data-header] #offcanvas .ct-panel-inner {
	background: var(--theme-palette-color-6, #FAF6F2) !important;
}

/* Menu text color — dark on light bg */
[data-header] #offcanvas .ct-panel-inner,
[data-header] #offcanvas .ct-panel-inner a,
[data-header] #offcanvas .ct-panel-inner .ct-mobile-menu a {
	color: var(--theme-palette-color-2, #393939) !important;
}

/* Menu item hover — darker */
[data-header] #offcanvas .ct-panel-inner a:hover,
[data-header] #offcanvas .ct-panel-inner .ct-mobile-menu a:hover {
	color: var(--theme-palette-color-1, #111111);
}

/* Close button — dark on light bg */
[data-header] #offcanvas .ct-toggle-close {
	color: var(--theme-palette-color-4, #888888);
}

[data-header] #offcanvas .ct-toggle-close:hover {
	color: var(--theme-palette-color-1, #111111);
}

/* Close button — circled X matching live site.
   Live site has a circle border around the X icon.
   @date 2026-04-15 */
[data-header] #offcanvas .ct-toggle-close {
	border: 1.5px solid rgba(0, 0, 0, 0.2) !important;
	border-radius: 50% !important;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

[data-header] #offcanvas .ct-toggle-close svg {
	width: 12px;
	height: 12px;
	fill: var(--theme-palette-color-2, #393939) !important;
}

/* "Menu" heading — added via CSS ::before on the panel actions bar.
   Live site shows "Menu" text at the top-left of the offcanvas.
   @date 2026-04-15 */
[data-header] #offcanvas .ct-panel-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 24px 0;
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
}

/* Remove ALL separators/lines around the Menu header area.
   Blocksy may generate lines via pseudo-elements, borders, or box-shadows.
   @date 2026-04-15 */
[data-header] #offcanvas .ct-panel-actions::after {
	display: none !important;
}

[data-header] #offcanvas .ct-panel-content {
	border: none !important;
	box-shadow: none !important;
}

[data-header] #offcanvas .ct-panel-content::before {
	display: none !important;
}

/* Remove top border/line from first menu item and nav container */
[data-header] #offcanvas nav,
[data-header] #offcanvas nav > ul,
[data-header] #offcanvas nav > ul > li:first-child {
	border-top: none !important;
}

[data-header] #offcanvas .ct-panel-actions::before {
	content: "Menu";
	font-family: Museo Sans, var(--theme-body-font-family, sans-serif);
	font-size: 16px;
	font-weight: 700;
	color: var(--theme-palette-color-2, #393939);
}

/* Chevron direction — rotate from down-pointing (v) to right-pointing (>).
   Live site uses right-pointing chevrons for submenu indicators.
   @date 2026-04-15 */
[data-header] #offcanvas .ct-toggle-dropdown-mobile svg {
	transform: rotate(-90deg);
}

/* Dropdown chevron icons — dark on light bg.
   Blocksy inline CSS sets these to white (for dark theme). !important needed.
   @date 2026-04-15 */
[data-header] #offcanvas .ct-toggle-dropdown-mobile {
	color: var(--theme-palette-color-2, #393939) !important;
}

[data-header] #offcanvas .ct-toggle-dropdown-mobile svg {
	fill: var(--theme-palette-color-2, #393939) !important;
}

/* Menu link font — match live site (16px/500, Museo Sans).
   Blocksy default is 20px/700 which is too bold for this design.
   @date 2026-04-15 */
[data-header] #offcanvas .ct-menu-link {
	font-size: 16px !important;
	font-weight: 500 !important;
	font-family: Museo Sans, var(--theme-body-font-family, sans-serif) !important;
}

/* Menu item dividers — subtle lines between items.
   Live site has light dividers between each nav item.
   @date 2026-04-15 */
[data-header] #offcanvas nav > ul > li {
	border-bottom: none;
	padding: 4px 0;
}

/* Two horizontal lines only — matching live site.
   1. After "Shop All" (1st item) — separates shop-all from category nav
   2. After "Vip sign up" (8th item) — separates primary nav from secondary nav
   @date 2026-04-15 */
[data-header] #offcanvas nav > ul > li:nth-child(1) {
	border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
	padding-top: 8px;
	margin-top: 4px;
}

[data-header] #offcanvas nav > ul > li:nth-child(8) {
	border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
	padding-bottom: 12px;
	margin-bottom: 8px;
}

/* Secondary nav items (FAQ, About, Contact, Return, Article) — slightly smaller/lighter.
   Live site differentiates these from the primary shop nav.
   @date 2026-04-15 */
[data-header] #offcanvas nav > ul > li:nth-child(n+9):not(:has(svg)) .ct-menu-link {
	font-size: 15px !important;
	font-weight: 400 !important;
	color: var(--theme-palette-color-2, #393939) !important;
}

/* Social icons in menu — brand brown color matching live site.
   @date 2026-04-15 */
[data-header] #offcanvas nav > ul > li svg {
	fill: var(--theme-palette-color-3, #746A5F) !important;
