/* Shop PPL — nastroadesivo.org */
.shop-page .container {
  max-width: 1140px;
}

.shop-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.8rem var(--space);
  background: #fff;
  color: var(--color-text);
  border-bottom: 1px solid #e4e0d6;
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.shop-top-main { display: flex; align-items: center; gap: 0.85rem; }
.shop-top a { color: inherit; text-decoration: none; }
.shop-contacts { display: flex; gap: 1.1rem; align-items: center; font-size: 0.92rem; }
.shop-top .brand {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.12rem;
}
.shop-top .brand em {
  font-style: normal;
  color: var(--color-primary);
}
.shop-top .nav-phone { font-weight: 650; }
.shop-top .cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  flex-shrink: 0;
}
.cart-badge {
  display: inline-flex;
  min-width: 1.3rem;
  height: 1.3rem;
  padding: 0 0.38rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  align-items: center;
  justify-content: center;
}

.shop-page { padding: 1.5rem 0 4.5rem; }
.shop-crumb {
  font-size: 0.85rem;
  color: #666;
  margin: 0 0 1.25rem;
}
.shop-crumb a { color: inherit; }

.pdp {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: start;
  min-width: 0;
}
.pdp-visual,
.preview-studio,
.tape-stage {
  min-width: 0;
}

.pdp-visual {
  background: #fff;
  border: 1px solid #e7e4dc;
  border-radius: 12px;
  padding: 1rem 1rem 1.15rem;
  overflow: hidden;
}
.preview-studio {
  background: radial-gradient(ellipse at 50% 30%, #fff 0%, #ece8de 100%);
  border-radius: 10px;
  padding: 0.75rem 0.75rem 0.35rem;
}
.preview-label {
  display: flex;
  gap: 0.35rem;
  margin: 0 0 0.5rem;
}
.preview-tab {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  color: #6b675e;
  cursor: pointer;
}
.preview-tab.is-on {
  background: #1a1a1a;
  color: #fff;
}
.studio-photo {
  width: 100%;
  border-radius: 8px;
  background: #fff;
}
.studio-photo:not([hidden]) { display: block; }
.tape-stage[hidden],
.studio-photo[hidden] { display: none !important; }
.tape-stage { display: grid; gap: 0.65rem; min-width: 0; }
.tape-stage canvas {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: block;
  border-radius: 8px;
}
.cfg-fields { margin-top: 1rem; }
.cfg-fields label {
  display: block;
  margin: 0.7rem 0 0.3rem;
  font-weight: 650;
  font-size: 0.92rem;
}
.cfg-fields input[type="text"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font: inherit;
}
.ink-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 0.5rem 0;
}
.ink-row label { display: flex; align-items: center; gap: 0.4rem; font-weight: 600; }
.ink-row label[hidden] { display: none !important; }
.cfg-hint { margin: 0.45rem 0 0; color: #666; font-size: 0.85rem; }

.shop-thumbs { display: flex; gap: 0.5rem; margin-top: 0.9rem; flex-wrap: wrap; }
.shop-thumb {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  background: #fff;
}
.shop-thumb.active { border-color: var(--color-primary); }

.pdp-buy {
  position: sticky;
  top: 4.4rem;
  background: #fff;
  border: 1px solid #e7e4dc;
  border-radius: 12px;
  padding: 1.35rem 1.4rem 1.5rem;
  box-shadow: 0 12px 36px rgba(26, 26, 26, 0.06);
}
.pdp-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.pdp-buy h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  line-height: 1.2;
  margin: 0 0 0.4rem;
}
.pdp-lead { margin: 0 0 1rem; color: #444; }

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
}
.trust-pills li {
  font-size: 0.78rem;
  font-weight: 650;
  background: #f3f1ea;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
}

