:root {
  --sand: #f6efe5;
  --paper: #fffaf3;
  --ink: #35261d;
  --muted: #776353;
  --line: rgba(53, 38, 29, 0.14);
  --terracotta: #b9623f;
  --sage: #64785b;
  --saffron: #c99027;
  --plum: #6e4e63;
  --whatsapp: #25d366;
  --panel-shadow: 0 24px 70px rgba(53, 38, 29, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(201, 144, 39, 0.13), transparent 28%),
    linear-gradient(180deg, #fbf5ec 0%, #f5eee3 100%);
}

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

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

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

.hidden {
  display: none !important;
}

.eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.eyebrow-fill {
  display: inline-flex;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(185, 98, 63, 0.12);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.9rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

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

.button-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 30px rgba(53, 38, 29, 0.18);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--line);
  color: var(--ink);
}

.button-outline {
  background: transparent;
  border-color: var(--line);
}

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

.button-block {
  width: 100%;
}

.field-stack {
  display: grid;
  gap: 0.45rem;
}

.field-stack span {
  font-size: 0.92rem;
  font-weight: 700;
}

.field-stack input,
.field-stack textarea,
.field-stack select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
}

.field-stack textarea {
  resize: vertical;
}

.status-line {
  min-height: 1.4rem;
  margin: 0.85rem 0 0;
  color: var(--terracotta);
  font-size: 0.94rem;
}

.store-body {
  position: relative;
  overflow-x: hidden;
}

.storeback {
  position: fixed;
  inset: auto auto 0 0;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(18px);
}

.storeback.one {
  width: 360px;
  height: 360px;
  left: -80px;
  top: 140px;
  background: rgba(185, 98, 63, 0.15);
}

.storeback.two {
  width: 420px;
  height: 420px;
  right: -120px;
  bottom: -90px;
  background: rgba(100, 120, 91, 0.13);
}

.site-header,
.site-footer,
.hero-panel,
.section-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 18px;
  padding: 0.9rem 1rem;
  background: rgba(255, 250, 243, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  backdrop-filter: blur(18px);
  box-shadow: var(--panel-shadow);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-lockup h1 {
  margin: 0;
  font-size: 1.18rem;
  font-family: "Cormorant Garamond", serif;
  line-height: 0.95;
}

.brand-logo {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(53, 38, 29, 0.08);
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.45fr 0.95fr;
  gap: 1.4rem;
  padding: 4rem 0 2rem;
}

.hero-copy,
.hero-card,
.summary-card,
.feature-panel,
.review-card,
.admin-panel,
.stat-card,
.login-card,
.log-box {
  background: rgba(255, 250, 243, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  box-shadow: var(--panel-shadow);
}

.hero-copy {
  padding: 2.3rem;
}

.display-title,
.section-head h2,
.panel-head h2,
.login-card h1,
.admin-topbar h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.section-head h2,
.panel-head h2,
.admin-topbar h1,
.login-card h1 {
  font-size: clamp(1.7rem, 2.8vw, 2.7rem);
}

.hero-subtitle,
.hero-card-copy,
.hero-card-foot,
.section-head p:last-child,
.feature-panel p,
.review-card p,
.summary-card,
.admin-panel p,
.log-box p,
.login-card p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-actions,
.button-row,
.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.hero-metrics article,
.summary-total {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(53, 38, 29, 0.08);
}

.hero-metrics strong,
.summary-total strong,
.stat-card strong {
  display: block;
  font-size: 1.15rem;
}

.hero-card {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1.6rem;
}

.hero-card-logo {
  width: min(100%, 360px);
  border-radius: 24px;
  margin: 0 auto;
}

.marquee-shell {
  overflow: hidden;
  margin: 0 auto;
  width: 100%;
  padding: 0.5rem 0 1rem;
}

.marquee-track {
  display: flex;
  gap: 0.85rem;
  width: max-content;
  padding-left: 16px;
  animation: scroll-track 22s linear infinite;
}

.marquee-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(53, 38, 29, 0.9);
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  font-size: 0.9rem;
}

.section-shell {
  padding: 2rem 0 1rem;
}

.section-head {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.4rem;
  align-items: start;
  margin-bottom: 1.4rem;
}

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

.product-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: 26px;
  background: rgba(255, 250, 243, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--panel-shadow);
}

.product-card-media,
.preview-card-mount .product-card-media,
.upload-preview img,
.upload-preview video {
  aspect-ratio: 16 / 11;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.45), transparent 35%),
    linear-gradient(145deg, rgba(53, 38, 29, 0.08), rgba(255, 255, 255, 0.4));
  border: 1px solid rgba(53, 38, 29, 0.08);
}

.product-card-media img,
.product-card-media video,
.upload-preview img,
.upload-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.accent-terracotta .product-placeholder {
  color: var(--terracotta);
  background: linear-gradient(135deg, rgba(185, 98, 63, 0.12), rgba(255, 255, 255, 0.4));
}

