/**
 * Everest Custom Styles
 *
 * Scoped under .everest-* prefix to avoid collision with any theme
 * (Bricks, Astra, GeneratePress, etc.). All styles use CSS variables —
 * override them in your theme's Custom CSS to retheme without forking.
 *
 * To re-theme: paste in your theme's custom CSS:
 *   :root {
 *     --everest-bg: #fff;
 *     --everest-text: #000;
 *     --everest-font: 'Inter', sans-serif;
 *     ...
 *   }
 */

:root {
	--everest-bg: #000;
	--everest-bg-alt: #050505;
	--everest-text: #ffffff;
	--everest-text-muted: #9a9a9a;
	--everest-text-dim: #555;
	--everest-hairline: rgba(255,255,255,0.10);
	--everest-hairline-strong: rgba(255,255,255,0.22);
	--everest-font: 'Montserrat', system-ui, -apple-system, sans-serif;
}

/* ============================================================
   MOUNTAIN MARK
   ============================================================ */
.everest-mountain {
	display: inline-block;
	color: currentColor;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.everest-top-bar {
	font-family: var(--everest-font);
}
.everest-top-bar__inner {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 32px;
}
.everest-cart-button {
	background: none;
	border: none;
	color: inherit;
	font-family: var(--everest-font);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	cursor: pointer;
	padding: 6px 4px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	transition: opacity 0.25s ease;
	text-decoration: none;
}
.everest-cart-button:hover { opacity: 0.7; }
.everest-cart-button svg { width: 18px; height: 18px; }
.everest-cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	background: currentColor;
	color: var(--everest-bg);
	border-radius: 999px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0;
}
.everest-cart-count::before {
	content: '';
	display: inline-block;
	color: inherit;
}
.everest-cart-count[data-empty="true"] { display: none; }

.everest-lang-switch {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.25em;
	font-family: var(--everest-font);
}
.everest-lang-switch a {
	color: var(--everest-text-dim);
	text-decoration: none;
	padding: 6px 4px;
	transition: color 0.25s ease;
}
.everest-lang-switch a.current-lang,
.everest-lang-switch a.active { color: var(--everest-text); }
.everest-lang-switch a:hover { color: var(--everest-text); }
.everest-lang-switch .sep { color: var(--everest-text-dim); }

/* ============================================================
   CONFIGURATOR
   ============================================================ */
.everest-configure {
	font-family: var(--everest-font);
	color: var(--everest-text);
}
.everest-configure__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(40px, 6vw, 100px);
	align-items: start;
}

/* Swap columns: options on the LEFT, preview/summary on the RIGHT */
.everest-config-options {
	grid-column: 1;
	grid-row: 1;
}
.everest-config-preview {
	grid-column: 2;
	grid-row: 1;
	position: sticky;
	top: 40px;
	display: flex;
	flex-direction: column;
	gap: 28px;
}
.everest-config-image {
	background: var(--everest-bg);
	overflow: hidden;
	border: 1px solid var(--everest-hairline);
}
.everest-config-image img { width: 100%; height: auto; display: block; }

.everest-config-summary {
	padding-top: 24px;
	border-top: 1px solid var(--everest-hairline);
}
.everest-config-summary__label {
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--everest-text-muted);
	margin-bottom: 18px;
}
.everest-config-summary__list {
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.everest-config-summary__list li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font-size: 13px;
	color: var(--everest-text);
	font-weight: 300;
}
.everest-config-summary__list li .opt-name { color: var(--everest-text-muted); }
.everest-config-summary__list li .opt-price {
	font-variant-numeric: tabular-nums;
	font-weight: 400;
}

.everest-config-total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding-top: 24px;
	border-top: 1px solid var(--everest-hairline-strong);
	margin-bottom: 28px;
}
.everest-config-total__label {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--everest-text-muted);
}
.everest-config-total__amount {
	font-size: clamp(32px, 4vw, 48px);
	font-weight: 200;
	letter-spacing: 0.04em;
	font-variant-numeric: tabular-nums;
	color: var(--everest-text);
}

.everest-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	padding: 22px 32px;
	background: transparent;
	color: var(--everest-text);
	border: 1px solid var(--everest-text);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease;
	text-decoration: none;
	font-family: var(--everest-font);
}
.everest-btn-primary:hover {
	background: var(--everest-text);
	color: var(--everest-bg);

}
.everest-btn-primary:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
.everest-btn-primary svg { width: 14px; height: 14px; }
.everest-btn-primary.loading {
	opacity: 0.7;
	pointer-events: none;
}

.everest-config-options {
	display: flex;
	flex-direction: column;
	gap: 28px;
}
.everest-opt-block {
	padding: 28px 0;
	border-bottom: 1px solid var(--everest-hairline);
}
.everest-opt-block:first-child { padding-top: 0; }
.everest-opt-block__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 20px;
	gap: 16px;
}
.everest-opt-block__num {
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--everest-text-muted);
}
.everest-opt-block__title {
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin: 0;
	color: var(--everest-text);
}

