:root {
  --vs-red-1: #d51b2a;
  --vs-red-2: #b80f1e;
  --vs-red-3: #8f0914;
  --vs-black: #141416;
  --vs-muted: #667085;
  --vs-border: #e7e9f1;
  --vs-surface: #ffffff;
  --bs-primary: var(--vs-red-1);
  --bs-primary-rgb: 213, 27, 42;
  --bs-link-color: var(--vs-red-2);
  --bs-link-color-rgb: 184, 15, 30;
  --bs-link-hover-color: var(--vs-red-3);
  --bs-link-hover-color-rgb: 143, 9, 20;
}

body.vs-body {
  font-family: 'Manrope', 'Segoe UI', Tahoma, sans-serif;
  color: var(--vs-black);
  background:
    radial-gradient(circle at 8% 0%, rgba(213, 27, 42, 0.08), transparent 40%),
    radial-gradient(circle at 90% 100%, rgba(20, 20, 22, 0.06), transparent 45%),
    #f6f7fb;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.vs-main-content {
  flex: 1 0 auto;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

.navbar.vs-navbar {
  background: linear-gradient(100deg, #151517 0%, #1f2024 55%, #17171a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar.vs-navbar .navbar-brand {
  color: #fff;
  letter-spacing: 0.2px;
}

.navbar.vs-navbar .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.93rem;
  white-space: nowrap;
  border-radius: 10px;
  transition: all 0.18s ease;
}

.vs-search-compact {
  display: none;
}

@media (min-width: 1400px) and (max-width: 1999.98px) {
  .navbar.vs-navbar .vs-search-inline {
    display: none !important;
  }

  .navbar.vs-navbar .vs-search-compact {
    display: block !important;
  }
}

@media (min-width: 1400px) and (max-width: 1699.98px) {
  .navbar.vs-navbar .navbar-nav .nav-link {
    padding-left: 0.3rem;
    padding-right: 0.3rem;
  }
}

.navbar.vs-navbar .nav-link:hover,
.navbar.vs-navbar .nav-link:focus,
.navbar.vs-navbar .nav-link.active {
  color: #fff;
  background: rgba(213, 27, 42, 0.16);
}

.vs-search-inline {
  min-width: 210px;
  max-width: 360px;
  width: 100%;
  gap: 0.4rem;
}

.vs-search-inline .form-control {
  border-radius: 10px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.vs-search-inline .form-control::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.vs-search-inline .form-control:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 0 0 0.22rem rgba(213, 27, 42, 0.24);
}

.vs-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  transition: all 0.18s ease;
}

.vs-icon-btn-lg,
.vs-icon-btn-notify {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
}

.vs-icon-btn i {
  font-size: 1rem;
  line-height: 1;
}

.vs-icon-btn:hover,
.vs-icon-btn:focus {
  color: #fff;
  background: rgba(213, 27, 42, 0.28);
  border-color: rgba(213, 27, 42, 0.55);
}

.vs-search-inline .form-control,
.vs-search-inline .btn {
  height: 2.6rem;
}

.vs-search-inline .btn {
  min-width: 2.6rem;
  padding: 0 0.85rem;
}

.vs-mobile-quick {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 0.45rem;
}

.vs-mobile-link {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.02rem;
  font-weight: 600;
  text-decoration: none;
  text-align: left;
  width: 100%;
}

.vs-mobile-link:hover,
.vs-mobile-link:focus {
  color: #fff;
}

.vs-mobile-email {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
  text-align: left;
  margin-top: 0.2rem;
}

