/* Vetrina Federata — Wishlist & Compare CSS v1.4.0 */

/* ================================================================
   OVERLAY
================================================================ */
.tkv-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 9998;
    backdrop-filter: blur(2px);
}
.tkv-overlay.aperto { display: block; }

/* ================================================================
   PANEL BASE (wishlist e compare)
================================================================ */
.tkv-panel {
    position: fixed;
    top: 0;
    right: -480px;
    width: 460px;
    max-width: 95vw;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 30px rgba(0,0,0,.15);
    transition: right .3s ease;
    border-radius: 0;
	z-index: 99999;
}
.tkv-panel.aperto { right: 0; }

.tkv-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--global-palette1, #1a1a1a);
    color: var(--global-palette-btn, #fff);
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
}
.tkv-panel-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    opacity: .8;
    transition: opacity .15s;
}
.tkv-panel-close:hover { opacity: 1; }

.tkv-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.tkv-panel-vuoto {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-size: 14px;
}

/* ================================================================
   WISHLIST — righe prodotto
================================================================ */
.tkv-wl-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.tkv-wl-item:last-child { border-bottom: none; }

.tkv-wl-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: #f5f5f5;
}

.tkv-wl-info {
    flex: 1;
    min-width: 0;
}
.tkv-wl-nome {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    display: block;
}
.tkv-wl-nome:hover { color: #2e4057; }
.tkv-wl-sito {
    font-size: 11px;
    color: #888;
    margin: 2px 0;
}
.tkv-wl-prezzo {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
}
.tkv-wl-prezzo del { color: #aaa; font-size: 11px; margin-right: 4px; }
.tkv-wl-prezzo ins { text-decoration: none; }

.tkv-wl-remove {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
    line-height: 1;
}
.tkv-wl-remove:hover { background: #d63638; color: #fff; border-color: #d63638; }

/* ================================================================
   COMPARE — tabella attributi
================================================================ */
.tkv-cp-panel { width: 90vw; max-width: 900px; right: -92vw; }
.tkv-cp-panel.aperto { right: 0; }

.tkv-cp-table-wrap {
    overflow-x: auto;
}

.tkv-cp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 400px;
}
.tkv-cp-table th,
.tkv-cp-table td {
    padding: 10px 12px;
    border: 1px solid #eee;
    vertical-align: top;
    text-align: left;
}
.tkv-cp-table th {
    background: #f6f7f7;
    font-weight: 600;
    color: #3c434a;
    width: 110px;
}
.tkv-cp-table td { background: #fff; }

/* Riga immagine */
.tkv-cp-img-row td { text-align: center; padding: 14px 8px; }
.tkv-cp-img-row img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
}
.tkv-cp-img-row .tkv-cp-nome {
    font-size: 12px;
    font-weight: 700;
    margin-top: 6px;
    color: #1a1a1a;
    text-decoration: none;
    display: block;
    line-height: 1.3;
}
.tkv-cp-img-row .tkv-cp-sito {
    font-size: 10px;
    color: #888;
    margin-top: 2px;
}
.tkv-cp-img-row .tkv-cp-rimuovi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 3px 10px;
    transition: background .15s, color .15s;
    text-decoration: none;
    gap: 4px;
}
.tkv-cp-img-row .tkv-cp-rimuovi:hover { background: #d63638; color: #fff; border-color: #d63638; }

/* Riga prezzo */
.tkv-cp-prezzo del { color: #aaa; font-size: 11px; display: block; }
.tkv-cp-prezzo ins { text-decoration: none; font-weight: 700; }

/* Stelle mini */
.tkv-cp-stars { color: #f5a623; font-size: 13px; letter-spacing: 1px; }
.tkv-cp-stars-vuoto { color: #e0e0e0; }

/* Badge sito */
.tkv-cp-badge-sito {
    display: inline-block;
    background: #f0f4ff;
    color: #2e4057;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
}

/* ================================================================
   BOTTONI TRIGGER nella vetrina
================================================================ */
.tkv-btn-wl,
.tkv-btn-cp {
    /* usano le stesse classi CSS dei bottoni azione card */
}

/* Stato "aggiunto" dei bottoni card: gestito in vetrina.css
   (cerchio bianco + icona colorata). Qui NON si stampa piu la
   pseudo-emoji ::before che causava il doppio cuore. */

/* Icona SVG nelle intestazioni dei pannelli */
.tkv-panel-title { display: inline-flex; align-items: center; gap: 8px; }
.tkv-panel-ico { flex-shrink: 0; }

/* ================================================================
   TRIGGER COMPARE FISSO (stesso stile wishlist, sotto di essa)
================================================================ */
#tkv-cp-trigger {
    position: fixed;
    top: calc(50% + 70px);
    right: 0;
    background: #2e4057;
    color: #fff;
    border: none;
    padding: 12px 8px;
    border-radius: 6px 0 0 6px;
    cursor: pointer;
    z-index: 9990;
    font-size: 18px;
    line-height: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: background .15s;
}
#tkv-cp-trigger:hover { background: #1a1a1a; }
#tkv-cp-trigger .tkv-cp-badge {
    font-size: 11px;
    font-weight: 700;
    background: #d63638;
    color: #fff;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
#tkv-cp-trigger .tkv-cp-badge.visibile { display: flex; }

/* ================================================================
   TRIGGER FISSI — WISHLIST (sopra) e COMPARE (sotto), 5px gap
   Gestisce wp-admin-bar (32px) e mobile (46px)
================================================================ */
#tkv-wl-trigger,
#tkv-cp-trigger {
    position: fixed;
    right: 0;
    border: none;
    padding: 10px 8px;
    border-radius: 6px 0 0 6px;
    cursor: pointer;
    z-index: 9990;
    line-height: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: background .15s;
}

/* Wishlist: sopra il centro */
#tkv-wl-trigger {
    bottom: calc(50% + 3px);
    background: var(--global-palette-btn-bg, #2e4057);
    color: var(--global-palette-btn, #fff);
}
#tkv-wl-trigger:hover { background: var(--global-palette1, #1a1a1a); }

/* Compare: sotto il centro */
#tkv-cp-trigger {
    top: calc(50% + 3px);
    background: var(--global-palette-btn-bg, #2e4057);
    color: var(--global-palette-btn, #fff);
}
#tkv-cp-trigger:hover { background: var(--global-palette1, #1a1a1a); }

/* Compenso admin bar desktop (32px) */
.admin-bar #tkv-wl-trigger { bottom: calc(50% + 3px - 16px); }
.admin-bar #tkv-cp-trigger  { top:    calc(50% + 3px + 16px); }

/* Admin bar mobile (46px) */
@media screen and (max-width: 782px) {
    .admin-bar #tkv-wl-trigger { bottom: calc(50% + 3px - 23px); }
    .admin-bar #tkv-cp-trigger  { top:    calc(50% + 3px + 23px); }
}

/* Badge contatore */
#tkv-wl-trigger .tkv-wl-badge,
#tkv-cp-trigger .tkv-cp-badge {
    font-size: 11px;
    font-weight: 700;
    background: #d63638;
    color: #fff;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
#tkv-wl-trigger .tkv-wl-badge.visibile { display: flex; }
#tkv-cp-trigger .tkv-cp-badge.visibile { display: flex; }

/* ================================================================
   1.11.77 · Wishlist e Comparatore "wouuu": intestazione sfumata Paydea, card arrotondate,
   tabella del confronto a righe morbide, pulsanti sfumati
================================================================ */
html body .tkv-overlay{background:rgba(12,8,40,.55)!important;backdrop-filter:blur(6px)!important;-webkit-backdrop-filter:blur(6px)}
html body .tkv-panel{background:linear-gradient(180deg,#faf8ff,#f3f7ff 55%,#effdfb)!important;box-shadow:-30px 0 70px -20px rgba(8,6,40,.6)!important;border-radius:26px 0 0 26px!important;overflow:hidden;font-family:Montserrat,sans-serif}
html body .tkv-panel-header{position:relative;padding:22px 22px!important;font-size:18px!important;font-weight:900!important;letter-spacing:-.01em;color:#fff!important;
  background:radial-gradient(220px 120px at 8% 0%,rgba(167,139,250,.55),transparent 70%),radial-gradient(260px 140px at 100% 130%,rgba(94,234,212,.45),transparent 70%),linear-gradient(135deg,#2b1f7a,#4c1d95 55%,#0e7490)!important}
html body .tkv-panel-header .tkv-panel-ico,html body .tkv-panel-header svg{color:#5eead4!important;stroke:#5eead4}
html body .tkv-panel-close{width:38px;height:38px;border-radius:50%!important;background:rgba(255,255,255,.16)!important;display:flex!important;align-items:center;justify-content:center;opacity:1!important;font-size:18px!important;transition:background .2s,transform .2s!important}
html body .tkv-panel-close:hover{background:rgba(255,255,255,.3)!important;transform:rotate(90deg)}
html body .tkv-panel-body{padding:16px!important}
/* vuoto */
html body .tkv-panel-vuoto{display:flex;flex-direction:column;align-items:center;gap:6px;margin:30px 10px!important;padding:34px 20px;border-radius:22px;background:#fff;border:1.5px dashed #c4b5fd;text-align:center;color:#64748b;font-size:14px}
html body .tkv-panel-vuoto b{font-size:16px;color:#0f172a}
html body .tkv-vuoto-ico{width:58px;height:58px;border-radius:18px;display:flex;align-items:center;justify-content:center;font-size:28px;color:#fff;background:linear-gradient(135deg,#7c3aed,#22b8c9);box-shadow:0 12px 26px -10px rgba(124,58,237,.7);margin-bottom:6px}
/* wishlist: card */
html body .tkv-wl-item{position:relative;display:grid!important;grid-template-columns:76px minmax(0,1fr) 34px;gap:14px;align-items:center;margin:0 0 12px!important;padding:12px!important;border:1px solid #e6e1fb!important;border-radius:20px;background:#fff;box-shadow:0 10px 26px -18px rgba(76,29,149,.5);transition:transform .2s,box-shadow .2s}
html body .tkv-wl-item:hover{transform:translateY(-2px);box-shadow:0 16px 30px -16px rgba(76,29,149,.55)}
html body .tkv-wl-img{width:76px!important;height:76px!important;border-radius:16px!important;object-fit:cover}
html body .tkv-wl-nome{font-size:15px!important;font-weight:800!important;color:#0f172a!important;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
html body .tkv-wl-sito{display:inline-flex;align-self:flex-start;margin:5px 0 4px;padding:3px 9px;border-radius:99px;background:#f5f3ff;color:#6d28d9!important;font-size:10.5px!important;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
html body .tkv-wl-info{display:flex;flex-direction:column;min-width:0}
html body .tkv-wl-prezzo{font-size:17px!important;font-weight:900;color:#4c1d95}
html body .tkv-wl-prezzo ins{text-decoration:none;background:linear-gradient(120deg,#7c3aed,#22b8c9);-webkit-background-clip:text;background-clip:text;color:transparent!important;-webkit-text-fill-color:transparent}
html body .tkv-wl-prezzo del{font-size:12.5px;font-weight:600;color:#94a3b8!important;-webkit-text-fill-color:#94a3b8;margin-right:6px}
html body .tkv-wl-vai{align-self:flex-start;margin-top:8px;padding:7px 14px;border-radius:12px;background:linear-gradient(120deg,#7c3aed,#4f46e5 55%,#22b8c9);color:#fff!important;font-size:12.5px;font-weight:800;text-decoration:none!important;box-shadow:0 8px 18px -10px rgba(79,70,229,.8)}
html body .tkv-wl-remove{width:34px!important;height:34px!important;border-radius:50%!important;border:0!important;background:#fef2f2!important;color:#e11d48!important;font-size:13px!important;display:flex!important;align-items:center;justify-content:center;transition:background .2s,transform .2s}
html body .tkv-wl-remove:hover{background:#ffe4e6!important;transform:scale(1.08)}
/* comparatore */
html body .tkv-cp-table-wrap{border-radius:22px;background:#fff;box-shadow:0 14px 34px -22px rgba(76,29,149,.55);border:1px solid #e6e1fb;overflow:auto}
html body .tkv-cp-table{border-collapse:separate!important;border-spacing:0!important;width:100%;border:0!important}
html body .tkv-cp-table th,html body .tkv-cp-table td{border:0!important;border-bottom:1px solid #f1eefc!important;padding:14px 16px!important;vertical-align:middle;font-size:14px;color:#334155}
html body .tkv-cp-table th{background:#faf8ff!important;color:#6d28d9!important;font-size:11.5px!important;font-weight:800!important;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}
html body .tkv-cp-table tr:last-child th,html body .tkv-cp-table tr:last-child td{border-bottom:0!important}
html body .tkv-cp-table tr:nth-child(even) td{background:#fcfbff}
html body .tkv-cp-img-row td{text-align:center}
html body .tkv-cp-img-row img{width:120px!important;height:120px!important;border-radius:20px!important;object-fit:cover;box-shadow:0 12px 26px -14px rgba(15,23,42,.5);margin:0 auto 10px!important;display:block}
html body .tkv-cp-img-row .tkv-cp-nome{display:block;font-size:15px!important;font-weight:800!important;color:#0f172a!important;text-decoration:none!important}
html body .tkv-cp-badge-sito{display:inline-flex;margin:6px 0 8px;padding:3px 10px!important;border-radius:99px!important;background:linear-gradient(120deg,#ede9fe,#ccfbf1)!important;color:#4c1d95!important;font-size:10.5px!important;font-weight:800!important;letter-spacing:.05em}
html body .tkv-cp-img-row .tkv-cp-rimuovi{padding:6px 12px!important;border-radius:99px!important;border:1px solid #fecdd3!important;background:#fff1f2!important;color:#e11d48!important;font-size:12px!important;font-weight:700}
html body .tkv-cp-img-row .tkv-cp-rimuovi:hover{background:#ffe4e6!important}
html body .tkv-cp-prezzo{font-weight:900;color:#4c1d95}
html body .tkv-cp-prezzo ins{text-decoration:none;font-size:18px;background:linear-gradient(120deg,#7c3aed,#22b8c9);-webkit-background-clip:text;background-clip:text;color:transparent!important;-webkit-text-fill-color:transparent}
html body .tkv-cp-prezzo del{display:block;font-size:12.5px;font-weight:600;color:#94a3b8!important;-webkit-text-fill-color:#94a3b8}
html body .tkv-cp-stars{color:#f59e0b!important;letter-spacing:1px}
html body .tkv-cp-negozio{display:inline-flex;padding:5px 12px;border-radius:99px;background:#f5f3ff;color:#6d28d9!important;font-size:12.5px;font-weight:800;text-decoration:none!important}
html body .tkv-cp-vai{display:inline-flex;align-items:center;justify-content:center;width:100%;padding:11px 14px;border-radius:14px;background:linear-gradient(120deg,#7c3aed,#4f46e5 55%,#22b8c9);color:#fff!important;font-size:13.5px;font-weight:800;text-decoration:none!important;box-shadow:0 10px 22px -12px rgba(79,70,229,.8);transition:transform .2s,filter .2s}
html body .tkv-cp-vai:hover{transform:translateY(-2px);filter:brightness(1.08)}
@media (max-width:600px){html body .tkv-panel{border-radius:0!important}}
