:root {
  --sp-ink: #17221d;
  --sp-muted: #5b6d64;
  --sp-soft: #f4fbf7;
  --sp-paper: #ffffff;
  --sp-line: rgba(20, 89, 72, .14);
  --sp-jade: #0f766e;
  --sp-jade-dark: #0b4f49;
  --sp-gold: #b9862f;
  --sp-orange: #f2a33a;
  --sp-red: #c73d32;
  --sp-shadow: 0 14px 34px rgba(23, 34, 29, .08);
  --sp-radius: 8px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body.storefront-pro {
  margin: 0;
  color: var(--sp-ink);
  background: #f7faf7;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.storefront-pro.neo-store {
  padding: 0 !important;
}

body.storefront-pro.has-site-nav.tf-auth-page {
  display: block !important;
  min-height: 100vh;
}

body.storefront-pro.has-site-nav .login-container,
body.storefront-pro.has-site-nav .register-container {
  margin: 1rem auto 2rem !important;
}

body.storefront-pro.has-site-nav .navbar {
  display: none !important;
}

body.storefront-pro a {
  color: inherit;
  text-decoration: none;
}

body.storefront-pro img {
  max-width: 100%;
  display: block;
}

.sp-wrap {
  width: min(1240px, calc(100% - 24px));
  margin: 0 auto;
}

.sp-mini {
  font-size: .72rem;
  font-weight: 800;
  color: var(--sp-jade);
  text-transform: uppercase;
}

.sp-btn,
.sp-ghost,
.sp-cart-btn,
.sp-wa-btn,
.sp-detail-btn,
.sp-filter-link,
.sp-view-btn,
.sp-header-action,
.sp-submit {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  border: 0;
  border-radius: 7px;
  padding: .36rem .6rem;
  font: 800 .74rem/1.1 Inter, "Segoe UI", Arial, sans-serif;
  cursor: pointer;
  text-align: center;
}

.sp-btn,
.sp-cart-btn,
.sp-submit {
  color: #fff;
  background: var(--sp-jade);
}

.sp-ghost,
.sp-detail-btn,
.sp-filter-link,
.sp-view-btn,
.sp-header-action {
  color: var(--sp-ink);
  background: #fff;
  border: 1px solid var(--sp-line);
}

.sp-wa-btn {
  color: #fff;
  background: #14945f;
}

.sp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--sp-line);
  box-shadow: 0 8px 24px rgba(23,34,29,.06);
  backdrop-filter: blur(14px);
}

.sp-header-main {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  gap: .8rem;
  align-items: center;
}

.sp-brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-width: max-content;
}

.sp-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.sp-brand strong {
  display: block;
  font-size: .96rem;
  line-height: 1.1;
}

.sp-brand span {
  color: var(--sp-muted);
  font-size: .66rem;
  font-weight: 700;
}

.sp-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid rgba(15,118,110,.22);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.sp-search input {
  min-height: 38px;
  border: 0;
  outline: 0;
  padding: 0 .75rem;
  color: var(--sp-ink);
  font: 500 .88rem Inter, sans-serif;
}

.sp-search button {
  border: 0;
  padding: 0 .9rem;
  color: #fff;
  background: var(--sp-orange);
  font-weight: 900;
  cursor: pointer;
}

.sp-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: .4rem;
}

.sp-menu-btn {
  display: none;
}

.sp-nav {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .38rem 0 .5rem;
  overflow-x: auto;
}

.sp-nav a {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 .65rem;
  color: #33443d;
  font-size: .76rem;
  font-weight: 800;
  white-space: nowrap;
}

.sp-nav a:hover,
.sp-nav a.is-active {
  color: #fff;
  background: var(--sp-jade);
}

.sp-band {
  padding: 1.1rem 0;
}

.sp-band.soft {
  background: linear-gradient(180deg, #f0faf5, #fbfffd);
}

.sp-band.paper {
  background: #fff;
}

.sp-band.warm {
  background: linear-gradient(180deg, #fff9ed, #fff);
}

.sp-hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(330px, .78fr);
  gap: .85rem;
  align-items: stretch;
}

.sp-hero-copy,
.sp-panel,
.sp-card,
.sp-product-card,
.sp-sidebar {
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  background: var(--sp-paper);
  box-shadow: var(--sp-shadow);
}

.sp-hero-copy {
  min-height: 360px;
  padding: clamp(1.1rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sp-hero h1 {
  max-width: 720px;
  margin: .45rem 0 .65rem;
  color: var(--sp-ink);
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.04;
}

.sp-hero p,
.sp-section-head p,
.sp-card p,
.sp-product-card p {
  color: var(--sp-muted);
  font-size: .9rem;
  line-height: 1.55;
}

.sp-hero-actions,
.sp-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .8rem;
}

.sp-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}

.sp-feature-tile,
.sp-mini-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--sp-radius);
  background: #eaf4ef;
  min-height: 0;
  box-shadow: var(--sp-shadow);
}

.sp-feature-tile {
  grid-row: span 2;
}

