:root {
  --bg: #fbf9fe;
  --surface: #ffffff;
  --surface-soft: #f1e9ff;
  --lavender: #bba3e7;
  --purple: #8f73c4;
  --purple-dark: #695094;
  --pink: #f2b7e8;
  --text: #4d435b;
  --muted: #766e80;
  --border: #e8def4;
  --shadow: 0 18px 45px rgba(105, 80, 148, .10);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1,
h2,
h3,
.main-nav a,
.button {
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.section-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}


/* ==============================
   CABEÇALHO
   ============================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 10px max(18px, calc((100% - 1180px) / 2));
  background: rgba(251, 249, 254, .92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(232, 222, 244, .8);
}

.brand img {
  width: 210px;
  max-height: 68px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: .95rem;
}

.main-nav a:hover {
  color: var(--purple-dark);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.7rem;
  color: var(--purple-dark);
}


/* ==============================
   HERO
   ============================== */

.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  padding: 74px 0 64px;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  display: inline-block;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: 10px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Outfit", "DM Sans", sans-serif;
  font-weight: 700;
  line-height: 1.04;
  color: var(--purple-dark);
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  letter-spacing: -.04em;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 14px;
}

h3 {
  font-family: "Outfit", "DM Sans", sans-serif;
  color: var(--purple-dark);
  line-height: 1.2;
}

.hero-copy p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-visual {
  background: transparent;
  border-radius: 42px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}


/* ==============================
   BOTÕES
   ============================== */

.button {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 700;
  transition: .2s ease;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.button.primary {
  background: var(--purple);
  color: white;
}

.button.primary:hover {
  background: var(--purple-dark);
  transform: translateY(-1px);
}

.button.secondary {
  background: white;
  color: var(--purple-dark);
  border-color: var(--border);
}

.button.secondary:hover {
  border-color: var(--lavender);
  background: #fdfbff;
}


/* ==============================
   SEÇÕES
   ============================== */

.search-section,
.categories,
.products,
.how-it-works,
.invite-types,
.custom-section {
  padding: 72px 0;
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading.centered {
  text-align: center;
}

.row-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}


/* ==============================
   BUSCA
   ============================== */

.search-box {
  width: min(800px, 100%);
  margin: 0 auto;
  display: flex;
  gap: 12px;
  align-items: center;
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 20px;
  box-shadow: var(--shadow);
}

.search-box span {
  font-size: 1.5rem;
  color: var(--purple);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 15px 0;
  background: transparent;
  color: var(--text);
}

.search-status {
  text-align: center;
  color: var(--muted);
  min-height: 25px;
  margin-top: 12px;
}


/* ==============================
   CATEGORIAS
   ============================== */

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.category-card {
  background: var(--surface-soft);
  border: 1px solid #d8c8ef;
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: .2s ease;
}

.category-card:not(.category-card-wide) {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(
    145deg,
    #f1e7ff 0%,
    #e7d8fb 100%
  );
  border-color: #ceb7eb;
  box-shadow: 0 10px 26px rgba(105, 80, 148, .11);
}

.category-card:not(.category-card-wide) h3 {
  color: var(--purple-dark);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(105, 80, 148, .16);
  border-color: var(--purple);
}

.category-card:not(.category-card-wide):hover {
  background: linear-gradient(
    145deg,
    #eadcff 0%,
    #dcc8f6 100%
  );
}

.category-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  color: var(--purple-dark);
  font-size: 1.2rem;
  margin-bottom: 18px;
  flex: 0 0 auto;
  box-shadow: 0 5px 14px rgba(105, 80, 148, .10);
}

.category-card p {
  color: #655b72;
  margin-bottom: 0;
  font-size: .95rem;
}

.category-card-wide {
  grid-column: 1 / -1;
  min-height: 130px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 24px 30px;
  background: #f6f0ff;
}

.category-card-wide .category-icon {
  margin-bottom: 0;
}

.category-wide-copy h3 {
  margin-bottom: 7px;
}

.category-wide-copy p {
  max-width: 760px;
}


/* ==============================
   PRODUTOS
   ============================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(105, 80, 148, .06);
  transition: .2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-card[hidden] {
  display: none;
}

.product-media {
  background: var(--surface-soft);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 22px;
}

.product-type {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: var(--purple);
  font-weight: 700;
}

.product-info h3 {
  font-size: 1.25rem;
  margin: 8px 0 12px;
}

.price {
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 18px;
}

.product-button {
  width: 100%;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--purple-dark);
  font-weight: 700;
}


/* ==============================
   COMO FUNCIONA
   ============================== */

