:root {
	--caro-black: #050505;
	--caro-charcoal: #373737;
	--caro-white: #ffffff;
	--caro-ink: #111111;
	--caro-muted: #6d6d6d;
	--caro-border: #e6e6e6;
	--caro-soft: #f7f7f7;
	--caro-accent: #e95b63;
	--caro-shell: 1200px;
	--caro-gutter: clamp(18px, 4vw, 42px);
}

/* Temporary migration guard: prevents the Elementor Theme Builder header/footer
   from visually duplicating this replacement while Elementor is still active. */
.caro-custom-chrome .elementor-location-header,
.caro-custom-chrome .elementor-location-footer {
	display: none !important;
}

.caro-site-header,
.caro-site-footer,
.caro-site-header *,
.caro-site-footer * {
	box-sizing: border-box;
}

.caro-site-header a,
.caro-site-footer a {
	text-decoration: none;
}

.caro-site-header svg,
.caro-site-footer svg {
	display: block;
}

/* ---------- HEADER ---------- */
.caro-site-header {
	position: relative;
	z-index: 999;
	background: var(--caro-white);
	color: var(--caro-ink);
	border-bottom: 0;
}

.caro-header-main {
	background: var(--caro-white);
}

.caro-header-inner {
	width: min(calc(100% - (var(--caro-gutter) * 2)), var(--caro-shell));
	min-height: 116px;
	margin-inline: auto;
	display: grid;
	grid-template-columns: 220px minmax(300px, 1fr) auto;
	align-items: center;
	gap: clamp(24px, 4vw, 64px);
	padding-block: 10px;
}

.caro-brand {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	width: max-content;
}

.caro-header-logo {
	display: block;
	width: 86px;
	height: 86px;
	object-fit: contain;
}

.caro-search {
	width: 100%;
	max-width: 560px;
	justify-self: center;
}

.caro-product-search {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 42px;
	border: 1px solid #e2e2e2;
	border-radius: 999px;
	background: #fff;
	overflow: hidden;
}

.caro-product-search:focus-within {
	border-color: #9b9b9b;
	box-shadow: 0 0 0 2px rgba(0,0,0,.06);
}

.caro-search-icon {
	width: 18px;
	height: 18px;
	margin-left: 14px;
	color: #222;
}

.caro-search-icon svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
}

.caro-product-search input[type="search"] {
	min-width: 0;
	flex: 1;
	border: 0 !important;
	box-shadow: none !important;
	outline: 0 !important;
	background: transparent !important;
	padding: 10px 12px;
	font-size: 13px;
	line-height: 1.4;
}

.caro-product-search button {
	align-self: stretch;
	border: 0;
	background: var(--caro-black);
	color: #fff;
	padding: 0 18px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

/* Make FiboSearch fit the custom header without Elementor. */
.caro-search--fibosearch .dgwt-wcas-search-wrapp {
	width: 100%;
	max-width: none;
	margin: 0;
}

.caro-search--fibosearch .dgwt-wcas-sf-wrapp,
.caro-search--fibosearch .dgwt-wcas-search-input {
	min-height: 42px;
}

.caro-header-tools {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 17px;
	white-space: nowrap;
}

.caro-tool-link,
.caro-cart-toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	min-height: 30px;
	border: 0;
	background: transparent;
	color: #050505;
	padding: 4px;
	cursor: pointer;
}

.caro-tool-link svg,
.caro-cart-toggle svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.caro-cart-summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.caro-cart-total {
	font-size: 13px;
	line-height: 1;
}

.caro-cart-icon-wrap {
	position: relative;
	display: inline-flex;
}

.caro-cart-count {
	position: absolute;
	top: -9px;
	right: -10px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50px;
	background: var(--caro-accent);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
}

.caro-language-switcher {
	font-size: 12px;
}

.caro-nav-bar {
	background: var(--caro-black);
	color: #fff;
}

.caro-nav-inner {
	width: min(calc(100% - (var(--caro-gutter) * 2)), var(--caro-shell));
	margin-inline: auto;
}

.caro-primary-nav {
	display: block;
}

.caro-primary-menu,
.caro-primary-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.caro-primary-menu {
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: 0;
}

.caro-primary-menu > .menu-item {
	position: relative;
	display: flex;
	align-items: stretch;
}

.caro-primary-menu a {
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: .01em;
	padding: 15px 11px;
	transition: background .18s ease, color .18s ease;
}

.caro-primary-menu > .menu-item > a {
	display: flex;
	align-items: center;
}

.caro-primary-menu a:hover,
.caro-primary-menu a:focus-visible,
.caro-primary-menu .current-menu-item > a,
.caro-primary-menu .current-menu-ancestor > a {
	background: rgba(255,255,255,.09);
	color: #fff;
}

.caro-submenu-toggle {
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	font: inherit;
}

.caro-primary-menu > .menu-item > .caro-submenu-toggle {
	margin-left: -10px;
	padding: 0 8px 0 3px;
	color: #fff;
}

