:root {
  --sanni-pro-navy: #27348b;
  --sanni-pro-deep: #1a2b73;
  --sanni-pro-cyan: #00aeef;
  --sanni-pro-sky: #d3f3ff;
  --sanni-pro-soft: #f5f7fa;
  --sanni-pro-ink: #1c2a78;
}

body {
  font-family: var(--theme-font-family, "Roboto"), "Roboto", Arial, sans-serif;
  background: var(--sanni-pro-soft);
  color: var(--sanni-pro-ink);
}

.site-header {
  box-shadow: 0 8px 22px rgba(24, 36, 91, .08);
}

.top-ribbon {
  background: linear-gradient(90deg, #0aaee9 0%, var(--sanni-pro-navy) 100%);
  color: #fff;
}

.top-ribbon-inner,
.top-ribbon-inner p,
.top-ribbon-contact span {
  color: #fff;
  font-weight: 700;
}

.top-ribbon-link {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .32);
}

.header-main {
  padding-block: 10px;
}

.site-brand-copy strong {
  color: var(--sanni-pro-ink);
  font-weight: 900;
  letter-spacing: 0;
}

.site-brand-copy small {
  color: #74809d;
  font-weight: 600;
}

.header-search input {
  border: 2px solid #23348c;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(24, 36, 91, .07);
}

.search-button,
.accent-button,
.cart-add-button,
.product-card .accent-button,
.product-card button[type="submit"] {
  background: linear-gradient(135deg, var(--sanni-pro-cyan) 0%, var(--sanni-pro-navy) 72%);
  color: #fff;
  border: 0;
  box-shadow: 0 14px 26px rgba(36, 52, 147, .2);
  transform: translateY(0);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.search-button:hover,
.accent-button:hover,
.cart-add-button:hover,
.product-card .accent-button:hover,
.product-card button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(36, 52, 147, .28);
  filter: saturate(1.08);
}

.light-button {
  border: 2px solid #243493;
  background: #fff;
  color: #243493;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.light-button:hover {
  background: #243493;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(36, 52, 147, .2);
}

.nav-band {
  background: var(--sanni-pro-navy);
  box-shadow: 0 4px 16px rgba(39, 52, 139, .2);
}

.nav-categories-link {
  background: var(--sanni-pro-cyan);
  color: #fff;
  box-shadow: 0 14px 24px rgba(8, 174, 234, .24);
}

.nav-menu a,
.nav-tools a {
  font-weight: 800;
}

.showcase-section {
  padding-top: 0;
  padding-bottom: 0;
}

.showcase-section .container {
  width: 100%;
  max-width: none;
}

.showcase-layout {
  gap: 0;
}

.showcase-layout-with-categories {
  grid-template-columns: minmax(0, 1fr);
}

.showcase-section .home-categories-panel {
  display: none;
}

.home-showcase-slider {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #f97316;
}

.home-showcase-slider .showcase-track {
  height: clamp(330px, 42vw, 520px);
  min-height: clamp(330px, 42vw, 520px);
  max-height: 520px;
}

.home-showcase-slider .showcase-slide-wide-promo,
.home-showcase-slider .showcase-slide-flyer {
  padding: 0;
}

.home-showcase-slider .showcase-wide-link,
.home-showcase-slider .showcase-flyer-link {
  display: block;
  width: 100%;
  height: 100%;
}

.home-showcase-slider .showcase-wide-link img,
.home-showcase-slider .showcase-flyer-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-showcase-slider .showcase-dots {
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  box-shadow: none;
}

.home-showcase-slider .showcase-dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, .62);
}

.home-showcase-slider .showcase-dot.is-active {
  width: 24px;
  height: 10px;
  background: var(--sanni-pro-cyan);
}

.brand-ribbon-section {
  padding: 0;
  background: #fff;
  border-bottom: 1px solid #e9edf5;
}

.brand-ribbon-section .container {
  width: 100%;
  max-width: none;
}

.brand-ribbon {
  min-height: 78px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}

.brand-chip-logo {
  min-width: clamp(96px, 10vw, 150px);
}

.brand-chip-logo img {
  max-width: 112px;
  max-height: 32px;
  filter: grayscale(1) contrast(1.12);
  opacity: .76;
  transition: filter .18s ease, opacity .18s ease, transform .18s ease;
}

