/* Header cart: round button with badge + glass dropdown (mirrors the header nav panel). */
:not(#_) .aob-cart,
:not(#_) .aob-cart *,
:not(#_) .aob-cart *::before,
:not(#_) .aob-cart *::after { box-sizing: border-box; }

:not(#_) .aob-cart { position: relative; flex: none; font-family: var(--aob-font-body); }
:not(#_) .aob-cart__toggle {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--aob-glass-border);
	border-radius: 50%;
	background: var(--aob-glass-bg);
	-webkit-backdrop-filter: blur(5.85px);
	backdrop-filter: blur(5.85px);
	box-shadow: var(--aob-shadow-glass);
	color: var(--aob-white);
	cursor: pointer;
	transition: border-color 0.25s, background-color 0.25s, transform 0.25s;
}
:not(#_) .aob-cart__toggle:hover,
:not(#_) .aob-cart__toggle[aria-expanded="true"] { border-color: var(--aob-gold-border); background: var(--aob-gold-faint); }
:not(#_) .aob-cart__toggle:focus-visible { outline: 2px solid var(--aob-white); outline-offset: 2px; }
:not(#_) .aob-cart__count {
	position: absolute;
	top: -5px;
	right: -5px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 10px;
	background: var(--aob-gradient-button);
	color: var(--aob-white);
	font-size: 11px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
}
:not(#_) .aob-cart__count[hidden] { display: none; }
:not(#_) .aob-cart__count.is-bump { animation: aob-cart-bump 0.4s ease; }
@keyframes aob-cart-bump { 40% { transform: scale(1.35); } }

:not(#_) .aob-cart__panel {
	position: absolute;
	top: calc(100% + 16px);
	right: 0;
	z-index: 5;
	display: flex;
	flex-direction: column;
	width: 400px;
	max-width: calc(100vw - 24px);
	max-height: min(76vh, 640px);
	padding: 20px;
	border: 1px solid var(--aob-glass-border);
	border-radius: 24px;
	background: rgba(17, 16, 14, 0.94);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), var(--aob-shadow-glass);
	color: var(--aob-light-2);
	animation: aob-cart-in 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}
:not(#_) .aob-cart__panel[hidden] { display: none; }
@keyframes aob-cart-in { from { opacity: 0; transform: translateY(-8px); } }

:not(#_) .aob-cart__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
:not(#_) .aob-cart__title { margin: 0; font-family: var(--aob-font-display); font-size: 28px; line-height: 1.1; color: var(--aob-white); }
:not(#_) .aob-cart__close { width: 36px; height: 36px; padding: 0; border: 1px solid var(--aob-glass-border); border-radius: 50%; background: transparent; color: var(--aob-light-2); font-size: 22px; line-height: 1; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
:not(#_) .aob-cart__close:hover { border-color: var(--aob-gold-border); color: var(--aob-white); }

:not(#_) .aob-cart__body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin-inline: -6px; padding-inline: 6px; scrollbar-width: thin; scrollbar-color: var(--aob-black-1) transparent; }
:not(#_) .aob-cart__list { margin: 0; padding: 0; list-style: none; }
:not(#_) .aob-cart__item { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; gap: 14px; padding: 14px 0; border-top: 1px solid var(--aob-glass-border); }
:not(#_) .aob-cart__item:first-child { border-top: 0; padding-top: 4px; }
:not(#_) .aob-cart__thumb { display: block; width: 68px; height: 68px; overflow: hidden; border-radius: 12px; background: var(--aob-light-1); }
:not(#_) .aob-cart__thumb img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
:not(#_) .aob-cart__info { min-width: 0; }
:not(#_) .aob-cart__name { display: block; color: var(--aob-white); font-size: 15px; font-weight: 500; line-height: 1.3; text-decoration: none; }
:not(#_) .aob-cart__name:hover { color: var(--aob-brand-2); }
:not(#_) .aob-cart__meta { margin: 2px 0 0; color: var(--aob-light-3); font-size: 13px; line-height: 1.3; }
:not(#_) .aob-cart__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }
:not(#_) .aob-cart__line { color: var(--aob-white); font-size: 15px; font-weight: 600; white-space: nowrap; }
:not(#_) .aob-cart__remove { padding: 0; border: 0; background: none; color: var(--aob-light-3); font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
:not(#_) .aob-cart__remove:hover { color: var(--aob-brand); }

:not(#_) .aob-cart__qty { display: inline-flex; align-items: center; margin-top: 8px; border: 1px solid var(--aob-glass-border); border-radius: 999px; }
:not(#_) .aob-cart__qty button { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--aob-white); font-size: 16px; line-height: 1; cursor: pointer; transition: background-color 0.2s; }
:not(#_) .aob-cart__qty button:hover:not([disabled]) { background: var(--aob-gold-faint); }
:not(#_) .aob-cart__qty button[disabled] { opacity: 0.35; cursor: not-allowed; }
:not(#_) .aob-cart__qty span { min-width: 26px; color: var(--aob-white); font-size: 14px; text-align: center; }

:not(#_) .aob-cart__foot { margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--aob-glass-border); }
:not(#_) .aob-cart__foot[hidden] { display: none; }
:not(#_) .aob-cart__sum { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; color: var(--aob-light-2); font-size: 15px; }
:not(#_) .aob-cart__sum strong { color: var(--aob-white); font-size: 22px; font-weight: 600; }
:not(#_) .aob-cart__note { margin: 2px 0 16px; color: var(--aob-light-3); font-size: 12px; }
:not(#_) .aob-cart__actions { display: grid; gap: 10px; }
:not(#_) .aob-header .aob-cart__actions .aob-btn { width: 100%; height: 52px; padding: 4px 4px 4px 20px; justify-content: space-between; font-size: 16px; }
:not(#_) .aob-header .aob-cart__actions .aob-btn--secondary { justify-content: center; padding-inline: 20px; }
:not(#_) .aob-header .aob-cart__actions .aob-btn__icon { width: 42px; height: 42px; }
:not(#_) .aob-cart__actions .aob-btn__icon img { width: 16px; height: 17px; }
:not(#_) .aob-cart__empty { padding: 20px 0 6px; text-align: center; }
:not(#_) .aob-cart__empty p { margin: 0 0 18px; color: var(--aob-light-3); font-size: 15px; }
:not(#_) .aob-header .aob-cart__empty .aob-btn { height: 48px; padding-inline: 22px; font-size: 15px; }
:not(#_) .aob-cart.is-busy .aob-cart__body { opacity: 0.55; pointer-events: none; transition: opacity 0.2s; }

/* Order in the bar: logo … phone | cart | burger. Phones have no phone button, tablets keep it. */
@media (max-width: 1023px) {
	:not(#_) .aob-header__cta { margin-left: auto; }
	:not(#_) .aob-header__cta + .aob-cart { margin-left: 0; }
}
@media (max-width: 767px) {
	:not(#_) .aob-header__cta + .aob-cart { margin-left: auto; }
	:not(#_) .aob-header__cta + .aob-cart ~ .aob-header__toggle { margin-left: 0; }
	/* the panel hangs from the whole bar, like the burger menu */
	:not(#_) .aob-cart { position: static; }
	:not(#_) .aob-cart__toggle { width: 44px; height: 44px; }
	:not(#_) .aob-cart__panel { top: 100%; left: 0; right: 0; width: auto; max-width: none; margin-top: 8px; max-height: calc(100svh - 110px); }
}

@media (prefers-reduced-motion: reduce) {
	:not(#_) .aob-cart__panel, :not(#_) .aob-cart__count.is-bump { animation: none; }
}

/* The header shrinks its buttons after scrolling (scale 0.88); the dropdown's buttons must keep their full width. */
:not(#_) .aob-header.is-scrolled .aob-cart .aob-btn { transform: none; }