.caro-primary-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 40;
	min-width: 250px;
	background: #fff;
	border: 1px solid #ececec;
	box-shadow: 0 12px 28px rgba(0,0,0,.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.caro-primary-menu .sub-menu .menu-item {
	position: relative;
	display: flex;
	align-items: stretch;
	border-bottom: 1px solid #f0f0f0;
}

.caro-primary-menu .sub-menu .menu-item:last-child {
	border-bottom: 0;
}

.caro-primary-menu .sub-menu a {
	flex: 1;
	color: #171717;
	font-size: 12px;
	padding: 12px 14px;
}

.caro-primary-menu .sub-menu .caro-submenu-toggle {
	width: 38px;
	color: #171717;
}

.caro-primary-menu .sub-menu .sub-menu {
	top: -1px;
	left: 100%;
}

.caro-primary-menu .menu-item:hover > .sub-menu,
.caro-primary-menu .menu-item:focus-within > .sub-menu,
.caro-primary-menu .menu-item.caro-submenu-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.caro-menu-toggle {
	display: none;
}

/* ---------- CART DRAWER ---------- */
.caro-mini-cart {
	position: fixed;
	inset: 0;
	z-index: 100001;
	pointer-events: none;
	visibility: hidden;
}

.caro-mini-cart[aria-hidden="false"] {
	pointer-events: auto;
	visibility: visible;
}

.caro-mini-cart-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.48);
	opacity: 0;
	transition: opacity .22s ease;
}

.caro-mini-cart-panel {
	position: absolute;
	top: 0;
	right: 0;
	width: min(420px, 92vw);
	height: 100%;
	display: flex;
	flex-direction: column;
	background: #fff;
	box-shadow: -12px 0 35px rgba(0,0,0,.16);
	transform: translateX(100%);
	transition: transform .24s ease;
	padding: 22px;
	overflow-y: auto;
}

.caro-mini-cart[aria-hidden="false"] .caro-mini-cart-backdrop { opacity: 1; }
.caro-mini-cart[aria-hidden="false"] .caro-mini-cart-panel { transform: translateX(0); }

.caro-mini-cart-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--caro-border);
}

.caro-mini-cart-head h2 {
	margin: 0;
	font-size: 23px;
	font-weight: 600;
}

.caro-mini-cart-close {
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.caro-mini-cart-close svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}

.caro-mini-cart-body {
	flex: 1;
	padding-block: 20px;
}

.caro-mini-cart .woocommerce-mini-cart {
	margin: 0;
	padding: 0;
	list-style: none;
}

.caro-view-cart {
	display: block;
	width: 100%;
	padding: 13px 18px;
	background: #050505;
	color: #fff !important;
	text-align: center;
	font-weight: 600;
}

body.caro-cart-open { overflow: hidden; }

/* ---------- FOOTER ---------- */
.caro-site-footer {
	background: #fff;
	color: #171717;
	border-top: 1px solid #ededed;
}

.caro-footer-main {
	padding: clamp(52px, 7vw, 82px) var(--caro-gutter) 46px;
}

.caro-footer-grid {
	width: min(100%, var(--caro-shell));
	margin-inline: auto;
	display: grid;
	grid-template-columns: 1.15fr .9fr .9fr 1.15fr;
	gap: clamp(32px, 4vw, 58px);
	align-items: start;
}

.caro-footer-col h2 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.25;
	text-transform: none;
	letter-spacing: 0;
}

.caro-footer-form-col h2 { text-transform: uppercase; }

.caro-footer-rule {
	display: block;
	width: 44px;
	height: 1px;
	margin: 13px 0 20px;
	background: #151515;
}

.caro-footer-brand-link {
	display: inline-block;
	margin-bottom: 18px;
}

.caro-footer-logo {
	display: block;
	width: min(190px, 100%);
	height: auto;
	object-fit: contain;
}

.caro-footer-contact-list,
.caro-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.caro-footer-contact-list {
	display: grid;
	gap: 9px;
	font-size: 13px;
	line-height: 1.65;
}

.caro-footer-contact-list a,
.caro-footer-links a {
	color: #161616;
}

.caro-footer-links {
	display: grid;
	gap: 12px;
}

.caro-footer-links a {
	font-size: 12px;
	font-weight: 500;
	line-height: 1.45;
	letter-spacing: .02em;
}

.caro-footer-contact-list a:hover,
.caro-footer-links a:hover,
.caro-footer-contact-list a:focus-visible,
.caro-footer-links a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.caro-socials {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
}

.caro-socials a {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #111;
	color: #fff;
}

.caro-socials svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
	stroke: currentColor;
	stroke-width: 1.5;
}

.caro-socials svg rect,
.caro-socials svg circle:not(.caro-svg-fill) {
	fill: none;
}

.caro-review-badge,
.caro-review-fallback {
	margin-top: 22px;
}

.caro-review-fallback {
	display: grid;
	gap: 3px;
	width: min(100%, 260px);
	padding: 13px 15px;
	background: #373737;
	color: #fff !important;
	font-size: 12px;
	line-height: 1.35;
}

.caro-footer-form {
	display: grid;
	gap: 10px;
}

