/* Header global ABCSP, mantido pelo tema filho.
   ============================================================
   ABCSP – CABEÇALHO GLOBAL
   ============================================================ */

.abcsp-header,
.abcsp-header * {
    box-sizing: border-box;
}

.abcsp-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    border-bottom: 1px solid #e8ebef;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 5px 22px rgba(15, 23, 42, 0.07);
    color: #111827;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.abcsp-header-spacer {
    display: none;
}

.admin-bar .abcsp-header {
    top: 32px;
}

.abcsp-header__inner {
    display: grid;
    grid-template-columns: minmax(138px, 176px) minmax(280px, 1fr) auto;
    grid-template-areas: "logo search actions";
    align-items: center;
    gap: clamp(18px, 3vw, 42px);
    width: min(calc(100% - 32px), 1240px);
    min-height: 76px;
    margin: 0 auto;
    padding: 10px 0;
}

.abcsp-header__logo {
    grid-area: logo;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    height: 56px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}

.abcsp-header__logo img {
    display: block;
    width: 160px;
    max-width: none;
    height: auto;
    aspect-ratio: 1774 / 887;
    object-fit: contain;
}

.abcsp-header__searchbar {
    grid-area: search;
    min-width: 0;
}

.abcsp-header__search-form {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 0 7px 0 18px;
    border: 1px solid #d8dde5;
    border-radius: 999px;
    background: #f7f8fa;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.abcsp-header__search-form:hover {
    border-color: #b8c0cc;
    background: #fff;
}

.abcsp-header .abcsp-header__search-form:focus,
.abcsp-header .abcsp-header__search-form:focus-visible,
.abcsp-header .abcsp-header__search-form:focus-within {
	border-color: #b8c0cc;
	outline: 0 !important;
    background: #fff;
	box-shadow: none !important;
}

.abcsp-header__search-input {
    flex: 1;
    min-width: 0;
    height: 46px;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    color: #111827;
    font-size: 15px;
    line-height: 1.3;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    appearance: none;
}

.abcsp-header .abcsp-header__search-input:focus,
.abcsp-header .abcsp-header__search-input:focus-visible {
	border: 0 !important;
	outline: 0 !important;
	outline-offset: 0 !important;
    background: transparent;
	box-shadow: none !important;
}

.abcsp-header__search-input::placeholder {
    color: #747d8a;
    opacity: 1;
}

.abcsp-header__actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.abcsp-header__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 10px;
    border-radius: 10px;
    color: #1f2937;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.15;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 160ms ease, color 160ms ease;
}

.abcsp-header__action:hover {
    background: #f3f4f6;
    color: #e91646;
}

.abcsp-header__action-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.abcsp-header__action svg {
    display: block;
    flex: 0 0 auto;
}

.abcsp-header__whatsapp {
    flex-direction: column;
    gap: 2px;
    min-width: 78px;
    padding: 4px 8px;
}

.abcsp-header__whatsapp-icon {
    color: #16a34a;
}

.abcsp-header__whatsapp-number {
    color: #6b7280;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
}

.abcsp-header__mobile-menu {
    position: relative;
    display: none;
}

.abcsp-header__menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #1f2937;
    cursor: pointer;
}

.abcsp-header__menu-toggle:hover,
.abcsp-header__menu-toggle[aria-expanded="true"] {
    background: #f3f4f6;
    color: #e91646;
}

.abcsp-header__menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 30;
    width: 210px;
    padding: 7px;
    border: 1px solid #e1e5eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
}

.abcsp-header__menu-panel[hidden] {
    display: none !important;
}

.abcsp-header__menu-panel a {
    display: block;
    padding: 12px 13px;
    border-radius: 8px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.25;
    text-decoration: none;
}

.abcsp-header__menu-panel a:hover,
.abcsp-header__menu-panel a:focus-visible {
    background: #f3f4f6;
    color: #e91646;
    outline: 0;
}

.abcsp-header__menu-panel .abcsp-header__menu-whatsapp {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    padding-top: 13px;
    border-top: 1px solid #edf0f3;
    color: #1f2937;
    font-weight: 400;
}

.abcsp-header__menu-whatsapp span {
    color: #6b7280;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
}

.abcsp-header__cart-icon-wrap {
    position: relative;
    display: inline-flex;
}

.abcsp-header__cart-popover {
    position: relative;
}

