/*
 Theme Name:    Electro Child
 Theme URI:     https://themeforest.net/item/electro-electronics-store-woocommerce-theme/15720624
 Description:   This is the child theme of Electro
 Author:        MadrasThemes
 Author URI:    https://madrasthemes.com/
 Template:      electro
 Version:       2.2.9
 License:       GNU General Public License v2 or later
 License URI:   http://www.gnu.org/licenses/gpl-2.0.html
 Tags:          light, dark, two-columns, right-sidebar, responsive-layout
 Text Domain:   electro-child
*/

/*
 * Stripe reads .payment_box background brightness to pick light ("stripe")
 * vs dark ("night") theme. Electro uses rgba(0,0,0,0.035) which Stripe treats
 * as black, so it renders a dark form with Electro's dark body text — unreadable.
 */
.woocommerce-checkout #payment .payment_methods li .payment_box,
.woocommerce-checkout #payment .payment_methods li.wc-stripe-optimized-checkout .payment_box.payment_method_stripe {
	background-color: #ffffff !important;
	color: #333e48 !important;
}

.woocommerce-checkout #payment .payment_methods li .payment_box .input-text,
.woocommerce-checkout #wc-stripe-hidden-style-input {
	background-color: #ffffff !important;
	color: #333e48 !important;
	border-color: #dddddd !important;
}

/* Home page category video cards (below brands carousel) */
.ak-category-video-cards {
	margin: 0 0 2.68em;
}

.ak-category-video-cards__inner {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.ak-category-video-cards__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.ak-category-video-cards__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 2rem;
	}
}

.ak-category-video-card {
	display: block;
	text-decoration: none;
	color: #333e48;
}

.ak-category-video-card:hover,
.ak-category-video-card:focus {
	color: #333e48;
	text-decoration: none;
}

.ak-category-video-card__media {
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	background-color: #ffffff;
	box-shadow: 0 2px 12px rgba(51, 62, 72, 0.08);
	aspect-ratio: 600 / 338;
	isolation: isolate;
}

.ak-category-video-card__video {
	position: absolute;
	top: 50%;
	left: 50%;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	transform: translate(-50%, -50%) scale(1.04);
	transform-origin: center center;
}

.ak-category-video-card__title {
	margin: 1rem 0 0;
	font-size: 1.125rem;
	font-weight: 700;
	text-align: center;
	line-height: 1.4;
}

/* Home page hero */
.ak-home-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 2rem;
	align-items: center;
	max-width: 1000px;
	margin: 0 auto;
	padding: 2.5rem 1.5rem;
}

.ak-home-hero__content {
	text-align: left;
	color: #600972;
	font-family: "Alegreya Sans", sans-serif;
}

.ak-home-hero__video {
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.ak-home-hero__video video {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	object-fit: contain;
	object-position: center center;
	transform: scale(1.015);
}

.ak-home-hero__title {
	margin: 0 0 1rem;
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	font-weight: 600;
	line-height: 1.2;
	color: #600972;
}

.ak-home-hero__text,
.ak-home-hero__brands,
.ak-home-hero__cta {
	margin: 0 0 0.75rem;
	font-size: 1.125rem;
	font-weight: 400;
	line-height: 1.4;
	color: #600972;
}

.ak-home-hero__brands {
	font-style: italic;
}

/* Hide legacy WPBakery intro headings when the hero is active */
body.home:has(.ak-home-hero) .vc_custom_1725911628047,
body.home:has(.ak-home-hero) .vc_custom_1725911648916,
body.home:has(.ak-home-hero) .vc_custom_1725911666655,
body.home:has(.ak-home-hero) .vc_custom_1741827848303,
body.home:has(.ak-home-hero) .vc_custom_1741827848303 + .vc_empty_space {
	display: none !important;
}

@media (max-width: 767px) {
	.ak-home-hero {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		padding: 2rem 1.25rem 1rem;
	}
}

/* -------------------------------------------------------------------------
 * Product configurator — full-width box under short description
 * ------------------------------------------------------------------------- */

/* Expand summary column now that the right-hand actions column is gone */
@media (min-width: 768px) {
	.extended.ak-config-under-description .single-product-wrapper > .summary.entry-summary {
		flex: 0 0 100%;
		max-width: 100%;
	}
}

@media (min-width: 1200px) {
	.extended.ak-config-under-description .single-product-wrapper > .summary.entry-summary {
		flex: 0 0 58.333333%;
		max-width: 58.333333%;
	}
}

/* Configurator card */
.extended.ak-config-under-description .summary.entry-summary .product-actions-wrapper {
	width: 100%;
	max-width: 100%;
	margin-top: 1.75rem;
	padding: 0;
}

.extended.ak-config-under-description .summary.entry-summary .product-actions {
	border: 2px solid #e8e8e8;
	border-radius: 1rem;
	padding: 1.75rem 2rem;
	background: #fff;
}

/* Price block — consistent sizing */
.extended.ak-config-under-description .product-actions > .price {
	margin-bottom: 1.5rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid #e8e8e8;
	font-size: 1.125rem;
	line-height: 1.4;
}

.extended.ak-config-under-description .product-actions > .price .electro-price {
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.3;
}

.extended.ak-config-under-description .product-actions > .price del {
	font-size: 1rem !important;
	display: inline !important;
	opacity: 0.55;
	margin-left: 0.5em;
	vertical-align: baseline;
}

.extended.ak-config-under-description .product-actions > .price ins {
	text-decoration: none;
}

/* Composite step headers */
.extended.ak-config-under-description .composite_form .component {
	margin-bottom: 0.5rem;
}

.extended.ak-config-under-description .composite_form .component_title {
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.4;
	margin-bottom: 0;
}

.extended.ak-config-under-description .composite_form .component_title_toggled {
	margin-bottom: 0;
	padding: 0.85rem 0;
	border-bottom: 1px solid #f0f0f0;
}

.extended.ak-config-under-description .composite_form .component_title_toggled .component_title_text {
	font-size: 1.05rem;
	padding-left: 1.5rem;
}

.extended.ak-config-under-description .composite_form .component_title_toggled .component_title_text::before {
	font-size: 0.85rem;
}

.extended.ak-config-under-description .composite_form .component .step_index {
	color: #600972;
	font-weight: 700;
}

.extended.ak-config-under-description .composite_form .component_inner {
	padding: 1rem 0 1.25rem;
}

.extended.ak-config-under-description .composite_form .select_label {
	font-size: 0.875rem;
	color: #7d7d7d;
	margin-bottom: 0.75rem;
}

/* Radio options — card grid */
.extended.ak-config-under-description ul.component_option_radio_buttons_container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
}