.brand-chip-logo:hover img {
  filter: grayscale(0) contrast(1);
  opacity: 1;
  transform: translateY(-2px);
}

.home-promo-sections {
  background: #f7f8fb;
  padding: 34px 0 34px;
}

.home-promo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.home-promo-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 40px rgba(31, 45, 124, .14);
  transition: transform .2s ease, box-shadow .2s ease;
}

.home-promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(31, 45, 124, .2);
}

.home-promo-image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.home-promo-image-link img {
  display: block;
  width: 100%;
  aspect-ratio: 2.22 / 1;
  object-fit: cover;
}

.home-quick-links {
  padding: 46px 0 26px;
  background: #f7f8fb;
}

.home-quick-shell {
  padding: 12px 0;
}

.home-quick-track {
  gap: clamp(22px, 4.6vw, 64px);
}

.home-quick-item {
  min-width: 150px;
  color: var(--sanni-pro-navy);
  font-weight: 800;
  text-align: center;
}

.home-quick-image {
  width: 132px;
  height: 132px;
  margin-inline: auto;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 36%, #eafcff 37% 54%, #cdf5ff 55% 100%);
  box-shadow: inset 0 0 0 12px #e9fbff;
  transition: transform .2s ease, box-shadow .2s ease;
}

.home-quick-item:hover .home-quick-image {
  transform: translateY(-4px) scale(1.03);
  box-shadow: inset 0 0 0 12px #d7f8ff, 0 18px 34px rgba(8, 174, 234, .18);
}

.home-products {
  background: linear-gradient(180deg, #d3f3ff 0%, #d3f3ff 52%, var(--sanni-pro-soft) 52%, var(--sanni-pro-soft) 100%);
  border-radius: 32px 32px 0 0;
  padding-top: 58px;
}

.home-login-cta-section {
  background: var(--sanni-pro-soft);
  padding: 34px 0 48px;
}

.home-login-cta {
  position: relative;
  min-height: 150px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 4vw, 48px);
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px) clamp(22px, 5vw, 68px);
  border-radius: 30px;
  background:
    radial-gradient(circle at 95% -10%, rgba(0, 174, 239, .9) 0 62px, transparent 64px),
    radial-gradient(circle at -6% 112%, rgba(0, 174, 239, .78) 0 76px, transparent 78px),
    var(--sanni-pro-navy);
  color: #fff;
  box-shadow: 0 0 35px rgba(39, 52, 139, .22);
}

.home-login-cta-badge {
  width: clamp(72px, 10vw, 110px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background: linear-gradient(135deg, #ff5f55 0%, #c9320d 100%);
  color: #fff;
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 900;
  transform: rotate(-10deg);
  box-shadow: 0 16px 28px rgba(0, 0, 0, .18);
}

.home-login-cta-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.05;
  font-weight: 900;
}

.home-login-cta-copy p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 400;
}

.home-login-cta-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.home-login-cta .light-button,
.home-login-cta-outline {
  min-width: 150px;
  min-height: 38px;
  padding: 9px 24px;
  border-radius: 999px;
  font-weight: 900;
  text-align: center;
}

.home-login-cta .light-button {
  border-color: #fff;
}

.home-login-cta-outline {
  border: 2px solid rgba(255, 255, 255, .9);
  color: #fff;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.home-login-cta-outline:hover {
  background: #fff;
  color: var(--sanni-pro-navy);
  transform: translateY(-2px);
}

.sanni-home-products-heading {
  margin-bottom: 22px;
}

.sanni-home-products-heading h2 {
  color: var(--sanni-pro-navy);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  font-weight: 800;
}

.sanni-home-products-heading h2::after {
  content: "";
  display: block;
  width: 34px;
  height: 7px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--sanni-pro-cyan);
}

.home-products-toolbar {
  justify-content: space-between;
}

.home-products-filter {
  border-radius: 999px;
  font-weight: 800;
}

.catalog-grid {
  gap: 24px;
}

.product-card,
.catalog-product-card {
  border-radius: 20px;
  border: 1px solid rgba(36, 52, 147, .08);
  box-shadow: 0 16px 34px rgba(31, 45, 124, .08);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.product-card:hover,
.catalog-product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(8, 174, 234, .45);
  box-shadow: 0 24px 46px rgba(31, 45, 124, .16);
}

