:root {
  --bg: #fff8fb;
  --panel: #ffffff;
  --text: #281520;
  --muted: #7d6874;
  --accent: #b83280;
  --accent-dark: #761d52;
  --wine: #301625;
  --soft: #f8ddea;
  --cream: #fff4e7;
  --champagne: #f7e4c8;
  --border: #efc4da;
  --green: #2f7a45;
  --shadow: 0 18px 44px rgba(118, 29, 82, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(239, 196, 218, 0.2) 1px, transparent 1px),
    linear-gradient(180deg, #fff 0%, var(--bg) 46%, var(--cream) 100%);
  background-size: 36px 36px, auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px min(5vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.brand {
  color: var(--accent-dark);
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 0;
}

nav {
  display: flex;
  gap: 14px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

nav::-webkit-scrollbar { display: none; }

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}

.hero {
  min-height: 78vh;
  padding: 22px min(5vw, 64px) 36px;
  color: white;
  background:
    linear-gradient(135deg, rgba(48, 22, 37, 0.98) 0%, rgba(184, 50, 128, 0.92) 55%, rgba(247, 228, 200, 0.88) 100%),
    linear-gradient(90deg, #301625, #b83280);
  overflow: hidden;
}

.hero-carousel {
  position: relative;
  width: min(1320px, 100%);
  margin: 0 auto;
}

.hero-track-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 24px 64px rgba(48, 22, 37, 0.24);
}

.hero-track {
  position: relative;
}

.hero-slide {
  display: none;
  min-height: 620px;
  position: relative;
  background:
    linear-gradient(135deg, rgba(48, 22, 37, 0.9), rgba(184, 50, 128, 0.72) 58%, rgba(247, 228, 200, 0.22)),
    var(--hero-banner-image),
    linear-gradient(135deg, rgba(48, 22, 37, 0.96), rgba(184, 50, 128, 0.9) 58%, rgba(247, 228, 200, 0.82));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slide.is-active {
  display: block;
}

.hero-slide-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(35, 14, 27, 0.84) 0%, rgba(35, 14, 27, 0.58) 40%, rgba(35, 14, 27, 0.18) 68%, rgba(35, 14, 27, 0.1) 100%),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.14), transparent 26%);
}

.hero-slide-inner {
  position: relative;
  z-index: 1;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: 36px;
  padding: 52px min(5vw, 56px);
}

.hero-slide-single {
  grid-template-columns: minmax(0, 720px);
  justify-content: flex-start;
}

.hero-content {
  width: min(680px, 100%);
}

