/* Area ingrosso (negozianti) */
.ws-hero { max-width: 760px; margin-bottom: 28px; }
.ws-hero h1 { font-size: 36px; margin-bottom: 12px; }
.ws-hero p { color: var(--gray-600); line-height: 1.7; }
.ws-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 22px 0 34px; padding: 0; list-style: none; }
.ws-points li { border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 14px 16px; font-size: 14px; line-height: 1.5; background: var(--white); }
.ws-points strong { display: block; margin-bottom: 4px; }

.ws-muted { color: var(--gray-600); }
.ws-small { font-size: 13px; line-height: 1.5; }
.ws-info { background: #fff7e6; border: 1px solid #f3d7a2; border-radius: 10px; padding: 10px 14px; font-size: 14px; margin-bottom: 14px; }
.ws-error { display: none; color: #b3261e; font-size: 14px; margin-top: 10px; }
.ws-error.show { display: block; }

.ws-auth { max-width: 640px; }
.ws-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.ws-tab { border: 1px solid var(--gray-300); background: var(--white); border-radius: 999px; padding: 9px 16px; font: inherit; font-size: 14px; cursor: pointer; }
.ws-tab.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.ws-form { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 24px; }
.ws-form .field { margin-bottom: 14px; }
.ws-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.ws-form input, .ws-cart textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--gray-300); border-radius: 10px; font: inherit; font-size: 14px; background: var(--white); box-sizing: border-box; }
.ws-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.ws-span2 { grid-column: 1 / -1; }
.ws-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ws-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; margin: 6px 0 16px; cursor: pointer; }
.ws-check input { margin-top: 3px; flex: none; }
.ws-check a { text-decoration: underline; }
@media (max-width: 600px) { .ws-grid { grid-template-columns: 1fr; } .ws-hero h1 { font-size: 28px; } }

.ws-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 28px; max-width: 640px; }
.ws-center h2 { font-size: 22px; margin-bottom: 10px; }
.ws-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.ws-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 12px 16px; margin-bottom: 8px; }