.abcsp-header__cart {
    margin: 0;
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

.abcsp-header__cart[aria-expanded="true"] {
    background: #f3f4f6;
    color: #e91646;
}

.abcsp-header__cart-count {
    position: absolute;
    top: -9px;
    right: -10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #e91646;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.abcsp-header__cart-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 40;
    width: min(380px, calc(100vw - 24px));
    max-height: min(560px, 75vh);
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #e1e5eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    color: #1f2937;
}

.abcsp-header__cart-panel[hidden] {
    display: none !important;
}

.abcsp-header__cart-backdrop {
    display: none;
}

.abcsp-header__cart-backdrop[hidden] {
    display: none !important;
}

:root.abcsp-cart-spotlight,
:root.abcsp-cart-spotlight body {
	overflow: hidden;
}

:root.abcsp-cart-spotlight .abcsp-header {
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

:root.abcsp-cart-spotlight .abcsp-header__cart-backdrop {
	animation: abcsp-cart-backdrop-in 220ms ease-out both;
	background: rgba(10, 16, 24, 0.52);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	display: block;
	inset: 0;
	position: fixed;
	touch-action: none;
	z-index: 38;
}

:root.abcsp-cart-spotlight .abcsp-header__cart-panel {
	animation: abcsp-cart-panel-in 280ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
	box-shadow: 0 26px 80px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(229, 250, 3, 0.55);
}

@keyframes abcsp-cart-backdrop-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes abcsp-cart-panel-in {
	from { opacity: 0; transform: translateY(-8px) scale(0.96); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.abcsp-header__cart-panel-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 10px 12px 10px 16px;
    border-bottom: 1px solid #edf0f3;
    background: #fff;
}

.abcsp-header__cart-panel-head strong {
    font-size: 15px;
    font-weight: 650;
}

.abcsp-header__cart-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 0;
    border: 2px solid #e91646;
    border-radius: 50%;
    background: #e91646;
    box-shadow: 0 3px 10px rgba(233, 22, 70, 0.2);
    color: #fff;
    font: 500 22px/1 Arial, sans-serif;
    cursor: pointer;
	transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.abcsp-header__cart-close:hover,
.abcsp-header__cart-close:focus-visible {
    border-color: #c9123b;
    background: #c9123b;
    box-shadow: 0 4px 13px rgba(201, 18, 59, 0.3);
    color: #fff;
    outline: 3px solid rgba(233, 22, 70, 0.2);
	outline-offset: 2px;
	transform: scale(1.04);
}

.abcsp-header__cart-items {
    max-height: 326px;
    margin: 0;
    padding: 4px 16px;
    overflow-y: auto;
    list-style: none;
}

.abcsp-header__cart-item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 11px;
    min-height: 80px;
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid #edf0f3;
}

.abcsp-header__cart-item:last-child {
    border-bottom: 0;
}

.abcsp-header__cart-thumb {
    display: block;
    width: 56px;
    height: 56px;
    overflow: hidden;
    border: 1px solid #edf0f3;
    border-radius: 9px;
    background: #f8fafc;
}

.abcsp-header__cart-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
}

.abcsp-header__cart-item-copy {
    min-width: 0;
}

.abcsp-header__cart-item-name {
    display: -webkit-box;
    overflow: hidden;
    color: #1f2937;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.abcsp-header__cart-item-name:hover,
.abcsp-header__cart-item-name:focus-visible {
    color: #e91646;
    outline: 0;
}

.abcsp-header__cart-item-vehicle {
    font-weight: 800;
}

.abcsp-header__cart-item-meta {
    display: block;
    margin-top: 5px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
}

.abcsp-header__cart-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: #8b95a3 !important;
    font: 400 22px/1 Arial, sans-serif;
    text-decoration: none !important;
}

.abcsp-header__cart-remove:hover,
.abcsp-header__cart-remove:focus-visible {
    background: #fff1f2;
    color: #e11d48 !important;
    outline: 0;
}

.abcsp-header__cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-top: 1px solid #edf0f3;
    font-size: 14px;
}

.abcsp-header__cart-total strong {
    font-size: 15px;
    font-weight: 650;
}

.abcsp-header__cart-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    padding: 0 16px 16px;
}

