:root {
  --bg: #fff8f2;
  --surface: #ffffffcc;
  --text: #2a2340;
  --primary: #44b8ff;
  --secondary: #8b6cff;
  --accent: #ff9f66;
  --accent-2: #36d9a8;
  --line: #dfe4ff;
  --shadow: 0 12px 28px rgba(67, 53, 138, 0.14);
}

* {
  box-sizing: border-box;
}

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, #bde9ff80 0%, transparent 30%),
    radial-gradient(circle at 90% 20%, #ffd2bd80 0%, transparent 32%),
    radial-gradient(circle at 20% 80%, #d8c7ff70 0%, transparent 28%),
    var(--bg);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.blob {
  position: absolute;
  filter: blur(60px);
  opacity: 0.4;
  animation: float 12s ease-in-out infinite;
}

.blob-1 {
  width: 240px;
  height: 240px;
  background: #6ec6ff;
  top: -40px;
  left: -20px;
}

.blob-2 {
  width: 260px;
  height: 260px;
  background: #b891ff;
  right: -50px;
  top: 180px;
  animation-delay: 2s;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background: #ffbe8f;
  left: 20%;
  bottom: -120px;
  animation-delay: 4s;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  backdrop-filter: blur(8px);
  background: #fffc;
  border-bottom: 1px solid var(--line);
}

.site-header.compact {
  position: static;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.2rem;
}

.brand small {
  color: #655d84;
}

.site-nav {
  display: none;
  position: absolute;
  top: 68px;
  left: 1rem;
  right: 1rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.7rem;
  box-shadow: var(--shadow);
}

.site-nav.is-open {
  display: grid;
  gap: 0.5rem;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
}

.site-nav a:hover,
.site-nav a.active {
  background: #eef2ff;
  color: var(--secondary);
}

.nav-toggle {
  border: 0;
  background: #f4f6ff;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
}

main,
.site-footer {
  width: min(1100px, 92%);
  margin-inline: auto;
}

.hero {
  padding: 2.2rem 0 1rem;
  display: grid;
  gap: 1.2rem;
}

.eyebrow {
  margin: 0;
  font-weight: 800;
  color: #5f53a6;
  letter-spacing: 0.03em;
}

.hero-kicker {
  width: min(320px, 75vw);
  margin-bottom: 0.55rem;
  text-align: center;
}

.hero-logo {
  width: min(320px, 75vw);
  object-fit: contain;
  margin-bottom: 0.5rem;
  display: block;
}

h1,
h2,
h3,
h4 {
  margin: 0.3rem 0 0.6rem;
  line-height: 1.15;
}

h1,
h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
}

h1 {
  font-size: clamp(2rem, 8vw, 4rem);
}

h2 {
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  color: #3e3372;
}

.section {
  margin: 2.2rem 0;
  padding: 1.2rem;
  background: var(--surface);
  border: 1px solid #ffffff;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.section-title {
  margin-bottom: 1rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn {
  border: 0;
  border-radius: 14px;
  padding: 0.7rem 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 8px 18px rgba(89, 80, 170, 0.26);
}

.btn-secondary {
  background: #fff;
  color: #4a3f83;
  border: 1px solid var(--line);
}

.btn-ghost {
  background: #f4f7ff;
  color: #4a3f83;
}

.hero-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.hero-gallery article {
  background: white;
  border-radius: 16px;
  padding: 0.6rem;
  box-shadow: 0 8px 22px rgba(88, 82, 148, 0.14);
  transition: transform 0.25s ease;
}

.hero-gallery article:hover {
  transform: rotate(-1deg) translateY(-2px);
}

.hero-gallery p {
  margin: 0.55rem 0 0;
  text-align: center;
  font-weight: 700;
}

.top-products,
.products-grid,
.palette-grid,
.contact-grid {
  display: grid;
  gap: 0.9rem;
}

.top-card,
.product-card {
  background: white;
  border-radius: 18px;
  border: 1px solid #edf0ff;
  padding: 0.8rem;
  box-shadow: 0 10px 22px rgba(74, 59, 141, 0.08);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-paypal {
  background: #ffc439;
  color: #111;
  border: none;
  font-weight: 700;
}
.btn-paypal:hover { background: #f0b429; }
.gallery-wrap {
  position: relative;
  line-height: 0;
}
.gallery-img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 1;
}
.gallery-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}
.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.15);
  cursor: pointer;
  transition: background 0.2s;
}
.gallery-dot.active { background: #fff; }

.top-card:hover,
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 24px rgba(74, 59, 141, 0.15);
}