.how-it-works {
  background: linear-gradient(
    180deg,
    transparent,
    rgba(241, 233, 255, .75),
    transparent
  );
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.step {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.step strong {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--purple);
  color: white;
  margin-bottom: 16px;
}

.step p {
  color: var(--muted);
  margin-bottom: 0;
}




/* ==============================
   TIPOS DE CONVITE
   ============================== */

.invite-types-intro {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
}

.invite-types-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.invite-type-card {
  min-width: 0;
  overflow: hidden;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 25px rgba(105, 80, 148, .07);
  transition: .2s ease;
  display: flex;
  flex-direction: column;
}

.invite-type-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #d8c8ef;
}

.invite-type-image {
  width: 100%;
  background: #f8f4fc;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.invite-type-image img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  display: block;
}

.invite-type-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: flex-start;
  min-height: 0;
}

.invite-type-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: .74rem;
  font-weight: 800;
}

.invite-type-content h3 {
  font-size: 1.35rem;
  margin: 0 0 10px;
}

.invite-type-content p {
  color: var(--muted);
  margin-bottom: 20px;
}

.invite-type-price {
  margin-top: auto;
  margin-bottom: 18px;
}

.invite-type-price small {
  display: block;
  color: var(--muted);
  font-size: .8rem;
  margin-bottom: 2px;
}

.invite-type-price strong {
  display: block;
  color: var(--purple-dark);
  font-family: "Outfit", "DM Sans", sans-serif;
  font-size: 1.65rem;
  line-height: 1.1;
}

.invite-type-cta {
  width: 100%;
}

@media (max-width: 900px) {
  .invite-types-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .invite-types-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .invite-type-image {
    padding: 0;
  }

  .invite-type-image img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  .invite-type-content {
    padding: 20px;
    min-height: 0;
  }

  .invite-type-content h3 {
    font-size: 1.2rem;
  }

  .invite-type-content p {
    font-size: .9rem;
    line-height: 1.5;
  }
}


/* ==============================
   PERSONALIZADO
   ============================== */

.custom-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 36px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  padding: 44px;
  border-radius: var(--radius-xl);
}

.custom-card p {
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 0;
}


/* ==============================
   RODAPÉ
   ============================== */

.site-footer {
  text-align: center;
  padding: 54px 20px 40px;
  border-top: 1px solid var(--border);
  background: white;
}

.site-footer img {
  width: 210px;
  margin: 0 auto 18px;
}

.site-footer p {
  color: var(--muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: var(--purple-dark);
  font-weight: 700;
}

.footer-links a {
  transition: .2s ease;
}

.footer-links a:hover {
  color: var(--purple);
}


/* ==============================
   MODAL
   ============================== */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(53, 42, 69, .46);
  z-index: 80;
  display: none;
  place-items: center;
  padding: 18px;
  overflow-y: auto;
}

.modal.open {
  display: grid;
}

.modal-card {
  position: relative;
  width: min(480px, 100%);
  background: white;
  padding: 36px;
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 80px rgba(53, 42, 69, .25);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
}

.modal-card p {
  color: var(--muted);
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 12px;
  border: 0;
  background: transparent;
  font-size: 2rem;
  color: var(--purple-dark);
}


/* ==============================
   RESPONSIVO PRINCIPAL
   ============================== */

@media (max-width: 900px) {

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 76px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }

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

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 48px;
  }

  .hero-visual {
    max-width: 620px;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

}