.eyebrow {
  display: inline-block;
  color: var(--accent-dark);
  background: var(--soft);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

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

h1 {
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.98;
  margin: 16px 0;
}

.hero p {
  font-size: 19px;
  line-height: 1.55;
  max-width: 670px;
}

.hero-subtitle {
  margin: 0 0 8px;
  font-weight: 900;
  color: #ffe8f3;
}

.hero-meta {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.hero-carousel-controls {
  position: absolute;
  inset: auto 18px 18px 18px;
  z-index: 3;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 16px;
  pointer-events: none;
}

.hero-nav-button {
  width: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 28px;
  line-height: 1;
  pointer-events: auto;
}

.hero-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex: 1;
  pointer-events: auto;
}

.hero-dot {
  width: 12px;
  min-width: 12px;
  min-height: 12px;
  height: 12px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.hero-dot.is-active {
  width: 34px;
  background: white;
}

.beauty-item {
  position: absolute;
  display: block;
  border-radius: 14px;
  box-shadow: 0 16px 28px rgba(48, 22, 37, 0.18);
}

.beauty-item.lipstick {
  width: 46px;
  height: 170px;
  left: 22%;
  bottom: 16%;
  background: linear-gradient(180deg, var(--wine) 0 36%, var(--accent) 36% 72%, #f4bfd5 72%);
  transform: rotate(-18deg);
}

.beauty-item.compact {
  width: 148px;
  height: 148px;
  right: 15%;
  top: 16%;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 34%, #f8ddea 35% 58%, var(--accent) 59% 62%, #fff 63%);
}

.beauty-item.bottle {
  width: 82px;
  height: 178px;
  right: 27%;
  bottom: 13%;
  border-radius: 28px 28px 16px 16px;
  background: linear-gradient(180deg, #f7e4c8 0 16%, #ffffff 16% 62%, #f8ddea 62%);
}

.beauty-item.brush {
  width: 24px;
  height: 210px;
  left: 48%;
  top: 12%;
  background: linear-gradient(180deg, #3f2332 0 25%, var(--champagne) 25% 100%);
  transform: rotate(28deg);
}

.hero-actions, .catalog-actions, .detail-actions, .voice-controls, .controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.button, button {
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
}

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

.secondary, .light {
  color: var(--accent-dark);
  background: white;
}

button:hover, .button:hover { filter: brightness(0.96); }
button:disabled { opacity: 0.45; cursor: not-allowed; }

.catalog-section, .order-section, .assistant-section {
  padding: 54px min(5vw, 64px);
}

.hidden {
  display: none !important;
}

.featured-section {
  background: rgba(255, 255, 255, 0.52);
}

.catalog-section:nth-of-type(even),
.order-section,
.assistant-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(248, 221, 234, 0.18));
}

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

.compact-heading {
  margin-bottom: 18px;
}

.global-search-section {
  padding-top: 28px;
  padding-bottom: 28px;
}

.global-search-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.search-results-section {
  padding-top: 26px;
}

.section-heading p {
  color: var(--muted);
  max-width: 430px;
  line-height: 1.45;
}

.filters {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 220px) minmax(180px, 220px);
  gap: 10px;
  margin-bottom: 22px;
}

.global-filters {
  margin-bottom: 0;
}

.section-actions {
  display: flex;
  justify-content: flex-end;
  margin: -6px 0 18px;
}

.section-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 210px) minmax(160px, 210px);
  gap: 10px;
  margin-bottom: 18px;
}

.section-summary {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 18px;
}

.category-cards-grid,
.routine-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.category-card,
.routine-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.category-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  overflow: hidden;
}

.category-card-media {
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #fff2f8, #fffafc);
  padding: 14px;
}

.category-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.category-card-media span {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 30px;
  font-weight: 900;
}

.category-card-body {
  padding: 18px;
}