.top-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 0.8rem;
}

.product-card .badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.75rem;
  background: #eff8ff;
  color: #2d6f90;
  border: 1px solid #c4e8ff;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.product-card .price {
  font-weight: 800;
  margin: 0.4rem 0;
  color: #3f3577;
}

.product-card label,
.custom-form label,
.personal-text {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.95rem;
}

select,
input,
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #d6ddff;
  padding: 0.62rem;
  font: inherit;
  background: #fcfdff;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #b8dcff;
  border-color: #8ec9ff;
}

.card-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.category-tags span {
  background: #f2f6ff;
  color: #4a3f83;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  border: 1px solid #dce4ff;
  font-weight: 700;
  font-size: 0.85rem;
}

.custom-form {
  display: grid;
  gap: 0.8rem;
}

.custom-form .full {
  grid-column: 1 / -1;
}

.file-hint {
  display: block;
  margin-top: 0.3rem;
  color: #9088b8;
  font-weight: 400;
  font-size: 0.82rem;
}

/* Submit wrap + tooltip */
.submit-wrap {
  grid-column: 1 / -1;
  position: relative;
}

.submit-wrap .btn.full {
  width: 100%;
}

.submit-wrap .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.submit-tooltip {
  display: block;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #2d2050;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}

.submit-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #2d2050;
}

.file-error {
  display: block;
  margin-top: 0.35rem;
  color: #c0392b;
  font-weight: 600;
  font-size: 0.85rem;
  background: #fff3f3;
  border: 1px solid #f9c2c2;
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
}