@media (max-width: 600px) {

  .section-shell {
    width: min(100% - 24px, 1180px);
  }

  .brand img {
    width: 165px;
  }

  .site-header {
    min-height: 70px;
  }

  .hero {
    gap: 28px;
    padding: 40px 0 34px;
  }

  h1 {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  .hero-actions .button {
    width: 100%;
  }

  .search-section,
  .categories,
  .products,
  .how-it-works,
  .invite-types,
  .custom-section {
    padding: 52px 0;
  }

  /* 3 categorias principais lado a lado */
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .category-card {
    border-radius: 16px;
  }

  .category-card:not(.category-card-wide) {
    padding: 14px 7px;
    text-align: center;
    align-items: center;
    justify-content: center;
  }

  .category-card:not(.category-card-wide) .category-icon {
    width: 34px;
    height: 34px;
    margin-bottom: 9px;
    font-size: .95rem;
  }

  .category-card:not(.category-card-wide) h3 {
    font-size: .92rem;
    margin: 0;
  }

  .category-card:not(.category-card-wide) p {
    display: none;
  }

  /* Personalizados como faixa abaixo */
  .category-card-wide {
    min-height: auto;
    padding: 18px;
    gap: 14px;
    text-align: left;
  }

  .category-card-wide .category-icon {
    width: 38px;
    height: 38px;
  }

  .category-card-wide h3 {
    font-size: 1rem;
    margin-bottom: 3px;
  }

  .category-card-wide p {
    font-size: .8rem;
    line-height: 1.4;
  }

  /* 2 modelos lado a lado no celular */
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-card {
    border-radius: 15px;
  }

  .product-info {
    padding: 12px 10px 13px;
  }

  .product-type {
    display: block;
    font-size: .58rem;
    letter-spacing: .06em;
    line-height: 1.35;
  }

  .product-info h3 {
    font-size: .87rem;
    line-height: 1.2;
    margin: 6px 0 8px;
  }

  .price {
    font-size: .9rem;
    margin-bottom: 10px;
  }

  .product-button {
    min-height: 38px;
    padding: 8px 6px;
    font-size: .7rem;
    line-height: 1.15;
    text-align: center;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .step {
    padding: 18px 14px;
  }

  .step strong {
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
  }

  .step h3 {
    font-size: .95rem;
    margin-bottom: 6px;
  }

  .step p {
    font-size: .8rem;
    line-height: 1.4;
  }

  .row-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .custom-card {
    padding: 30px 24px;
  }

  .footer-links {
    font-size: .9rem;
  }

  .modal-card {
    padding: 32px 22px 24px;
  }

}


/* ==============================
   PÁGINA INDIVIDUAL DE PRODUTO
   ============================== */

.product-page {
  background: var(--bg);
}

.product-detail {
  padding: 44px 0 76px;
}

.product-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: 32px;
}

.product-breadcrumb a:hover {
  color: var(--purple-dark);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.product-detail-media {
  background: var(--surface-soft);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 500px;
}

.product-detail-media img {
  width: 100%;
  height: auto;
}

.product-detail-copy {
  padding-top: 18px;
}

.product-detail-copy h1 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  margin-bottom: 20px;
}

.product-detail-intro {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 650px;
}

.product-detail-price {
  font-family: "Outfit", sans-serif;
  color: var(--purple-dark);
  font-size: 2rem;
  font-weight: 800;
  margin: 26px 0;
}

.included-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin: 0 0 24px;
}

.included-box h2 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.included-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.included-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
}

.included-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--purple);
  font-weight: 800;
}

.product-main-cta {
  min-width: 230px;
}

.product-note {
  color: var(--muted);
  font-size: .9rem;
  margin: 14px 0 0;
  max-width: 560px;
}


/* ==============================
   DEMONSTRAÇÃO
   ============================== */

.product-demo-section {
  padding: 84px 0;
  background: linear-gradient(
    180deg,
    rgba(241, 233, 255, .75),
    rgba(251, 249, 254, .9)
  );
}

.product-demo-grid {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 56px;
  align-items: center;
}

.product-demo-copy p {
  color: var(--muted);
  max-width: 440px;
}

.video-frame {
  width: min(460px, 100%);
  justify-self: center;
  background: #16131c;
  padding: 12px;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(53, 42, 69, .22);
}

.video-frame video {
  display: block;
  width: 100%;
  max-height: 760px;
  border-radius: 20px;
  background: #000;
}


/* ==============================
   PERSONALIZAÇÃO DO PRODUTO
   ============================== */

.product-personalization {
  padding: 84px 0;
}

.personalization-card {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 50px;
  align-items: center;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: 0 10px 30px rgba(105, 80, 148, .06);
}

.personalization-card h2 {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
}

.personalization-card p {
  color: var(--muted);
  max-width: 680px;
}

.personalization-points {
  display: grid;
  gap: 14px;
}

.personalization-points div {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 14px;
  background: var(--surface-soft);
  border-radius: 16px;
  padding: 16px;
}

.personalization-points strong {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--purple);
  color: white;
}

.personalization-points span {
  font-weight: 700;
  color: var(--purple-dark);
}