.caro-footer-form input[type="text"],
.caro-footer-form input[type="email"],
.caro-footer-form input[type="file"],
.caro-footer-form textarea {
	width: 100%;
	margin: 0;
	border: 1px solid #d8d8d8;
	border-radius: 0;
	background: #fff;
	color: #151515;
	font: inherit;
	font-size: 12px;
	padding: 10px 11px;
	box-shadow: none;
}

.caro-footer-form textarea {
	min-height: 72px;
	resize: vertical;
}

.caro-footer-form input:focus,
.caro-footer-form textarea:focus {
	outline: 1px solid #111;
	outline-offset: 1px;
	border-color: #111;
}

.caro-file-label small {
	display: block;
	margin-top: 4px;
	font-size: 10px;
	color: var(--caro-muted);
}

.caro-footer-form button[type="submit"] {
	width: 100%;
	border: 1px solid #050505;
	border-radius: 0;
	background: #050505;
	color: #fff;
	padding: 10px 14px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: background .18s ease, color .18s ease;
}

.caro-footer-form button[type="submit"]:hover,
.caro-footer-form button[type="submit"]:focus-visible {
	background: #fff;
	color: #050505;
}

.caro-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.caro-form-status {
	margin: 0 0 12px;
	padding: 9px 10px;
	font-size: 12px;
	line-height: 1.45;
}

.caro-form-status--success { background: #edf7ef; border: 1px solid #bcd8c2; }
.caro-form-status--error { background: #fff0f0; border: 1px solid #e0b5b5; }

.caro-footer-bottom {
	background: #050505;
	color: #fff;
	text-align: center;
	padding: 16px var(--caro-gutter);
}

.caro-footer-bottom p {
	margin: 0;
	font-size: 12px;
	line-height: 1.45;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
	.caro-header-inner {
		grid-template-columns: 1fr;
		gap: 11px;
		min-height: auto;
		padding-block: 15px 12px;
	}

	.caro-brand,
	.caro-search,
	.caro-header-tools {
		justify-self: center;
	}

	.caro-header-logo {
		width: 72px;
		height: 72px;
	}

	.caro-search { max-width: 520px; }

	.caro-header-tools {
		width: 100%;
		justify-content: center;
		gap: 28px;
	}

	.caro-cart-total { display: none; }
	.caro-language-switcher { display: none; }

	.caro-nav-inner {
		min-height: 48px;
		display: flex;
		align-items: center;
		justify-content: center;
		position: relative;
	}

	.caro-menu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 34px;
		height: 34px;
		margin: 7px 0;
		border: 0;
		border-radius: 2px;
		background: #fff;
		color: #050505;
		cursor: pointer;
	}

	.caro-menu-toggle svg {
		width: 22px;
		height: 22px;
		fill: none;
		stroke: currentColor;
		stroke-width: 1.8;
		stroke-linecap: round;
	}

	.caro-primary-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		z-index: 1000;
		background: #050505;
		box-shadow: 0 12px 25px rgba(0,0,0,.18);
	}

	.caro-primary-nav.caro-menu-open { display: block; }

	.caro-primary-menu {
		width: 100%;
		display: block;
		padding: 6px 0 12px;
	}

	.caro-primary-menu > .menu-item,
	.caro-primary-menu .sub-menu .menu-item {
		display: grid;
		grid-template-columns: 1fr 44px;
		align-items: stretch;
		border-bottom: 1px solid rgba(255,255,255,.1);
	}

	.caro-primary-menu a,
	.caro-primary-menu .sub-menu a {
		color: #fff;
		font-size: 13px;
		padding: 13px 18px;
		background: transparent;
	}

	.caro-primary-menu > .menu-item > .caro-submenu-toggle,
	.caro-primary-menu .sub-menu .caro-submenu-toggle {
		margin: 0;
		width: 44px;
		color: #fff;
		background: rgba(255,255,255,.04);
	}

	.caro-primary-menu .sub-menu,
	.caro-primary-menu .sub-menu .sub-menu {
		position: static;
		grid-column: 1 / -1;
		min-width: 0;
		display: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		border: 0;
		box-shadow: none;
		background: #151515;
	}

	.caro-primary-menu .sub-menu .sub-menu { background: #232323; }
	.caro-primary-menu .menu-item:hover > .sub-menu,
	.caro-primary-menu .menu-item:focus-within > .sub-menu { display: none; }
	.caro-primary-menu .menu-item.caro-submenu-open > .sub-menu { display: block; }

	.caro-footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	:root { --caro-gutter: 18px; }

	.caro-header-inner { padding-top: 13px; }
	.caro-header-logo { width: 66px; height: 66px; }
	.caro-search { width: 100%; max-width: none; }
	.caro-header-tools { gap: 30px; }
	.caro-tool-link svg, .caro-cart-toggle svg { width: 20px; height: 20px; }

	.caro-footer-main { padding-top: 46px; }
	.caro-footer-grid { grid-template-columns: 1fr; gap: 42px; }
	.caro-footer-logo { width: 170px; }
}

@media (prefers-reduced-motion: reduce) {
	.caro-site-header *,
	.caro-site-footer *,
	.caro-mini-cart * {
		scroll-behavior: auto !important;
		transition-duration: .001ms !important;
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
	}
}