.accent-sage .product-placeholder {
  color: var(--sage);
  background: linear-gradient(135deg, rgba(100, 120, 91, 0.12), rgba(255, 255, 255, 0.4));
}

.accent-saffron .product-placeholder {
  color: var(--saffron);
  background: linear-gradient(135deg, rgba(201, 144, 39, 0.16), rgba(255, 255, 255, 0.45));
}

.accent-plum .product-placeholder {
  color: var(--plum);
  background: linear-gradient(135deg, rgba(110, 78, 99, 0.15), rgba(255, 255, 255, 0.42));
}

.product-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.product-card-header h3,
.feature-panel h3,
.log-box h3 {
  margin: 0;
  font-size: 1.2rem;
}

.product-badge {
  display: inline-flex;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(53, 38, 29, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.product-price strong {
  font-size: 1.3rem;
}

.product-price span {
  color: var(--muted);
  font-size: 0.92rem;
}

.product-meta,
.summary-lines,
.latest-clicks {
  display: grid;
  gap: 0.55rem;
}

.product-meta li,
.summary-item,
.latest-click-item {
  color: var(--muted);
  font-size: 0.93rem;
}

.product-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.split-shell {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
  align-items: start;
}

.builder-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.builder-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(53, 38, 29, 0.08);
}

.builder-row h3 {
  margin: 0;
  font-size: 1rem;
}

.builder-row p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.builder-row input {
  width: 76px;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
}

.summary-card {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
}

.empty-note {
  margin: 0;
}

.feature-grid,
.review-grid,
.stats-grid {
  display: grid;
  gap: 1rem;
}

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

.feature-panel,
.review-card,
.stat-card {
  padding: 1.4rem;
}

.feature-panel-dark {
  background: linear-gradient(150deg, rgba(53, 38, 29, 0.94), rgba(84, 55, 40, 0.98));
  color: #fff;
}

.feature-panel-dark .eyebrow,
.feature-panel-dark p,
.feature-panel-dark h3 {
  color: rgba(255, 255, 255, 0.9);
}

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

.review-card span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 1rem;
  background: rgba(185, 98, 63, 0.12);
  font-weight: 800;
  color: var(--terracotta);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 2rem 0 3rem;
}

.admin-body {
  background: linear-gradient(180deg, #f4eadc 0%, #efe4d4 100%);
}

.login-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 20px;
}

.login-card {
  width: min(480px, 100%);
  padding: 2rem;
}

.admin-shell {
  width: min(1360px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.notice-banner {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(201, 144, 39, 0.16);
  border: 1px solid rgba(201, 144, 39, 0.22);
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-columns {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1rem;
  align-items: start;
}

.admin-sidebar,
.admin-main {
  display: grid;
  gap: 1rem;
}

.admin-panel,
.admin-sidebar {
  padding: 1.25rem;
}

.admin-sidebar {
  background: rgba(255, 250, 243, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  box-shadow: var(--panel-shadow);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.panel-head h2 {
  margin-top: 0.1rem;
}

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

.form-span-2 {
  grid-column: 1 / -1;
}

.product-list {
  display: grid;
  gap: 0.75rem;
}

.product-list-item {
  display: grid;
  gap: 0.7rem;
  padding: 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(53, 38, 29, 0.08);
}

.product-list-item h3 {
  margin: 0;
  font-size: 1rem;
}

.product-list-item p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.list-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.list-chip {
  display: inline-flex;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(185, 98, 63, 0.12);
  color: var(--terracotta);
  font-size: 0.78rem;
  font-weight: 700;
}

.editor-grid,
.security-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.preview-shell,
.log-box {
  display: grid;
  align-content: start;
}

.preview-card-mount {
  min-height: 320px;
}

.upload-shell {
  display: grid;
  gap: 0.75rem;
}

.dropzone {
  display: grid;
  place-items: center;
  gap: 0.35rem;
  min-height: 160px;
  padding: 1rem;
  border: 1px dashed rgba(53, 38, 29, 0.24);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.6);
  text-align: center;
  cursor: pointer;
}

.dropzone p,
.dropzone span {
  margin: 0;
}

.dropzone span {
  color: var(--muted);
  font-size: 0.88rem;
}

.upload-preview {
  min-height: 120px;
}

.latest-clicks {
  margin-top: 1rem;
}

.latest-click-item {
  padding: 0.7rem 0;
  border-top: 1px solid rgba(53, 38, 29, 0.08);
}

@keyframes scroll-track {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-33%);
  }
}

@media (max-width: 1120px) {
  .hero-panel,
  .split-shell,
  .feature-grid,
  .admin-columns,
  .editor-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 820px) {
  .site-header,
  .admin-topbar,
  .site-footer {
    flex-direction: column;
    align-items: start;
  }

  .site-nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .hero-metrics,
  .review-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .builder-row {
    grid-template-columns: 1fr;
  }
}
