:root {
  --pink: #d4377a;
  --black: #0b0b0d;
  --text: #1f2024;
  --muted: #666b75;
  --line: #e7e7eb;
  --bg: #fafafa;
  --soft: #fff5f9;
  --green: #2f8f46;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-base, Inter, Segoe UI, Arial, sans-serif);
  color: var(--text);
  background: var(--bg);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* TOP RIVENDITORI */

.top-rivenditori {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px clamp(16px, 4vw, 56px);
  color: #fff;
  background: var(--pink);
  font-size: 13px;
  font-weight: 800;
}

.top-rivenditori a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.top-rivenditori-login {
  white-space: nowrap;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 82px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(16px, 4vw, 56px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.logo img {
  width: auto;
  height: 58px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.main-nav a,
.btn {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a:hover,
.main-nav a.active,
.main-nav .cart-pill,
.btn.primary {
  color: #fff;
  background: var(--pink);
  border-color: var(--pink);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: #fff;
  font-size: 28px;
}

/* HERO */

.hero {
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 52px clamp(18px, 6vw, 84px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .35)),
    url('../img/beauty-hero.svg') center / cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, .48), rgba(0, 0, 0, .30));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 850px;
}

.hero h1 {
  max-width: 850px;
  margin: 0 0 16px;
  font-size: clamp(36px, 7vw, 76px);
  line-height: 1;
}

.hero p {
  max-width: 680px;
  color: #f6dce8;
  font-size: 18px;
}

.hero-slider-bg-track {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-slider-bg-item {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .7s ease, transform 7s ease;
}

.hero-slider-bg-item.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slider-bg-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.48) saturate(.92);
}

.hero-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 52px;
  z-index: 5;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-slider-dots button {
  width: 30px;
  height: 7px;
  padding: 0;
  background: rgba(255, 255, 255, .42);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.hero-slider-dots button:hover {
  transform: scale(1.08);
}

.hero-slider-dots button.active {
  background: #fff;
}

/* SEARCH */

.searchbar {
  position: relative;
  display: flex;
  max-width: 720px;
  margin-top: 26px;
  padding: 8px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .20);
}

.searchbar input {
  flex: 1;
  padding: 14px 18px;
  border: 0;
  outline: 0;
  font-size: 16px;
}

.searchbar button {
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-weight: 800;
}

.live-results {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: 0;
  z-index: 20;
  overflow: hidden;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .22);
}

.live-results.open {
  display: block;
}

.live-item {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.live-item:hover {
  background: var(--soft);
}

.live-item img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  background: #111;
  border-radius: 8px;
}

.live-item strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}

.live-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.live-item em {
  color: var(--pink);
  font-style: normal;
  font-weight: 900;
}

.live-empty {
  padding: 16px;
  color: var(--muted);
}

/* HOME SLIDER */

.home-slider-section {
  padding: 28px clamp(16px, 5vw, 72px) 8px;
  background: var(--bg);
}

.home-slider {
  position: relative;
  overflow: hidden;
  background: #111;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(20, 20, 20, .12);
}

.home-slider-track {
  position: relative;
  min-height: 320px;
}

.home-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  min-height: 320px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.home-slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

.home-slide picture,
.home-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-slide img {
  object-fit: cover;
}

.home-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .68), rgba(0, 0, 0, .18), rgba(0, 0, 0, .08));
  pointer-events: none;
}

.home-slide-content {
  position: relative;
  z-index: 2;
  width: min(560px, 72%);
  padding: 42px clamp(24px, 5vw, 62px);
  color: #fff;
}

.home-slide-content h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.02;
}

.home-slide-content p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.5;
}

.home-slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  color: #fff;
  background: rgba(0, 0, 0, .42);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.home-slider-arrow:hover {
  background: rgba(0, 0, 0, .68);
}

.home-slider-arrow.prev {
  left: 14px;
}

.home-slider-arrow.next {
  right: 14px;
}

.home-slider-dots {
  position: absolute;
  right: 22px;
  bottom: 18px;
  z-index: 4;
  display: flex;
  gap: 7px;
}

.home-slider-dots button {
  width: 28px;
  height: 7px;
  padding: 0;
  background: rgba(255, 255, 255, .45);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.home-slider-dots button.active {
  background: #fff;
}

/* HOME BLOCCO COMMERCIALE PERSONALIZZATO */

.home-commercial-section {
  padding-top: 28px;
}

.home-commercial-wrap {
  display: grid;
  gap: 22px;
}

.home-commercial-catalog {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, .8fr);
  align-items: center;
  gap: 34px;
  padding: clamp(28px, 5vw, 58px);
  color: var(--home-block-text);
  background:
    radial-gradient(circle at 82% 12%, color-mix(in srgb, var(--home-block-accent) 34%, transparent) 0 220px, transparent 222px),
    linear-gradient(135deg, color-mix(in srgb, var(--home-block-bg) 92%, #ffffff 8%), var(--home-block-bg));
  border-radius: 28px;
  box-shadow: 0 22px 54px rgba(0,0,0,.12);
}

.home-commercial-catalog::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,.74), rgba(0,0,0,.28), rgba(0,0,0,.58));
  pointer-events: none;
}

.home-commercial-catalog-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .52;
}

.home-commercial-copy,
.home-commercial-products {
  position: relative;
  z-index: 2;
}

.home-commercial-copy span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 8px 14px;
  color: var(--home-block-text);
  background: color-mix(in srgb, var(--home-block-accent) 48%, transparent);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.home-commercial-copy h2 {
  max-width: 620px;
  margin: 0;
  color: var(--home-block-text);
  font-size: clamp(34px, 5vw, 62px);
  line-height: .98;
  font-weight: 950;
}

.home-commercial-copy p {
  max-width: 580px;
  margin: 16px 0 22px;
  color: var(--home-block-text);
  opacity: .88;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.55;
}

.home-commercial-main-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  color: var(--home-block-btn-text);
  background: var(--home-block-btn);
  border-radius: 999px;
  font-weight: 950;
  box-shadow: 0 14px 30px color-mix(in srgb, var(--home-block-btn) 32%, transparent);
}

.home-commercial-main-btn:hover {
  transform: translateY(-1px);
}

.home-commercial-products {
  width: 100%;
  max-width: 560px;
  overflow: hidden;
  padding: 18px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 24px;
  backdrop-filter: blur(8px);
}

.home-commercial-products-viewport {
  width: 100%;
  overflow: hidden;
}

.home-commercial-products-track {
  display: flex;
  width: 100%;
  gap: 0;
  overflow: visible;
  transition: transform .45s ease;
  will-change: transform;
}

.home-commercial-products-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, auto);
  gap: 12px;
  align-content: start;
}

.home-commercial-mini-product {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 10px 12px;
  color: var(--text);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
}

.home-commercial-mini-product span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 92px;
  padding: 10px;
  overflow: hidden;
  background: #fff;
  border-radius: 14px;
}

.home-commercial-mini-product img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}

.home-commercial-mini-product small {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.home-commercial-mini-product em {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.15;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-commercial-mini-product b {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.24;
  font-weight: 900;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.home-commercial-mini-product strong {
  display: block;
  color: var(--pink);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 950;
}

.home-commercial-products-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 13px;
}

.home-commercial-products-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(255,255,255,.55);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}

.home-commercial-products-dots button.active {
  width: 26px;
  background: var(--home-block-accent);
}

.home-commercial-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.home-commercial-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  color: #fff;
  background: #111;
  border-radius: 26px;
  box-shadow: 0 18px 42px rgba(0,0,0,.10);
}

.home-commercial-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .82;
  transition: transform .35s ease;
}

.home-commercial-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.76), rgba(0,0,0,.14));
}

.home-commercial-card span {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 9px;
}

