/* Extrò header: cart badge, cart drawer and search panel (includes/header.php). */
.ex-icona-carrello a, a.ex-icona-carrello { position: relative; display: inline-flex !important; }
/* Elementor's SVG widget rewrites fill="none" to currentColor: keep the icons outlined. */
.elementor-location-header svg[stroke-width], .elementor-location-header svg[stroke-width] * { fill: none !important; }
.ex-badge {
	position: absolute; top: -6px; right: -9px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
	background: #9D8528; color: #fff; font: 500 10px/17px "Inter", sans-serif; text-align: center; pointer-events: none;
}
.ex-badge.is-empty { display: none; }
body.ex-lock { overflow: hidden; }
.ex-overlay { position: fixed; inset: 0; background: rgba(20, 20, 20, .45); z-index: 9998; }
.ex-overlay[hidden] { display: none; }

.ex-drawer {
	position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); z-index: 9999; background: #fff;
	transform: translateX(100%); transition: transform .35s ease; display: flex; flex-direction: column;
	font-family: "Inter", sans-serif; color: #141414; box-shadow: -20px 0 50px rgba(20, 20, 20, .12);
}
.ex-drawer.is-open { transform: none; }
.ex-drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 1.4rem 1.5rem; border-bottom: 1px solid #E4DDD3; }
.ex-drawer__title { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.7rem; font-weight: 500; }
.ex-drawer__close, .ex-search__close { all: unset; cursor: pointer; font-size: 1.9rem; line-height: 1; padding: 0 .25rem; color: #141414; }
.ex-drawer__body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.ex-drawer__ship { margin: 1.1rem 1.5rem .5rem; font-size: .85rem; color: #595959; }
.ex-drawer__ship strong { color: #141414; font-weight: 500; }
.ex-drawer__bar { display: block; height: 3px; margin: 0 1.5rem .6rem; background: #F2EEE9; }
.ex-drawer__bar span { display: block; height: 100%; background: #9D8528; }
.ex-drawer__items { list-style: none; margin: 0; padding: .5rem 1.5rem; overflow-y: auto; flex: 1; }
.ex-drawer__item { display: grid; grid-template-columns: 72px 1fr auto; gap: .9rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid #F2EEE9; }
.ex-drawer__thumb img { width: 72px; height: 72px; object-fit: cover; background: #F6F4F2; display: block; }
.ex-drawer__info { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.ex-drawer__name { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.25rem; color: #141414; text-decoration: none; }
.ex-drawer__note, .ex-drawer__qty { font-size: .8rem; color: #595959; }
.ex-drawer__remove { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #595959; text-decoration: underline; }
.ex-drawer__foot { padding: 1.2rem 1.5rem 1.5rem; border-top: 1px solid #E4DDD3; display: flex; flex-direction: column; gap: .7rem; }
.ex-drawer__total { display: flex; justify-content: space-between; margin: 0; font-size: 1rem; }
.ex-drawer__hint { margin: 0; font-size: .75rem; color: #595959; }
.ex-drawer__btn {
	display: block; text-align: center; background: #141414; color: #fff !important; text-decoration: none; padding: 1.05rem;
	font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; transition: background .3s;
}
.ex-drawer__btn:hover { background: #9D8528; }
.ex-drawer__link { text-align: center; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #141414; }
.ex-drawer__empty { padding: 2.5rem 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.ex-drawer__empty p { margin: 0; color: #595959; }

.ex-search {
	position: fixed; top: 0; left: 0; right: 0; z-index: 9999; background: #fff; padding: 1.5rem 2rem;
	transform: translateY(-100%); transition: transform .3s ease; box-shadow: 0 20px 40px rgba(20, 20, 20, .1);
}
.ex-search.is-open { transform: none; }
.ex-search__form { max-width: 900px; margin: 0 auto; display: flex; gap: .75rem; align-items: center; font-family: "Inter", sans-serif; }
.ex-search__form input[type=search] { flex: 1; border: 0; border-bottom: 1px solid #141414; border-radius: 0; padding: .8rem 0; font-size: 1.3rem; font-family: "Cormorant Garamond", Georgia, serif; outline: none; }
.ex-search__form button[type=submit] { background: #141414; color: #fff; border: 0; border-radius: 0; padding: .9rem 1.4rem; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
body.admin-bar .ex-drawer, body.admin-bar .ex-search { top: 32px; }
@media (max-width: 782px) { body.admin-bar .ex-drawer, body.admin-bar .ex-search { top: 46px; } }
@media (max-width: 767px) { .ex-search { padding: 1rem 1.25rem; } .ex-search__form input[type=search] { font-size: 1.1rem; } }

/* The theme styles every <button>: keep the close buttons bare. */
.ex-drawer .ex-drawer__close, .ex-search .ex-search__close { border: 0 !important; background: none !important; color: #141414 !important; box-shadow: none !important; padding: 0 .25rem !important; }

/* Closed panels fully hidden: the admin-bar offset let the search panel peek in when scrolled. */
.ex-search:not(.is-open), .ex-drawer:not(.is-open) { visibility: hidden; transition: transform .3s ease, visibility 0s linear .35s; }
.ex-search.is-open, .ex-drawer.is-open { visibility: visible; transition: transform .3s ease, visibility 0s; }
