/* Anonymous Tracks - card prodotto (shop, archivi, griglia Home) - palette Home (New Design) */
:root {
	--atc-ink: #050506;
	--atc-panel: #0d0d10;
	--atc-card: #141418;
	--atc-line: rgba(255, 255, 255, .09);
	--atc-text: #f3f1ec;
	--atc-mute: #8e8c88;
	--atc-red: #e3121b;
}

/* Pagine shop/archivio: sfondo scuro come la Home */
body.woocommerce-shop,
body.post-type-archive-product,
body.tax-product_cat,
body.tax-product_tag,
body[class*="tax-pa_"] {
	background: var(--atc-ink);
	color: var(--atc-text);
}
body.woocommerce-shop .page-header .entry-title,
body.post-type-archive-product .page-header .entry-title,
body.tax-product_cat .page-header .entry-title,
body.tax-product_tag .page-header .entry-title,
body.woocommerce-shop .woocommerce-products-header__title,
body.tax-product_cat .woocommerce-products-header__title { color: var(--atc-text); font-family: "Unbounded", "Manrope", sans-serif; }
body.woocommerce-shop .woocommerce-result-count,
body.tax-product_cat .woocommerce-result-count,
body.woocommerce-shop .woocommerce-breadcrumb,
body.tax-product_cat .woocommerce-breadcrumb { color: var(--atc-mute); }
body.woocommerce-shop .woocommerce-ordering select,
body.tax-product_cat .woocommerce-ordering select,
body.tax-product_tag .woocommerce-ordering select { background: var(--atc-panel); color: var(--atc-text); border: 1px solid var(--atc-line); border-radius: 999px; padding: 8px 14px; }

/* Card */
.woocommerce ul.products li.product {
	display: flex;
	flex-direction: column;
	background: var(--atc-card);
	border: 1px solid var(--atc-line);
	border-radius: 16px;
	padding: 12px 12px 14px;
	color: var(--atc-text);
	transition: border-color .25s, transform .25s;
}
.woocommerce ul.products li.product:hover { border-color: rgba(243, 241, 236, .22); }
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: block; flex: 1 1 auto; color: inherit; text-decoration: none; }
.woocommerce ul.products li.product a img { border-radius: 10px; margin-bottom: 12px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	color: var(--atc-text);
	font-family: "Manrope", system-ui, sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	padding: 0;
	margin: 0 0 6px;
}
.woocommerce ul.products li.product .price { color: var(--atc-text); font-weight: 700; font-size: 15px; margin: 8px 0 0; }
.woocommerce ul.products li.product .price del { color: var(--atc-mute); opacity: 1; }
.woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--atc-red); }

/* Barra metadati: genere + icone */
.atpc-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; }
.atpc-genre {
	color: var(--atc-mute);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}