.choice-label {
  display: block;
  font-weight: 700;
  margin: 0.9rem 0 0.45rem;
  font-size: 0.92rem;
}
.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.choice-card,
.qty-pack,
.swatch {
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: #fff;
  border: 1.5px solid #d7d3c8;
  border-radius: 10px;
  color: inherit;
}
.choice-card {
  padding: 0.75rem 0.8rem;
}
.choice-card .choice-title { display: block; font-weight: 800; }
.choice-card .choice-sub { display: block; font-size: 0.8rem; color: #555; margin-top: 0.15rem; }
.choice-card.active,
.qty-pack.active,
.swatch.active {
  border-color: var(--color-primary);
  background: #fff7f2;
  box-shadow: 0 0 0 1px var(--color-primary);
}

.swatch-row { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.swatch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
}
.dot {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}
.dot-trasp {
  background: linear-gradient(135deg, #eef3f6 50%, #c5d5dc 50%);
}
.dot-bianco { background: #f7f7f4; }
.dot-avana { background: #c4a06a; }

.qty-packs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.qty-pack {
  padding: 0.55rem 0.65rem;
  position: relative;
}
.qty-pack .qty-n { font-weight: 800; font-size: 1.12rem; line-height: 1.1; }
.qty-pack .qty-unit { display: block; font-size: 0.8rem; color: #555; margin-top: 0.15rem; }
.qty-pack .qty-total { display: block; font-size: 0.82rem; font-weight: 700; margin-top: 0.15rem; }
.qty-badge {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--color-accent);
  color: #fff;
  border-radius: 999px;
  padding: 0.12rem 0.42rem;
}
.qty-pack.is-offer .qty-badge { background: var(--color-primary); }
.qty-more {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.85rem;
  font-weight: 650;
}
.qty-more select {
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.5rem 0.6rem;
  font: inherit;
  border-radius: var(--radius);
  border: 1px solid #ccc;
}

.price-block { margin: 0.7rem 0 0.75rem; }
.price-live { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.price-old { text-decoration: line-through; color: #777; margin-right: 0.45rem; font-size: 1.05rem; font-weight: 600; }
.price-unit { margin: 0.15rem 0 0; font-weight: 700; }
.price-note { margin: 0.2rem 0 0; color: #555; font-size: 0.88rem; }

.shop-cta-row { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 1rem; }
.shop-cta-row .btn-acquista { width: 100%; padding: 0.85rem 1rem; }
.shop-help {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: #555;
}
.shop-help a { color: inherit; font-weight: 700; }

.pay-mini {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: #555;
}

.shop-below { margin-top: 2.5rem; }
.shop-section-title {
  font-size: 1.35rem;
  margin: 0 0 1rem;
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.how-steps li {
  background: #fff;
  border: 1px solid #e7e4dc;
  border-radius: 10px;
  padding: 1rem;
  counter-increment: step;
}
.how-steps li::before {
  content: counter(step);
  display: inline-flex;
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: 0.45rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  align-items: center;
  justify-content: center;
}
.how-steps strong { display: block; margin-bottom: 0.2rem; }
.how-steps span { font-size: 0.88rem; color: #555; }

.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.panel {
  background: #fff;
  border: 1px solid #e7e4dc;
  border-radius: 12px;
  padding: 1.15rem 1.2rem;
}
.specs { margin: 0; }
.specs div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.4rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.92rem;
}
.specs dt { color: #666; font-weight: 650; }
.specs dd { margin: 0; }

.listino-mini { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.listino-mini th, .listino-mini td {
  border-bottom: 1px solid #e7e4dc;
  padding: 0.5rem 0.4rem;
  text-align: right;
}
.listino-mini th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: #666; }
.listino-mini th:first-child, .listino-mini td:first-child { text-align: left; }
.listino-mini tr.is-current td { background: #fff7f2; font-weight: 700; }
.listino-mini s { color: #888; margin-left: 0.3rem; }

.shop-faq details {
  background: #fff;
  border: 1px solid #e7e4dc;
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.45rem;
}
.shop-faq summary { cursor: pointer; font-weight: 700; }
.shop-faq p { margin: 0.45rem 0 0; color: #444; }

[hidden] { display: none !important; }

.cfg-fields input[type="file"] { max-width: 100%; }
.shop-sticky {
  display: none;
}
.shop-sticky-btn {
  background: #1f7a4d;
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 0.75rem 1.1rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  min-width: 7.2rem;
  width: max-content;
}
.shop-sticky-btn:hover,
.shop-sticky-btn:focus {
  background: #17633e;
}

.cart-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
}
.checkout-steps {
  display: flex;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #888;
}
.checkout-steps .is-on { color: var(--color-text); }
.checkout-steps .is-on::before { background: var(--color-primary); color: #fff; }
.checkout-steps span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.checkout-steps span::before {
  content: attr(data-n);
  display: inline-flex;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #ddd;
  color: #555;
  font-size: 0.72rem;
  align-items: center;
  justify-content: center;
}

.cart-item,
.form-card,
.summary-card {
  background: #fff;
  border: 1px solid #e7e4dc;
  border-radius: 12px;
  padding: 1.1rem 1.15rem;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.cart-item h2 { font-size: 1.05rem; margin: 0 0 0.35rem; }
.cart-item p { margin: 0.15rem 0; font-size: 0.9rem; color: #555; }
.summary-card { position: sticky; top: 4.4rem; }
.summary-card h2 { margin: 0 0 0.75rem; font-size: 1.1rem; }
.btn-block { width: 100%; text-align: center; }
.empty-cart {
  text-align: center;
  background: #fff;
  border: 1px solid #e7e4dc;
  border-radius: 12px;
  padding: 3rem 1.5rem;
}
.form-card { margin-bottom: 1rem; }
.form-card h2 { font-size: 1.05rem; margin: 0 0 0.85rem; }
.shop-page .form-contatti label { display: block; margin: 0.75rem 0 0.25rem; font-weight: 600; }
.shop-page .form-contatti input:not([type="radio"]):not([type="checkbox"]):not([type="color"]):not([type="file"]),
.shop-page .form-contatti textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font: inherit;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 0.75rem;
}
.tipo-row, .pay-stack { display: grid; gap: 0.45rem; }
.pay-option,
.tipo-option {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  border: 1.5px solid #d7d3c8;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  background: #fff;
}
.pay-option:has(input:checked),
.tipo-option:has(input:checked) {
  border-color: var(--color-primary);
  background: #fff7f2;
}
.pay-option strong, .tipo-option strong { display: block; }
.pay-option small, .tipo-option small { display: block; color: #555; font-size: 0.82rem; }
.checkout-total { font-size: 1.15rem; margin: 0.5rem 0; }
.venditore-box { font-size: 0.82rem; color: #555; margin-top: 1rem; }
.muted { color: #555; font-size: 0.9rem; }

.shop-page .btn-secondary {
  color: var(--color-text);
  border-color: #333;
}
.shop-page .btn-secondary:hover {
  background: #1a1a1a;
  color: #fff;
}

.thanks-card {
  background: #fff;
  border: 1px solid #e7e4dc;
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  max-width: 40rem;
}
.thanks-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.next-steps { margin: 1rem 0 0; padding-left: 1.2rem; }
.next-steps li { margin: 0.35rem 0; }

.form-message.error { color: #b91c1c; }
.form-message.success { color: #166534; }

@media (max-width: 900px) {
  .pdp, .cart-layout, .checkout-layout, .split-2, .how-steps { grid-template-columns: 1fr; }
  .pdp-buy, .summary-card { position: static; box-shadow: none; }
  .form-grid { grid-template-columns: 1fr; }
  .shop-contacts { display: none; }
  .shop-sticky {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: #fff;
    padding: 0.55rem var(--space) 0.7rem;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
    width: 100%;
  }
  .shop-sticky > div { min-width: 0; }
  .shop-sticky .sticky-price { font-weight: 800; font-size: 1.05rem; }
  .shop-sticky .sticky-unit { display: inline; margin-left: 0.35rem; font-size: 0.8rem; font-weight: 600; color: #555; }
  .shop-sticky-btn {
    width: 100%;
    padding: 0.8rem 1rem;
  }
  body.shop-has-sticky { padding-bottom: 6.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .shop-top, .pdp-buy { position: static; }
}
