/*
Theme Name: Arc Frost
Template: frost
Description: Dark premium child theme of Frost for the Arc Audio store (WP Engine Commerce Connect for BigCommerce + 3D configurator).
Author: Arc Audio hackathon team
Version: 1.0.7
Requires at least: 6.7
License: GNU General Public License v3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: arc-frost
*/

/* Layout and brand
---------------------------------------- */

.arc-header {
	position: sticky;
	top: 0;
	z-index: 100;
	margin-top: 0;
	padding: 16px var(--wp--preset--spacing--small);
	border-bottom: 1px solid var(--wp--preset--color--border);
	backdrop-filter: saturate(140%) blur(12px);
	background: rgba(17, 19, 23, 0.86) !important;
}

.admin-bar .arc-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.arc-header .wp-block-site-title,
.arc-footer .wp-block-site-title {
	letter-spacing: 0.22em;
	text-transform: uppercase;
	font-size: 15px;
	font-weight: 700;
}

.arc-header__actions {
	gap: 28px;
}

.arc-header .wp-block-navigation {
	font-size: 15px;
	gap: 28px;
}

.wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--base) !important;
	color: var(--wp--preset--color--contrast) !important;
}

.arc-eyebrow {
	color: var(--wp--preset--color--primary);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.arc-muted {
	color: var(--wp--preset--color--muted);
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	border: 1px solid var(--wp--preset--color--border);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}

/* Home */
.arc-hero {
	padding: clamp(48px, 9vw, 120px) var(--wp--preset--spacing--small) clamp(40px, 6vw, 80px);
	background: var(--wp--preset--gradient--glow);
	overflow: hidden;
}

.arc-hero__title {
	font-size: clamp(44px, 6.4vw, 84px);
	line-height: 1.02;
	margin: 12px 0 20px;
}

.arc-hero__lede {
	font-size: clamp(17px, 1.5vw, 20px);
	line-height: 1.55;
	max-width: 30em;
	margin-bottom: 32px;
}

.arc-hero__image img {
	width: 100%;
	height: auto;
	filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.55));
}

.arc-section {
	padding: clamp(48px, 7vw, 96px) var(--wp--preset--spacing--small);
}

.arc-section__title {
	font-size: clamp(32px, 4vw, 52px);
	margin: 8px 0 36px;
}

.arc-features {
	gap: 20px;
}

.arc-card {
	padding: 28px;
	background: var(--wp--preset--color--neutral);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 20px;
}

.arc-card h3 {
	margin: 10px 0;
	font-size: 22px;
}

.arc-cta {
	border-top: 1px solid var(--wp--preset--color--border);
}

.arc-cta h2 {
	font-size: clamp(30px, 3.6vw, 46px);
}

/* Product page */
.arc-product {
	padding: clamp(32px, 5vw, 64px) var(--wp--preset--spacing--small);
}

/* Find Your Arc page */
.arc-find {
	padding: clamp(40px, 6vw, 88px) var(--wp--preset--spacing--small);
}

.arc-find__steps {
	padding-left: 1.2em;
	line-height: 1.7;
}

.arc-find__steps li::marker {
	color: var(--wp--preset--color--primary);
	font-weight: 700;
}

/* Footer */
.arc-footer {
	margin-top: 0;
	padding: 64px var(--wp--preset--spacing--small) 40px;
	background: var(--wp--preset--color--neutral);
	border-top: 1px solid var(--wp--preset--color--border);
}

.arc-footer a {
	text-decoration: none;
}

.arc-footer__links {
	list-style: none;
	padding: 0;
	margin: 12px 0 0;
	line-height: 2.1;
}

.arc-footer__legal {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--wp--preset--color--border);
	font-size: 13px;
}

/* "Customize in 3D" (arc-guide [arc_customize])
---------------------------------------- */

.arc-customize {
	margin: 18px 0 8px;
}

.arc-customize__button.wp-element-button {
	display: flex;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 15px 22px;
	text-decoration: none;
	font-size: 16px;
}

.arc-customize__note {
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--wp--preset--color--muted);
	text-align: center;
}

/* Commerce Connect: dark tokens
   The plugin's blocks are built on design tokens with light defaults; these
   map them to the Arc palette. Custom properties inherit, so setting them on
   body overrides the :root defaults for everything inside the page.
---------------------------------------- */