@media (max-width: 1399.98px) {
  .offcanvas.offcanvas-xxl {
    --bs-offcanvas-width: min(88vw, 360px);
    background: linear-gradient(100deg, #151517 0%, #1f2024 55%, #17171a 100%);
    color: #fff;
  }

  .offcanvas.offcanvas-xxl .offcanvas-header {
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .offcanvas.offcanvas-xxl .offcanvas-title {
    margin: 0;
    text-align: left;
    width: auto;
  }

  .offcanvas.offcanvas-xxl .offcanvas-body {
    width: 100%;
  }

  .offcanvas.offcanvas-xxl .navbar-nav {
    width: 100%;
    margin-right: 0 !important;
    align-items: stretch;
  }

  .offcanvas.offcanvas-xxl .navbar-nav .nav-item {
    width: 100%;
  }

  .offcanvas.offcanvas-xxl .nav-link {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    width: 100%;
    text-align: left;
  }

  .offcanvas.offcanvas-xxl .nav-link:hover,
  .offcanvas.offcanvas-xxl .nav-link:focus {
    color: #fff;
  }

  .offcanvas.offcanvas-xxl .navbar-nav .nav-link {
    font-size: 1.12rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .offcanvas.offcanvas-xxl .vs-topnav-body > .d-xxl-none {
    width: 100%;
  }

  .offcanvas.offcanvas-xxl .vs-topnav-body > .d-xxl-none.border-top {
    margin-top: 0.9rem !important;
    padding-top: 0.95rem !important;
    border-top-width: 1px !important;
    width: 100%;
  }

  .offcanvas.offcanvas-xxl .vs-mobile-quick .btn.align-self-end {
    align-self: flex-start !important;
  }
}

@media (min-width: 1400px) {
  .vs-topnav-body {
    width: 100%;
    flex-grow: 1 !important;
    justify-content: flex-start;
  }

  .vs-topnav-body > .navbar-nav {
    margin-right: auto !important;
  }
}

.btn,
.form-control,
.form-select,
.card,
.dropdown-menu,
.modal-content,
.list-group-item {
  border-radius: 12px;
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--vs-red-1);
  --bs-btn-border-color: var(--vs-red-1);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--vs-red-2);
  --bs-btn-hover-border-color: var(--vs-red-2);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--vs-red-3);
  --bs-btn-active-border-color: var(--vs-red-3);
  background-image: linear-gradient(135deg, var(--vs-red-1), var(--vs-red-2));
  box-shadow: 0 7px 16px rgba(184, 15, 30, 0.24);
}

.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(184, 15, 30, 0.28);
}

.btn-outline-primary {
  --bs-btn-color: var(--vs-red-2);
  --bs-btn-border-color: rgba(184, 15, 30, 0.45);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--vs-red-2);
  --bs-btn-hover-border-color: var(--vs-red-2);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--vs-red-3);
  --bs-btn-active-border-color: var(--vs-red-3);
}

.btn-outline-secondary {
  --bs-btn-hover-bg: #1e1f23;
  --bs-btn-hover-border-color: #1e1f23;
}

/* Neutral visibility for outline-light buttons used on white cards (admin clear/reset actions). */
.btn.btn-outline-light.border {
  --bs-btn-color: #667085;
  --bs-btn-border-color: #d0d5dd;
  --bs-btn-hover-color: #344054;
  --bs-btn-hover-bg: #f2f4f7;
  --bs-btn-hover-border-color: #c7ced9;
  --bs-btn-active-color: #1d2939;
  --bs-btn-active-bg: #eaedf2;
  --bs-btn-active-border-color: #bfc7d3;
}

.form-control,
.form-select {
  border-color: var(--vs-border);
  transition: all 0.18s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(213, 27, 42, 0.5);
  box-shadow: 0 0 0 0.22rem rgba(213, 27, 42, 0.15);
}

.pagination .page-link {
  color: var(--vs-red-2);
  border-color: #d9deea;
}

.pagination .page-link:hover,
.pagination .page-link:focus {
  color: var(--vs-red-3);
  background: rgba(213, 27, 42, 0.08);
  border-color: rgba(213, 27, 42, 0.32);
  box-shadow: none;
}

.pagination .page-item.active .page-link {
  color: #fff;
  border-color: var(--vs-red-2);
  background: linear-gradient(135deg, var(--vs-red-1), var(--vs-red-2));
  box-shadow: 0 8px 16px rgba(184, 15, 30, 0.24);
}

.card,
.card-soft,
.accordion-item,
.offcanvas,
.dropdown-menu {
  border-color: var(--vs-border);
}

.card,
.card-soft {
  box-shadow: 0 10px 28px rgba(16, 17, 21, 0.08);
}

.card-soft,
.catalog-card,
.prod-card,
.table,
.offcanvas,
.modal-content,
.auth-card,
.auth-shell .card {
  animation: vsFadeUp 0.25s ease;
}

@keyframes vsFadeUp {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.prod-card,
.catalog-card,
.product-extra-thumb,
.list-group-item,
.btn,
.nav-link {
  transition: all 0.18s ease;
}

.prod-card:hover,
.catalog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(16, 17, 21, 0.12);
}

.vs-category-menu .list-group-item {
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 10px;
  margin-bottom: 2px;
}