.form-feedback {
  grid-column: 1 / -1;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.form-feedback.is-success {
  background: #edfff6;
  border: 1px solid #a3f0c8;
  color: #1a6e47;
}

.form-feedback.is-error {
  background: #fff3f3;
  border: 1px solid #f9c2c2;
  color: #b94040;
}

.palette-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.palette-grid div,
.chips .chip {
  border-radius: 999px;
}

.palette-grid div {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
}

.palette-grid span {
  width: 52px;
  height: 52px;
  background: var(--chip);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #c9d2ff;
  display: block;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
  counter-reset: step;
}

.steps li {
  position: relative;
  background: #fff;
  border: 1px solid #e4eaff;
  border-radius: 16px;
  padding: 0.9rem 1rem;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.8rem;
  align-items: start;
  box-shadow: 0 8px 20px rgba(74, 59, 141, 0.07);
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 30px;
  top: 53px;
  bottom: -15px;
  width: 2px;
  background: #dfe4ff;
}

.step-number {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 8px 18px rgba(92, 105, 255, 0.22);
}

.steps strong {
  display: block;
  color: #302850;
  font-size: 1rem;
}

.steps p {
  margin: 0.25rem 0 0;
  color: #5f5a78;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.45;
}

/* ── RECENSIONI ───────────────────────────────── */

.reviews-section {
  margin: 2.2rem 0;
  padding: 1.4rem 0 1.6rem;
  background: linear-gradient(135deg, #f0f5ff 0%, #fdf4ff 100%);
  border: 1px solid #e6eaff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.reviews-section .section-title {
  padding: 0 1.2rem;
}

.reviews-track-wrap {
  overflow-x: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  cursor: grab;
  user-select: none;
}

.reviews-track-wrap::-webkit-scrollbar {
  display: none;
}

.reviews-track-wrap.is-dragging {
  cursor: grabbing;
}

.reviews-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  padding: 0.5rem 0.5rem 0.8rem;
  pointer-events: none;
}

.reviews-track .review-card {
  pointer-events: auto;
}

.review-card {
  background: white;
  border: 1px solid #e4eaff;
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
  width: 280px;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(74, 59, 141, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.review-stars {
  color: #f5a623;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.review-card p {
  margin: 0;
  font-size: 0.92rem;
  color: #4a4270;
  line-height: 1.55;
  flex: 1;
}

.review-card footer {
  font-size: 0.85rem;
  color: #8a82b0;
}

.about-text {
  margin: 0;
  font-size: 1.05rem;
}

.faq-list {
  display: grid;
  gap: 0.55rem;
}

details {
  background: white;
  border-radius: 12px;
  border: 1px solid #e4eaff;
  padding: 0.7rem 0.8rem;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

.contact-grid a {
  text-decoration: none;
  background: white;
  border: 1px solid #dae1ff;
  border-radius: 14px;
  padding: 0.9rem;
  text-align: center;
  color: #413672;
  font-weight: 800;
}

.contact-grid a:hover {
  background: #f6f8ff;
}

.site-footer {
  padding: 0.4rem 0 2rem;
  color: #5f5a78;
  text-align: center;
}

.product-back {
  width: min(1100px, 92%);
  margin: 1.4rem auto 0;
}

.product-layout {
  width: min(1100px, 92%);
  margin: 1.2rem auto 2rem;
  display: grid;
  gap: 1rem;
}

.product-gallery,
.product-info {
  background: #fff;
  border: 1px solid #e9eeff;
  border-radius: 22px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.7rem;
}

.thumb {
  border: 2px solid #d6deff;
  border-radius: 12px;
  background: white;
  width: 90px;
  padding: 0;
  cursor: pointer;
}

.thumb.is-active {
  border-color: var(--secondary);
}

.product-specs {
  margin: 0.8rem 0;
  padding-left: 1rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chips .chip {
  width: 32px;
  height: 32px;
  border: 2px solid #d8e0ff;
  background: var(--chip);
  cursor: pointer;
}

.chips .chip.is-selected {
  box-shadow: 0 0 0 3px #bfd7ff;
}

.note {
  background: #f8faff;
  border: 1px solid #dce5ff;
  border-radius: 14px;
  padding: 0.7rem;
  font-size: 0.94rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-toggle {
  position: relative;
  border: 0;
  background: #f0f4ff;
  border-radius: 14px;
  padding: 0.55rem 0.85rem;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
}

.cart-toggle:hover {
  background: #e0e8ff;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30, 20, 60, 0.35);
  z-index: 20;
  backdrop-filter: blur(2px);
}

.cart-overlay.is-open {
  display: block;
}

.cart-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 100vw);
  background: white;
  z-index: 21;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(60, 40, 120, 0.18);
}

.cart-drawer.is-open {
  display: flex;
  animation: slideIn 0.28s ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.cart-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.cart-close {
  border: 0;
  background: #f2f4ff;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  cursor: pointer;
}

.cart-items {
  list-style: none;
  margin: 0;
  padding: 0.7rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 0.6rem;
  align-items: center;
  background: #f8faff;
  border: 1px solid #e8edff;
  border-radius: 14px;
  padding: 0.6rem;
}

.cart-item img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 10px;
  background: white;
}

.cart-item-info strong {
  display: block;
  font-size: 0.9rem;
}

.cart-item-info small {
  color: #7a73a0;
  font-size: 0.8rem;
}

.cart-item-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: white;
  border: 1px solid #dce4ff;
  border-radius: 10px;
  padding: 0.2rem 0.4rem;
}

.cart-qty button {
  border: 0;
  background: transparent;
  font-size: 1rem;
  cursor: pointer;
  padding: 0 0.2rem;
  line-height: 1;
}

.cart-qty span {
  min-width: 1.4rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.cart-remove {
  border: 0;
  background: transparent;
  color: #c87070;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0;
}

.cart-empty {
  text-align: center;
  padding: 2rem;
  color: #8a82b0;
  font-weight: 600;
  line-height: 1.8;
}

.cart-footer {
  padding: 0.9rem 1.1rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cart-footer .btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
}

.cart-total {
  font-size: 1.1rem;
  font-weight: 700;
}

.cart-note {
  margin: 0;
  font-size: 0.8rem;
  color: #8a82b0;
}

.loading-hint {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: #7060a8;
  font-weight: 700;
}

.loading-hint.error {
  color: #b94040;
  background: #fff3f3;
  border: 1px solid #f9c2c2;
  border-radius: 14px;
}

.reveal {
  animation: riseIn 0.7s both;
}

.reveal.delay-1 {
  animation-delay: 0.15s;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  50% {
    transform: translateY(26px) scale(1.05);
  }
}

@keyframes float {
  50% {
    transform: translateY(26px) scale(1.05);
  }
}

/* ── PAGINE INTERNE ──────────────────────────────────────── */

.page-hero {
  padding: 2rem 0 0.5rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 6vw, 3rem);
}

.page-hero p {
  color: #5f5a80;
  max-width: 520px;
  margin-inline: auto;
}

.cta-banner {
  text-align: center;
}

.cta-banner .cta-group {
  justify-content: center;
}

/* ===== AUTH (login.html) ===== */
.auth-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 32px rgba(63,53,119,0.10);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
}
.auth-title {
  font-size: 1.6rem;
  margin: 0 0 1.5rem;
  text-align: center;
  color: #3f3577;
}
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #ede8ff;
}
.auth-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 0.6rem 0;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: #888;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}
.auth-tab.active {
  color: #3f3577;
  border-bottom-color: #3f3577;
}
.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}
.auth-form input {
  padding: 0.65rem 0.9rem;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.auth-form input:focus {
  outline: none;
  border-color: #7c3aed;
}
.auth-msg {
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: #f0fdf4;
  font-size: 0.9rem;
  text-align: center;
}

/* ===== NAV account link ===== */
.nav-account-link {
  font-weight: 600;
  color: #3f3577;
  text-decoration: none;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  border: 1.5px solid #ede8ff;
  transition: background 0.2s;
  white-space: nowrap;
}
.nav-account-link:hover {
  background: #ede8ff;
}

/* ===== ACCOUNT / ORDINI (account.html) ===== */
.order-card {
  background: #fff;
  border: 1.5px solid #ede8ff;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.order-status-badge {
  display: inline-block;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  margin-right: 0.5rem;
}
.order-date {
  font-size: 0.85rem;
  color: #888;
}
.order-method {
  display: block;
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.15rem;
}
.order-items {
  border-top: 1px solid #f0ebff;
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}
.order-item-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.3rem 0;
  font-size: 0.9rem;
}
.order-item-row span:first-child { flex: 1; }
.order-shipping {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: #666;
}
.order-addr {
  margin-top: 0.3rem;
  font-size: 0.82rem;
  color: #888;
}
.order-id {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: #bbb;
  word-break: break-all;
}

