:root {
  --bg: #fff8f4;
  --bg-soft: #f8eee8;
  --surface: #ffffff;
  --primary: #c98e7a;
  --primary-soft: #ebcfc6;
  --secondary: #d8a79a;
  --text: #5a4037;
  --muted: #86665a;
  --success: #8faf8a;
  --danger: #b86464;
  --line: rgba(90, 64, 55, 0.14);
  --shadow: 0 18px 48px rgba(90, 64, 55, 0.12);
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(235, 207, 198, 0.42), transparent 34rem),
    linear-gradient(180deg, var(--bg) 0%, #fff 52%, var(--bg-soft) 100%);
  color: var(--text);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.app-shell {
  min-height: 100vh;
  padding-bottom: 92px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 44px);
  background: rgba(255, 248, 244, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.brand img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(201, 142, 122, 0.32);
}

.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.ghost-button,
.primary-button,
.success-button,
.danger-button {
  border: 0;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 16px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  padding: 0;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}

.ghost-button {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}

.primary-button {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(201, 142, 122, 0.28);
}

.success-button {
  background: var(--success);
  color: #fff;
  box-shadow: 0 12px 24px rgba(143, 175, 138, 0.28);
}

.danger-button {
  background: var(--danger);
  color: #fff;
}

a.primary-button,
a.success-button,
a.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.icon-button:hover,
.ghost-button:hover,
.primary-button:hover,
.success-button:hover,
.danger-button:hover {
  transform: translateY(-1px);
}

.main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.view {
  display: none;
  padding: clamp(22px, 4vw, 44px) 0;
}

.view.active {
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  min-height: min(84vh, 760px);
  padding-top: 18px;
}

.hero-copy {
  display: grid;
  gap: 20px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: flex-start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(235, 207, 198, 0.56);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 900;
}

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

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 8vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

h3 {
  font-size: 1.05rem;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.lead {
  max-width: 650px;
  font-size: clamp(1.02rem, 2vw, 1.25rem);
}

.section-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-media {
  position: relative;
  min-height: min(68vh, 640px);
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(201, 142, 122, 0.18), transparent 48%), rgba(255, 248, 244, 0.9);
  box-shadow: var(--shadow);
}

.hero-logo {
  width: min(360px, 80%);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  padding: 26px;
  box-shadow: 0 28px 68px rgba(90, 64, 55, 0.18);
}

.home-section,
.catalog-results {
  margin-top: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(90, 64, 55, 0.08);
}

.gallery-grid img:nth-child(1),
.gallery-grid img:nth-child(4) {
  grid-column: span 2;
  grid-row: span 2;
}

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

.grid {
  display: grid;
  gap: 16px;
}

.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.category-card,
.product-card,
.review-card,
.admin-card,
.privacy-panel,
.order-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 30px rgba(90, 64, 55, 0.08);
}

.category-card {
  padding: 18px;
  text-align: left;
}

.category-card strong {
  display: block;
  margin-top: 8px;
}

.product-card {
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(90, 64, 55, 0.14);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--bg-soft);
}

.product-card-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.product-meta,
.chips,
.stars-row,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
}

.chip.selected {
  background: var(--primary);
  color: #fff;
}

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 18px;
}

.field,
.textarea,
.select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  padding: 10px 12px;
  outline: 0;
}

.textarea {
  min-height: 112px;
  resize: vertical;
}

.textarea.compact {
  min-height: 78px;
}

.field:focus,
.textarea:focus,
.select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(201, 142, 122, 0.18);
}

.builder {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 22px;
  align-items: start;
}

.builder-image {
  position: sticky;
  top: 98px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.builder-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.builder-form,
.admin-panel,
.about-layout {
  display: grid;
  gap: 16px;
}

.option-group {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.option-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.option-list .chip {
  border: 0;
  white-space: nowrap;
}

.reviews-layout,
.admin-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 22px;
  align-items: start;
}

.review-form,
.admin-form,
.login-box {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.review-card,
.admin-card,
.order-card {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.star-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--secondary);
  font-size: 1.15rem;
}

.star-button.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 12px max(10px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-bottom))
    max(10px, env(safe-area-inset-right));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(90, 64, 55, 0.12);
  backdrop-filter: blur(20px);
}

.nav-button {
  display: grid;
  place-items: center;
  gap: 3px;
  min-height: 60px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  transition: background 160ms ease, transform 160ms ease, color 160ms ease;
}

.nav-button:hover {
  transform: translateY(-1px);
}

.nav-button.active {
  background: rgba(201, 142, 122, 0.12);
  color: var(--primary);
}

.nav-button span:first-child {
  font-size: 1.18rem;
}

.nav-button.active {
  background: var(--bg-soft);
  color: var(--text);
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 35;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 16px 32px rgba(143, 175, 138, 0.35);
}

.floating-whatsapp svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}

.about-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
}

.about-logo {
  width: 132px;
  border-radius: 50%;
}

.privacy-panel {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 0;
  padding: 18px 0 26px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.footer a {
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
}

.footer a .brand-mark {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-right: 0.08em;
  color: var(--text);
  vertical-align: middle;
}

.footer a .brand-rest {
  display: inline-block;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.about-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.12em;
  color: var(--text);
  text-decoration: none;
}

.about-brand:hover {
  color: var(--primary);
}

.hidden {
  display: none !important;
}

@media (max-width: 760px) {
  .top-actions .ghost-button {
    display: none;
  }

  .hero,
  .builder,
  .reviews-layout,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    min-height: 420px;
  }

  .builder-image {
    position: static;
  }

  .section-head,
  .catalog-tools {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