.home-commercial-card em {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  color: #fff;
  background: color-mix(in srgb, var(--home-block-accent) 56%, transparent);
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.home-commercial-card strong {
  max-width: 340px;
  color: #fff;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.04;
  font-weight: 950;
}

.home-commercial-card:hover img {
  transform: scale(1.04);
}

@media (max-width: 1100px) {
  .home-commercial-catalog {
    grid-template-columns: 1fr;
  }

  .home-commercial-products {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .home-commercial-catalog {
    min-height: auto;
    padding: 24px;
    border-radius: 22px;
  }

  .home-commercial-copy h2 {
    font-size: 34px;
  }

  .home-commercial-products {
    max-width: 100%;
  }

  .home-commercial-mini-product {
    grid-template-columns: 118px minmax(0, 1fr);
    min-height: 106px;
  }

  .home-commercial-mini-product span {
    width: 118px;
    height: 84px;
  }

  .home-commercial-duo {
    grid-template-columns: 1fr;
  }

  .home-commercial-card {
    min-height: 230px;
    padding: 22px;
    border-radius: 22px;
  }
}

@media (max-width: 520px) {
  .home-commercial-products {
    padding: 12px;
  }

  .home-commercial-mini-product {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
    min-height: 96px;
    padding: 9px;
    border-radius: 15px;
  }

  .home-commercial-mini-product span {
    width: 96px;
    height: 76px;
  }

  .home-commercial-mini-product b {
    font-size: 11px;
    -webkit-line-clamp: 3;
  }

  .home-commercial-mini-product strong {
    font-size: 12px;
  }
}

/* SEZIONI */

.section {
  padding: 42px clamp(16px, 5vw, 72px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
}

.muted {
  color: var(--muted);
}

/* GRID E CARD */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

.category-card,
.product-card,
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(20, 20, 20, .04);
}

.category-card {
  padding: 22px;
}

.category-card small {
  color: var(--pink);
  font-weight: 800;
}

.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-media {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  background: #fff;
  padding: 6px;
}

.product-media img {
  width: 100%;
  height: 100%;
  max-width: 82%;
  max-height: 82%;
  object-fit: contain;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  padding: 16px;
}

.product-body h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.product-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 22px;
}

.badges span {
  padding: 4px 8px;
  color: var(--pink);
  background: var(--soft);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.price {
  margin-top: auto;
  font-size: 19px;
  font-weight: 900;
}

.price del {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

/* LAYOUT */

.layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 22px;
}

/* SIDEBAR FILTRI */

.sidebar {
  align-self: start;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.catalog-sidebar {
  position: sticky;
  top: 104px;
}

.sidebar label {
  display: block;
  margin: 14px 0 6px;
  font-size: 13px;
  font-weight: 800;
}

.filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.filter-heading h2 {
  margin: 0;
  font-size: 20px;
}

.filter-heading a {
  color: var(--pink);
  font-size: 13px;
  font-weight: 800;
}

.filter-block {
  padding: 14px 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.filter-block:last-child {
  border-bottom: 1px solid var(--line);
}

.filter-block h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.facet-option {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 !important;
  padding: 9px 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.facet-option input {
  margin-right: 8px;
}

.facet-option span {
  flex: 1;
}

.facet-color-label {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.facet-color-dot {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  display: inline-block;
  border: 2px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .24);
}

.facet-option em {
  min-width: 30px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.facet-option.active,
.facet-option:hover {
  color: var(--pink);
}

.facet-extra.is-hidden {
  display: none !important;
}

.facet-more {
  width: 100%;
  margin-top: 8px;
  padding: 9px 12px;
  color: var(--pink);
  background: var(--soft);
  border: 1px solid #f4bfd5;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.category-link-group {
  margin: 0;
  border: 0;
}

.category-link-group summary {
  list-style: none;
}

.category-link-group summary::-webkit-details-marker {
  display: none;
}

.category-link-group .category-link {
  padding: 9px 0;
}

.facet-children {
  margin-left: 12px;
  padding-left: 12px;
  border-left: 2px solid var(--soft);
}

.filter-actions {
  margin-top: 16px;
}

.filter-actions .btn {
  width: 100%;
}

/* FORM */

.input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

/* BREADCRUMB */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--pink);
  font-weight: 800;
}

.breadcrumb em {
  color: #b4b7bf;
  font-style: normal;
}

/* CATALOGO */

.catalog-page {
  padding-top: 28px;
}

.catalog-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(20, 20, 20, .04);
}

.catalog-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

.catalog-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.catalog-layout {
  align-items: start;
}

.catalog-results {
  min-width: 0;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.catalog-toolbar-info {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 6px;
  width: auto;
  color: var(--muted);
  white-space: nowrap;
}

.catalog-toolbar-info strong {
  color: var(--text);
  font-size: 22px;
}

.catalog-toolbar-info span {
  font-weight: 800;
}

.catalog-toolbar-info small {
  margin-left: 8px;
  color: var(--muted);
}

.catalog-sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

.catalog-sort label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.catalog-sort select {
  min-width: 190px;
  font-weight: 800;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.active-filters a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--pink);
  background: var(--soft);
  border: 1px solid #f4bfd5;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.active-filters strong {
  font-size: 16px;
  line-height: 1;
}

.active-filters .active-filters-reset {
  color: var(--text);
  background: #fff;
  border-color: var(--line);
}

.catalog-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.empty-state {
  padding: 40px 24px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.empty-state h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.empty-state p {
  margin: 0 0 18px;
  color: var(--muted);
}

/* PRODOTTO */

.product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 520px) 1fr;
  gap: 36px;
}

.gallery-main {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.gallery-main img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.detail-box {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-box h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 48px);
}

/* TABELLE E FORM */

.table {
  width: 100%;
  background: #fff;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.table th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.forms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.notice {
  padding: 14px;
  margin: 14px 0;
  color: #7e1e47;
  background: #fff4f8;
  border: 1px solid #f4bfd5;
  border-radius: 8px;
}

/* PAGINAZIONE */

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 26px;
}

.pagination a,
.pagination span {
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
}

.pagination a.active {
  color: #fff;
  background: var(--pink);
  border-color: var(--pink);
}


/* ADMIN */

.admin-shell {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}

.admin-side {
  padding: 22px;
  color: #fff;
  background: #111;
}

.admin-side img {
  max-width: 180px;
  margin-bottom: 20px;
}

.admin-side a {
  display: block;
  padding: 10px;
  color: #fff;
  border-radius: 8px;
}

.admin-side a:hover {
  background: #2b2b2b;
}

.admin-main {
  padding: 28px;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.kpi {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.kpi strong {
  font-size: 30px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}


/* MARCHI */

.brands-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.brand-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(20, 20, 20, .04);
}

.brand-card:hover {
  color: var(--pink);
  border-color: #f4bfd5;
  background: var(--soft);
}

.brand-card span {
  font-size: 18px;
  font-weight: 900;
}

.brand-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

/* PAGINA PRODOTTO MIGLIORATA */

.product-section {
  padding-top: 28px;
}

.product-detail-enhanced {
  align-items: start;
}

.product-gallery {
  display: grid;
  gap: 14px;
}

.gallery-main-zoom {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-main-zoom span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 12px;
  color: #fff;
  background: rgba(0, 0, 0, .72);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.gallery-main-zoom img {
  transition: transform .25s ease;
}

.gallery-main-zoom:hover img {
  transform: scale(1.08);
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 10px;
}

.product-thumbs button {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.product-thumbs button.active,
.product-thumbs button:hover {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px var(--soft);
}

.product-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-buy-box {
  position: sticky;
  top: 104px;
}

.product-badges {
  margin-bottom: 14px;
}

.badges .badge-stock {
  color: var(--green);
  background: #effaf2;
}

.badges .badge-out {
  color: #9f1d1d;
  background: #fff0f0;
}

.brand-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 12px;
  color: var(--pink);
  background: var(--soft);
  border: 1px solid #f4bfd5;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.brand-label strong {
  color: var(--text);
}

.product-buy-box h1 {
  margin-bottom: 14px;
}

.product-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}

.product-meta-line a {
  color: var(--pink);
  font-weight: 800;
}

.product-category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.product-category-tags a {
  padding: 7px 10px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.product-category-tags a:hover {
  color: var(--pink);
  border-color: #f4bfd5;
  background: var(--soft);
}

.product-price-box {
  display: grid;
  gap: 4px;
  margin: 18px 0;
}

.product-price-box del {
  color: var(--muted);
  font-size: 15px;
}

.product-price-box strong {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
}

.product-price-box em {
  color: var(--pink);
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}

.product-short-description {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.product-actions {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 8px;
  margin-top: 16px;
}

.product-actions label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.product-actions input {
  margin-top: 6px;
  height: 40px;
}

.product-actions .btn {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 9px 16px;
  font-size: 14px;
}

.product-actions .btn:last-child {
  grid-column: 2;
}

.availability-notice-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 18px 0 12px;
  padding: 16px;
  background: #effaf2;
  border: 1px solid #bfe6cd;
  border-radius: 14px;
}

.availability-notice-form label {
  display: grid;
  gap: 8px;
  color: #246b36;
  font-size: 13px;
  font-weight: 900;
}

.availability-notice-form .input {
  min-height: 44px;
  border-color: #bfe6cd;
  background: #fff;
}

.availability-notice-form .btn {
  width: fit-content;
  min-width: 150px;
  min-height: 42px;
  margin-top: 4px;
}

.availability-notice-message {
  min-height: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.availability-notice-message.is-ok {
  color: var(--green);
}

.availability-notice-message.is-error {
  color: #9f1d1d;
}

.product-buy-box > form.product-actions[action*="wishlist"] {
  margin-top: 12px;
}

.product-buy-box > form.product-actions[action*="wishlist"] .btn {
  width: 100%;
  min-height: 42px;
  display: grid;
  place-items: center;
}

.product-actions button[disabled] {
  cursor: not-allowed;
  opacity: .55;
}

.back-to-category {
  display: inline-flex;
  margin-top: 18px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 900;
}

.product-info-panel {
  margin-top: 28px;
  padding: 28px;
}

.product-info-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 32px;
}

.product-info-grid h2 {
  margin-top: 0;
}

.product-info-grid p {
  line-height: 1.7;
}

.product-spec-table th {
  width: 42%;
}

.related-products {
  margin-top: 34px;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000001;
  display: none;
  place-items: center;
  padding: 72px 28px 28px;
  background: rgba(0, 0, 0, .86);
}

.gallery-lightbox.open {
  display: grid;
}

.gallery-lightbox img {
  max-width: min(980px, 92vw);
  max-height: calc(100vh - 120px);
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}

.gallery-lightbox button {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1000002;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, .58);
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.gallery-lightbox button:hover {
  background: rgba(212, 55, 122, .92);
}

/* CARRELLO */

.cart-page {
  padding-top: 28px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.cart-items {
  display: grid;
  gap: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 132px 1fr 150px;
  gap: 18px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(20, 20, 20, .04);
}

.cart-item-image {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item-info h2 {
  margin: 8px 0;
  font-size: 19px;
  line-height: 1.25;
}

.cart-item-info h2 a:hover {
  color: var(--pink);
}

.cart-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.cart-item-meta a {
  color: var(--pink);
  font-weight: 800;
}

.cart-item-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}

.cart-qty-form {
  display: flex;
  align-items: end;
  gap: 8px;
}

.cart-qty-form label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.cart-qty-form input {
  width: 86px;
  margin-top: 6px;
}

.cart-remove {
  color: #9f1d1d;
}

.cart-item-price {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 4px;
  text-align: right;
}

.cart-item-price span,
.cart-item-price em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.cart-item-price strong {
  font-size: 17px;
}

.cart-item-price b {
  font-size: 21px;
}

.cart-summary {
  position: sticky;
  top: 104px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(20, 20, 20, .04);
}

.cart-summary h2 {
  margin: 0 0 16px;
}

.cart-summary-row,
.cart-summary-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.cart-summary-row span,
.cart-summary-total span {
  color: var(--muted);
  font-weight: 800;
}

.cart-summary-note {
  margin: 12px 0;
  padding: 12px;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid #f4bfd5;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
}

.cart-summary-total strong {
  font-size: 24px;
}

.cart-checkout,
.cart-continue,
.cart-clear-form .btn {
  width: 100%;
  display: grid;
  place-items: center;
  margin-top: 10px;
}

.cart-clear-form {
  margin: 0;
}

/* CARRELLO COMPATTO */

.compact-cart-layout {
  grid-template-columns: 1fr 330px;
}

.compact-cart-items {
  gap: 10px;
}

.compact-cart-item {
  grid-template-columns: 92px 1fr 118px;
  gap: 14px;
  padding: 12px;
}

.compact-cart-item .cart-item-image {
  padding: 5px;
}

.compact-cart-item .cart-item-info h2 {
  margin: 6px 0;
  font-size: 17px;
  line-height: 1.25;
}

.compact-badges {
  min-height: auto;
  gap: 5px;
}

.compact-badges span {
  padding: 3px 7px;
  font-size: 10px;
}

.compact-cart-meta {
  gap: 6px 10px;
  margin-bottom: 9px;
  font-size: 12px;
}

.compact-cart-actions {
  gap: 8px;
}

.compact-cart-qty-form {
  align-items: end;
  gap: 7px;
}

.compact-cart-qty-form input {
  width: 72px;
  padding: 8px 9px;
}

.compact-cart-price {
  gap: 3px;
}

.compact-cart-price strong {
  font-size: 15px;
}

.compact-cart-price b {
  font-size: 18px;
}

.compact-cart-summary {
  padding: 18px;
}

/* CHECKOUT */

.checkout-page {
  padding-top: 28px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

.checkout-main {
  display: grid;
  gap: 16px;
}

.checkout-card,
.checkout-summary {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(20, 20, 20, .04);
}

.checkout-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.checkout-card-head strong {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--pink);
  border-radius: 999px;
  font-size: 15px;
}

.checkout-card-head h2 {
  margin: 0 0 4px;
  font-size: 22px;
}

.checkout-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.checkout-card label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.checkout-card input,
.checkout-card textarea {
  margin-top: 6px;
}

.field-wide {
  grid-column: 1 / -1;
}

.choice-list {
  display: grid;
  gap: 10px;
}

.choice-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.choice-card:hover,
.choice-card:has(input:checked) {
  border-color: #f4bfd5;
  background: var(--soft);
}

.choice-card input {
  width: auto;
  margin: 0;
}

.choice-card span {
  display: grid;
  gap: 3px;
}

.choice-card strong {
  color: var(--text);
}

.choice-card small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.choice-card em {
  color: var(--pink);
  font-style: normal;
  font-weight: 900;
}

.checkout-summary {
  position: sticky;
  top: 104px;
}

.checkout-summary h2 {
  margin: 0 0 16px;
}

.checkout-products {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.checkout-product {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 10px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.checkout-product img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  background: linear-gradient(135deg, #111, #3a0e21);
  border-radius: 8px;
}

.checkout-product strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
}

.checkout-product span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.checkout-product em {
  color: var(--text);
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}

.checkout-submit {
  width: 100%;
  display: grid;
  place-items: center;
  min-height: 48px;
  margin-top: 12px;
}

/* ORDINE CONFERMATO */

.order-confirmation-page {
  padding-top: 28px;
}

.order-confirmation-hero {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 36px 22px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(20, 20, 20, .04);
}

.order-confirmation-hero span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  font-size: 30px;
  font-weight: 900;
}

.order-confirmation-hero h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
}

.order-confirmation-hero p {
  margin: 0;
  color: var(--muted);
}

.order-confirmation-hero strong {
  padding: 8px 14px;
  color: var(--pink);
  background: var(--soft);
  border: 1px solid #f4bfd5;
  border-radius: 999px;
}

.order-confirmation-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.order-confirmation-main {
  display: grid;
  gap: 16px;
}

.order-confirmation-summary {
  position: sticky;
  top: 104px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(20, 20, 20, .04);
}

.order-confirmation-summary h2 {
  margin: 0 0 16px;
}

.order-lines {
  display: grid;
  gap: 10px;
}

.order-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.order-line:last-child {
  border-bottom: 0;
}

.order-line strong {
  display: block;
}

.order-line span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.order-line em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.order-line b {
  font-size: 17px;
}

.order-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.order-data-grid div {
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.order-data-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.order-data-grid strong {
  font-size: 14px;
  line-height: 1.45;
}

/* AREA CLIENTE */

.account-page {
  padding-top: 28px;
}

.account-orders {
  display: grid;
  gap: 14px;
}

.account-order-card {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 20px;
  align-items: center;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(20, 20, 20, .04);
}

.account-order-number {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 7px 11px;
  color: var(--pink);
  background: var(--soft);
  border: 1px solid #f4bfd5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.account-order-main h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.account-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 13px;
}

.account-order-meta strong {
  color: var(--text);
}

.account-order-side {
  display: grid;
  justify-items: end;
  gap: 8px;
  text-align: right;
}

.tracking-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-order-side strong {
  color: var(--green);
}

.account-order-side em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

/* DETTAGLIO ORDINE PUBBLICO COMPATTO */

.compact-order-hero {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 22px 24px;
  text-align: left;
}

.compact-order-hero span {
  flex: 0 0 auto;
}

.compact-order-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
}

.compact-order-lines {
  gap: 0;
}

.compact-order-line {
  padding: 10px 0;
}

.compact-order-line strong {
  font-size: 14px;
}

.compact-order-line em,
.compact-order-line b {
  font-size: 13px;
}

.compact-order-data {
  gap: 10px;
}

.compact-order-data div {
  padding: 11px 12px;
}

.compact-order-summary {
  padding: 18px;
}

.compact-order-summary h2 {
  font-size: 20px;
}

.order-note-box {
  padding: 14px;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  line-height: 1.55;
}

/* WISHLIST */

.wishlist-page {
  padding-top: 28px;
}

.wishlist-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.wishlist-toolbar strong {
  font-size: 18px;
}

.wishlist-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.wishlist-card {
  display: grid;
  gap: 10px;
}

.wishlist-card-product .product-card {
  height: 100%;
}

.wishlist-card-actions {
  display: grid;
  gap: 8px;
}

.wishlist-card-actions .btn {
  width: 100%;
  display: grid;
  place-items: center;
}

.wishlist-remove {
  color: #9f1d1d;
}

/* COMPATTA FILTRI CATALOGO */

.catalog-sidebar {
  padding: 14px;
}

.filter-heading {
  margin-bottom: 10px;
}

.filter-heading h2 {
  font-size: 19px;
}

.filter-block {
  padding: 10px 0;
}

.filter-block h3 {
  margin-bottom: 6px;
  font-size: 15px;
}

.facet-option {
  min-height: 30px;
  padding: 5px 0;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
}

.category-link-group .category-link {
  padding: 5px 0;
}

.facet-option em {
  min-width: 26px;
  padding: 3px 8px;
  color: var(--pink);
  background: var(--soft);
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
}

.facet-option input {
  margin-right: 6px;
}

.facet-option span {
  font-weight: 500;
}

.filter-block h3 {
  font-weight: 900;
}

.facet-children {
  margin-left: 8px;
  padding-left: 10px;
}

.facet-more {
  margin-top: 6px;
  padding: 7px 10px;
  font-size: 13px;
}

.filter-actions {
  margin-top: 12px;
}

/* HEADER DEFINITIVO */

.top-rivenditori {
  position: relative;
  justify-content: center;
  min-height: 34px;
  padding: 7px clamp(16px, 4vw, 56px);
  background: var(--pink);
  color: #fff;
}

.top-rivenditori-text {
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

.top-rivenditori-text::before {
  content: "(";
}

.top-rivenditori-text::after {
  content: ")";
}

.top-rivenditori-login {
  position: absolute;
  right: clamp(16px, 4vw, 56px);
  top: 50%;
  transform: translateY(-50%);
}

.site-header {
  background: var(--site-header-bg, #050505);
  border-bottom-color: color-mix(in srgb, var(--site-header-bg, #050505) 82%, #ffffff 18%);
}

.main-nav a,
.btn {
  color: var(--site-header-text, #fff);
  background: color-mix(in srgb, var(--site-header-bg, #050505) 88%, #ffffff 12%);
  border-color: color-mix(in srgb, var(--site-header-bg, #050505) 72%, #ffffff 28%);
}

.main-nav a:hover,
.main-nav a.active,
.main-nav .cart-pill,
.btn.primary {
  color: #fff;
  background: var(--pink);
  border-color: var(--pink);
}

/* FILTRO PREZZO */

.price-filter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.price-filter label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.price-filter input {
  margin-top: 5px;
  padding: 8px 9px;
  font-size: 13px;
}

/* SLIDER PREZZO */

.price-slider {
  --price-min-percent: 0%;
  --price-max-percent: 100%;
  position: relative;
  padding: 18px 0 4px;
}

.price-slider::before,
.price-slider::after {
  content: "";
  position: absolute;
  top: 26px;
  left: 0;
  right: 0;
  height: 5px;
  border-radius: 999px;
  pointer-events: none;
}

.price-slider::before {
  background: #e7e7eb;
}

.price-slider::after {
  left: var(--price-min-percent);
  right: calc(100% - var(--price-max-percent));
  background: var(--pink);
}

.price-slider input[type="range"] {
  position: absolute;
  top: 18px;
  left: 0;
  width: 100%;
  height: 22px;
  margin: 0;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  z-index: 2;
}

.price-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  background: transparent;
  border: 0;
}

.price-slider input[type="range"]::-moz-range-track {
  height: 5px;
  background: transparent;
  border: 0;
}

.price-slider input[type="range"]::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  margin-top: -5px;
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
  background: #2b2b2f;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.price-slider input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  pointer-events: auto;
  background: #2b2b2f;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.price-values {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 34px;
  font-weight: 900;
}

.price-values span {
  min-width: 58px;
  padding: 6px 9px;
  color: #fff;
  background: #3a2030;
  border-radius: 999px;
  font-size: 13px;
  text-align: center;
}

/* FOOTER DEFINITIVO */

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0;
  color: var(--site-footer-text, #fff);
  background: var(--site-footer-bg, #241f2d);
}

.site-footer.has-footer-bg {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.site-footer.has-footer-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: inherit;
  opacity: var(--footer-bg-opacity, .25);
  pointer-events: none;
}

.site-footer.has-footer-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, var(--footer-overlay-opacity, .75));
  pointer-events: none;
}

.footer-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px;
  padding: 28px clamp(16px, 5vw, 72px) 46px;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--site-footer-text, #fff);
  font-size: 20px;
  font-weight: 900;
}

.site-footer p {
  margin: 0 0 10px;
  color: var(--site-footer-text, #fff);
  line-height: 1.45;
}

.site-footer a {
  display: block;
  margin: 0 0 9px;
  color: var(--site-footer-text, #fff);
}

.site-footer a:hover {
  color: var(--pink);
}

.social-row,
.pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-row span,
.pay-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 22px;
  padding: 3px 7px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 4px;
  font-size: 11px;
}

.site-footer .muted {
  color: color-mix(in srgb, var(--site-footer-text, #ffffff) 75%, transparent);
}

.footer-bottom {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 18px clamp(16px, 5vw, 72px);
  color: var(--site-footer-text, #fff);
  border-top: 1px solid color-mix(in srgb, var(--site-footer-text, #ffffff) 22%, transparent);
}

.footer-bottom a {
  display: inline;
  margin: 0;
  color: #ff8b3d;
}

/* PAGINE STATICHE */

.page-static-section {
  padding-top: 34px;
}

.page-static-panel {
  max-width: 980px;
  margin: 0 auto;
  padding: 34px;
}

.page-static-panel h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 48px);
}

.page-static-panel p {
  line-height: 1.7;
}


.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
}

.cart-pill svg {
  stroke: #fff;
}

.cart-pill span {
  background: var(--pink);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.mobile-cart-pill {
  display: none;
}

.nav-toggle {
  width: 46px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  display: block;
  background: #fff;
  border-radius: 999px;
}

@media (max-width: 900px) {
  .site-header {
    position: sticky;
    top: 0;
    min-height: 78px;
    height: auto;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .site-header .logo img {
    height: 52px;
  }

  .mobile-cart-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 54px;
    height: 42px;
    margin-left: auto;
    padding: 0 14px;
    color: #fff;
    background: var(--pink);
    border: 1px solid var(--pink);
    border-radius: 999px;
    font-weight: 900;
  }

  .mobile-cart-pill svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
  }

  .mobile-cart-pill span {
    line-height: 1;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: 0;
  }

  .main-nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-left: 0;
    padding: 0 0 14px;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .main-nav .cart-pill {
    display: none !important;
  }
}

@media (min-width: 901px) {
  .mobile-cart-pill {
    display: none !important;
  }

  .nav-toggle {
    display: none !important;
  }

  .main-nav {
    display: flex !important;
  }
}

/* AREA RISERVATA / CHECKOUT COMPATTO */

.compact-hero {
  padding: 22px 26px;
}

.compact-hero h1 {
  font-size: clamp(30px, 4vw, 46px);
}

.checkout-details {
  padding: 0;
  overflow: hidden;
}

.checkout-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
}

.checkout-details summary::-webkit-details-marker {
  display: none;
}

.checkout-details summary span {
  display: flex;
  align-items: center;
  gap: 14px;
}

.checkout-details summary strong {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--pink);
  border-radius: 999px;
  font-size: 14px;
}

.checkout-details summary em {
  color: var(--text);
  font-style: normal;
  font-size: 19px;
  font-weight: 900;
}

.checkout-details summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.checkout-details[open] {
  padding-bottom: 22px;
}

.checkout-details[open] > .forms-grid,
.checkout-details[open] > .order-data-grid,
.checkout-details[open] > .order-note-box,
.checkout-details[open] > textarea {
  margin: 0 22px;
}

.compact-choice-list {
  gap: 8px;
}

.compact-choice-card {
  min-height: 54px;
  padding: 11px 12px;
}

.compact-checkout-summary {
  padding: 18px;
}

.compact-checkout-products {
  gap: 9px;
  max-height: 280px;
  overflow: auto;
  padding-right: 4px;
}

.compact-checkout-products .checkout-product {
  grid-template-columns: 50px 1fr auto;
  gap: 9px;
  padding-bottom: 9px;
}

.compact-checkout-products .checkout-product img {
  width: 50px;
  height: 50px;
}

.account-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.account-toolbar strong {
  display: block;
  font-size: 18px;
}

.account-toolbar span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.compact-empty {
  padding: 26px 22px;
}

.account-layout {
  grid-template-columns: 1fr 340px;
}

.account-orders-compact {
  gap: 9px;
}

.compact-order-card {
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 13px 14px;
}

.compact-order-card .account-order-number {
  margin-bottom: 5px;
  padding: 5px 9px;
}

.compact-order-card h2 {
  margin-bottom: 7px;
  font-size: 17px;
}

.compact-order-card .account-order-meta {
  gap: 6px 12px;
  font-size: 12px;
}

.compact-order-card .account-order-side .btn {
  padding: 8px 13px;
}

.login-layout {
  grid-template-columns: 1fr 330px;
}

.compact-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.compact-check input {
  width: auto;
  margin: 0;
}

.form-actions-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.form-actions-inline .btn,
.form-actions-inline button {
  width: auto;
}

.soft-notice {
  color: #6d2446;
  background: #fff8fb;
}

.checkout-login-inline {
  margin-bottom: 16px;
}

.checkout-login-inline .notice {
  margin: 0 22px 14px;
}

html {
  scroll-behavior: smooth;
}

/* AREA CLIENTE PUBBLICA - RIFINITURA */

.account-page .checkout-card {
  padding: 18px;
}

.account-page .checkout-card-head {
  margin-bottom: 14px;
}

.account-page .checkout-card-head h2 {
  font-size: 20px;
}

.account-page .checkout-card-head p {
  font-size: 13px;
}

.account-page .checkout-details {
  padding: 0;
}

.account-page .checkout-details form.forms-grid {
  margin: 0 22px;
}

.account-page .account-order-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.1;
}

.account-page .account-order-meta strong {
  font-size: 12px;
}

.account-page .checkout-summary h2 {
  font-size: 20px;
}

.account-page .cart-summary-row {
  padding: 10px 0;
}

.account-page .notice {
  margin: 10px 0;
  padding: 12px 14px;
}

.account-page .forms-grid {
  gap: 10px;
}

.account-page .input {
  padding: 10px 11px;
}

.account-page .form-actions-inline {
  padding-top: 4px;
}

/* LOGIN / REGISTRAZIONE COMPATTA */

.account-login-page .checkout-card {
  padding: 18px;
}

.account-login-page .checkout-card-head {
  margin-bottom: 14px;
}

.account-login-page .checkout-card-head h2 {
  font-size: 20px;
}

.account-login-page .checkout-card-head p {
  font-size: 13px;
}

.account-login-page .checkout-details {
  padding: 0;
}

.account-login-page .checkout-details form.forms-grid {
  margin: 0 22px;
}

.account-login-page .forms-grid {
  gap: 10px;
}

.account-login-page .input {
  padding: 10px 11px;
}

.compact-login-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.login-main-card {
  border-color: #f4bfd5;
  box-shadow: 0 12px 30px rgba(212, 55, 122, .08);
}

.account-login-page .cart-summary-row {
  padding: 10px 0;
}

.account-login-page .cart-summary-note {
  font-size: 12px;
}

.account-login-page .notice {
  margin: 10px 0;
  padding: 12px 14px;
}

/* COUPON CHECKOUT */

.coupon-box {
  margin: 14px 0;
  padding: 14px;
  background: var(--soft);
  border: 1px solid #f4bfd5;
  border-radius: 8px;
}

.coupon-box label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.coupon-box input {
  margin-top: 6px;
}

.coupon-box small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

/* =========================================================
   ADMIN UNIFICATO COMPATTO
   Vale per tutte le pagine admin
   ========================================================= */

.admin-main {
  padding: 24px;
}

.admin-main h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}

.admin-main > p.muted {
  margin: 0 0 14px;
  font-size: 13px;
}

.admin-side a.active,
.admin-side a:hover {
  background: #2b2b2b;
}

.admin-main .panel,
.admin-main .checkout-card,
.admin-main .admin-section,
.admin-main .admin-form,
.admin-main .admin-filter-form {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(20, 20, 20, .04);
}

.admin-main label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-main .input,
.admin-main select,
.admin-main textarea {
  margin-top: 5px;
  padding: 9px 10px;
  font-size: 13px;
}

.admin-main textarea {
  min-height: 86px;
}

.admin-main .btn {
  padding: 8px 13px;
  font-size: 13px;
  white-space: nowrap;
}

.admin-main .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-main .forms-grid {
  gap: 10px;
}

/* HEADER PAGINA ADMIN */

.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(20, 20, 20, .04);
}

.admin-section-head h1 {
  margin: 0 0 4px;
}

.admin-section-head p {
  margin: 0;
}

.admin-head-kpi {
  display: grid;
  justify-items: end;
  gap: 2px;
  padding: 8px 12px;
  background: var(--soft);
  border: 1px solid #f4bfd5;
  border-radius: 8px;
}

.admin-head-kpi strong {
  color: var(--pink);
  font-size: 22px;
  line-height: 1;
}

.admin-head-kpi span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

/* DETAILS / FORM ADMIN */

.admin-crud-form,
.admin-main details.panel,
.admin-main details.checkout-card {
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(20, 20, 20, .04);
}

.admin-crud-form summary,
.admin-main details.panel summary,
.admin-main details.checkout-card summary {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.admin-crud-form summary::-webkit-details-marker,
.admin-main details.panel summary::-webkit-details-marker,
.admin-main details.checkout-card summary::-webkit-details-marker {
  display: none;
}

.admin-crud-form summary span,
.admin-main details.panel summary span,
.admin-main details.checkout-card summary span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-crud-form > summary strong,
.admin-crud-section summary strong {
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 7px 13px !important;
  color: #fff !important;
  background: var(--pink) !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  line-height: 1.15 !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: unset !important;
  box-sizing: border-box !important;
}

.admin-main details.panel summary strong,
.admin-main details.checkout-card summary strong {
  font-size: 15px;
  font-weight: 900;
}

.admin-crud-form summary em,
.admin-main details.panel summary em,
.admin-main details.checkout-card summary em {
  color: var(--text);
  font-style: normal;
  font-size: 17px;
  font-weight: 900;
}

.admin-crud-form summary small,
.admin-main details.panel summary small,
.admin-main details.checkout-card summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-crud-form[open],
.admin-main details.panel[open],
.admin-main details.checkout-card[open] {
  padding-bottom: 16px;
}

.admin-crud-form form,
.admin-crud-form > .forms-grid,
.admin-crud-form > .admin-tree-list,
.admin-crud-form > .admin-attributes-grid,
.admin-crud-form > .admin-status-checks,
.admin-main details.panel form,
.admin-main details.checkout-card form {
  margin: 0 16px;
}

.admin-form-actions {
  margin-top: 4px;
}

.admin-crud-form-inner {
  display: grid;
  gap: 10px;
  margin: 0 16px;
}

.admin-crud-form-inner.admin-inline-action-form {
  display: inline-flex;
  width: auto;
  margin: 10px 16px 0;
}

.admin-crud-form-inner.admin-inline-action-form .btn {
  width: auto !important;
}

/* SEZIONI INTERNE CRUD */

.admin-crud-section {
  margin: 0 0 10px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-crud-section summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  cursor: pointer;
}

.admin-crud-section summary span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-crud-section summary em {
  color: var(--text);
  font-style: normal;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 900;
  white-space: nowrap;
}

.admin-crud-section summary small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.admin-crud-section .forms-grid {
  margin: 0;
  padding: 0 14px 14px;
}

/* LISTING ADMIN COMPATTI */

.admin-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0 9px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-list-head strong {
  font-size: 15px;
}

.admin-compact-list {
  display: grid;
  gap: 8px;
}

.admin-compact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 11px 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(20, 20, 20, .035);
}

.admin-compact-row .account-order-main {
  min-width: 0;
}

.admin-compact-row h2 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.2;
  word-break: break-word;
}

.admin-compact-row .account-order-number {
  margin-bottom: 5px;
  padding: 4px 8px;
  font-size: 11px;
}

.admin-compact-row .account-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  line-height: 1.2;
}

.admin-compact-row .account-order-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.1;
  white-space: nowrap;
}

.admin-compact-row .account-order-meta strong {
  font-size: 11px;
}

.admin-compact-row .account-order-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.admin-compact-row .account-order-side .btn {
  padding: 8px 12px;
  white-space: nowrap;
}

.admin-empty-card {
  margin-top: 14px;
}

/* TABELLE ADMIN */

.admin-main .table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-main .table th {
  padding: 10px;
  background: var(--bg);
  font-size: 11px;
  white-space: nowrap;
}

.admin-main .table td {
  padding: 9px 10px;
  font-size: 13px;
  vertical-align: middle;
}

.admin-main .table .btn {
  padding: 7px 10px;
}

/* TAB STATO / FILTRI */

.admin-status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.admin-status-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.admin-status-tabs a.active,
.admin-status-tabs a:hover {
  color: #fff;
  background: var(--pink);
  border-color: var(--pink);
}

.admin-status-tabs strong {
  padding: 2px 7px;
  color: var(--pink);
  background: var(--soft);
  border-radius: 999px;
  font-size: 11px;
}

.admin-status-tabs a.active strong,
.admin-status-tabs a:hover strong {
  color: var(--pink);
  background: #fff;
}

.admin-status-tabs-card {
  padding: 12px;
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-status-tabs-card a {
  min-height: 38px;
}

/* ORDINI ADMIN */

.admin-order-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 82px;
}

.admin-order-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}

.admin-order-topline .account-order-number {
  margin-bottom: 0;
}

.admin-order-status {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 9px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.admin-order-row h2 {
  margin: 0 0 7px;
  font-size: 18px;
  line-height: 1.2;
}

.admin-order-row .account-order-meta {
  gap: 6px;
}

.admin-order-row .account-order-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.admin-order-row .account-order-side .btn {
  padding: 8px 13px;
}

/* PRODOTTI ADMIN */

.admin-product-row {
  grid-template-columns: 68px minmax(0, 1fr) auto;
  min-height: 78px;
}

.admin-product-row h2 {
  font-size: 16px;
}

.admin-list-thumb,
.admin-product-thumb {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-product-thumb img,
.admin-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* FORM MODIFICA COMPLESSI */

.admin-product-form,
.compact-product-edit-form,
.admin-edit-form {
  display: grid;
  gap: 12px;
}

.admin-product-main-card,
.admin-main-card {
  padding: 16px;
}

.admin-product-form .checkout-card-head,
.admin-edit-form .checkout-card-head {
  margin-bottom: 14px;
}

.admin-product-form .checkout-card-head h2,
.admin-edit-form .checkout-card-head h2 {
  font-size: 20px;
}

.admin-product-form .checkout-card-head p,
.admin-edit-form .checkout-card-head p {
  font-size: 13px;
}

.admin-product-form .forms-grid,
.admin-edit-form .forms-grid {
  gap: 10px;
}

.admin-product-form .admin-crud-form > .forms-grid,
.admin-edit-form .admin-crud-form > .forms-grid {
  margin: 0 16px;
}

/* IMMAGINI / GALLERY ADMIN */

.admin-preview,
.compact-admin-preview,
.admin-list-preview {
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  margin: 12px 16px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-gallery-upload {
  display: block;
  margin: 12px 16px;
}

.admin-gallery,
.compact-admin-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin: 12px 16px 0;
}

.admin-gallery > div,
.compact-admin-gallery > div {
  display: grid;
  gap: 8px;
  padding: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-gallery img,
.compact-admin-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

/* MINI PANNELLI / ALBERI / CHECK */

.admin-mini-panel {
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-mini-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.admin-mini-panel summary::-webkit-details-marker {
  display: none;
}

.admin-mini-panel summary strong {
  font-size: 14px;
}

.admin-mini-panel summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-mini-panel .facet-option {
  padding: 7px 12px;
  border-top: 1px solid var(--line);
}

.admin-tree-list,
.admin-attributes-grid {
  display: grid;
  gap: 8px;
}

.admin-tree-children {
  padding-left: 12px;
  margin-left: 12px;
  border-left: 2px solid var(--soft);
}

.admin-status-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-status-checks label {
  padding: 8px 11px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.admin-check {
  min-height: 32px;
}

.admin-check input,
.admin-status-checks input {
  width: auto;
}

/* SALVATAGGIO FISSO */

.admin-sticky-save {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  background: rgba(250, 250, 250, .94);
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.admin-sticky-save .admin-save {
  min-width: 150px;
}

/* RESPONSIVE ADMIN */

@media (max-width: 850px) {
  .admin-main {
    padding: 18px;
  }

  .admin-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-head-kpi {
    justify-items: start;
  }

  .admin-crud-form > summary strong,
  .admin-crud-section summary strong {
    white-space: normal !important;
    text-align: center !important;
  }

  .admin-crud-section summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-crud-section summary span {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .admin-crud-section summary em,
  .admin-crud-section summary small {
    white-space: normal;
  }

  .admin-compact-row,
  .admin-product-row,
  .admin-order-row {
    grid-template-columns: 1fr;
  }

  .admin-compact-row .account-order-side,
  .admin-order-row .account-order-side {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .admin-preview,
  .compact-admin-preview,
  .admin-list-preview {
    width: 100%;
    max-width: 180px;
    height: 140px;
  }

  .admin-gallery,
  .compact-admin-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-sticky-save {
    position: static;
  }

  .admin-sticky-save .admin-save {
    width: 100%;
  }
}

/* ADMIN SEARCH UNIFICATA */

.admin-search-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  margin: 0 0 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-search-form.admin-search-form-wide {
  grid-template-columns: minmax(240px, 1fr) minmax(220px, .8fr) minmax(170px, .45fr) auto auto;
}

.admin-search-form .input {
  margin-top: 0;
}

.admin-search-form .btn {
  width: auto;
  min-width: 96px;
  justify-content: center;
  text-align: center;
}

@media (max-width: 980px) {
  .admin-search-form,
  .admin-search-form.admin-search-form-wide {
    grid-template-columns: 1fr;
  }

  .admin-search-form .btn {
    width: 100%;
  }
}

.field-help {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

/* ADMIN SIDEBAR COMPATTA PROFESSIONALE */

.admin-shell {
  grid-template-columns: 270px minmax(0, 1fr);
}

.admin-side {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 14px 12px;
  overflow: auto;
  background: #0b0b0d;
  border-right: 1px solid #202026;
}

.admin-side img {
  width: 100%;
  max-width: 142px;
  height: auto;
  margin: 0 0 14px;
}

.admin-side a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 35px;
  padding: 7px 10px;
  color: rgba(255, 255, 255, .82);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.15;
  white-space: nowrap;
}

.admin-side a + a {
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.admin-side a::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  opacity: .9;
  background-color: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 18px 18px;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 18px 18px;
}

.admin-side a[href*="index.php"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M3 11l9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M9 20v-6h6v6'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M3 11l9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M9 20v-6h6v6'/%3E%3C/svg%3E");
}

.admin-side a[href*="prodotti.php"]::before,
.admin-side a[href*="prodotto_modifica.php"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M20 7l-8-4-8 4 8 4 8-4z'/%3E%3Cpath d='M4 7v10l8 4 8-4V7'/%3E%3Cpath d='M12 11v10'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M20 7l-8-4-8 4 8 4 8-4z'/%3E%3Cpath d='M4 7v10l8 4 8-4V7'/%3E%3Cpath d='M12 11v10'/%3E%3C/svg%3E");
}

.admin-side a[href*="categorie.php"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M4 7l8-4 8 4-8 4-8-4z'/%3E%3Cpath d='M4 12l8 4 8-4'/%3E%3Cpath d='M4 17l8 4 8-4'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M4 7l8-4 8 4-8 4-8-4z'/%3E%3Cpath d='M4 12l8 4 8-4'/%3E%3Cpath d='M4 17l8 4 8-4'/%3E%3C/svg%3E");
}

.admin-side a[href*="attributi.php"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M4 6h16'/%3E%3Cpath d='M4 12h16'/%3E%3Cpath d='M4 18h16'/%3E%3Ccircle cx='8' cy='6' r='2'/%3E%3Ccircle cx='14' cy='12' r='2'/%3E%3Ccircle cx='10' cy='18' r='2'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M4 6h16'/%3E%3Cpath d='M4 12h16'/%3E%3Cpath d='M4 18h16'/%3E%3Ccircle cx='8' cy='6' r='2'/%3E%3Ccircle cx='14' cy='12' r='2'/%3E%3Ccircle cx='10' cy='18' r='2'/%3E%3C/svg%3E");
}

.admin-side a[href*="marche.php"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M20 12v8H4v-8'/%3E%3Cpath d='M2 7h20v5H2z'/%3E%3Cpath d='M12 7v13'/%3E%3Cpath d='M12 7c-2-4-7-3-6 0'/%3E%3Cpath d='M12 7c2-4 7-3 6 0'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M20 12v8H4v-8'/%3E%3Cpath d='M2 7h20v5H2z'/%3E%3Cpath d='M12 7v13'/%3E%3Cpath d='M12 7c-2-4-7-3-6 0'/%3E%3Cpath d='M12 7c2-4 7-3 6 0'/%3E%3C/svg%3E");
}

.admin-side a[href*="ordini.php"]::before,
.admin-side a[href*="ordine_dettaglio.php"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h12l1 20H5L6 2z'/%3E%3Cpath d='M9 6a3 3 0 0 0 6 0'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h12l1 20H5L6 2z'/%3E%3Cpath d='M9 6a3 3 0 0 0 6 0'/%3E%3C/svg%3E");
}

.admin-side a[href*="clienti.php"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='9' cy='8' r='4'/%3E%3Cpath d='M2 22c1-5 5-8 10-8'/%3E%3Ccircle cx='17' cy='10' r='3'/%3E%3Cpath d='M14 15c4 0 7 3 8 7'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='9' cy='8' r='4'/%3E%3Cpath d='M2 22c1-5 5-8 10-8'/%3E%3Ccircle cx='17' cy='10' r='3'/%3E%3Cpath d='M14 15c4 0 7 3 8 7'/%3E%3C/svg%3E");
}

.admin-side a[href*="iscritti_newsletter.php"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3Cpath d='M7 17h4'/%3E%3Cpath d='M14 17h3'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3Cpath d='M7 17h4'/%3E%3Cpath d='M14 17h3'/%3E%3C/svg%3E");
}

.admin-side a[href*="avvisi_disponibilita.php"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 7 3 9H3c0-2 3-2 3-9'/%3E%3Cpath d='M10 21a2 2 0 0 0 4 0'/%3E%3Cpath d='M12 4v4'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 7 3 9H3c0-2 3-2 3-9'/%3E%3Cpath d='M10 21a2 2 0 0 0 4 0'/%3E%3Cpath d='M12 4v4'/%3E%3C/svg%3E");
}

.admin-side a[href*="carrelli_abbandonati.php"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.6 13.2a2 2 0 0 0 2 1.6h8.8a2 2 0 0 0 2-1.6L23 6H6'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M10 11h4'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.6 13.2a2 2 0 0 0 2 1.6h8.8a2 2 0 0 0 2-1.6L23 6H6'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M10 11h4'/%3E%3C/svg%3E");
}

.admin-side a[href*="coupon.php"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M3 8v4a3 3 0 0 1 0 6v4h18v-4a3 3 0 0 1 0-6V8H3z'/%3E%3Cpath d='M9 9h.01'/%3E%3Cpath d='M15 17h.01'/%3E%3Cpath d='M16 9l-8 8'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M3 8v4a3 3 0 0 1 0 6v4h18v-4a3 3 0 0 1 0-6V8H3z'/%3E%3Cpath d='M9 9h.01'/%3E%3Cpath d='M15 17h.01'/%3E%3Cpath d='M16 9l-8 8'/%3E%3C/svg%3E");
}

.admin-side a[href*="spedizioni.php"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M3 7h11v10H3z'/%3E%3Cpath d='M14 11h4l3 3v3h-7z'/%3E%3Ccircle cx='7' cy='19' r='2'/%3E%3Ccircle cx='17' cy='19' r='2'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M3 7h11v10H3z'/%3E%3Cpath d='M14 11h4l3 3v3h-7z'/%3E%3Ccircle cx='7' cy='19' r='2'/%3E%3Ccircle cx='17' cy='19' r='2'/%3E%3C/svg%3E");
}

.admin-side a[href*="pagamenti.php"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='M7 15h4'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='M7 15h4'/%3E%3C/svg%3E");
}

.admin-side a[href*="pagine.php"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h9l5 5v15H6z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M9 13h6'/%3E%3Cpath d='M9 17h6'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h9l5 5v15H6z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M9 13h6'/%3E%3Cpath d='M9 17h6'/%3E%3C/svg%3E");
}

.admin-side a[href*="google_recensioni.php"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M21 12.2c0-.7-.1-1.4-.2-2H12v3.8h5.1a4.4 4.4 0 0 1-1.9 2.9v2.4h3.1c1.8-1.7 2.7-4.1 2.7-7.1z'/%3E%3Cpath d='M12 22c2.6 0 4.8-.9 6.4-2.4l-3.1-2.4c-.9.6-2 .9-3.3.9a5.9 5.9 0 0 1-5.5-4H3.3v2.5A9.9 9.9 0 0 0 12 22z'/%3E%3Cpath d='M6.5 14.1a6 6 0 0 1 0-3.8V7.8H3.3a10 10 0 0 0 0 8.8l3.2-2.5z'/%3E%3Cpath d='M12 6.1c1.4 0 2.7.5 3.7 1.5l2.8-2.8A9.7 9.7 0 0 0 12 2 9.9 9.9 0 0 0 3.3 7.8l3.2 2.5A5.9 5.9 0 0 1 12 6.1z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M21 12.2c0-.7-.1-1.4-.2-2H12v3.8h5.1a4.4 4.4 0 0 1-1.9 2.9v2.4h3.1c1.8-1.7 2.7-4.1 2.7-7.1z'/%3E%3Cpath d='M12 22c2.6 0 4.8-.9 6.4-2.4l-3.1-2.4c-.9.6-2 .9-3.3.9a5.9 5.9 0 0 1-5.5-4H3.3v2.5A9.9 9.9 0 0 0 12 22z'/%3E%3Cpath d='M6.5 14.1a6 6 0 0 1 0-3.8V7.8H3.3a10 10 0 0 0 0 8.8l3.2-2.5z'/%3E%3Cpath d='M12 6.1c1.4 0 2.7.5 3.7 1.5l2.8-2.8A9.7 9.7 0 0 0 12 2 9.9 9.9 0 0 0 3.3 7.8l3.2 2.5A5.9 5.9 0 0 1 12 6.1z'/%3E%3C/svg%3E");
}

.admin-side a[href*="impostazioni.php"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.8 1.8 0 0 0 .4 2l.1.1-2.1 3.6-.2-.1a1.8 1.8 0 0 0-2.1.4l-.1.1h-4.2l-.1-.1a1.8 1.8 0 0 0-2.1-.4l-.2.1-2.1-3.6.1-.1a1.8 1.8 0 0 0 .4-2v-.1L5 12.8v-1.6l2.2-2.1V9a1.8 1.8 0 0 0-.4-2l-.1-.1 2.1-3.6.2.1a1.8 1.8 0 0 0 2.1-.4l.1-.1h4.2l.1.1a1.8 1.8 0 0 0 2.1.4l.2-.1 2.1 3.6-.1.1a1.8 1.8 0 0 0-.4 2v.1l2.2 2.1v1.6L19.4 15z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.8 1.8 0 0 0 .4 2l.1.1-2.1 3.6-.2-.1a1.8 1.8 0 0 0-2.1.4l-.1.1h-4.2l-.1-.1a1.8 1.8 0 0 0-2.1-.4l-.2.1-2.1-3.6.1-.1a1.8 1.8 0 0 0 .4-2v-.1L5 12.8v-1.6l2.2-2.1V9a1.8 1.8 0 0 0-.4-2l-.1-.1 2.1-3.6.2.1a1.8 1.8 0 0 0 2.1-.4l.1-.1h4.2l.1.1a1.8 1.8 0 0 0 2.1.4l.2-.1 2.1 3.6-.1.1a1.8 1.8 0 0 0-.4 2v.1l2.2 2.1v1.6L19.4 15z'/%3E%3C/svg%3E");
}

.admin-side a[href*="logout.php"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M10 17l5-5-5-5'/%3E%3Cpath d='M15 12H3'/%3E%3Cpath d='M21 3v18h-8'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M10 17l5-5-5-5'/%3E%3Cpath d='M15 12H3'/%3E%3Cpath d='M21 3v18h-8'/%3E%3C/svg%3E");
}

.admin-side a:hover,
.admin-side a.active {
  color: #fff;
  background: #24242a;
}

.admin-side a.active {
  box-shadow: inset 3px 0 0 var(--pink);
}

@media (max-width: 850px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-side {
    position: static;
    height: auto;
  }
}

/* FILTRI CATALOGO MOBILE */

.catalog-filter-toggle {
  display: none;
}

@media (max-width: 900px) {
  .catalog-filter-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 14px;
    padding: 12px 14px;
    color: #fff;
    background: var(--pink);
    border: 1px solid var(--pink);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
  }

  .catalog-filter-toggle::after {
    content: "Apri";
    margin-left: 8px;
    padding: 3px 8px;
    color: var(--pink);
    background: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
  }

  .catalog-filter-toggle[aria-expanded="true"]::after {
    content: "Chiudi";
  }

  .catalog-sidebar[data-catalog-filter-panel] {
    display: none;
    width: 100%;
    margin-bottom: 18px;
    position: static;
  }

  .catalog-sidebar[data-catalog-filter-panel].open {
    display: block;
  }

  .layout,
  .catalog-layout {
    grid-template-columns: 1fr;
  }
}

/* ADMIN DASHBOARD */

.admin-availability-row {
  min-height: 58px;
  padding: 9px 12px;
}

.admin-availability-row .admin-order-topline {
  margin-bottom: 4px;
}

.admin-availability-row h2 {
  margin: 0;
  font-size: 16px;
}

.admin-availability-row .account-order-number {
  margin: 0;
  padding: 4px 9px;
}

.admin-availability-row .account-order-meta span {
  padding: 4px 8px;
  font-size: 11px;
}

.admin-availability-row .account-order-side .btn {
  min-height: 34px;
  padding: 7px 12px;
}

.admin-dashboard-kpis {
  margin-bottom: 16px;
}

.admin-dashboard-kpis .kpi {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.admin-dashboard-kpis .kpi span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-dashboard-kpis .kpi strong {
  color: var(--text);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
}

/* =========================================================
   RESPONSIVE PUBBLICO DEFINITIVO
   Corregge overflow mobile: prodotto, catalogo, carrello,
   checkout, account, ordine, footer e header.
   ========================================================= */

@media (max-width: 900px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .home-slider-section {
    padding: 18px 14px 4px;
  }

  .home-slider,
  .home-slide,
  .home-slider-track {
    min-height: 280px;
  }

  .home-slide-content {
    width: min(520px, 82%);
    padding: 32px 44px;
  }

  .home-slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 28px;
  }

  .home-slider-arrow.prev {
    left: 8px;
  }

  .home-slider-arrow.next {
    right: 8px;
  }

  .top-rivenditori {
    flex-direction: column;
    gap: 4px;
    padding: 7px 14px;
    text-align: center;
  }

  .top-rivenditori-login {
    position: static;
    transform: none;
  }

  .section {
    padding: 28px 14px;
  }

  .breadcrumb {
    gap: 6px;
    font-size: 13px;
  }

  .catalog-hero,
  .compact-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .layout,
  .catalog-layout,
  .product-detail,
  .product-detail-enhanced,
  .cart-layout,
  .compact-cart-layout,
  .checkout-layout,
  .order-confirmation-layout,
  .account-layout,
  .login-layout,
  .compact-login-layout,
  .product-info-grid {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar,
  .product-buy-box,
  .cart-summary,
  .checkout-summary,
  .order-confirmation-summary {
    position: static;
    top: auto;
  }

  .catalog-results,
  .product-detail,
  .product-gallery,
  .product-buy-box,
  .detail-box,
  .checkout-main,
  .checkout-summary,
  .order-confirmation-main,
  .order-confirmation-summary {
    min-width: 0;
  }

  .catalog-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-sort {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-sort select {
    min-width: 0;
    width: 100%;
  }

  .catalog-grid,
  .grid,
  .wishlist-grid,
  .brands-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-card {
    min-width: 0;
  }

  .product-body {
    padding: 12px;
  }

  .product-body h3 {
    font-size: 14px;
  }

  .price {
    font-size: 17px;
  }

  .product-detail {
    gap: 18px;
  }

  .gallery-main {
    width: 100%;
    max-width: 100%;
  }

  .gallery-main img {
    width: 78%;
    height: 78%;
  }

  .detail-box,
  .product-info-panel {
    padding: 18px;
  }

  .product-actions {
    grid-template-columns: 86px 1fr;
  }

  .product-category-tags {
    max-width: 100%;
    overflow: hidden;
  }

  .product-category-tags a {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .cart-item,
  .compact-cart-item {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
  }

  .cart-item-price {
    grid-column: 1 / -1;
    justify-items: start;
    text-align: left;
  }

  .cart-item-actions,
  .cart-qty-form {
    align-items: flex-start;
  }

  .forms-grid,
  .order-data-grid {
    grid-template-columns: 1fr;
  }

  .checkout-card,
  .checkout-summary,
  .order-confirmation-summary,
  .cart-summary {
    padding: 16px;
  }

  .checkout-details summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .checkout-details summary span {
    align-items: flex-start;
  }

  .choice-card {
    grid-template-columns: auto 1fr;
  }

  .choice-card em {
    grid-column: 2;
  }

  .checkout-product {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .checkout-product em {
    grid-column: 2;
  }

  .order-line,
  .compact-order-line,
  .order-line-with-image {
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: start;
  }

  .order-line-with-image img {
    width: 58px;
    height: 58px;
  }

  .compact-order-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-order-card,
  .compact-order-card {
    grid-template-columns: 1fr;
  }

  .account-order-side {
    justify-items: start;
    text-align: left;
  }

  .account-toolbar,
  .wishlist-toolbar,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 8px 12px;
  }

  .home-slider-section {
    padding: 14px 10px 0;
  }

  .home-slider,
  .home-slide,
  .home-slider-track {
    min-height: 360px;
    border-radius: 14px;
  }

  .home-slide::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, .24), rgba(0, 0, 0, .72));
  }

  .home-slide-content {
    align-self: end;
    width: 100%;
    padding: 22px 18px 46px;
  }

  .home-slide-content h2 {
    font-size: 28px;
  }

  .home-slide-content p {
    font-size: 14px;
  }

  .home-slider-arrow {
    display: none;
  }

  .home-slider-dots {
    right: 18px;
    bottom: 16px;
  }

  .site-header .logo img {
    height: 42px;
  }

  .nav-toggle {
    width: 44px;
    height: 40px;
  }

  .section {
    padding: 22px 10px;
  }

  .catalog-grid,
  .grid,
  .wishlist-grid,
  .brands-grid {
    grid-template-columns: 1fr;
  }

  .product-media {
    aspect-ratio: 1 / .78;
  }

  .product-detail {
    gap: 14px;
  }

  .gallery-main {
    aspect-ratio: 1 / .82;
  }

  .gallery-main img {
    width: 72%;
    height: 72%;
  }

  .detail-box h1 {
    font-size: 28px;
  }

  .product-price-box strong {
    font-size: 32px;
  }

  .product-actions {
    grid-template-columns: 1fr;
  }

  .product-actions .btn:last-child {
    grid-column: auto;
  }

  .availability-notice-form {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .availability-notice-form .btn {
    width: 100%;
  }

  .product-buy-box > form.product-actions[action*="wishlist"] .btn {
    width: 100%;
  }
  .searchbar {
    flex-direction: column;
    border-radius: 18px;
  }

  .searchbar input {
    width: 100%;
  }

  .searchbar button {
    min-height: 44px;
  }

  .cart-item,
  .compact-cart-item {
    grid-template-columns: 1fr;
  }

  .cart-item-image {
    max-width: 120px;
  }

  .checkout-card-head {
    gap: 10px;
  }

  .checkout-card-head h2 {
    font-size: 19px;
  }

  .cart-summary-row,
  .cart-summary-total {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    font-size: 13px;
    line-height: 1.5;
  }
}

.admin-availability-kpis .kpi {
  color: var(--text);
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.admin-availability-kpis .kpi:hover,
.admin-availability-kpis .kpi.active {
  background: var(--soft);
  border-color: #f4bfd5;
  box-shadow: inset 4px 0 0 var(--pink);
}

.admin-availability-kpis .kpi.active strong {
  color: var(--pink);
}

/* =========================================================
   ADMIN BOTTONI FUNZIONE GLOBALI
   Verde = salva / conferma / nuovo semplice
   Rosso = elimina / rimuovi / azioni distruttive
   Blu = export / genera / azioni tecniche
   Arancione = modifica / aggiorna / statistiche / carica file
   Turchese = vedi / scegli dal server / nuovo combinato
   Nero = navigazione / torna / reset
   Rosa resta solo per badge, etichette e indicatori.
   ========================================================= */

/* VERDE */
.admin-main .btn.primary,
.admin-main button.btn.primary,
.admin-main input[type="submit"].btn.primary,
.admin-main .admin-save-btn {
  color: #ffffff !important;
  background: #16a34a !important;
  border-color: #16a34a !important;
}

.admin-main .btn.primary:hover,
.admin-main button.btn.primary:hover,
.admin-main input[type="submit"].btn.primary:hover,
.admin-main .admin-save-btn:hover {
  background: #15803d !important;
  border-color: #15803d !important;
}

/* ROSSO */
.admin-main .btn.danger,
.admin-main button.btn.danger,
.admin-main .admin-delete-btn,
.admin-main .cart-remove {
  color: #ffffff !important;
  background: #dc2626 !important;
  border-color: #dc2626 !important;
}

.admin-main .btn.danger:hover,
.admin-main button.btn.danger:hover,
.admin-main .admin-delete-btn:hover,
.admin-main .cart-remove:hover {
  background: #b91c1c !important;
  border-color: #b91c1c !important;
}

/* BLU */
.admin-main .btn.admin-action,
.admin-main button.btn.admin-action,
.admin-main .admin-export-btn,
.admin-main .admin-generate-btn {
  color: #ffffff !important;
  background: #2563eb !important;
  border-color: #2563eb !important;
}

.admin-main .btn.admin-action:hover,
.admin-main button.btn.admin-action:hover,
.admin-main .admin-export-btn:hover,
.admin-main .admin-generate-btn:hover {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
}

/* ARANCIONE */
.admin-main .admin-stats-btn,
.admin-main .admin-edit-btn,
.admin-main .admin-update-btn,
.admin-main .admin-file-btn,
.admin-main label.admin-file-btn {
  color: #ffffff !important;
  background: #f97316 !important;
  border-color: #f97316 !important;
}

.admin-main .admin-stats-btn:hover,
.admin-main .admin-edit-btn:hover,
.admin-main .admin-update-btn:hover,
.admin-main .admin-file-btn:hover,
.admin-main label.admin-file-btn:hover {
  background: #ea580c !important;
  border-color: #ea580c !important;
}

/* TURCHESE */
.admin-main .admin-combo-btn,
.admin-main .admin-view-btn,
.admin-main .admin-picker-btn,
.admin-main .btn[data-open-image-picker],
.admin-main .btn[data-open-variant-image-picker],
.admin-main .combo-server-image-btn {
  color: #ffffff !important;
  background: #0891b2 !important;
  border-color: #0891b2 !important;
}

.admin-main .admin-combo-btn:hover,
.admin-main .admin-view-btn:hover,
.admin-main .admin-picker-btn:hover,
.admin-main .btn[data-open-image-picker]:hover,
.admin-main .btn[data-open-variant-image-picker]:hover,
.admin-main .combo-server-image-btn:hover {
  background: #0e7490 !important;
  border-color: #0e7490 !important;
}

/* NERO DEFAULT */
.admin-main .admin-reset-btn,
.admin-main .btn:not(.primary):not(.danger):not(.admin-action):not(.admin-save-btn):not(.admin-delete-btn):not(.admin-edit-btn):not(.admin-update-btn):not(.admin-view-btn):not(.admin-picker-btn):not(.admin-combo-btn):not(.admin-export-btn):not(.admin-generate-btn):not(.admin-file-btn):not(.admin-stats-btn):not([data-open-image-picker]):not([data-open-variant-image-picker]):not(.combo-server-image-btn) {
  color: #ffffff !important;
  background: #111827 !important;
  border-color: #111827 !important;
}

.admin-main .admin-reset-btn:hover,
.admin-main .btn:not(.primary):not(.danger):not(.admin-action):not(.admin-save-btn):not(.admin-delete-btn):not(.admin-edit-btn):not(.admin-update-btn):not(.admin-view-btn):not(.admin-picker-btn):not(.admin-combo-btn):not(.admin-export-btn):not(.admin-generate-btn):not(.admin-file-btn):not(.admin-stats-btn):not([data-open-image-picker]):not([data-open-variant-image-picker]):not(.combo-server-image-btn):hover {
  background: #374151 !important;
  border-color: #374151 !important;
}

/* DISABILITATI */
.admin-main .btn[disabled],
.admin-main button[disabled],
.admin-main input[type="submit"][disabled] {
  cursor: not-allowed !important;
  opacity: .55 !important;
}