.ws-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; margin-top: 14px; }
@media (max-width: 960px) { .ws-layout { grid-template-columns: 1fr; } }
.ws-catalog-wrap { min-width: 0; }
.ws-section-title { font-size: 22px; margin: 6px 0 12px; }
.ws-catalog + .ws-section-title { margin-top: 34px; }
.ws-preorder-note { background: #f3efff; border: 1px solid #ddd3ff; border-radius: 12px; padding: 10px 14px; font-size: 14px; line-height: 1.5; margin: 0 0 14px; }
.ws-preorder-badge { display: inline-block; align-self: flex-start; background: #f3efff; color: #5b3bb5; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.ws-catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.ws-product { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; }
.ws-product.is-out { opacity: .6; }
.ws-img { aspect-ratio: 1 / 1; background: #f6f6f7; display: flex; align-items: center; justify-content: center; }
.ws-img img { width: 100%; height: 100%; object-fit: contain; }
.ws-noimg { color: var(--gray-500); font-size: 13px; }
.ws-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ws-body h3 { font-size: 16px; line-height: 1.3; }
.ws-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ws-tags span { font-size: 11.5px; background: #f1f1f3; border-radius: 999px; padding: 3px 9px; }
.ws-desc { font-size: 13px; color: var(--gray-600); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ws-price { font-size: 20px; font-weight: 700; }
.ws-price small { font-size: 12px; font-weight: 500; color: var(--gray-600); }
.ws-list, .ws-stock { font-size: 12.5px; color: var(--gray-600); }
.ws-color { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--gray-600); }
.ws-color select { height: 38px; border: 1px solid var(--gray-300); border-radius: 10px; padding: 0 10px; font: inherit; font-size: 14px; color: var(--ink); background: var(--white); }
.ws-battery { display: flex; align-items: center; gap: 8px; font-size: 13px; background: #f4f7ff; border: 1px solid #dfe6ff; border-radius: 10px; padding: 7px 10px; cursor: pointer; }
.ws-battery input { flex: none; }
.ws-add { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.ws-add input { width: 70px; padding: 8px; border: 1px solid var(--gray-300); border-radius: 10px; font: inherit; }
.ws-add .btn { flex: 1; padding: 9px 12px; }

.ws-cart { position: sticky; top: 90px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 18px; }
@media (max-width: 960px) { .ws-cart { position: static; } }
.ws-cart h3 { font-size: 18px; margin-bottom: 12px; }
.ws-lines { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 10px; }
.ws-lines li { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; border-bottom: 1px solid var(--gray-200); padding-bottom: 10px; }
.ws-lines li span { display: block; font-size: 12.5px; }
.ws-line-ctrl { display: flex; align-items: center; gap: 6px; }
.ws-line-ctrl input { width: 62px; padding: 6px; border: 1px solid var(--gray-300); border-radius: 8px; font: inherit; }
.ws-remove { border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: var(--gray-500); }
.ws-totals { margin: 0 0 14px; font-size: 14px; }
.ws-totals div { display: flex; justify-content: space-between; padding: 3px 0; }
.ws-totals dd { margin: 0; }
.ws-grand { font-weight: 700; font-size: 16px; border-top: 1px solid var(--gray-200); margin-top: 6px; padding-top: 8px !important; }
.ws-pay { border: 1px solid var(--gray-200); border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; font-size: 14px; }
.ws-pay legend { font-weight: 600; font-size: 13px; padding: 0 4px; }
.ws-pay label { display: flex; gap: 8px; align-items: center; padding: 4px 0; cursor: pointer; }
.ws-pay .is-disabled { color: var(--gray-500); cursor: not-allowed; }
.ws-cart .field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.ws-cart .field { margin-bottom: 12px; }
.ws-success h3 { font-size: 18px; margin-bottom: 8px; }
.ws-success p { margin-bottom: 14px; font-size: 14px; }

.ws-orders { margin-top: 40px; }
.ws-orders h2 { font-size: 22px; margin-bottom: 12px; }
.ws-table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); }
.ws-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ws-table th, .ws-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--gray-200); vertical-align: top; }
.ws-status { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 12px; background: #f1f1f3; }
.ws-status-pagato, .ws-status-consegnato { background: #e3f5e8; color: #1d6b35; }
.ws-status-annullato { background: #fde8e8; color: #9b1c1c; }

/* ===== Accesso e registrazione negozianti (redesign) ===== */
.ws-points { gap: 0; margin: 18px 0 30px; }
.ws-points li { border: 0; border-left: 2px solid var(--gray-200); border-radius: 0; background: none; padding: 2px 18px; color: var(--gray-600); }
.ws-points li strong { color: var(--ink); font-weight: 600; }
@media (max-width: 600px) { .ws-points li { padding: 10px 14px; } }

.ws-auth2 {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  max-width: 1040px; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--white); box-shadow: 0 24px 60px -28px rgba(30, 16, 40, 0.28), 0 2px 8px rgba(10, 10, 11, 0.05);
  animation: wsRise .45s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes wsRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ws-auth2 { animation: none; } }

.ws-auth-side {
  position: relative; color: #f4f1ee; padding: 40px 36px 44px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255, 95, 109, 0.20), transparent 55%),
    radial-gradient(90% 70% at 100% 100%, rgba(162, 75, 255, 0.16), transparent 60%),
    #141216;
  isolation: isolate;
}
.ws-auth-side::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.ws-auth-kicker { display: inline-block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(244, 241, 238, .62); margin-bottom: 14px; }
.ws-auth-side h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 500; text-wrap: balance; margin-bottom: 28px; }
.ws-steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 20px; }
.ws-steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; }
.ws-steps li::before {
  content: counter(s); grid-row: span 2; width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center; font-family: var(--font-display); font-size: 16px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
}
.ws-steps b { font-weight: 600; font-size: 15px; }
.ws-steps span { color: rgba(244, 241, 238, .66); font-size: 13.5px; line-height: 1.5; }

.ws-auth-main { padding: 32px 36px 36px; min-width: 0; }
.ws-seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: 14px; padding: 4px; margin-bottom: 22px; }
.ws-seg .ws-tab { position: relative; z-index: 1; border: 0; background: none; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14px; font-weight: 500; color: var(--gray-600); cursor: pointer; transition: color .2s ease; }
.ws-seg .ws-tab.active { color: var(--ink); background: none; }
.ws-seg .ws-tab:not(.active):hover { color: var(--ink); }
.ws-seg-ind { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 10px; background: var(--white); box-shadow: 0 1px 2px rgba(10, 10, 11, .08), 0 4px 12px -6px rgba(10, 10, 11, .18); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.ws-seg[data-mode="register"] .ws-seg-ind { transform: translateX(100%); }

.ws-form2 { background: none; border: 0; padding: 0; }
.ws-form-title { font-size: 24px; letter-spacing: -0.015em; font-weight: 500; margin-bottom: 4px; }
.ws-form-sub { color: var(--gray-600); font-size: 14px; margin-bottom: 20px; }
.ws-form2 .field { margin-bottom: 14px; }
.ws-form2 label { font-weight: 500; color: var(--ink); }
.ws-form2 input:not([type="checkbox"]) {
  height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--gray-200);
  background: var(--gray-50); transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.ws-form2 input:not([type="checkbox"]):hover { border-color: var(--gray-300); }
.ws-form2 input:not([type="checkbox"]):focus { outline: none; background: var(--white); border-color: var(--ink); box-shadow: 0 0 0 4px rgba(20, 18, 22, .08); }
.ws-form2 .hint { display: block; font-size: 12px; color: var(--gray-500); margin-top: 6px; }

.ws-group { border: 0; padding: 0; margin: 0 0 6px; min-width: 0; }
.ws-group legend { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-500); font-weight: 600; margin-bottom: 10px; padding: 0; }