.everest-opt-radio-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.everest-opt-radio {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	border: 1px solid var(--everest-hairline);
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease;
	background: transparent;
	width: 100%;
	text-align: left;
	color: var(--everest-text);
	font-family: var(--everest-font);
}
.everest-opt-radio:hover { border-color: var(--everest-hairline-strong); }
.everest-opt-radio.selected {
	border-color: var(--everest-text);
	background: rgba(255,255,255,0.03);
}
.everest-opt-radio__label {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.everest-opt-radio__name {
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0.04em;
}
.everest-opt-radio__desc {
	font-size: 12px;
	color: var(--everest-text-muted);
	font-weight: 300;
}
.everest-opt-radio__price {
	font-size: 13px;
	font-weight: 400;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.everest-opt-select {
	width: 100%;
	background: transparent;
	color: var(--everest-text);
	border: 1px solid var(--everest-hairline);
	padding: 18px 22px;
	font-family: var(--everest-font);
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0.04em;
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='white' stroke-width='1.2'><path d='M1 1 L6 6 L11 1'/></svg>");
	background-repeat: no-repeat;
	background-position: right 22px center;
	padding-right: 56px;
	transition: border-color 0.2s ease;
}
.everest-opt-select:hover { border-color: var(--everest-hairline-strong); }
.everest-opt-select:focus {
	outline: none;
	border-color: var(--everest-text);
}
.everest-opt-select option {
	background: var(--everest-bg);
	color: var(--everest-text);
}

.everest-config-loading {
	text-align: center;
	padding: 80px 20px;
	color: var(--everest-text-muted);
	font-size: 12px;
	letter-spacing: 0.25em;
	text-transform: uppercase;
}
.everest-config-loading::after {
	content: '';
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-left: 12px;
	background: var(--everest-text-muted);
	animation: everest-pulse 1.4s ease-in-out infinite;
}
@keyframes everest-pulse {
	0%, 100% { opacity: 0.3; }
	50% { opacity: 1; }
}

.everest-config-note {
	font-size: 12px;
	color: var(--everest-text-muted);
	line-height: 1.7;
	margin-top: 48px;
	max-width: 720px;
}

@media (max-width: 860px) {
	.everest-configure__grid { grid-template-columns: 1fr; }
	.everest-config-options { grid-column: 1; grid-row: 1; }
	.everest-config-preview { grid-column: 1; grid-row: 2; position: static; }
}

/* ============================================================
   CART DRAWER
   ============================================================ */
.everest-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.7);
	z-index: 99998;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s ease;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
.everest-overlay.open {
	opacity: 1;
	pointer-events: auto;
}

.everest-cart-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(440px, 100vw);
	background: var(--everest-bg);
	color: var(--everest-text);
	border-left: 1px solid var(--everest-hairline);
	z-index: 99999;
	transform: translateX(100%);
	transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
	display: flex;
	flex-direction: column;
	font-family: var(--everest-font);
}
.everest-cart-drawer.open { transform: translateX(0); }

.everest-cart-head {
	padding: 32px 32px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid var(--everest-hairline);
}
.everest-cart-title {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	margin: 0;
	padding-left: 0.32em;
	color: var(--everest-text);
}
.everest-cart-close {
	background: none;
	border: none;
	color: var(--everest-text);
	cursor: pointer;
	padding: 8px;
	font-size: 24px;
	line-height: 1;
	font-weight: 200;
	transition: opacity 0.2s ease;
}
.everest-cart-close:hover { opacity: 0.6; }

.everest-cart-body {
	flex: 1;
	overflow-y: auto;
	padding: 32px;
}
.everest-cart-empty {
	text-align: center;
	padding: 60px 0;
	color: var(--everest-text-muted);
	font-size: 13px;
	letter-spacing: 0.08em;
}
.everest-cart-item {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--everest-hairline);
	margin-bottom: 24px;
}
.everest-cart-item:last-child {
	border-bottom: none;
	margin-bottom: 0;
}
.everest-cart-item__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
}
.everest-cart-item__name {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin: 0;
	color: var(--everest-text);
}
.everest-cart-item__price {
	font-size: 14px;
	font-weight: 400;
	font-variant-numeric: tabular-nums;
}
.everest-cart-item__options {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.everest-cart-item__options li {
	font-size: 12px;
	color: var(--everest-text-muted);
	font-weight: 300;
	display: flex;
	justify-content: space-between;
	gap: 12px;
}
.everest-cart-item__options li span:last-child {
	color: var(--everest-text);
	font-variant-numeric: tabular-nums;
	text-align: right;
}
.everest-cart-item__foot {
	display: flex;
	justify-content: flex-end;
	align-items: center;
}
.everest-cart-item__remove {
	background: none;
	border: none;
	color: var(--everest-text-muted);
	font-size: 10px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	cursor: pointer;
	padding: 4px 0;
	transition: color 0.2s ease;
	font-family: var(--everest-font);
}
.everest-cart-item__remove:hover { color: var(--everest-text); }

.everest-cart-foot {
	padding: 24px 32px 32px;
	border-top: 1px solid var(--everest-hairline-strong);
	display: flex;
	flex-direction: column;
	gap: 24px;
	background: var(--everest-bg);
}
.everest-cart-totals {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.everest-cart-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
}
.everest-cart-row .lbl {
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--everest-text-muted);
	font-weight: 400;
}
.everest-cart-row .val {
	font-size: 14px;
	font-weight: 400;
	font-variant-numeric: tabular-nums;
	color: var(--everest-text);
}
.everest-cart-row.total .lbl {
	color: var(--everest-text);
	font-weight: 500;
}
.everest-cart-row.total .val {
	font-size: clamp(22px, 2.8vw, 28px);
	font-weight: 200;
	letter-spacing: 0.02em;
}