.sp-feature-tile img,
.sp-mini-tile img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.sp-feature-tile img {
  aspect-ratio: 4 / 5;
}

.sp-tile-caption {
  position: absolute;
  left: .5rem;
  right: .5rem;
  bottom: .5rem;
  border-radius: 7px;
  padding: .5rem;
  color: #fff;
  background: rgba(13, 38, 32, .78);
}

.sp-tile-caption strong {
  display: block;
  font-size: .82rem;
}

.sp-tile-caption span {
  color: #dceee8;
  font-size: .7rem;
}

.sp-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .8rem;
}

.sp-section-head h2 {
  margin: .18rem 0 0;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  line-height: 1.15;
}

.sp-section-head p {
  max-width: 560px;
  margin: .3rem 0 0;
}

.sp-category-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: .65rem;
}

.sp-category-card {
  overflow: hidden;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  background: #fff;
  box-shadow: var(--sp-shadow);
}

.sp-category-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #edf6f2;
}

.sp-category-card span {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: .45rem .55rem;
  color: var(--sp-ink);
  font-size: .78rem;
  font-weight: 850;
}

.sp-promo-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr .85fr;
  gap: .7rem;
}

.sp-card {
  min-height: 150px;
  padding: .9rem;
  position: relative;
  overflow: hidden;
}

.sp-card strong {
  display: block;
  max-width: 78%;
  margin: .25rem 0;
  font-size: 1.05rem;
  line-height: 1.2;
}

.sp-card img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 45%;
  max-height: 100%;
  object-fit: cover;
  opacity: .2;
}

.sp-catalogue-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .42fr);
  gap: .8rem;
  align-items: stretch;
}

.sp-catalogue-copy,
.sp-catalogue-preview,
.sp-pdf-viewer,
.sp-pdf-empty {
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  background: #fff;
  box-shadow: var(--sp-shadow);
}

.sp-catalogue-copy {
  padding: clamp(1rem, 2.5vw, 1.5rem);
}

.sp-catalogue-copy h2 {
  max-width: 680px;
  margin: .3rem 0 .5rem;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  line-height: 1.14;
}

.sp-catalogue-copy p {
  max-width: 640px;
  margin: 0;
  color: var(--sp-muted);
  font-size: .88rem;
  line-height: 1.55;
}

.sp-catalogue-preview {
  min-height: 190px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(15,118,110,.95), rgba(11,79,73,.92)),
    url('/uploads/hero.jpg') center/cover;
}

.sp-catalogue-preview::before {
  content: "";
  position: absolute;
  inset: .75rem;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 7px;
}

.sp-catalogue-preview span,
.sp-catalogue-preview strong,
.sp-catalogue-preview small {
  position: relative;
  z-index: 1;
}

.sp-catalogue-preview span {
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #d8fff3;
}

.sp-catalogue-preview strong {
  max-width: 220px;
  margin: .28rem 0;
  font-size: 1.25rem;
  line-height: 1.1;
}

.sp-catalogue-preview small {
  color: #eafcf6;
  font-weight: 800;
}

.sp-pdf-shell {
  padding-top: 1rem;
}

.sp-pdf-viewer {
  overflow: hidden;
}

.sp-pdf-viewer iframe {
  width: 100%;
  height: min(78vh, 860px);
  min-height: 520px;
  display: block;
  border: 0;
  background: #f5faf7;
}

.sp-pdf-empty {
  padding: 1.2rem;
  color: var(--sp-muted);
}

.sp-pdf-empty code {
  color: var(--sp-ink);
  font-weight: 800;
}

.sp-product-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: .8rem;
  align-items: start;
}

.sp-sidebar {
  position: sticky;
  top: 118px;
  padding: .75rem;
}

.sp-sidebar h3 {
  margin: 0 0 .55rem;
  font-size: .95rem;
}

.sp-filter-list {
  display: grid;
  gap: .35rem;
}

.sp-filter-link {
  justify-content: flex-start;
  color: #253832;
}

.sp-filter-link.is-active {
  color: #fff;
  background: var(--sp-jade);
}

.sp-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px auto;
  gap: .5rem;
  margin-bottom: .7rem;
}

.sp-controls input,
.sp-controls select {
  min-height: 34px;
  width: 100%;
  border: 1px solid var(--sp-line);
  border-radius: 7px;
  padding: 0 .6rem;
  color: var(--sp-ink);
  background: #fff;
}

.sp-view-switch {
  display: inline-flex;
  gap: .25rem;
}

.sp-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .65rem;
}

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

.sp-product-media {
  position: relative;
  overflow: hidden;
  background: #edf6f2;
}

.sp-product-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .25s ease;
}

.sp-product-card:hover .sp-product-media img {
  transform: scale(1.04);
}

.sp-badge {
  position: absolute;
  left: .4rem;
  top: .4rem;
  border-radius: 999px;
  padding: .18rem .4rem;
  color: #fff;
  background: rgba(15,118,110,.92);
  font-size: .62rem;
  font-weight: 900;
}