.abcsp-header__cart-continue,
.abcsp-header__cart-checkout {
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #d7dce3;
    border-radius: 9px;
    background: #fff;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.abcsp-header__cart-continue:hover,
.abcsp-header__cart-continue:focus-visible {
    border-color: #aeb6c2;
    background: #f8fafc;
    color: #111827;
    outline: 0;
}

.abcsp-header__cart-checkout {
    border-color: #e91646;
    background: #e91646;
    color: #fff;
}

.abcsp-header__cart-checkout:hover,
.abcsp-header__cart-checkout:focus-visible {
    border-color: #c9123b;
    background: #c9123b;
    color: #fff;
    outline: 0;
}

.abcsp-header__cart-empty {
    padding: 30px 20px 20px;
    text-align: center;
}

.abcsp-header__cart-empty p {
    margin: 0 0 18px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 400;
}

.abcsp-header__cart-empty .abcsp-header__cart-continue {
    width: 100%;
}

.abcsp-header__logo:focus-visible,
.abcsp-header__action:focus-visible,
.abcsp-header__menu-toggle:focus-visible {
    outline: 3px solid rgba(39, 140, 255, 0.4);
    outline-offset: 3px;
}

/* Headers antigos incorporados ao conteúdo das páginas mapeadas. */
.page-id-13 .elementor-element-f82474b,
.page-id-13 .elementor-element-a147e02,
.page-id-13 .elementor-element-fcce8e5,
.page-id-85 .elementor-element-e5df534,
.page-id-85 .elementor-element-f1c9357,
.page-id-85 .elementor-element-695e164,
.page-id-85 .elementor-element-6109c45,
.page-id-3425 .elementor-element-e3c2114,
.page-id-3425 .elementor-element-41c25c6,
.page-id-3425 .elementor-element-b4460de,
.page-id-3425 .elementor-element-7c215a8 {
    display: none !important;
}

@media (max-width: 900px) {
	.abcsp-header {
		position: fixed;
		right: 0;
		left: 0;
	}

	.abcsp-header-spacer {
		display: block;
		height: var(--abcsp-mobile-header-height, 124px);
	}

	:root.abcsp-cart-modal-open,
	:root.abcsp-cart-modal-open body {
		overflow: hidden;
	}

	:root.abcsp-cart-modal-open .abcsp-header {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

    .abcsp-header__inner {
        grid-template-columns: minmax(120px, 1fr) auto;
        grid-template-areas:
            "logo actions"
            "search search";
        gap: 8px 16px;
        width: min(calc(100% - 28px), 760px);
        min-height: 0;
        padding: 9px 0 11px;
    }

    .abcsp-header__logo {
        height: 50px;
    }

    .abcsp-header__logo img {
        width: 136px;
    }

    .abcsp-header__search-form {
        min-height: 46px;
    }

    .abcsp-header__search-input {
        height: 44px;
        font-size: 16px;
    }

    .abcsp-header__action {
        width: 44px;
        height: 44px;
        min-height: 44px;
        padding: 0;
    }

    .abcsp-header__whatsapp {
        min-width: 44px;
    }

    .abcsp-header__whatsapp-number {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .abcsp-header__orders,
    .abcsp-header__quick-order {
        display: none;
    }

    .abcsp-header__mobile-menu {
        display: block;
    }

    .abcsp-header__cart-popover {
        position: static;
    }

	.abcsp-header__cart-backdrop {
		position: fixed;
		inset: 0;
		z-index: 38;
		display: block;
		background: rgba(15, 23, 42, 0.38);
		-webkit-backdrop-filter: blur(4px);
		backdrop-filter: blur(4px);
		touch-action: none;
	}

    .abcsp-header__cart-panel {
        position: fixed;
        top: 50%;
        right: 12px;
        left: 12px;
        width: auto;
		max-height: calc(100vh - 32px);
		max-height: calc(100dvh - 32px);
		transform: translateY(-50%);
    }

    .admin-bar .abcsp-header__cart-panel {
		top: 50%;
		max-height: calc(100vh - 32px);
		max-height: calc(100dvh - 32px);
    }
}

@media (max-width: 480px) {
    .admin-bar .abcsp-header {
        top: 46px;
    }

    .abcsp-header__inner {
        width: calc(100% - 24px);
        gap: 7px 10px;
    }

    .abcsp-header__logo {
        height: 48px;
    }

    .abcsp-header__logo img {
        width: 124px;
    }

    .abcsp-header__actions {
        gap: 2px;
    }

    .abcsp-header__search-form {
        padding-left: 15px;
    }

    .abcsp-header__search-input::placeholder {
        font-size: 14px;
    }

    .abcsp-header__cart-item {
        grid-template-columns: 48px minmax(0, 1fr) 30px;
        gap: 9px;
    }

    .abcsp-header__cart-thumb {
        width: 48px;
        height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
	:root.abcsp-cart-spotlight .abcsp-header__cart-backdrop,
	:root.abcsp-cart-spotlight .abcsp-header__cart-panel {
		animation: none;
	}
    .abcsp-header__search-form,
    .abcsp-header__action,
    .abcsp-header__menu-toggle,
    .abcsp-header__cart-close {
        transition: none;
    }
}