body.everest-no-scroll {
	overflow: hidden;
}

/* ============================================================
   WOOCOMMERCE PAGE OVERRIDES (cart, checkout, my-account)
   Apply only when body matches WC pages.
   ============================================================ */
.woocommerce, .woocommerce-page {
	font-family: var(--everest-font);
}
.woocommerce table.shop_table,
.woocommerce-cart table.cart,
.woocommerce-checkout table.shop_table {
	border: 1px solid var(--everest-hairline);
}
.woocommerce a.button,
.woocommerce-page a.button,
.woocommerce button.button,
.woocommerce-page button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	background: var(--everest-text) !important;
	color: var(--everest-bg) !important;
	border-radius: 0 !important;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-weight: 500;
	font-size: 12px;
	padding: 16px 28px;
	font-family: var(--everest-font);
}
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce #respond input#submit.alt {
	background: var(--everest-text) !important;
	color: var(--everest-bg) !important;
}
.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
	border-top-color: var(--everest-text);
}

/* ============================================================
   SHIPPING BADGE (v1.6.5+)
   Wyróżniona informacja „Free worldwide Shipping” — obok lead time.
   Use !important na kluczowych properties żeby wygrać z Bricks Builder reset.
   ============================================================ */

.everest-shipping-badge {
	display: inline-flex !important;
	align-items: center;
	gap: 10px;
	margin: 16px 0 0 !important;
	padding: 10px 18px !important;
	background: linear-gradient(135deg, rgba(202, 175, 100, 0.15), rgba(202, 175, 100, 0.06)) !important;
	border: 1px solid rgba(202, 175, 100, 0.5) !important;
	border-radius: 999px !important;
	color: #caaf64 !important;
	font-size: 13px !important;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	line-height: 1.2;
	font-family: var(--everest-font, 'Montserrat', system-ui, sans-serif);
	box-sizing: border-box;
	width: auto;
	max-width: 100%;
}
.everest-shipping-badge svg {
	width: 18px !important;
	height: 18px !important;
	flex-shrink: 0;
	display: inline-block !important;
}
.everest-shipping-badge strong {
	font-weight: 600 !important;
	color: #caaf64 !important;
	display: inline !important;
}

@media (max-width: 640px) {
	.everest-shipping-badge {
		font-size: 12px !important;
		padding: 8px 14px !important;
	}
}

/* ============================================================
   PRODUCT IMAGE GALLERY (v1.6+)
   Auto-fade carousel z ręcznym prev/next + dots.
   Renderowany przez JS w .everest-config-image.
   ============================================================ */

.everest-gallery {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.everest-gallery-stage {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	background: #000;
	overflow: hidden;
}

.everest-gallery-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.8s ease-in-out;
	pointer-events: none;
}
.everest-gallery-slide.active {
	opacity: 1;
	pointer-events: auto;
}

/* Prev / Next buttons */
.everest-gallery-prev,
.everest-gallery-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255,255,255,0.4);
	background: rgba(0,0,0,0.4);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.3s ease, background 0.2s ease;
	z-index: 2;
	padding: 0;
}
.everest-gallery:hover .everest-gallery-prev,
.everest-gallery:hover .everest-gallery-next {
	opacity: 1;
}
.everest-gallery-prev { left: 16px; }
.everest-gallery-next { right: 16px; }
.everest-gallery-prev:hover,
.everest-gallery-next:hover {
	background: rgba(0,0,0,0.7);
	border-color: rgba(255,255,255,0.8);
}

/* Dots indicator */
.everest-gallery-dots {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 2;
}
.everest-gallery-dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 1px solid rgba(255,255,255,0.7);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}
.everest-gallery-dot.active {
	background: #fff;
	transform: scale(1.2);
}
.everest-gallery-dot:hover {
	background: rgba(255,255,255,0.6);
}

/* Touch-friendly on mobile: controls always visible */
@media (max-width: 768px) {
	.everest-gallery-prev,
	.everest-gallery-next {
		opacity: 1;
		width: 36px;
		height: 36px;
		font-size: 20px;
	}
	.everest-gallery-prev { left: 8px; }
	.everest-gallery-next { right: 8px; }
}

