/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme with laser.fan storefront refinements
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

:root {
	--laserfan-header-bg: #f5f6f8;
	--laserfan-blue: #1554d1;
	--laserfan-blue-dark: #0c278f;
}

/* Match the header to the new transparent logo and give the mark room to read. */
#header [data-row="middle"] {
	background: var(--laserfan-header-bg) !important;
}

#header [data-row="middle"] > .ct-container {
	min-height: 82px;
}

#header .site-logo-container {
	display: block;
	width: clamp(188px, 14vw, 238px) !important;
	height: 72px;
	background: url("laserfan-header-logo-v2.png") center / contain no-repeat;
}

#header .site-logo-container img {
	width: 100% !important;
	height: 100% !important;
	max-height: none !important;
	object-fit: contain;
	opacity: 0;
}

#header .site-logo-container img[data-laserfan-logo="1"] {
	opacity: 1;
}

/* Translation control. */
.laserfan-translate {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-height: 34px;
	color: #16151a;
	font-size: 13px;
	font-weight: 650;
	white-space: nowrap;
}

.laserfan-translate-icon {
	flex: 0 0 auto;
	fill: currentColor;
}

.laserfan-translate-plugin:empty {
	display: none;
}

.laserfan-translate.has-gtranslate .laserfan-translate-label {
	display: none;
}

.laserfan-translate .gt_selector {
	width: auto;
	max-width: 100px;
	height: 32px;
	padding: 0 24px 0 8px;
	border: 1px solid #d8dbe2;
	border-radius: 5px;
	background-color: #fff;
	font-size: 12px;
}

/* Accepted payment brands occupy the old desktop social slot. */
.laserfan-payment-methods {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 5px;
	max-width: min(690px, 58vw);
	overflow: hidden;
}

.laserfan-pay {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	box-sizing: border-box;
	height: 23px;
	min-width: 36px;
	padding: 0 5px;
	border: 1px solid rgba(255, 255, 255, 0.38);
	border-radius: 4px;
	background: #fff;
	color: #17203a;
	font: 800 10px/1 Arial, sans-serif;
	letter-spacing: -0.25px;
}