/* ===== ADMIN ordini tab ===== */
.orders-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.orders-table {
  width: 100%;
  min-width: 1400px;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.orders-table thead tr {
  background: #f4f0ff;
}
.orders-table th {
  padding: 11px 18px;
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
  color: #3f3577;
  border-bottom: 2px solid #ede8ff;
}
.orders-table td {
  padding: 11px 18px;
  border-bottom: 1px solid #f0ebff;
  vertical-align: top;
  line-height: 1.6;
}
.orders-table tr:last-child td { border-bottom: none; }
.orders-table tbody tr:hover td { background: #faf8ff; }
/* Larghezze colonne gestite via th inline style */
.td-truncate {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8rem;
  color: #aaa;
  font-family: monospace;
  cursor: default;
}
.order-chip {
  display: inline-block;
  background: #f4f0ff;
  color: #5b3ecf;
  padding: 1px 8px;
  border-radius: 20px;
  font-size: 0.79rem;
  font-weight: 600;
  margin: 1px 2px 1px 0;
}
.status-select {
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 0.82rem;
  cursor: pointer;
}


.two-col-layout {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.palette-aside {
  align-self: start;
}

/* ── FILTRI CATALOGO ─────────────────────────────────────── */

.tag-btn {
  background: #f2f6ff;
  color: #4a3f83;
  border: 1px solid #dce4ff;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.tag-btn:hover,
.tag-btn.is-active {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

/* ── CONTATTI ────────────────────────────────────────────── */

.contact-big-grid {
  display: grid;
  gap: 1rem;
  justify-content: center;
}

.contact-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: white;
  border: 1px solid #e4eaff;
  border-radius: 18px;
  padding: 1.2rem;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 8px 20px rgba(74, 59, 141, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 24px rgba(74, 59, 141, 0.14);
}

.contact-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.contact-card strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.contact-card p {
  margin: 0;
  color: #6b638e;
  font-size: 0.92rem;
}

/* ── CHI SONO ────────────────────────────────────────────── */

.about-card {
  display: grid;
  gap: 1rem;
}

.about-img {
  width: 100%;
  max-width: 260px;
  margin-inline: auto;
  border-radius: 18px;
  background: #f4f7ff;
  padding: 0.8rem;
}

@media (min-width: 760px) {
  .site-header {
    justify-content: flex-start;
  }

  .brand {
    order: 1;
  }

  .site-nav {
    position: static;
    order: 2;
    display: flex;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    gap: 0.2rem;
    margin-left: clamp(1rem, 4vw, 3rem);
  }

  .header-right {
    order: 3;
    margin-left: auto;
  }

  .nav-toggle {
    display: none;
  }

  .hero {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    padding-top: 2.8rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .top-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .top-card img {
    margin-inline: auto;
  }

  .custom-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .palette-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-layout {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }

  .two-col-layout {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }

  .contact-big-grid {
    grid-template-columns: repeat(2, minmax(260px, 380px));
  }

  .about-card {
    grid-template-columns: 220px 1fr;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-big-grid {
    grid-template-columns: repeat(2, minmax(280px, 380px));
  }
}

/* ── MODALITÀ VETRINA ────────────────────────────────────────
   Attivata via body.vetrina-mode (impostata da partials.js
   quando vetrina_mode = true in Supabase site_config).
   Nasconde prezzi, Stripe e PayPal ovunque nel sito.
──────────────────────────────────────────────────────────── */
body.vetrina-mode .cart-total,
body.vetrina-mode .cart-note,
body.vetrina-mode #cartStripe,
body.vetrina-mode #cartPaypal,
body.vetrina-mode #cartToggle,
body.vetrina-mode .nav-account-link,
body.vetrina-mode .vetrina-payment-link,
body.vetrina-mode .product-card .price,
body.vetrina-mode #productPrice,
body.vetrina-mode #tabBtnOrders,
body.vetrina-config-loading .cart-total,
body.vetrina-config-loading .cart-note,
body.vetrina-config-loading #cartStripe,
body.vetrina-config-loading #cartPaypal,
body.vetrina-config-loading #cartToggle,
body.vetrina-config-loading .nav-account-link,
body.vetrina-config-loading .vetrina-shipping-link,
body.vetrina-config-loading .vetrina-payment-link,
body.vetrina-config-loading .product-card .price,
body.vetrina-config-loading #productPrice,
body.vetrina-config-loading #tabBtnOrders { /* nasconde tab ordini in account.html */
  display: none !important;
}

body.vetrina-mode .vetrina-shipping-link,
body.vetrina-mode .vetrina-payment-link {
  display: none !important;
}

/* In vetrina mostra il footer WhatsApp nella wishlist */
body:not(.vetrina-mode) .wishlist-footer { display: none; }

/* ── WISHLIST ─────────────────────────────────────────────── */

.wishlist-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 14px;
  cursor: pointer;
  position: relative;
  padding: 0;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.14);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.wishlist-toggle:hover {
  background: #ffe4e6;
  border-color: #fda4af;
  transform: translateY(-1px);
}

.wishlist-toggle-heart {
  width: 22px;
  height: 22px;
  display: block;
  fill: #e11d48;
  filter: drop-shadow(0 3px 5px rgba(225, 29, 72, 0.24));
}

.wishlist-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  background: #ef4444;
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid white;
  pointer-events: none;
}

/* Cuoricino sulla card prodotto */
.heart-icon {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}

.wishlist-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(255, 247, 248, 0.94);
  border: 1px solid #fecdd3;
  border-radius: 14px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s, opacity 0.15s;
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 18px rgba(244, 63, 94, 0.12);
  line-height: 1;
  color: #f43f5e;
  opacity: 0.82;
}

.wishlist-btn .heart-icon {
  width: 19px;
  height: 19px;
  transform: scale(0.94);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.wishlist-btn:hover {
  background: #ffe4e6;
  border-color: #fda4af;
  transform: translateY(-1px) scale(1.04);
  opacity: 1;
}

.wishlist-btn:hover .heart-icon,
.wishlist-btn.is-wished .heart-icon {
  transform: scale(1.05);
}

.wishlist-btn.is-wished {
  background: #ffe4e6;
  border-color: #fb7185;
  color: #e11d48;
  opacity: 1;
}

/* Cuoricino nella riga azioni card (add-to-cart-btn riutilizzato) */
.card-actions .add-to-cart-btn {
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 16px;
  background: #fff7f8;
  border-color: #fecdd3;
  color: #f43f5e;
  box-shadow: 0 8px 18px rgba(244, 63, 94, 0.10);
  opacity: 1;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, color 0.15s, transform 0.15s;
}

.card-actions .add-to-cart-btn .heart-icon {
  width: 21px;
  height: 21px;
  transform: scale(0.96);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.card-actions .add-to-cart-btn.is-wished {
  background: #ffe4e6;
  border-color: #fb7185;
  color: #e11d48;
  box-shadow: 0 10px 22px rgba(225, 29, 72, 0.18);
}

.card-actions .add-to-cart-btn:hover {
  background: #ffe4e6;
  border-color: #fda4af;
  color: #e11d48;
}

.card-actions .add-to-cart-btn:hover .heart-icon,
.card-actions .add-to-cart-btn.is-wished .heart-icon {
  transform: scale(1.08);
  filter: drop-shadow(0 4px 6px rgba(225, 29, 72, 0.22));
}

/* Drawer wishlist (struttura identica al cart-drawer) */
.wishlist-overlay {
  position: fixed;
  inset: 0;
  background: rgba(40,32,80,0.35);
  z-index: 299;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.wishlist-overlay.is-open { opacity: 1; pointer-events: auto; }

.wishlist-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(380px, 100vw);
  height: 100%;
  background: white;
  z-index: 300;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 30px rgba(40,32,80,0.18);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}
.wishlist-drawer.is-open { transform: translateX(0); }

.wishlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border-bottom: 1.5px solid #ede8ff;
  flex-shrink: 0;
}
.wishlist-header h3 { margin: 0; font-size: 1.05rem; }

.wishlist-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #888;
}

.wishlist-items {
  list-style: none;
  margin: 0;
  padding: 0.8rem 1rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.wishlist-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #9088b8;
  font-size: 0.9rem;
}

.wishlist-footer {
  padding: 0.9rem 1rem;
  border-top: 1.5px solid #ede8ff;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}