.category-card-body p {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.category-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.category-card-actions .button {
  padding: 10px 14px;
}

.routine-card {
  padding: 20px;
}

.routine-card-head p,
.routine-footer span {
  color: var(--muted);
}

.routine-products {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.routine-product-chip {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(184, 50, 128, 0.14);
  border-radius: 12px;
  padding: 10px;
  background: #fffafc;
}

.routine-product-chip img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.routine-product-chip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.routine-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

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

input, select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  padding: 13px;
  color: var(--text);
  font: inherit;
}

textarea { min-height: 96px; resize: vertical; }

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

.catalog-card, .assistant-card, .order-form, .cart-items {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.catalog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.product-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-bottom: 1px solid var(--border);
}

.product-media {
  display: grid;
  place-items: center;
  background: #fffafd;
  padding: 16px;
}

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

.catalog-card-body {
  padding: 14px;
  flex: 1;
}

.catalog-card.no-image .catalog-card-body {
  padding-top: 16px;
}

.catalog-card.no-image h3 {
  margin-top: 12px;
}

.catalog-card h3 {
  font-size: 18px;
  line-height: 1.18;
  margin: 10px 0 8px;
  min-height: 42px;
}

.catalog-card p {
  color: var(--muted);
  line-height: 1.42;
}

.description {
  min-height: 68px;
  margin-bottom: 10px;
}

.catalog-card.no-image .description {
  min-height: 0;
}

.code, .category, .availability, .benefits, .benefit-lead {
  font-size: 13px;
}

.benefit-lead {
  margin: 0 0 6px;
  color: var(--accent-dark) !important;
  font-weight: 800;
}

.benefits {
  margin: 0 0 10px;
}

.price {
  display: block;
  color: var(--accent-dark);
  margin-top: 8px;
  font-size: 18px;
}

.price-stack {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.price-regular {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 13px;
}

.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pill {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.light-pill {
  background: var(--cream);
  color: #6b4c2c;
}

.offer-pill {
  background: rgba(184, 50, 128, 0.14);
  color: var(--accent-dark);
}

.image-status-label {
  display: inline-block;
  padding: 4px 8px;
  border: 1px dashed var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: #fffafd;
  font-size: 11px;
  font-weight: 800;
}

.catalog-actions {
  padding: 0 14px 14px;
}

.catalog-actions button {
  flex: 1;
  min-width: 132px;
  padding: 10px;
  font-size: 13px;
}

.catalog-card.has-image .catalog-actions {
  margin-top: auto;
}

.catalog-actions button:nth-child(2),
.detail-actions button:nth-child(2) {
  background: var(--wine);
}

.catalog-actions button:nth-child(3),
.detail-actions button:nth-child(3) {
  background: white;
  color: var(--accent-dark);
  border: 1px solid var(--border);
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
}

.cart-items, .order-form {
  padding: 16px;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.cart-row:last-child { border-bottom: 0; }

.cart-row span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.qty-controls button {
  min-width: 36px;
  min-height: 36px;
  padding: 0 8px;
}

.qty {
  min-width: 28px;
  text-align: center;
  font-weight: 900;
  color: var(--text) !important;
}

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

.cart-total {
  font-weight: 900;
  color: var(--accent-dark);
  padding: 8px 0;
}

.whatsapp-preview {
  min-height: 24px;
  font-size: 14px;
}

.whatsapp-preview a {
  color: var(--accent-dark);
  font-weight: 900;
}

.assistant-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(248, 221, 234, 0.38));
}

.assistant-card {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 20px;
}

.assistant-preview-note {
  min-height: auto;
}

.assistant-preview-note .message {
  margin: 0;
}

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

.chat-header p { margin: 4px 0 0; color: var(--muted); }

.status {
  padding: 8px 12px;
  border-radius: 999px;
  background: #eefaf1;
  color: var(--green);
  font-weight: 800;
  font-size: 13px;
}

.chat-box {
  height: 420px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: #fffafd;
}

.message {
  max-width: 86%;
  padding: 11px 13px;
  border-radius: 12px;
  margin-bottom: 10px;
  line-height: 1.45;
}

.message.bot { background: var(--soft); }
.message.user { background: var(--accent); color: white; margin-left: auto; }

.controls {
  margin-top: 12px;
}

.controls input { flex: 1 1 260px; }

.assistant-products {
  display: grid;
  gap: 10px;
  margin: 8px 0 12px;
}

.assistant-product-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
}

.assistant-product-card img,
.assistant-product-card .mini-image-pending {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #fffafd;
  border-radius: 8px;
  border: 1px dashed var(--border);
  font-size: 10px;
  color: var(--muted);
  display: grid;
  place-items: center;
  text-align: center;
}

.assistant-product-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.assistant-product-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.assistant-product-actions button {
  min-width: 132px;
  padding: 9px 12px;
  font-size: 12px;
}

.assistant-product-actions button:last-child {
  background: white;
  color: var(--accent-dark);
  border: 1px solid var(--border);
}

.voice-controls {
  margin-top: 10px;
}

.voice-controls button { background: var(--wine); }

.mic-help {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fffafd;
  padding: 10px 12px;
}

.mic-help summary { cursor: pointer; font-weight: 900; }
.mic-help p { color: var(--muted); }

#audioPlayer { width: 100%; margin-top: 14px; }

dialog {
  width: min(960px, 94vw);
  border: 0;
  border-radius: 14px;
  padding: 0;
  box-shadow: var(--shadow);
}

dialog::backdrop { background: rgba(45, 23, 37, 0.42); }

.modal-content {
  position: relative;
  padding: 22px;
}

.icon-button {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 24px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
}

.detail-no-image {
  display: block;
  max-width: 760px;
}

.detail-media,
.detail-grid > img,
.detail-grid > .product-media {
  width: 100%;
  min-height: 330px;
  max-height: 440px;
  background: #fffafd;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.detail-media {
  display: grid;
  place-items: center;
  padding: 22px;
}

.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-grid > .product-media {
  aspect-ratio: auto;
  border-bottom: 1px solid var(--border);
}

.detail-description,
.detail-usage {
  color: var(--muted);
  line-height: 1.6;
}

.detail-benefits {
  margin: 0 0 18px 18px;
  padding: 0;
  color: var(--text);
}

.detail-benefits li {
  margin-bottom: 8px;
  line-height: 1.45;
}

.detail-toggle {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 10px 0;
  background: #fffafd;
}

.detail-toggle summary {
  cursor: pointer;
  font-weight: 800;
}

.detail-toggle p {
  color: var(--muted);
  line-height: 1.55;
  margin: 10px 0 0;
}

.promo-text,
.detail-reviews {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
}

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

.warning {
  color: var(--accent-dark) !important;
  font-weight: 900;
}

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

@media (max-width: 1040px) {
  .products-grid,
  .category-cards-grid,
  .routine-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .section-toolbar {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
    padding-inline: 18px;
  }

  .hero-slide,
  .hero-slide-inner {
    min-height: auto;
  }

  .hero-slide-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 22px 28px;
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .category-card {
    grid-template-columns: 96px 1fr;
  }

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

@media (max-width: 620px) {
  body { background-size: 28px 28px, auto; }

  .site-header, .section-heading, .chat-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    padding: 14px 16px 24px;
  }

  .hero-slide-inner {
    padding: 26px 18px 22px;
  }

  .hero-carousel-controls {
    inset: auto 12px 12px 12px;
    gap: 12px;
  }

  .hero-nav-button {
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    font-size: 24px;
  }

  h1 {
    font-size: clamp(40px, 16vw, 56px);
  }

  .hero p {
    font-size: 16px;
  }

  .hero-actions .button,
  .catalog-actions button,
  .order-form button,
  .controls button,
  .voice-controls button {
    width: 100%;
    min-height: 48px;
    text-align: center;
  }

  .catalog-section, .order-section, .assistant-section {
    padding: 34px 16px;
  }

  .filters,
  .products-grid,
  .category-cards-grid,
  .routine-grid,
  .section-toolbar {
    grid-template-columns: 1fr;
  }

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

  .category-card-media {
    min-height: 120px;
  }

  .catalog-actions,
  .detail-actions,
  .controls,
  .voice-controls,
  .routine-actions,
  .category-card-actions {
    flex-direction: column;
  }

  .section-actions {
    justify-content: stretch;
  }

  .section-actions .button,
  .routine-actions button,
  .category-card-actions .button {
    width: 100%;
  }

  .description {
    min-height: auto;
  }

  .assistant-product-card {
    grid-template-columns: 52px 1fr;
  }

  .assistant-product-actions,
  .assistant-product-card button {
    grid-column: 1 / -1;
  }

  .message {
    max-width: 95%;
  }

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

  .qty-controls {
    width: 100%;
  }

  .qty-controls button {
    min-width: 42px;
  }

  dialog {
    width: 96vw;
  }

  .modal-content {
    padding: 18px;
  }

  .detail-grid > img,
  .detail-grid > .product-media,
  .detail-media {
    min-height: 240px;
  }
}