@media (min-width: 480px) {
	.extended.ak-config-under-description ul.component_option_radio_buttons_container {
		grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
	}
}

.extended.ak-config-under-description ul.component_option_radio_buttons_container li.component_option_radio_button_container {
	float: none !important;
	width: auto !important;
}

.extended.ak-config-under-description .component_option_radio_button {
	flex-direction: row;
	align-items: flex-start !important;
	padding: 0.875rem 1rem;
	border: 2px solid #e8e8e8;
	border-radius: 0.625rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.extended.ak-config-under-description .component_option_radio_button.selected,
.extended.ak-config-under-description .component_option_radio_button:has(input:checked) {
	border-color: #600972;
	box-shadow: 0 0 0 1px #600972;
}

.extended.ak-config-under-description .component_option_radio_button_container .radio_button_input {
	padding: 0.15rem 0.75rem 0 0;
	flex-shrink: 0;
}

.extended.ak-config-under-description .radio_button_description {
	flex: 1;
	min-width: 0;
}

.extended.ak-config-under-description .radio_button_description .radio_button_title,
.extended.ak-config-under-description .component_option_radio_button_container .radio_button_description .title {
	font-size: 0.9375rem;
	font-weight: 600;
	margin: 0 0 0.25rem;
	line-height: 1.35;
	display: block;
}

.extended.ak-config-under-description .radio_button_description .radio_button_price,
.extended.ak-config-under-description .radio_button_description .price {
	font-size: 0.875rem !important;
	line-height: 1.4;
	margin: 0 !important;
	display: block;
}

/* Composite footer — total price + add to cart */
.extended.ak-config-under-description .composite_form .composite_wrap {
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 2px solid #e8e8e8;
}

.extended.ak-config-under-description .composite_form .composite_price,
.extended.ak-config-under-description .composite_form .composite_price .price,
.extended.ak-config-under-description .composite_form .composite_price .woocommerce-Price-amount,
.extended.ak-config-under-description .composite_form .composite_price ins,
.extended.ak-config-under-description .composite_form .composite_price ins .amount,
.extended.ak-config-under-description .composite_form .composite_price bdi {
	font-size: 1.125rem !important;
	font-weight: 600;
	line-height: 1.4;
	margin-bottom: 1rem;
}

.extended.ak-config-under-description .composite_form .composite_price del,
.extended.ak-config-under-description .composite_form .composite_price del .amount {
	font-size: 0.9em !important;
	opacity: 0.55;
	font-weight: 400;
}

.extended.ak-config-under-description .composite_form .composite_button .single_add_to_cart_button {
	width: 100%;
	padding: 1rem 2rem;
	font-size: 1.05rem;
	font-weight: 600;
	margin-top: 0;
}

/* Composite products: show one Electro tab panel at a time (see composite-product-tabs.js). */
.electro-tabs.ak-composite-tabs .electro-tab[hidden] {
	display: none !important;
}

.electro-tabs.ak-composite-tabs .electro-tab:not([hidden]) {
	margin-bottom: 0;
}