.laserfan-pay-visa { color: #1434cb; font-size: 12px; font-style: italic; }
.laserfan-pay-amex { background: #2f77bc; color: #fff; }
.laserfan-pay-paypal { color: #003087; }
.laserfan-pay-paypal span { color: #009cde; }
.laserfan-pay-stripe { background: #635bff; color: #fff; font-size: 11px; }
.laserfan-pay-apple { color: #050505; letter-spacing: -0.6px; }
.laserfan-pay-google b { color: #4285f4; font-size: 13px; }
.laserfan-pay-union { background: linear-gradient(110deg, #df2945 0 34%, #0875bd 34% 68%, #119c82 68%); color: #fff; }
.laserfan-pay-jcb { background: linear-gradient(90deg, #0b65a6 0 33%, #d8263d 33% 66%, #179d62 66%); color: #fff; }

.laserfan-pay-mastercard {
	position: relative;
	width: 39px;
	padding: 0;
}

.laserfan-pay-mastercard i {
	position: absolute;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: #eb001b;
}

.laserfan-pay-mastercard i:first-child { left: 7px; }
.laserfan-pay-mastercard i:last-child { right: 7px; background: #f79e1b; mix-blend-mode: multiply; }

.laserfan-pay-usdt {
	gap: 3px;
	color: #168f79;
}

.laserfan-pay-usdt svg {
	width: 15px;
	height: 15px;
}

.laserfan-pay-usdt svg circle { fill: #26a17b; }
.laserfan-pay-usdt svg path { fill: #fff; }

/* Stars followed by an ordinary Arabic-numeral review count. */
.ct-woo-card-rating {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
}

.laserfan-review-count {
	display: inline-flex;
	align-items: center;
	color: #5f6570;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
}

.laserfan-review-count::before { content: "("; }
.laserfan-review-count::after { content: ")"; }

/* Keep both purchase actions visible and aligned. */
.products .ct-woo-card-actions {
	display: flex !important;
	align-items: stretch;
	justify-content: center;
	gap: 8px;
	width: 100%;
	opacity: 1 !important;
	transform: none !important;
}

.products .ct-woo-card-actions > .button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex: 1 1 0;
	min-width: 108px;
	min-height: 43px;
	padding: 10px 13px;
	font-size: 14px;
	line-height: 1.25;
	white-space: nowrap;
}

.products .ct-woo-card-actions > .laserfan-buy-now {
	border-color: var(--laserfan-blue);
	background: var(--laserfan-blue);
	color: #fff;
}

.products .ct-woo-card-actions > .laserfan-buy-now:hover {
	border-color: var(--laserfan-blue-dark);
	background: var(--laserfan-blue-dark);
	color: #fff;
}

/* Keep GTranslate compact in the desktop navigation. */
@media (min-width: 1000px) {
	#header [data-device="desktop"] #laserfan-translate {
		min-height: 30px;
	}

	#header [data-device="desktop"] #laserfan-translate.has-gtranslate .laserfan-translate-icon {
		display: none;
	}

	#header [data-device="desktop"] #laserfan-translate .gt_float_switcher {
		position: relative;
		overflow: visible;
		border: 1px solid #e1e4e9;
		border-radius: 4px;
		background: #fff !important;
		box-shadow: none !important;
		font-size: 12px;
		line-height: 1.2;
	}

	#header [data-device="desktop"] #laserfan-translate .gt_float_switcher .gt-selected {
		overflow: visible;
		background: transparent !important;
		text-transform: none;
	}

	#header [data-device="desktop"] #laserfan-translate .gt_float_switcher .gt-selected .gt-current-lang {
		display: flex;
		align-items: center;
		gap: 5px;
		min-height: 28px;
		padding: 4px 7px !important;
		background: transparent !important;
		color: #222;
	}

	#header [data-device="desktop"] #laserfan-translate .gt_float_switcher .gt-selected .gt-current-lang img {
		display: block;
		width: 20px !important;
		margin: 0 !important;
	}

	#header [data-device="desktop"] #laserfan-translate .gt_float_switcher .gt-lang-code {
		display: inline-block !important;
		position: static !important;
		top: auto !important;
		font-size: 12px;
		font-weight: 650;
		line-height: 1.2;
		text-transform: none;
	}

	#header [data-device="desktop"] #laserfan-translate .gt_float_switcher .gt_float_switcher-arrow {
		display: none !important;
	}

	#header [data-device="desktop"] #laserfan-translate .gt_float_switcher .gt_options {
		position: absolute !important;
		top: calc(100% + 5px);
		right: 0;
		min-width: 150px;
		border-radius: 4px;
		background: #fff;
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
	}
}

@media (max-width: 999px) {
	#header [data-row="middle"] > .ct-container {
		min-height: 68px;
		padding-inline: 16px;
		position: relative;
	}

	#header [data-device="mobile"] [data-row="middle"] > .ct-container {
		width: 100% !important;
		max-width: none !important;
		padding-inline: 6px !important;
	}

	#header .site-logo-container {
		width: clamp(126px, 39vw, 166px) !important;
		height: 56px;
		margin-inline-start: 0 !important;
	}

	#header [data-device="mobile"] [data-row="middle"] [data-column="end"] [data-items="primary"] {
		--items-spacing: 8px;
		display: block;
		position: relative;
		width: 0 !important;
		height: 68px;
		transform: none;
	}

	#header [data-device="mobile"] [data-row="middle"] [data-column="end"] {
		position: absolute;
		top: 50%;
		right: 4px;
		width: 0 !important;
		min-width: 0 !important;
		transform: translateY(-50%);
	}

	#header [data-device="mobile"] [data-row="middle"] [data-column="end"] [data-items="primary"] > * {
		margin-inline: 0 !important;
	}

	#header [data-device="mobile"] [data-row="middle"] #laserfan-translate,
	#header [data-device="mobile"] [data-row="middle"] .ct-header-cart,
	#header [data-device="mobile"] [data-row="middle"] .ct-header-trigger {
		position: absolute !important;
		top: 50%;
		margin: 0 !important;
		transform: translateY(-50%);
	}

	#header [data-device="mobile"] [data-row="middle"] #laserfan-translate { right: 64px; }
	#header [data-device="mobile"] [data-row="middle"] .ct-header-cart { right: 32px; }
	#header [data-device="mobile"] [data-row="middle"] .ct-header-trigger { right: 0; }

	.laserfan-translate {
		gap: 3px;
		font-size: 12px;
	}

	.laserfan-translate-icon {
		width: 16px;
		height: 16px;
	}

	.laserfan-translate .gt_selector {
		max-width: 74px;
		padding-inline: 5px 18px;
	}

	.laserfan-translate.has-gtranslate .laserfan-translate-icon {
		display: none;
	}

	#laserfan-translate .gt_float_switcher {
		position: relative;
		border-radius: 0;
		background: transparent !important;
		font-size: 13px;
		line-height: 1.2;
		box-shadow: none;
		overflow: visible;
	}

	#header [data-device="mobile"] #laserfan-translate,
	#header [data-device="mobile"] #laserfan-translate .laserfan-translate-plugin,
	#header [data-device="mobile"] #laserfan-translate .gtranslate_wrapper,
	#header [data-device="mobile"] #laserfan-translate #gt_float_wrapper {
		width: 80px;
	}

	#header [data-device="mobile"] #laserfan-translate .gt_float_switcher,
	#header [data-device="mobile"] #laserfan-translate .gt-selected,
	#header [data-device="mobile"] #laserfan-translate .gt-current-lang {
		box-sizing: border-box;
		width: 100%;
	}

	#laserfan-translate .gt_float_switcher .gt-selected {
		background: transparent !important;
		text-transform: none;
		overflow: visible;
	}

	#laserfan-translate .gt_float_switcher .gt-selected .gt-current-lang {
		display: flex;
		align-items: center;
		gap: 6px;
		min-width: 0;
		padding: 3px 0 !important;
		background: transparent !important;
		color: #222;
	}

	#laserfan-translate .gt_float_switcher .gt-selected .gt-current-lang img {
		display: block;
		width: 24px;
		margin: 0 !important;
	}

	#laserfan-translate .gt_float_switcher .gt_float_switcher-arrow {
		display: none !important;
	}

	#laserfan-translate .gt_float_switcher .gt-lang-code {
		display: inline-block !important;
		position: static !important;
		top: auto !important;
		font-size: 13px;
		font-weight: 650;
		line-height: 1.2;
	}

	#laserfan-translate .gt_float_switcher .gt_options {
		position: absolute !important;
		top: calc(100% + 5px);
		right: 0;
		min-width: 160px;
		max-width: min(260px, calc(100vw - 32px));
		border-radius: 4px;
		background: #fff;
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
	}

	#laserfan-translate .gt_float_switcher .gt_options a {
		display: flex;
		align-items: center;
		gap: 7px;
		padding: 8px 12px;
		font-size: 14px;
		line-height: 1.3;
	}

	#laserfan-translate .gt_float_switcher .gt_options a.gt-current {
		display: none !important;
	}

	.laserfan-mobile-socials {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 8px;
		padding: 8px 12px 10px;
		border-top: 1px solid #e1e4e9;
		background: var(--laserfan-header-bg);
	}

	.laserfan-mobile-socials .ct-social-box {
		display: grid;
		grid-template-columns: repeat(4, 30px);
		align-items: center;
		justify-content: center;
		gap: 12px 24px;
	}

	.laserfan-mobile-socials .ct-social-box > a {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 30px;
		height: 30px;
	}

	.laserfan-mobile-socials .ct-icon-container {
		color: #292b32;
	}

	.laserfan-mobile-socials a[data-network="facebook"] .ct-icon-container {
		color: #1877f2 !important;
	}

	.laserfan-mobile-socials a[data-network="twitter"] .ct-icon-container {
		color: #111 !important;
	}

	.laserfan-mobile-socials a[data-network="instagram"] .ct-icon-container {
		color: #e4405f !important;
	}

	.laserfan-mobile-socials a[data-network="email"] .ct-icon-container {
		color: #ea4335 !important;
	}

	.laserfan-mobile-socials a[data-network="phone"] .ct-icon-container {
		color: #22a447 !important;
	}

	.laserfan-mobile-socials a[data-network="whatsapp"] .ct-icon-container {
		color: #25d366 !important;
	}

	.laserfan-mobile-socials a[data-network="tiktok"] .ct-icon-container {
		color: #111 !important;
	}

	.laserfan-mobile-socials a[data-network="youtube"] .ct-icon-container {
		color: #ff0000 !important;
	}

	.laserfan-mobile-socials svg {
		width: 23px;
		height: 23px;
		fill: currentColor;
	}

	.laserfan-mobile-payment-methods {
		display: grid;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 5px;
		width: min(100%, 410px);
		max-width: 410px;
		padding-top: 8px;
		border-top: 1px solid #aeb3bc;
		overflow: visible;
	}

	.laserfan-mobile-payment-methods .laserfan-pay {
		width: 100%;
		min-width: 0;
		padding-inline: 3px;
	}

	/* heightmore.png: remove the inherited 80px gap below the black service strip. */
	.elementor-3072 .elementor-element.elementor-element-8005e44 {
		--margin-bottom: 28px !important;
	}

	.elementor-3072 .elementor-element.elementor-element-54c5e3b {
		--margin-bottom: 28px !important;
	}

	/* moreheight2.png: tighten the transition into Accessory Products. */
	.elementor-3072 .elementor-element.elementor-element-65898c3 {
		--margin-bottom: 34px !important;
	}

	.elementor-3072 .elementor-element.elementor-element-d8bb0c5 {
		--margin-bottom: 28px !important;
		--gap: 12px 12px !important;
		--row-gap: 12px !important;
	}

	.elementor-3072 .elementor-element.elementor-element-a5be057,
	.elementor-3072 .elementor-element.elementor-element-d27e7e9 {
		--margin-bottom: 52px !important;
	}

	.products .ct-woo-card-actions {
		padding-inline: 4px;
	}

	.products .ct-woo-card-actions > .button {
		min-width: 0;
		padding-inline: 9px;
		font-size: 13px;
	}

	#header [data-device="mobile"] [data-row="middle"] .ct-header-cart {
		right: 38px;
	}

	#header [data-device="mobile"] [data-row="middle"] #laserfan-translate {
		right: 78px;
	}

	#header [data-device="mobile"] .ct-header-cart .ct-icon,
	#header [data-device="mobile"] .ct-header-trigger .ct-icon {
		width: 20px;
		height: 20px;
	}

	#laserfan-translate .gt_float_switcher .gt-selected .gt-current-lang img {
		width: 26px;
	}

	#footer [data-row="top"] [data-column="widget-area-2"],
	#footer [data-row="top"] [data-column="widget-area-3"],
	#footer [data-row="top"] [data-column="widget-area-4"] {
		padding-top: 22px !important;
		border-top: 1px solid rgba(0, 0, 0, 0.65);
	}

	#footer [data-row="top"] > .ct-container {
		row-gap: 0 !important;
		padding-top: 28px !important;
		padding-bottom: 28px !important;
	}

	#footer [data-row="top"] [data-column^="widget-area-"] {
		padding-bottom: 22px !important;
	}

	#footer [data-row="top"] .ct-widget,
	#footer [data-row="top"] .wp-block-group,
	#footer [data-row="top"] .wp-block-list {
		margin-block: 0 !important;
	}

	#footer [data-row="top"] .wp-block-heading {
		margin-bottom: 12px !important;
	}

	#footer [data-row="top"] .wp-block-list li + li {
		margin-top: 3px;
	}
}

.laserfan-number-counter {
	display: inline-block;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.laserfan-footer-contact {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.laserfan-contact-row {
	display: flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
}

.laserfan-contact-row svg {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	fill: var(--laserfan-blue);
}

.laserfan-contact-whatsapp svg {
	fill: #25d366;
}

.laserfan-contact-row a {
	color: var(--laserfan-blue);
	text-decoration: underline;
	text-underline-offset: 2px;
}

#footer [data-row="middle"] .widget_media_image img {
	width: min(230px, 70vw) !important;
	height: auto !important;
	object-fit: contain;
}

#footer [data-row="middle"] .widget_media_image figure {
	margin-block: 0;
}

@media (max-width: 390px) {
	#header [data-device="mobile"] [data-row="middle"] [data-column="end"] [data-items="primary"] {
		gap: 7px;
	}

	#header .site-logo-container {
		width: clamp(116px, 36vw, 140px) !important;
	}

	.laserfan-translate-icon {
		display: none;
	}

	.products .ct-woo-card-actions {
		flex-wrap: wrap;
	}

	.products .ct-woo-card-actions > .button {
		flex-basis: calc(50% - 4px);
	}
}