.sp-product-body {
  display: grid;
  gap: .34rem;
  padding: .55rem;
  flex: 1;
}

.sp-product-body h3 {
  margin: 0;
  color: var(--sp-ink);
  font-size: .82rem;
  line-height: 1.24;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sp-product-body p {
  margin: 0;
  font-size: .72rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sp-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
}

.sp-price {
  color: var(--sp-jade-dark);
  font-size: .9rem;
  font-weight: 950;
}

.sp-rating {
  color: #6d531f;
  font-size: .68rem;
  font-weight: 850;
}

.sp-product-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .25rem;
}

.sp-product-actions a,
.sp-product-actions button {
  width: 100%;
  min-width: 0;
  padding-left: .25rem;
  padding-right: .25rem;
  font-size: .62rem;
}

.sp-deal-grid,
.sp-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: .65rem;
}

.sp-review {
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  padding: .75rem;
  background: #fff;
  box-shadow: var(--sp-shadow);
}

.sp-review img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: .45rem;
}

.sp-review p {
  margin: 0 0 .5rem;
  color: var(--sp-muted);
  font-size: .78rem;
  line-height: 1.45;
}

.sp-review strong {
  color: var(--sp-ink);
  font-size: .78rem;
}

.sp-contact {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, 1.1fr);
  gap: .9rem;
  align-items: center;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  padding: .9rem;
  background: #fff;
  box-shadow: var(--sp-shadow);
}

.sp-contact form {
  display: grid;
  gap: .45rem;
}

.sp-contact input {
  min-height: 34px;
  border: 1px solid var(--sp-line);
  border-radius: 7px;
  padding: 0 .65rem;
  color: var(--sp-ink);
}

.sp-empty {
  border: 1px dashed var(--sp-line);
  border-radius: var(--sp-radius);
  padding: 1rem;
  color: var(--sp-muted);
  background: #fff;
  text-align: center;
}

@media (max-width: 900px) {
  .sp-header-main {
    grid-template-columns: auto auto;
  }

  .sp-search {
    grid-column: 1 / -1;
    order: 3;
  }

  .sp-menu-btn {
    display: inline-flex;
  }

  .sp-nav {
    display: none;
    padding-top: 0;
  }

  .sp-header.is-open .sp-nav {
    display: flex;
  }

  .sp-hero,
  .sp-product-layout,
  .sp-contact {
    grid-template-columns: 1fr;
  }

  .sp-sidebar {
    position: relative;
    top: auto;
  }

  .sp-promo-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sp-catalogue-strip {
    grid-template-columns: 1fr;
  }

  .sp-card:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .sp-wrap {
    width: calc(100% - 16px);
  }

  .sp-header-main {
    min-height: 54px;
    gap: .5rem;
  }

  .sp-brand img {
    width: 36px;
    height: 36px;
  }

  .sp-brand strong {
    font-size: .86rem;
  }

  .sp-brand span {
    display: none;
  }

  .sp-hero-copy {
    min-height: 0;
    padding: .85rem;
  }

  .sp-hero h1 {
    font-size: clamp(1.55rem, 8vw, 2.1rem);
  }

  .sp-hero p {
    font-size: .78rem;
  }

  .sp-hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
  }

  .sp-feature-tile {
    grid-row: auto;
  }

  .sp-feature-tile img {
    aspect-ratio: 1 / 1;
  }

  .sp-tile-caption {
    padding: .35rem;
  }

  .sp-tile-caption strong {
    font-size: .66rem;
  }

  .sp-tile-caption span {
    font-size: .58rem;
  }

  .sp-category-row,
  .sp-product-grid,
  .sp-review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
  }

  .sp-promo-grid,
  .sp-deal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
  }

  .sp-catalogue-preview {
    min-height: 150px;
  }

  .sp-pdf-viewer iframe {
    min-height: 420px;
  }

  .sp-card:first-child {
    grid-column: auto;
  }

  .sp-card {
    min-height: 120px;
    padding: .65rem;
  }

  .sp-card strong {
    max-width: none;
    font-size: .82rem;
  }

  .sp-card p {
    display: none;
  }

  .sp-section-head {
    display: block;
  }

  .sp-section-head h2 {
    font-size: 1.15rem;
  }

  .sp-controls {
    grid-template-columns: 1fr;
  }

  .sp-sidebar {
    padding: .6rem;
  }

  .sp-product-body {
    padding: .48rem;
  }

  .sp-product-body h3 {
    font-size: .74rem;
  }

  .sp-product-body p,
  .sp-rating {
    display: none;
  }

  .sp-price {
    font-size: .78rem;
  }

  .sp-btn,
  .sp-ghost,
  .sp-cart-btn,
  .sp-wa-btn,
  .sp-detail-btn,
  .sp-filter-link,
  .sp-view-btn,
  .sp-header-action,
  .sp-submit {
    min-height: 26px;
    padding: .28rem .38rem;
    font-size: .61rem;
  }
}