.vs-category-menu .list-group-item:hover {
  background: rgba(213, 27, 42, 0.08);
  color: var(--vs-red-2);
}

.vs-category-menu .list-group-item.active {
  color: #fff;
  border-color: transparent;
  background-image: linear-gradient(135deg, var(--vs-red-1), var(--vs-red-2));
}

.vs-category-menu .list-group-item.active .cat-toggle-btn {
  color: rgba(255, 255, 255, 0.85);
}

.category-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c2c8d7;
  margin-right: 0.55rem;
}

.vs-category-menu .list-group-item.active .category-dot {
  background: rgba(255, 255, 255, 0.85);
}

.category-item-icon {
  margin-right: 0.5rem;
  color: var(--vs-red-1, #c41219);
  font-size: 0.95rem;
  vertical-align: middle;
}

.vs-category-menu .list-group-item.active .category-item-icon {
  color: #fff;
}

.category-top-level .category-item-icon {
  font-size: 1.05rem;
}

.cat-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cat-toggle-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  margin-left: 0.25rem;
  border-radius: 50%;
  color: #8a93a6;
}

.cat-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

.cat-toggle-btn i {
  transition: transform 0.15s ease;
}

.cat-toggle-btn.expanded i {
  transform: rotate(180deg);
}

.auth-shell {
  min-height: calc(100vh - 180px);
  display: grid;
  align-items: center;
  padding: 1rem 0 1.75rem;
}

.auth-card {
  border: 1px solid var(--vs-border);
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
}

.admin-auth-shell {
  display: flex;
  justify-content: center;
  width: 100%;
}

.admin-auth-wrap {
  width: min(100%, 540px);
  margin-inline: auto;
}

.admin-auth-wrap .card-body {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.auth-subtitle {
  color: var(--vs-muted);
  font-size: 0.92rem;
}

@media (max-width: 1199.98px) {
  .vs-search-inline {
    display: none !important;
  }
}

.vs-site-footer {
  background: linear-gradient(100deg, #151517 0%, #1f2024 55%, #17171a 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
}

.vs-footer-logo {
  height: 40px;
  width: auto;
  display: block;
}

.vs-footer-title {
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: 0.15px;
}

.vs-footer-link {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.93rem;
}

.vs-footer-link:hover,
.vs-footer-link:focus {
  color: #fff;
}

.vs-footer-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vs-footer-social-link {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.18s ease;
}

.vs-footer-social-link:hover,
.vs-footer-social-link:focus {
  border-color: rgba(213, 27, 42, 0.7);
  background: rgba(213, 27, 42, 0.22);
  color: #fff;
}

.vs-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.74);
}

/* Footer CMS columns: fino a 5 colonne per riga su desktop */
@media (min-width: 1200px) {
  .vs-footer-col {
    flex: 0 0 20%;
    max-width: 20%;
    width: 20%;
  }
}

.support-chat-widget {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1080;
}

.support-chat-fab {
  width: 3.2rem;
  height: 3.2rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--vs-red-1), var(--vs-red-2));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(184, 15, 30, 0.34);
  font-size: 1.2rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.support-chat-fab:hover,
.support-chat-fab:focus {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(184, 15, 30, 0.4);
}