.ws-pw { position: relative; }
.ws-pw input { padding-right: 48px !important; }
.ws-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 9px; background: none; color: var(--gray-500); cursor: pointer; display: grid; place-items: center; transition: color .2s ease, background-color .2s ease; }
.ws-eye svg { width: 19px; height: 19px; }
.ws-eye:hover { color: var(--ink); background: var(--gray-100); }
.ws-eye[aria-pressed="true"] { color: var(--ink); }

.ws-more { border: 1px dashed var(--gray-200); border-radius: 14px; padding: 4px 16px; margin: 4px 0 16px; background: var(--white); }
.ws-more[open] { padding-bottom: 14px; border-style: solid; }
.ws-more summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 0; font-weight: 500; font-size: 14.5px; }
.ws-more summary::-webkit-details-marker { display: none; }
.ws-more summary::after { content: "+"; margin-left: auto; font-size: 20px; line-height: 1; color: var(--gray-500); transition: transform .2s ease; }
.ws-more[open] summary::after { transform: rotate(45deg); }
.ws-more summary small { font-size: 12px; color: var(--gray-500); font-weight: 400; background: var(--gray-50); border-radius: 6px; padding: 2px 7px; }
.ws-more-note { font-size: 12.5px; color: var(--gray-500); line-height: 1.5; margin: 2px 0 0; }

.ws-form2 .ws-check { color: var(--gray-600); }
.ws-submit { height: 50px; font-size: 15px; transition: transform .15s ease, opacity .2s ease; }
.ws-submit:active:not(:disabled) { transform: translateY(1px) scale(.99); }
.ws-submit.is-busy { opacity: .7; cursor: progress; }
.ws-alt { text-align: center; color: var(--gray-600); font-size: 13.5px; margin-top: 16px; }
.ws-alt a, .ws-link { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.ws-link { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; }

.ws-error.show { display: flex; gap: 10px; align-items: flex-start; background: #fff4f3; border: 1px solid #f6d3cf; color: #9b1c1c; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; line-height: 1.45; }
.ws-error.show::before { content: "!"; flex: none; width: 18px; height: 18px; border-radius: 50%; background: #c2362b; color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 1px; }
.ws-auth2 .ws-info { border-radius: 12px; }

@media (max-width: 860px) {
  .ws-auth2 { grid-template-columns: 1fr; }
  .ws-auth-side { padding: 28px 22px 30px; }
  .ws-auth-side h2 { margin-bottom: 20px; }
  .ws-auth-main { padding: 24px 20px 28px; }
}

/* allineamento etichette (anche quelle annidate, es. CAP/Prov.) e casella privacy */
.ws-form2 .field label { display: block; margin-bottom: 0; }
.ws-form2 .ws-row2 > div { display: flex; flex-direction: column; gap: 8px; }
.ws-form .ws-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.ws-form .ws-check input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--ink); }
@media (max-width: 860px) { .ws-auth-main { order: -1; } .ws-seg .ws-tab { font-size: 13.5px; padding: 10px 8px; } }