.product-card img,
.catalog-product-card img {
  transition: transform .24s ease;
}

.product-card:hover img,
.catalog-product-card:hover img {
  transform: scale(1.035);
}

.site-benefits-section,
.benefits-section {
  background: var(--sanni-pro-navy);
}

.site-benefits-card,
.benefits-card {
  background: #d3f3ff;
  border-radius: 32px;
}

.site-footer {
  background: var(--sanni-pro-navy);
}

.admin-shell {
  font-family: var(--theme-font-family, "Roboto"), "Roboto", Arial, sans-serif;
}

.admin-body {
  background: var(--sanni-pro-soft);
}

.admin-topbar,
.admin-sidebar,
.admin-nav-band {
  font-family: var(--theme-font-family, "Roboto"), "Roboto", Arial, sans-serif;
}

.admin-card,
.admin-panel,
.admin-home-section-card,
.admin-table-wrap {
  border-color: #d7dbe3;
  box-shadow: 0 0 15px rgba(39, 52, 139, .1);
}

.admin-home-sections-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.admin-home-section-card {
  border: 1px solid #dce6f2;
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.admin-sonepar-section-card {
  min-height: 190px;
  align-content: start;
}

.admin-sonepar-section-card.is-muted {
  opacity: .66;
}

.admin-sonepar-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-sonepar-section-head > span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #d3f3ff;
  color: var(--sanni-pro-navy);
  font-weight: 900;
  font-size: 12px;
}

.admin-sonepar-section-head em {
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  color: #6f7890;
}

.admin-promo-upload-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.admin-promo-upload-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d7dbe3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 15px rgba(39, 52, 139, .08);
}

.admin-promo-upload-card > strong {
  color: var(--sanni-pro-navy);
  font-weight: 900;
}

.admin-promo-upload-preview {
  display: grid;
  place-items: center;
  min-height: 128px;
  overflow: hidden;
  border: 1px dashed #b9c6dc;
  border-radius: 14px;
  background: #f5f7fa;
  color: #6f7890;
  font-weight: 800;
}

.admin-promo-upload-preview img {
  width: 100%;
  height: 100%;
  min-height: 128px;
  object-fit: cover;
}

.admin-slider-builder-collapsible {
  padding: 0;
  overflow: hidden;
}

.admin-slider-builder-summary {
  cursor: pointer;
  padding: 18px;
  margin: 0;
  list-style: none;
}

.admin-slider-builder-summary::-webkit-details-marker {
  display: none;
}

.admin-slider-builder-collapsible:not([open]) .admin-slider-specs {
  display: none;
}

.admin-slider-builder-collapsible[open] .admin-slider-summary-button {
  background: #6f7890;
}

.admin-slider-builder-collapsible[open] .admin-slider-summary-button::after {
  content: " abierto";
}

.admin-slider-builder-collapsible .admin-slider-builder {
  padding: 0 18px 18px;
}

.admin-home-section-card strong {
  color: var(--sanni-pro-navy);
}

.admin-home-section-card a {
  font-weight: 800;
  color: #0b77bc;
}

@media (max-width: 900px) {
  .admin-home-sections-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-promo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-login-cta {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .home-login-cta-badge {
    width: 76px;
  }

  .home-showcase-slider .showcase-track {
    height: 360px;
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  .admin-home-sections-grid {
    grid-template-columns: 1fr;
  }

  .home-promo-sections {
    padding: 24px 0 24px;
  }

  .home-promo-sections .container {
    width: 100%;
    max-width: none;
    padding-inline: 16px;
  }

  .home-promo-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .home-promo-grid::-webkit-scrollbar {
    display: none;
  }

  .home-promo-card {
    flex: 0 0 min(88vw, 390px);
    scroll-snap-align: center;
  }

  .brand-ribbon {
    min-height: 64px;
  }

  .home-quick-image {
    width: 104px;
    height: 104px;
  }

  .home-login-cta {
    padding: 24px 18px;
    border-radius: 24px;
  }

  .home-login-cta-actions,
  .home-login-cta .light-button,
  .home-login-cta-outline {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .admin-promo-upload-grid {
    grid-template-columns: 1fr;
  }
}