body {
	--bg-page: #111317;
	--bg-primary: #181b21;
	--bg-secondary: #1e2229;
	--bg-tertiary: #262a32;
	--bg-quaternary: #2c3139;
	--bg-disabled: #22262e;
	--bg-primary-inverted: #ece9e2;
	--fg-primary: #ece9e2;
	--fg-secondary: #c9c6bf;
	--fg-tertiary: #9a9ca3;
	--fg-placeholder: #7d808a;
	--fg-disabled: #6b6e76;
	--fg-primary-inverted: #111317;
	--text-primary: #ece9e2;
	--text-secondary: #c9c6bf;
	--text-tertiary: #9a9ca3;
	--text-placeholder: #7d808a;
	--text-disabled: #6b6e76;
	--text-primary-inverted: #111317;
	--text-action: #c8a45a;
	--fg-action: #c8a45a;
	--border-primary: #3a3f48;
	--border-secondary: #2c3139;
	--border-tertiary: #24282f;
	--border-container: rgba(255, 255, 255, 0.08);
	--border-focus: #c8a45a;

	--colors-text-text-primary: #ece9e2;
	--colors-text-text-primary-static: #ece9e2;
	--colors-text-text-primary-on-secondary: #ece9e2;
	--colors-text-text-primary-on-tertiary: #ece9e2;
	--colors-text-text-secondary: #c9c6bf;
	--colors-text-text-secondary-static: #c9c6bf;
	--colors-text-text-tertiary: #9a9ca3;
	--colors-text-text-placeholder: #7d808a;
	--colors-text-text-disabled: #6b6e76;
	--colors-text-text-action: #c8a45a;
	--colors-text-text-action-hover: #dcbd7a;
	--colors-text-text-brand-primary: #c8a45a;
	--colors-background-bg-primary: #181b21;
	--colors-background-bg-primary-hover: #20242b;
	--colors-background-bg-secondary: #1e2229;
	--colors-background-bg-tertiary: #262a32;
	--colors-background-bg-quaternary: #2c3139;
	--colors-background-bg-disabled: #22262e;
	--colors-background-bg-brand-solid: #c8a45a;
	--colors-border-border-primary: #3a3f48;
	--colors-border-border-primary-subtle: rgba(255, 255, 255, 0.12);
	--colors-border-border-secondary: #2c3139;
	--colors-border-border-secondary-subtle: rgba(255, 255, 255, 0.08);
	--colors-border-border-tertiary: #24282f;
	--colors-border-border-focus: #c8a45a;

	--components-fields-background-enabled: #181b21;
	--components-fields-background-hover: #1e2229;
	--components-fields-background-focused: #1e2229;
	--components-fields-background-pressed: #1e2229;
	--components-fields-background-disabled: #22262e;
	--components-fields-border-enabled: #3a3f48;
	--components-fields-border-hover: #50566a;
	--components-fields-border-pressed: #c8a45a;
	--components-fields-border-focus: #c8a45a;
	--components-button-primary-background-enabled: #c8a45a;
	--components-button-primary-background-hover: #dcbd7a;
	--components-button-primary-background-pressed: #b8954d;
	--components-button-primary-content-enabled: #111317;
	--components-button-secondary-background-enabled: transparent;
	--components-button-secondary-background-hover: rgba(255, 255, 255, 0.06);
	--components-button-secondary-border-enabled: #3a3f48;
	--components-button-secondary-content-enabled: #ece9e2;
	--components-button-tertiary-background-enabled: transparent;
	--components-button-tertiary-background-hover: rgba(255, 255, 255, 0.06);
	--components-button-tertiary-background-pressed: rgba(255, 255, 255, 0.1);
	--components-button-tertiary-border-enabled: #3a3f48;
	--components-button-tertiary-content-enabled: #ece9e2;
	--components-button-ghost-background-enabled: transparent;

	--ecom-ui-site-background-color: #111317;
	--ecom-ui-text-color: #ece9e2;
	--ecom-ui-link-color: #ece9e2;
	--ecom-ui-link-color-hover: #c8a45a;
	--ecom-ui-heading-h1-color: #ece9e2;
	--ecom-ui-heading-h2-color: #ece9e2;
	--ecom-ui-heading-h3-color: #ece9e2;
	--ecom-ui-heading-h4-color: #ece9e2;
	--ecom-ui-heading-h5-color: #ece9e2;
	--ecom-ui-products-title-color: #ece9e2;
	--ecom-ui-products-pricing-color: #ece9e2;
	--ecom-ui-products-description-color: #c9c6bf;
	--ecom-ui-primary-button-color-background: #c8a45a;
	--ecom-ui-primary-button-color-text: #111317;
	--ecom-ui-primary-button-hover-color-background: #dcbd7a;
	--ecom-ui-primary-button-hover-color-text: #111317;
	--ecom-ui-primary-button-border-color: #c8a45a;
	--ecom-ui-primary-button-border-radius: 999px;
	--ecom-ui-products-buy-button-background-color: #c8a45a;
	--ecom-ui-products-buy-button-text-color: #111317;
	--ecom-ui-account-tab-color: #9a9ca3;
	--ecom-ui-account-active-tab-color: #ece9e2;
	--ecom-ui-account-active-border-color: #c8a45a;
}

