:root {
  --bg: #f6f6f5;
  --surface: #ffffff;
  --surface-soft: #fbfbfb;
  --text: #2c3136;
  --text-soft: #636b73;
  --line: #e5e7eb;
  --line-strong: #d7dbe0;
  --accent: #393d42;
  --accent-soft: #747c83;
  --accent-lilac: #9891a3;
  --ok: #24d366;
  --danger: #b42318;
  --radius: 14px;
  --shadow: 0 10px 28px rgba(42, 46, 52, 0.08);
  --shadow-soft: 0 5px 16px rgba(42, 46, 52, 0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: 'Manrope', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 0, 0, 0.04) 0, transparent 38%),
    radial-gradient(circle at 100% 100%, rgba(0, 0, 0, 0.035) 0, transparent 42%),
    linear-gradient(160deg, rgba(153, 145, 163, 0.08), transparent 35%),
    var(--bg);
}

a {
  color: inherit;
}

.top {
  width: min(1180px, calc(100% - 24px));
  margin: 14px auto 0;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: sticky;
  top: 10px;
  z-index: 50;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
  overflow: visible;
}

.brand-wrap {
  position: relative;
  flex-shrink: 0;
  width: 104px;
  align-self: stretch;
}

.brand-logo {
  position: absolute;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  left: 0;
  top: 50%;
  transform: translateY(-36%);
  border: 3px solid #ffffff;
  box-shadow:
    0 0 0 1.5px rgba(0, 0, 0, 0.08),
    0 10px 36px rgba(43, 47, 53, 0.26),
    0 3px 8px rgba(43, 47, 53, 0.10);
}

.brand-fallback {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 52px;
  line-height: 0.9;
  letter-spacing: 1px;
  text-transform: lowercase;
  color: var(--accent);
}

.brand-fallback span {
  display: inline-block;
  margin-left: 12px;
  font-family: 'Manrope', Arial, sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  vertical-align: middle;
}

.admin-link,
.logout-link,
.btn-primary,
.btn-neutral,
.btn-danger,
.btn-whatsapp {
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.admin-link {
  padding: 10px 14px;
  background: var(--surface);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.insta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--surface);
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.insta-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(36, 42, 48, 0.14);
  background: linear-gradient(135deg, #f9f3ff 0%, #fff0f5 100%);
  border-color: #d1b8e0;
}

.footer-insta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text-soft);
  font-weight: 600;
}

.footer-insta:hover {
  color: var(--text);
}

.admin-link:hover,
.logout-link:hover,
.btn-primary:hover,
.btn-neutral:hover,
.btn-danger:hover,
.btn-whatsapp:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(36, 42, 48, 0.14);
}

.hero {
  width: min(1180px, calc(100% - 24px));
  margin: 50px auto 0;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 250, 0.98)),
    repeating-linear-gradient(45deg, transparent, transparent 16px, rgba(0, 0, 0, 0.012) 16px, rgba(0, 0, 0, 0.012) 17px);
  padding: 42px 34px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.hero-logo-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.hero-logo {
  width: 165px;
  height: 165px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #f7f6f8;
  border: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 8px 32px rgba(43, 47, 53, 0.16),
    0 2px 6px rgba(43, 47, 53, 0.07);
}

.hero-slogan {
  margin: 0 0 8px;
  font-family: 'Parisienne', 'Times New Roman', serif;
  font-size: 30px;
  line-height: 1.05;
  color: rgba(57, 61, 66, 0.93);
  letter-spacing: 0.2px;
}

.hero-kicker {
  font-size: 11px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 8px;
}

.hero-marquee {
  margin: 6px auto 10px;
  max-width: 900px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.hero-marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  padding: 10px 16px;
  white-space: nowrap;
  color: #343941;
  font-size: 14px;
  font-weight: 600;
}

.hero-marquee.is-ready .hero-marquee-track {
  animation: heroMarquee var(--marquee-duration, 22s) linear infinite;
  will-change: transform;
}

.hero-marquee-group {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 0 0 auto;
}

.hero-marquee-track span {
  opacity: 0.95;
}

.hero-shipping {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 600;
  color: #3a4047;
  letter-spacing: 0.2px;
}

.hero p {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 16px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero p.hero-slogan {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.05;
  color: rgba(57, 61, 66, 0.93);
  max-width: none;
}

.hero-meta {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-pill {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.82);
}

.hero-pill strong {
  font-size: 13px;
  color: #2f343a;
}

.hero-pill span {
  font-size: 12px;
  color: var(--text-soft);
}

.container {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
}

.catalog-headline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin: 28px 2px 16px;
}

@keyframes heroMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-1 * var(--marquee-distance, 50%)));
  }
}

.benefits {
  margin: 0 0 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.benefit {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  text-align: center;
  padding: 9px 12px;
  font-size: 13px;
  color: #515961;
}

.catalog-headline h2 {
  font-size: 27px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--accent);
  font-weight: 600;
}

.catalog-headline p {
  color: var(--text-soft);
  font-size: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #d1d6de;
}

.media {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, #f1f2f4 0%, #e8eaee 100%);
  overflow: hidden;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card:hover .media img {
  transform: scale(1.04);
}

.placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--accent-soft);
  font-size: 13px;
}