.product-order {
  padding: 0 0 90px;
}

.product-order-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 42px;
}

.product-order-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 8px;
}

.product-order-card p {
  margin-bottom: 0;
  color: var(--muted);
}


@media (max-width: 900px) {

  .product-detail-grid,
  .product-demo-grid,
  .personalization-card {
    grid-template-columns: 1fr;
  }

  .product-detail-grid {
    gap: 36px;
  }

  .product-detail-media {
    margin: 0 auto;
  }

  .product-demo-copy {
    text-align: center;
  }

  .product-demo-copy p {
    margin-left: auto;
    margin-right: auto;
  }

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

}


@media (max-width: 600px) {

  .product-detail {
    padding: 30px 0 54px;
  }

  .product-detail-copy h1 {
    font-size: clamp(2.25rem, 12vw, 3.4rem);
  }

  .product-detail-price {
    font-size: 1.7rem;
  }

  .product-main-cta,
  .product-order-card .button {
    width: 100%;
  }

  .product-demo-section,
  .product-personalization {
    padding: 58px 0;
  }

  .personalization-card,
  .product-order-card {
    padding: 28px 22px;
  }

  .video-frame {
    padding: 8px;
    border-radius: 22px;
  }

  .video-frame video {
    border-radius: 16px;
  }

}


/* ==============================
   FORMULÁRIOS
   ============================== */

.order-form-card {
  width: min(560px, 100%);
}

.order-form-intro {
  margin-bottom: 22px;
}

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

.order-form label {
  display: grid;
  gap: 7px;
}

.order-form label > span {
  font-weight: 700;
  color: var(--purple-dark);
  font-size: .92rem;
}

.order-form input,
.order-form select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  padding: 13px 14px;
  outline: none;
  transition: .2s ease;
}

.order-form input:focus,
.order-form select:focus {
  border-color: var(--lavender);
  box-shadow: 0 0 0 4px rgba(187, 163, 231, .16);
}

.order-form input[readonly] {
  background: var(--surface-soft);
  color: var(--purple-dark);
  font-weight: 800;
  cursor: default;
}

.whatsapp-submit {
  width: 100%;
  margin-top: 4px;
}


/* ==============================
   CATÁLOGOS E BUSCA GLOBAL
   ============================== */

.category-hero {
  padding: 78px 0 34px;
  text-align: center;
}

.category-hero h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  margin-bottom: 16px;
}

.category-hero p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
}

.category-catalog {
  padding: 24px 0 80px;
}

.category-search-box {
  margin-bottom: 8px;
}

.category-product-grid {
  margin-top: 30px;
}

.category-type-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0 6px;
}

.category-filter-button {
  border: 1px solid #d8c8ef;
  background: white;
  color: var(--purple-dark);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: .9rem;
  transition: .2s ease;
}

.category-filter-button:hover {
  border-color: var(--purple);
  background: #f6f0ff;
  transform: translateY(-1px);
}

.category-filter-button.active {
  background: var(--purple);
  border-color: var(--purple);
  color: white;
  box-shadow: 0 8px 20px rgba(105, 80, 148, .18);
}

.category-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  background: #f6f0ff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.category-empty strong {
  display: block;
  color: var(--purple-dark);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.category-empty p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 600px) {
  .category-type-filters {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2px 2px 10px;
    margin-top: 18px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .category-type-filters::-webkit-scrollbar {
    display: none;
  }

  .category-filter-button {
    flex: 0 0 auto;
    padding: 9px 15px;
    font-size: .82rem;
  }

  .category-empty {
    padding: 36px 18px;
  }
}

.catalog-search-results {
  width: min(800px, 100%);
  margin: 14px auto 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.catalog-search-results[hidden] {
  display: none;
}

.catalog-search-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  transition: .2s ease;
}

.catalog-search-item:last-child {
  border-bottom: 0;
}

.catalog-search-item:hover {
  background: var(--surface-soft);
}

.catalog-search-item img {
  width: 56px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  flex: 0 0 auto;
}

.catalog-search-item span {
  display: grid;
  gap: 3px;
}

.catalog-search-item strong {
  color: var(--purple-dark);
  line-height: 1.25;
}

.catalog-search-item small {
  color: var(--muted);
}


@media (max-width: 600px) {

  .category-hero {
    padding: 48px 0 24px;
  }

  .category-catalog {
    padding-top: 18px;
  }

}