.support-chat-unread {
  position: absolute;
  right: -0.25rem;
  top: -0.2rem;
  min-width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 0.67rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.support-chat-panel {
  position: absolute;
  right: 0;
  bottom: 4rem;
  width: min(92vw, 360px);
  max-height: min(75vh, 620px);
  border: 1px solid var(--vs-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(16, 17, 21, 0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.support-chat-widget.is-open .support-chat-panel {
  display: flex;
  animation: vsFadeUp 0.2s ease;
}

.support-chat-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--vs-border);
  background: linear-gradient(90deg, #fbfbfd 0%, #fff 100%);
}

.support-chat-title {
  font-weight: 800;
  line-height: 1.2;
}

.support-chat-subtitle {
  font-size: 0.78rem;
  color: var(--vs-muted);
}

.support-chat-messages {
  flex: 1;
  min-height: 190px;
  max-height: 360px;
  overflow: auto;
  padding: 0.75rem;
  background: #fcfcfe;
}

.support-chat-empty {
  color: var(--vs-muted);
  font-size: 0.84rem;
}

.support-chat-row {
  display: flex;
  margin-bottom: 0.5rem;
}

.support-chat-row.is-admin {
  justify-content: flex-start;
}

.support-chat-row.is-user {
  justify-content: flex-end;
}

.support-chat-bubble {
  max-width: 88%;
  border-radius: 12px;
  border: 1px solid var(--vs-border);
  padding: 0.45rem 0.6rem;
}

.support-chat-bubble.from-admin {
  background: #fff;
}

.support-chat-bubble.from-user {
  background: rgba(213, 27, 42, 0.1);
  border-color: rgba(213, 27, 42, 0.22);
}

.support-chat-sender {
  font-size: 0.72rem;
  color: #414755;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.support-chat-body {
  font-size: 0.88rem;
  line-height: 1.35;
}

.support-chat-time {
  font-size: 0.7rem;
  color: #71788a;
  margin-top: 0.25rem;
}

.support-chat-form {
  border-top: 1px solid var(--vs-border);
  padding: 0.7rem;
  background: #fff;
}

.support-chat-admin-list {
  max-height: calc(100vh - 280px);
  overflow: auto;
}

.support-chat-admin-thread {
  min-height: 240px;
  max-height: 62vh;
  overflow: auto;
  background: #fbfbfd;
}

.support-chat-admin-bubble {
  max-width: 82%;
  border-radius: 12px;
  border: 1px solid var(--vs-border);
  padding: 0.5rem 0.65rem;
}

.support-chat-admin-bubble-admin {
  background: rgba(213, 27, 42, 0.11);
  border-color: rgba(213, 27, 42, 0.28);
}

.support-chat-admin-bubble-customer {
  background: #fff;
}

.vs-cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(1080px, calc(100vw - 1.25rem));
  z-index: 1095;
  background: #fff;
  border: 1px solid var(--vs-border);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(16, 17, 21, 0.2);
}

.vs-cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
}

.vs-cookie-banner__text {
  min-width: 0;
}

.vs-cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.vs-cookie-panel {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(17, 19, 27, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.vs-cookie-panel__card {
  width: min(560px, 100%);
  background: #fff;
  border: 1px solid var(--vs-border);
  border-radius: 14px;
  box-shadow: 0 22px 46px rgba(16, 17, 21, 0.28);
  padding: 1rem;
}

.vs-cookie-pref-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  border: 1px solid var(--vs-border);
  border-radius: 12px;
  padding: 0.75rem 0.8rem;
}

.vs-cookie-pref-item + .vs-cookie-pref-item {
  margin-top: 0.55rem;
}

.vs-cookie-review {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 1082;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--vs-red-1), var(--vs-red-2));
  color: #fff;
  border-radius: 999px;
  padding: 0;
  font-size: 0.83rem;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(16, 17, 21, 0.15);
  white-space: nowrap;
  transition: width .22s ease, padding .22s ease, box-shadow .22s ease, transform .22s ease;
}

.vs-cookie-review .bi {
  flex: 0 0 auto;
  line-height: 1;
}

.vs-cookie-review__text {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width .22s ease, opacity .16s ease, margin-left .22s ease;
}

.vs-cookie-review:hover,
.vs-cookie-review:focus {
  color: #fff;
  background: linear-gradient(135deg, var(--vs-red-1), var(--vs-red-2));
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(184, 15, 30, 0.22);
}

@media (hover: hover) and (pointer: fine) {
  .vs-cookie-review:hover,
  .vs-cookie-review:focus-visible {
    width: 132px;
    padding: 0 0.78rem;
    transform: translateY(-1px);
  }

  .vs-cookie-review:hover .vs-cookie-review__text,
  .vs-cookie-review:focus-visible .vs-cookie-review__text {
    max-width: 96px;
    opacity: 1;
    margin-left: 0.36rem;
  }
}

@media (max-width: 575.98px) {
  .vs-site-footer {
    padding-bottom: 4.75rem;
  }

  .vs-cookie-banner {
    width: calc(100vw - 0.8rem);
    bottom: 0.5rem;
  }

  .vs-cookie-banner__inner {
    display: block;
    padding: 0.75rem 0.8rem;
  }

  .vs-cookie-banner__actions {
    margin-top: 0.65rem;
    justify-content: flex-start;
  }

  .vs-cookie-review {
    left: 0.75rem;
    bottom: 0.75rem;
    font-size: 0.79rem;
    width: 40px;
    height: 40px;
    padding: 0;
  }

  .support-chat-widget {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .support-chat-panel {
    width: min(96vw, 360px);
    right: -0.15rem;
  }
}