.card-content {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card h3 {
  font-size: 16px;
  color: var(--accent);
  line-height: 1.35;
}

.price {
  margin: 8px 0 10px;
  font-size: 24px;
  font-weight: 800;
  color: #1f2428;
}

.desc {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
  line-clamp: 3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  min-height: 64px;
}

.btn-whatsapp {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  background: var(--ok);
  color: #fff;
  border: none;
}

.btn-whatsapp:active {
  transform: translateY(1px);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 58px 20px;
}

.empty-state h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 30px;
  color: var(--accent);
}

.empty-state p {
  margin-top: 4px;
  color: var(--text-soft);
}

.footer {
  text-align: center;
  color: var(--text-soft);
  font-size: 13px;
  padding: 0 0 22px;
}

.steps {
  margin: 8px 0 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.step-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f9fafb);
  padding: 16px;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #f1f2f4;
  border: 1px solid #d6d9de;
  color: #3a3f45;
  font-size: 12px;
  font-weight: 800;
}

.step-card h3 {
  margin-top: 10px;
  font-size: 18px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--accent);
}

.step-card p {
  margin-top: 5px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ok);
  color: #fff;
  box-shadow: 0 10px 26px rgba(36, 211, 102, 0.34);
}

.form {
  max-width: 620px;
  margin: 28px auto 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.form h2 {
  margin-bottom: 16px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 34px;
  color: var(--accent);
}

.form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 11px 12px;
  margin-bottom: 12px;
  font: inherit;
  background: var(--surface-soft);
}

.form input:focus,
.form textarea:focus,
.form select:focus,
.settings-form input:focus {
  outline: none;
  border-color: #babfc8;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(186, 191, 200, 0.2);
}

.form button,
.settings-form button {
  border: none;
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 700;
  cursor: pointer;
}

.form button {
  width: 100%;
  background: #2f3338;
  color: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

table th {
  text-align: left;
  padding: 12px;
  font-size: 13px;
  letter-spacing: 0.3px;
  background: #f2f4f6;
  color: #42484f;
}

table td {
  padding: 12px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.row-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-primary {
  background: #2f3338;
  color: #fff;
  border: none;
  padding: 10px 14px;
}

.btn-neutral {
  background: #f1f4f7;
  color: #30353b;
  border: 1px solid var(--line-strong);
  padding: 8px 10px;
}

.btn-danger {
  background: #fef3f2;
  color: var(--danger);
  border: 1px solid #fecaca;
  padding: 8px 10px;
}

.logout-link {
  background: #111827;
  color: #fff;
  border: none;
  padding: 10px 14px;
}

.page-head,
.dashboard-head {
  margin: 28px 2px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-title,
.dashboard-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--accent);
  font-size: 34px;
  font-weight: 600;
}

.page-sub,
.dashboard-sub {
  color: var(--text-soft);
  font-size: 14px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.stat-number {
  margin-top: 5px;
  font-size: 31px;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  color: var(--text-soft);
  font-size: 13px;
}

.menu-links {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.menu-link {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  padding: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.settings-card {
  margin-top: 18px;
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 16px;
}

.settings-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  color: var(--accent);
}

.settings-card p {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 14px;
}

.settings-form {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.settings-form input {
  flex: 1;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
}

.settings-form button {
  background: #2f3338;
  color: #fff;
}

.flash-ok {
  margin-top: 14px;
  background: #ecfdf3;
  color: #116932;
  border: 1px solid #ace6c5;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
}

.flash-error {
  margin-top: 14px;
  background: #fef3f2;
  color: #b42318;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
}

.form-container {
  max-width: 700px;
  margin: 0 auto;
}

.image-preview {
  margin-top: 8px;
  width: 180px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.image-preview img {
  width: 100%;
  display: block;
}

.back-link {
  text-align: center;
  margin-top: 16px;
}

@media (max-width: 1040px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .hero {
    padding: 30px 16px;
  }

  .hero-marquee-track {
    font-size: 13px;
    padding: 9px 14px;
  }

  .hero-marquee-group {
    gap: 22px;
  }

  .hero-shipping {
    font-size: 13px;
  }

  .catalog-headline {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 24px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .benefits {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .menu-links {
    grid-template-columns: 1fr;
  }

  .settings-form {
    flex-direction: column;
  }

  .page-head,
  .dashboard-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .top,
  .hero,
  .container {
    width: calc(100% - 16px);
  }

  .top {
    margin-top: 8px;
    top: 6px;
    padding: 10px 12px;
  }

  .brand-logo {
    width: 80px;
    height: 80px;
  }

  .hero-logo {
    width: 130px;
    height: 130px;
  }

  .admin-link,
  .logout-link {
    padding: 8px 10px;
    font-size: 12px;
  }

  .hero p {
    font-size: 14px;
  }

  .hero-marquee {
    border-radius: 14px;
  }

  .hero-marquee-track {
    width: max-content;
    white-space: nowrap;
    padding: 10px;
    font-size: 12px;
  }

  .hero-marquee-group {
    gap: 16px;
  }

  .hero-shipping {
    font-size: 12px;
  }

  .hero-meta {
    justify-content: flex-start;
  }

  .hero-pill {
    width: 100%;
    justify-content: space-between;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  table {
    font-size: 13px;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    right: 12px;
    bottom: 12px;
  }
}
