/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: May 25 2026 | 22:12:05 */
/* ============================================================
   CANDYCARDS — PREMIUM UPSELL DRAWER v1.6
   Custom CSS & JS plugin → CSS field
   ============================================================ */

.cc-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(8, 5, 26, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99998; opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.cc-drawer-overlay.is-open { opacity: 1; pointer-events: auto; }

.cc-drawer {
  position: fixed; z-index: 99999;
  background: linear-gradient(160deg, #1e0e42 0%, #120830 100%);
  box-shadow: -8px 0 48px rgba(0,0,0,0.7), 0 0 0 1px rgba(155,93,229,0.2);
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; flex-direction: column;
}
@media (min-width: 768px) {
  .cc-drawer {
    top: 0; right: 0; bottom: 0;
    width: min(420px, 90vw);
    border-radius: 20px 0 0 20px;
    transform: translateX(100%);
    overflow: visible;
  }
  .cc-drawer.is-open { transform: translateX(0); }
}
@media (max-width: 767px) {
  .cc-drawer {
    left: 0; right: 0; bottom: 0;
    max-height: 82vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    box-shadow: 0 -8px 48px rgba(0,0,0,0.7), 0 0 0 1px rgba(155,93,229,0.2);
    overflow: hidden;
  }
  .cc-drawer.is-open { transform: translateY(0); }
}
.cc-drawer::before {
  content: ''; display: block; height: 3px;
  background: linear-gradient(90deg, #9b5de5, #f5c842);
  border-radius: 20px 0 0 0; flex-shrink: 0;
}
@media (max-width: 767px) {
  .cc-drawer::before { border-radius: 20px 20px 0 0; }
}

.cc-drawer-header {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  padding: 18px 22px 12px; flex-shrink: 0;
}
.cc-drawer-header-text { flex: 1; }
.cc-drawer-label {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #f5c842; opacity: 0.85; display: block;
}
.cc-drawer-title {
  font-size: 18px; font-weight: 700; color: #fff;
  margin-top: 3px; letter-spacing: -0.02em;
}
.cc-drawer-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: #ccc; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0; line-height: 1; padding: 0; margin-top: -2px;
}
.cc-drawer-close:hover { background: rgba(245,200,66,0.15); color: #f5c842; }

.cc-drawer-scroll-wrap {
  position: relative;
  flex: 1;
  overflow: hidden;
}
.cc-drawer-scroll {
  overflow-x: auto; overflow-y: hidden;
  padding: 8px 22px 22px;
  height: 100%;
  scrollbar-width: none; -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.cc-drawer-scroll:active { cursor: grabbing; }
.cc-drawer-scroll::-webkit-scrollbar { display: none; }
.cc-scroll-hint {
  position: absolute; right: 0; top: 0; bottom: 0; width: 52px;
  background: linear-gradient(90deg, transparent, #120830);
  pointer-events: none; transition: opacity 0.3s;
}

/* ── Products track ── */
.cc-products-track {
  display: flex;
  gap: 14px;
  width: max-content;
  align-items: flex-start; /* NON stretch — le card non si allungano */
}

/* ── Product card ── */
.cc-product-card {
  width: 165px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(155,93,229,0.22);
  border-radius: 14px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s, transform 0.2s;
  cursor: default;
  /* Altezza auto — si adatta al contenuto, non al container */
}
@media (max-width: 767px) { .cc-product-card { width: 148px; } }
.cc-product-card:hover { border-color: rgba(245,200,66,0.38); transform: translateY(-2px); }

.cc-product-img-wrap {
  width: 100%; aspect-ratio: 1;
  border-radius: 10px; overflow: hidden;
  background: rgba(0,0,0,0.25);
}
.cc-product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.3s ease;
}
.cc-product-card:hover .cc-product-img-wrap img { transform: scale(1.04); }

.cc-product-cat {
  font-size: 9px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase; color: #f5c842;
}
.cc-product-name {
  font-size: 13px; font-weight: 600; color: #fff;
  line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.cc-product-prices {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  margin-top: auto;
}
.cc-price-original {
  font-size: 11px; color: rgba(255,255,255,0.32);
  text-decoration: line-through;
}
.cc-price-sale { font-size: 15px; font-weight: 800; color: #f5c842; }

.cc-add-btn {
  width: 100%; padding: 9px 0;
  border-radius: 50px; background: #f5c842;
  color: #08051a; font-size: 12px; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.06em;
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  position: relative; overflow: hidden;
}
.cc-add-btn:hover { background: #ffd84d; transform: scale(1.02); }
.cc-add-btn:active { transform: scale(0.97); }
.cc-add-btn.is-loading { pointer-events: none; background: #a08020; color: transparent; }
.cc-add-btn.is-loading::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  width: 15px; height: 15px;
  border: 2px solid rgba(8,5,26,0.25); border-top-color: #08051a;
  border-radius: 50%; animation: cc-spin 0.6s linear infinite;
}
.cc-add-btn.is-added { background: #22c55e; color: #fff; pointer-events: none; }
@keyframes cc-spin { to { transform: rotate(360deg); } }

.cc-drawer-footer {
  padding: 12px 22px 18px;
  border-top: 1px solid rgba(255,255,255,0.05); flex-shrink: 0;
}
.cc-drawer-footer-text {
  font-size: 11px; color: rgba(255,255,255,0.25); text-align: center;
}

.cc-drawer-empty {
  padding: 48px 22px; text-align: center;
  color: rgba(255,255,255,0.3); font-size: 14px;
}

.cc-skel { width: 165px; flex-shrink: 0; }
@media (max-width: 767px) { .cc-skel { width: 148px; } }
.cc-skel-img {
  width: 100%; aspect-ratio: 1; border-radius: 10px;
  background: rgba(255,255,255,0.06); animation: cc-pulse 1.4s ease infinite;
}
.cc-skel-line {
  height: 9px; border-radius: 5px; margin-top: 10px;
  background: rgba(255,255,255,0.06); animation: cc-pulse 1.4s ease infinite;
}
.cc-skel-line.s { width: 55%; }
@keyframes cc-pulse { 0%,100%{opacity:.4} 50%{opacity:.9} }

/* ── Frecce desktop — fuori dal drawer ai lati ── */
@media (min-width: 768px) {
  .cc-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e0e42, #120830);
    border: 1px solid rgba(245,200,66,0.5);
    color: #f5c842;
    font-size: 26px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 100000;
    transition: background 0.2s, opacity 0.3s, box-shadow 0.2s;
    padding: 0; line-height: 1;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  }
  .cc-arrow:hover {
    background: rgba(245,200,66,0.2);
    box-shadow: 0 4px 24px rgba(155,93,229,0.4);
  }
  /* Prev: fuori a sinistra del drawer */
  .cc-arrow-prev {
    right: calc(min(420px, 90vw) + 12px);
  }
  /* Next: sul bordo sinistro del drawer */
  .cc-arrow-next {
    right: calc(min(420px, 90vw) - 20px);
  }
}
@media (max-width: 767px) {
  .cc-arrow { display: none !important; }
}