.xgwv-showcase {
  --xgwv-accent: #171717;
  --xgwv-muted: #6b7280;
  --xgwv-columns: var(--xgwv-columns-desktop, 4);
  --xgwv-gap: var(--xgwv-gap-desktop, 24px);
  position: relative;
  width: 100%;
}

.xgwv-heading { margin: 0 0 24px; }
.xgwv-heading__title { margin: 0; font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.1; }
.xgwv-heading__subtitle { margin-top: 8px; color: var(--xgwv-muted); }
.xgwv-carousel { position: relative; }
.xgwv-viewport { overflow: hidden; width: 100%; touch-action: pan-y; }
.xgwv-track { display: flex; align-items: stretch; gap: var(--xgwv-gap); transform: translate3d(0, 0, 0); transition-property: transform; transition-timing-function: cubic-bezier(.22,.61,.36,1); will-change: transform; }
.xgwv-slide { flex: 0 0 calc((100% - (var(--xgwv-columns) - 1) * var(--xgwv-gap)) / var(--xgwv-columns)); min-width: 0; }

.xgwv-card {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.xgwv-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, .09); }
.xgwv-card__image { display: block; box-sizing: border-box; aspect-ratio: 1 / 1; overflow: hidden; padding: 12px; background: #fff; }
.xgwv-card__image img { display: block; width: 100%; height: 100%; margin: 0; object-fit: contain; object-position: center; }
.xgwv-card__body { display: flex; flex-direction: column; align-items: flex-start; padding: 18px; }
.xgwv-card__title { margin: 0 0 10px; font-size: 1.05rem; line-height: 1.3; }
.xgwv-card__title a { color: inherit; text-decoration: none; }
.xgwv-card__price { margin: 8px 0 16px; font-size: 1.1rem; font-weight: 700; color: var(--xgwv-accent); }
.xgwv-card__price del { color: var(--xgwv-muted); font-size: .85em; font-weight: 400; }
.xgwv-card__price ins { text-decoration: none; }
.xgwv-card__rating { min-height: 1.2em; font-size: .85rem; }
.xgwv-card__rating .star-rating { float: none; margin: 0; }

.xgwv-card__button,
.xgwv-card__button.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  margin-top: auto;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--xgwv-accent);
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: opacity .2s ease, transform .2s ease;
}
.xgwv-card__button:hover,
.xgwv-card__button:focus { color: #fff; opacity: .86; transform: translateY(-1px); }

.xgwv-badges { position: absolute; z-index: 2; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.xgwv-badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: var(--xgwv-accent); color: #fff; font-size: 11px; font-weight: 800; line-height: 1; letter-spacing: .03em; text-transform: uppercase; }
.xgwv-badge--in-offerta { background: #d7263d; }
.xgwv-badge--novita { background: #006d77; }
.xgwv-badge--tema-del-momento { background: #6d28d9; }
.xgwv-badge--preordini-in-arrivo { background: #b45309; }

.xgwv-arrow { position: absolute; z-index: 3; top: 50%; display: grid; width: 44px; height: 44px; padding: 0; place-items: center; border: 1px solid #e5e7eb; border-radius: 50%; background: #fff; color: var(--xgwv-accent); box-shadow: 0 6px 20px rgba(0,0,0,.1); font-size: 21px; line-height: 1; cursor: pointer; transform: translateY(-50%); }
.xgwv-arrow--prev { left: -18px; }
.xgwv-arrow--next { right: -18px; }
.xgwv-arrow:disabled { display: none; }
.xgwv-arrow:focus-visible, .xgwv-dot:focus-visible, .xgwv-card__button:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.xgwv-dots { display: flex; justify-content: center; align-items: center; gap: 7px; min-height: 14px; margin-top: 18px; }
.xgwv-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #d1d5db; cursor: pointer; transition: width .2s ease, border-radius .2s ease, background .2s ease; }
.xgwv-dot.is-active { width: 24px; border-radius: 6px; background: var(--xgwv-accent); }
.xgwv-empty { padding: 20px; border: 1px dashed #b8bec7; border-radius: 8px; color: #555; text-align: center; }

@media (max-width: 1024px) {
  .xgwv-showcase { --xgwv-columns: var(--xgwv-columns-tablet, 2); --xgwv-gap: var(--xgwv-gap-tablet, 18px); }
}

@media (max-width: 767px) {
  .xgwv-showcase { --xgwv-columns: var(--xgwv-columns-mobile, 1); --xgwv-gap: var(--xgwv-gap-mobile, 14px); }
  .xgwv-arrow { width: 38px; height: 38px; }
  .xgwv-arrow--prev { left: 6px; }
  .xgwv-arrow--next { right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .xgwv-track, .xgwv-card, .xgwv-card__button { transition-duration: .01ms !important; }
}