.atpc-icons { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.atpc-badge {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 24px;
	padding: 0 7px;
	border-radius: 7px;
	border: 1px solid var(--atc-line);
	background: rgba(255, 255, 255, .04);
	color: var(--atc-text);
	cursor: help;
	outline: none;
}
.atpc-badge svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.atpc-badge b { font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.atpc-vocal { padding: 0; width: 24px; justify-content: center; color: var(--atc-red); border-color: rgba(227, 18, 27, .35); background: rgba(227, 18, 27, .1); }
.atpc-badge:focus-visible { box-shadow: 0 0 0 2px var(--atc-text); }
/* Tooltip */
.atpc-badge[data-at-tip]::after {
	content: attr(data-at-tip);
	position: absolute;
	bottom: calc(100% + 8px);
	right: 0;
	z-index: 20;
	white-space: nowrap;
	padding: 6px 10px;
	border-radius: 8px;
	background: var(--atc-text);
	color: var(--atc-ink);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	pointer-events: none;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity .18s, transform .18s;
}
.atpc-badge:hover::after,
.atpc-badge:focus-visible::after { opacity: 1; transform: none; }

/* Pulsanti */
.atpc-actions { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.woocommerce ul.products li.product .atpc-actions .button {
	flex: 1 1 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 10px 12px;
	border-radius: 999px;
	font-family: "Manrope", system-ui, sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	white-space: nowrap;
	transition: background-color .25s, color .25s, border-color .25s;
}
.woocommerce ul.products li.product .atpc-actions .add_to_cart_button,
.woocommerce ul.products li.product .atpc-actions .product_type_simple,
.woocommerce ul.products li.product .atpc-actions .product_type_variable {
	background: var(--atc-text);
	color: var(--atc-ink);
	border: 1px solid var(--atc-text);
}
.woocommerce ul.products li.product .atpc-actions .add_to_cart_button:hover,
.woocommerce ul.products li.product .atpc-actions .product_type_simple:hover { background: var(--atc-red); border-color: var(--atc-red); color: #fff; }
.woocommerce ul.products li.product .atpc-actions .atpc-more {
	background: transparent;
	color: var(--atc-text);
	border: 1px solid rgba(243, 241, 236, .22);
}
.woocommerce ul.products li.product .atpc-actions .atpc-more:hover { border-color: var(--atc-text); background: rgba(255, 255, 255, .04); color: var(--atc-text); }
.atpc-more svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.woocommerce ul.products li.product .atpc-actions .added_to_cart { display: none; }
.woocommerce ul.products li.product .atpc-actions .button.loading { opacity: .7; }

@media (max-width: 480px) {
	.atpc-actions { flex-direction: column; }
	.woocommerce ul.products li.product .atpc-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.atpc-badge::after, .woocommerce ul.products li.product, .atpc-actions .button { transition: none; }
}
/* Griglia Home (Elementor + Shared Styles): pulsanti e allineamento coerenti con le card */
body .woocommerce ul.products li.product .atpc-actions { margin-top: auto; padding-top: 12px; width: 100%; }
body.elementor-page .at-grid li.product .atpc-actions .button {
	flex: 1 1 0 !important;
	justify-content: center !important;
	align-self: auto !important;
	margin: 0 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	font-size: 13px !important;
	padding: 10px 12px !important;
}
body.elementor-page .at-grid li.product .atpc-actions .add_to_cart_button,
body.elementor-page .at-grid li.product .atpc-actions .product_type_simple {
	background: #f3f1ec !important;
	color: #050506 !important;
	border-color: #f3f1ec !important;
}
body.elementor-page .at-grid li.product .atpc-actions .add_to_cart_button:hover,
body.elementor-page .at-grid li.product .atpc-actions .product_type_simple:hover { background: #e3121b !important; border-color: #e3121b !important; color: #fff !important; }
body.elementor-page .at-grid li.product .atpc-actions .atpc-more { background: transparent !important; color: #f3f1ec !important; border: 1px solid rgba(243, 241, 236, .22) !important; }
body.elementor-page .at-grid li.product .atpc-actions .atpc-more:hover { border-color: #f3f1ec !important; background: rgba(255, 255, 255, .04) !important; color: #f3f1ec !important; }

/* Badge "Sale!" nei colori del sito */
.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale {
	background: #e3121b;
	color: #fff;
	min-width: 0;
	min-height: 0;
	padding: 6px 10px;
	border-radius: 999px;
	line-height: 1;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}
/* Prezzo scontato */
body .woocommerce ul.products li.product .price ins,
body .woocommerce ul.products li.product .price ins .amount,
body.elementor-page .at-grid li.product .price ins,
body.elementor-page .at-grid li.product .price ins .amount { color: #e3121b !important; text-decoration: none; background: transparent; }
body .woocommerce ul.products li.product .price del,
body .woocommerce ul.products li.product .price del .amount { color: #8e8c88 !important; }

/* Genere sotto il prezzo: spaziatura */
.woocommerce ul.products li.product .price + .atpc-meta,
.woocommerce ul.products li.product .atpc-meta { margin-top: 8px; }

/* Badge "Sale!": dentro la copertina, in alto a destra, mai tagliato */
.woocommerce ul.products li.product { position: relative; }
.woocommerce ul.products li.product .onsale,
body.elementor-page .at-grid li.product .onsale {
	position: absolute !important;
	top: 22px !important;
	right: 22px !important;
	left: auto !important;
	bottom: auto !important;
	margin: 0 !important;
	z-index: 3;
	width: auto !important;
	height: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 6px 10px !important;
	border-radius: 999px !important;
	line-height: 1 !important;
	font-size: 11px !important;
	white-space: nowrap;
	overflow: visible;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
/* Icone DAW ufficiali */
.atpc-badge.atpc-daw.has-icon { padding: 0; width: 26px; height: 26px; justify-content: center; border: 0; background: transparent; }
.atpc-badge.atpc-daw.has-icon img { display: block; width: 24px; height: 24px; object-fit: contain; border-radius: 5px; margin: 0; }
body.elementor-page .at-grid li.product .atpc-badge.atpc-daw.has-icon img { width: 24px !important; height: 24px !important; margin: 0 !important; border-radius: 5px !important; }
/* Icona DAW: non ereditare gli stili delle copertine */
.woocommerce ul.products li.product .atpc-badge.has-icon img,
body.elementor-page .at-grid li.product .atpc-badge.has-icon img { display: block !important; width: 24px !important; height: 24px !important; max-width: none !important; margin: 0 !important; padding: 0 !important; border-radius: 5px !important; box-shadow: none !important; aspect-ratio: auto !important; }

/* Icona Vocal: Royalty-Free neutra, AI-Generated in evidenza */
.atpc-badge.atpc-vocal { color: #f3f1ec; border-color: rgba(243, 241, 236, .22); background: rgba(243, 241, 236, .06); }
.atpc-badge.atpc-vocal.is-ai {
	color: #ff2a5f;
	border-color: rgba(255, 42, 95, .55);
	background: rgba(255, 42, 95, .14);
	box-shadow: 0 0 10px rgba(255, 42, 95, .45);
}
.atpc-badge.atpc-vocal.is-ai svg { filter: drop-shadow(0 0 3px rgba(255, 42, 95, .8)); }

/* Pulsante Play della griglia Home: esattamente al centro della copertina */
body.elementor-page .at-grid li.product { container-type: inline-size; }
body.elementor-page .at-grid li.product .at-listen,
body.elementor-page .at-grid li.product .at-listen:active {
	top: calc(12px + 50cqw) !important; /* 12px = padding card, 100cqw = larghezza copertina */
	left: 50% !important;
	right: auto !important;
	bottom: auto !important;
	width: 56px !important;
	height: 56px !important;
	z-index: 4 !important;
	transform: translate(-50%, -50%) scale(.9) !important;
}
body.elementor-page .at-grid li.product:is(:hover, :focus-within, .is-current) .at-listen { transform: translate(-50%, -50%) !important; }
body.elementor-page .at-grid li.product .at-listen:hover,
body.elementor-page .at-grid li.product .at-listen:focus-visible { transform: translate(-50%, -50%) scale(1.06) !important; }
body.elementor-page .at-grid li.product .at-listen svg { width: 20px !important; height: 20px !important; }
@media (prefers-reduced-motion: reduce) {
	body.elementor-page .at-grid li.product .at-listen { transition: opacity .2s !important; }
}
/* Mobile: padding card 8px nel tema Home */
@media (max-width:767px){ body.elementor-page .at-grid li.product .at-listen, body.elementor-page .at-grid li.product .at-listen:active { top: calc(8px + 50cqw) !important; width:48px !important; height:48px !important; } }

/* ==================================================================
 * Copertina, Play, seller, genere linkato (tutte le griglie)
 * ================================================================== */
.atpc-cover { position: relative; margin: 0 0 12px; }
.woocommerce ul.products li.product .atpc-cover a img,
body.elementor-page .at-grid li.product .atpc-cover a img { margin-bottom: 0 !important; }
.woocommerce ul.products li.product .atpc-cover a.woocommerce-LoopProduct-link { flex: none; }
.atpc-title-link { display: block; color: inherit !important; text-decoration: none !important; }
.atpc-title-link:hover .woocommerce-loop-product__title { color: #fff; }

/* Sale dentro la copertina */
.woocommerce ul.products li.product .atpc-cover .onsale,
body.elementor-page .at-grid li.product .atpc-cover .onsale { top: 10px !important; right: 10px !important; }

/* Pulsante Play: centro esatto della copertina */
.woocommerce ul.products li.product .atpc-listen,
ul.products li.product .atpc-listen {
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	right: auto !important;
	bottom: auto !important;
	z-index: 4;
	width: 56px !important;
	height: 56px !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	display: grid !important;
	place-items: center;
	background: rgba(5, 5, 6, .72) !important;
	color: #f3f1ec !important;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 8px 24px rgba(0, 0, 0, .35) !important;
	cursor: pointer;
	transform: translate(-50%, -50%);
	transition: background-color .25s, opacity .3s, transform .3s cubic-bezier(.2, .8, .2, 1.25);
}
ul.products li.product .atpc-listen[hidden] { display: none !important; }
ul.products li.product .atpc-listen svg { width: 20px; height: 20px; fill: currentColor; margin: 0; }
ul.products li.product .atpc-listen .atpc-i-pause,
ul.products li.product .atpc-listen[aria-pressed="true"] .atpc-i-play { display: none; }
ul.products li.product .atpc-listen[aria-pressed="true"] .atpc-i-pause { display: inline; }
ul.products li.product .atpc-listen:hover,
ul.products li.product .atpc-listen[aria-pressed="true"] { background: #e3121b !important; }
ul.products li.product .atpc-listen:hover { transform: translate(-50%, -50%) scale(1.06); }
ul.products li.product .atpc-listen:focus-visible { outline: 2px solid #f3f1ec; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
	ul.products li.product .atpc-listen { opacity: 0; transform: translate(-50%, -50%) scale(.9); }
	ul.products li.product:is(:hover, :focus-within, .atpc-current) .atpc-listen { opacity: 1; transform: translate(-50%, -50%); }
	ul.products li.product .atpc-listen:hover { transform: translate(-50%, -50%) scale(1.06); }
}
@media (max-width: 767px) {
	ul.products li.product .atpc-listen { width: 48px !important; height: 48px !important; }
}
.woocommerce ul.products li.product.atpc-current { border-color: rgba(227, 18, 27, .6); }
/* Home: il Play lo gestisce gia' lo script della Home (.at-listen) */
html body .woocommerce ul.products li.product:has(.at-listen) .atpc-listen,
html body ul.products li.product:has(.at-listen) .atpc-listen { display: none !important; }

/* Player Sonaar delle griglie: nascosto (resta visibile lo sticky player) */
.atpc-sonaar-host { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Seller / producer sopra il titolo */
.atpc-seller { margin: 0 0 4px; min-width: 0; line-height: 1.2; }
.atpc-seller a,
.atpc-seller .atpc-seller-name {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	max-width: 100%;
	color: #8e8c88 !important;
	font-family: "Manrope", system-ui, sans-serif;
	font-size: 12px !important;
	font-weight: 600;
	text-decoration: none !important;
}
.atpc-seller span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atpc-seller svg { flex: none; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.atpc-seller a:hover,
.atpc-seller a:focus-visible { color: #e3121b !important; }
.atpc-seller a:hover span { text-decoration: underline; text-underline-offset: 3px; }

/* Genere: link alla categoria */
a.atpc-genre { color: #8e8c88 !important; text-decoration: none !important; }
a.atpc-genre:hover,
a.atpc-genre:focus-visible { color: #e3121b !important; }

/* Ghost Mode (Home): anche il producer resta nascosto finche' non si clicca Reveal */
body.elementor-page.at-ghost .at-grid li.product:not(.is-revealed) .atpc-seller :is(a, .atpc-seller-name) { color: transparent !important; text-shadow: 0 0 12px rgba(243, 241, 236, .6); -webkit-user-select: none; user-select: none; }
body.elementor-page.at-ghost .at-grid li.product:not(.is-revealed) .atpc-seller svg { opacity: 0; }
@media (prefers-reduced-motion: reduce) { ul.products li.product .atpc-listen { transition: opacity .2s !important; } }
/* ==================================================================
 * Brani venduti: badge SOLD, niente Play, pulsante disattivato
 * ================================================================== */
.atpc-sold-badge {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: grid;
	place-items: center;
	border-radius: 10px;
	background: rgba(5, 5, 6, .5);
	pointer-events: none;
}
.atpc-sold-badge span {
	display: inline-block;
	padding: 8px 18px 7px;
	border: 2px solid #e3121b;
	border-radius: 8px;
	background: rgba(5, 5, 6, .82);
	color: #fff;
	font-family: "Unbounded", "Manrope", sans-serif;
	font-size: clamp(13px, 2.4vw, 18px);
	font-weight: 700;
	letter-spacing: .24em;
	line-height: 1;
	text-transform: uppercase;
	transform: rotate(-8deg);
	box-shadow: 0 0 0 4px rgba(227, 18, 27, .18), 0 10px 30px rgba(0, 0, 0, .5);
}
li.product.atpc-is-sold .atpc-cover img { filter: grayscale(.85) brightness(.75); }
li.product.atpc-is-sold .atpc-listen,
li.product.atpc-is-sold .at-listen { display: none !important; }
.woocommerce ul.products li.product .atpc-actions .atpc-sold-btn,
body.elementor-page .at-grid li.product .atpc-actions .atpc-sold-btn {
	background: rgba(227, 18, 27, .12) !important;
	color: #e3121b !important;
	border: 1px solid rgba(227, 18, 27, .45) !important;
	cursor: not-allowed;
	letter-spacing: .14em !important;
	text-transform: uppercase !important;
	pointer-events: none;
}
/* Scheda singola */
body.atpc-single-sold .woocommerce-product-gallery { position: relative; }
body.atpc-single-sold .woocommerce-product-gallery::after {
	content: "SOLD";
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 9;
	padding: 12px 28px 11px;
	border: 3px solid #e3121b;
	border-radius: 10px;
	background: rgba(5, 5, 6, .85);
	color: #fff;
	font-family: "Unbounded", "Manrope", sans-serif;
	font-size: clamp(20px, 3.4vw, 34px);
	font-weight: 700;
	letter-spacing: .26em;
	line-height: 1;
	transform: translate(-50%, -50%) rotate(-8deg);
	box-shadow: 0 0 0 6px rgba(227, 18, 27, .18), 0 14px 40px rgba(0, 0, 0, .55);
	pointer-events: none;
}
body.atpc-single-sold .woocommerce-product-gallery img { filter: grayscale(.85) brightness(.75); }
body.atpc-single-sold .stock.atpc-sold-stock { color: #e3121b; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
/* Scheda singola: riga Vocal */
.atpc-single-vocal { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-weight: 700; font-size: 14px; }
.atpc-single-vocal .atpc-badge { cursor: default; }
.atpc-single-vocal.is-ai .atpc-single-vocal-label { color: #ff2a5f; }
/* "by Producer" at the top of the card */
.atpc-seller{margin:0 0 10px!important;line-height:1.2}
.atpc-seller a,.atpc-seller .atpc-seller-name{gap:5px!important;font-size:12.5px!important;font-weight:500!important;color:#8e8c88!important}
.atpc-seller .atpc-by{flex:none;color:#8e8c88;font-weight:500;text-transform:lowercase}
.atpc-seller .atpc-seller-n{color:#f3f1ec;font-weight:700;letter-spacing:.01em}
.atpc-seller a:hover .atpc-seller-n,.atpc-seller a:focus-visible .atpc-seller-n{color:#e3121b;text-decoration:underline;text-underline-offset:3px}
.atpc-seller a:hover span.atpc-by{text-decoration:none}
body.elementor-page.at-ghost .at-grid li.product:not(.is-revealed) .atpc-seller .atpc-seller-n{color:transparent!important;text-shadow:0 0 12px rgba(243,241,236,.6)}

/* Ghost Mode retired */
.at-unveil{display:none!important}