/* Commerce Connect: surfaces with hardcoded light colors
---------------------------------------- */

.ecom-pane-inner,
.ecom-form--card,
.ecom-dropdown__menu,
.ecom-tooltip-content,
.ecom-dropdown-label .szh-menu,
.ecom-dropdown-label .szh-menu-button {
	background: #181b21 !important;
	color: #ece9e2;
	border-color: #2c3139 !important;
}

.ecom-pane-inner {
	box-shadow: rgba(0, 0, 0, 0.5) -17px 0 35px;
	border-left: 1px solid #2c3139;
}

.ecom-input {
	background: #181b21;
	color: #ece9e2;
}

.ecom-notice,
.ecom-notice__heading {
	color: #ece9e2;
}

.ecom-quantity__button,
.ecom-quantity__input,
.ecom-quantity .ecom-button,
.ecom-button--radio {
	background: #181b21 !important;
	color: #ece9e2;
	border-color: #3a3f48;
}

.ecom-quantity .ecom-button:hover {
	background: #20242b !important;
}

.ecom-select-item,
.ecom-product-buy-button__dropdown-value {
	color: #ece9e2;
	border-color: #2c3139;
}

.ecom-select-item:hover,
.ecom-select-item:focus,
.ecom-select-item[data-is-selected="true"],
.ecom-select-item[data-is-selected="true"]:hover,
.ecom-product-buy-button__dropdown-value:hover {
	background-color: #20242b;
	color: #ece9e2;
}

.ecom-skeleton__row,
.ecom-skeleton__bar,
.ecom-product-buy-button__skeleton-cta,
.ecom-product-buy-button__skeleton-row {
	background: #20242b;
}

.ecom-carousel-dot {
	border-color: #ece9e2;
}

.product-gallery__frame,
.product-gallery__thumbnail {
	background: radial-gradient(ellipse at 50% 40%, #262a33 0%, #181b21 70%);
	border-radius: 16px;
}

/* Arc Guide assistant (arc-guide plugin) in the dark palette
   (body prefix: the plugin stylesheet loads after this one)
---------------------------------------- */

body .arc-guide {
	--ag-accent: #c8a45a;
	--ag-on-accent: #111317;
	--ag-ink: #ece9e2;
	--ag-muted: #9a9ca3;
	--ag-line: #2c3139;
	--ag-border: #3a3f48;
	--ag-bg: #181b21;
	--ag-soft: #14161b;
	--ag-surface: #20242b;
	--ag-disabled: #3a3e46;
	--ag-launcher-bg: #c8a45a;
	--ag-launcher-ink: #111317;
	--ag-font: var(--wp--preset--font-family--primary, Outfit, sans-serif);
}

.arc-guide__panel {
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.arc-guide--inline .arc-guide__panel {
	max-width: none;
}

/* Sort / variant dropdowns */
.ecom-dropdown-label label,
.ecom-dropdown-label .szh-menu-button,
.szh-menu__item {
	color: #ece9e2 !important;
}

.szh-menu {
	background: #181b21 !important;
	border-color: #2c3139 !important;
}

.szh-menu__item--hover {
	background: #20242b !important;
}

/* Page titles line up with wide content (e.g. the Shop grid); text pages keep the reading width */
article:has(.wp-block-post-content > .alignwide) .entry-header .wp-block-post-title {
	max-width: var(--wp--style--global--wide-size) !important;
}

/* Find your Arc launcher sits above the site chatbot button (both bottom-right) */
body .arc-guide--floating {
	bottom: 96px;
}

/* Intro lines inside page content use the full reading width (no centered indent) */
.wp-block-post-content > .arc-hero__lede {
	max-width: var(--wp--style--global--content-size);
}

/* Product options + bundle forms (arc-guide [arc_buy], bundle pages)
---------------------------------------------------------------------------- */

.arc-buy {
	display: grid;
	gap: 18px;
	margin: 20px 0 8px;
}

.arc-buy__item {
	display: grid;
	gap: 18px;
}

.arc-buy__group {
	border: 0;
	margin: 0;
	padding: 0;
}

.arc-buy__group legend,
.arc-buy__engrave label {
	display: block;
	margin-bottom: 10px;
	font-size: 15px;
	font-weight: 600;
}

.arc-buy__group em,
.arc-buy__value {
	font-style: normal;
	font-weight: 400;
	color: var(--wp--preset--color--muted);
	margin-left: 6px;
}

.arc-buy__swatches,
.arc-buy__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.arc-buy__swatch,
.arc-buy__chip {
	position: relative;
	cursor: pointer;
}

.arc-buy__swatch input,
.arc-buy__chip input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.arc-buy__swatch span:not(.screen-reader-text) {
	display: block;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.18);
}

.arc-buy__swatch input:checked + span {
	box-shadow: 0 0 0 2px var(--wp--preset--color--base), 0 0 0 4px var(--wp--preset--color--primary);
}

.arc-buy__swatch input:focus-visible + span,
.arc-buy__chip input:focus-visible + span {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 3px;
}

.arc-buy__chip span {
	display: inline-block;
	padding: 9px 14px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: var(--wp--preset--color--neutral);
	font-size: 14px;
}

.arc-buy__chip--size span {
	min-width: 48px;
	text-align: center;
}

.arc-buy__chip input:checked + span {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}

.arc-buy__engrave input {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 14px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	background: var(--wp--preset--color--neutral);
	color: var(--wp--preset--color--contrast);
	font: inherit;
}

.arc-buy__error {
	display: block;
	margin-top: 6px;
	color: #ef7a6a;
}

.arc-buy__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding-top: 14px;
	border-top: 1px solid var(--wp--preset--color--border);
	font-size: 18px;
}

.arc-buy__total strong {
	font-size: 22px;
}

.arc-buy__total del {
	color: var(--wp--preset--color--muted);
	margin-right: 8px;
	font-size: 16px;
}

.arc-buy__add.wp-element-button {
	width: 100%;
	padding: 15px 22px;
	font-size: 16px;
	cursor: pointer;
}

.arc-buy__add:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.arc-buy__3d {
	text-align: center;
	font-size: 14px;
	color: var(--wp--preset--color--primary) !important;
	text-decoration: none;
}

.arc-buy__savings {
	margin: -6px 0 0;
	color: var(--wp--preset--color--primary);
	font-weight: 600;
}

.arc-buy__fine {
	margin: 0;
	font-size: 13px;
	color: var(--wp--preset--color--muted);
	text-align: center;
}

.arc-buy--bundle {
	max-width: 640px;
}

.arc-buy__bundle-item {
	padding: 22px;
	background: var(--wp--preset--color--neutral);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 18px;
}

.arc-buy__bundle-item h3 {
	margin: 0 0 16px;
	font-size: 20px;
}

.arc-buy__bundle-item h3 small {
	margin-left: 8px;
	font-size: 13px;
	font-weight: 400;
	color: var(--wp--preset--color--muted);
}

/* Bundle cards (Arc bundles ACF block)
---------------------------------------------------------------------------- */

.arc-bundles {
	margin: 32px 0;
}

.arc-bundles__heading {
	font-size: clamp(26px, 3vw, 36px);
	margin: 0 0 20px;
}

.arc-bundles__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

.arc-bundle-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 22px;
	background: var(--wp--preset--color--neutral);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 20px;
	color: var(--wp--preset--color--contrast) !important;
	text-decoration: none;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.arc-bundle-card:hover {
	border-color: var(--wp--preset--color--primary);
	transform: translateY(-2px);
}

.arc-bundle-card__media {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 150px;
	margin-bottom: 10px;
	border-radius: 14px;
	background: radial-gradient(ellipse at 50% 40%, #262a33 0%, #181b21 70%);
}

.arc-bundle-card__media img {
	height: 120px;
	width: auto;
	margin: 0 -14px;
	filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.45));
}

.arc-bundle-card__deal {
	position: absolute;
	top: 30px;
	left: 30px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	font-size: 12px;
	font-weight: 700;
}

.arc-bundle-card__title {
	margin: 0;
	font-size: 22px;
}

.arc-bundle-card__tagline,
.arc-bundle-card__items {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: 14px;
}

.arc-bundle-card__price {
	margin: 8px 0 0;
	font-size: 18px;
}

.arc-bundle-card__price del {
	color: var(--wp--preset--color--muted);
	margin-right: 8px;
	font-size: 15px;
}

.arc-bundle-card__cta {
	margin-top: 10px;
	color: var(--wp--preset--color--primary);
	font-weight: 600;
	font-size: 14px;
}

.arc-section--bundles {
	padding-top: 0;
}

/* Keep the options block compact inside the tall product column, and respect [hidden]. */
.arc-buy,
.arc-buy__item {
	align-content: start;
}

.arc-buy__error[hidden] {
	display: none;
}
