@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600&display=swap");

:root {
  font-family: "Plus Jakarta Sans", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #2b1d1a;
  background: #fff4ea;
  /* Bakery palette */
  --rose: #f06b9a;
  --peach: #f6b4a6;
  --coral: #e68c6c;
  --vanilla: #fffaf4;
  --cream: #fff2e6;
  --navy: #3b1f16;
  --muted: #7b5c4b;
  --line: rgba(123, 92, 75, 0.2);
  --midnight: #2b1a12;
  --pink: #f6a3c0;
  --chocolate: #4b2a1a;
  --cocoa: #6b3a22;
  --gold: #d7a65a;
  --page-gutter: clamp(18px, 5vw, 64px);
  --content-width: 1200px;
  --hero-indent: 0px;
}
h1, h2, h3, h4 {
  font-family: "Playfair Display", "Plus Jakarta Sans", serif;
  letter-spacing: 0.01em;
  color: var(--chocolate);
}
* {
  box-sizing: border-box;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  margin-bottom: 26px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 0 var(--page-gutter);
  background: rgba(255, 247, 239, 0.98);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(86, 52, 32, 0.12);
  z-index: 30;
  flex-wrap: nowrap;
  gap: 16px;
}
.nav-inner {
  width: min(var(--content-width), 100%);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 16px;
  flex-wrap: nowrap;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  justify-content: flex-end;
}
.lang-toggle {
  border: 1px solid rgba(210, 180, 150, 0.6);
  background: #fff4ea;
  color: var(--chocolate);
  font-weight: 700;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 12% 10%, #fff9f3 0%, #fff1e6 45%, #f8e7db 100%);
  padding-top: 82px;
  line-height: 1.6;
}
body.crm-page {
  padding-top: 66px;
}
.hero {
  background: #f7d2dc;
  color: #2b1d1a;
  padding: 32px 0 90px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}
.hero-bg {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  filter: saturate(1.05) brightness(1.05);
  transform: scale(1.015);
  z-index: 0;
}
.hero-bg.is-visible {
  opacity: 0.78;
}
.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(250, 235, 228, 0.52),
    rgba(248, 222, 210, 0.5),
    rgba(244, 206, 192, 0.52)
  );
  z-index: 1;
}
.hero-inner {
  width: min(var(--content-width), 100%);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-content {
  max-width: 640px;
  padding-left: var(--hero-indent);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-media {
  display: none;
  justify-content: flex-end;
}
.hero-photo {
  width: min(380px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2b1d1a;
  font-weight: 600;
  text-align: center;
  padding: 0;
}
.hero-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
}
.hero-content h1,
.hero-content > p {
  max-width: 640px;
}
.hero-content h1 {
  color: #2a1813;
  text-shadow: 0 10px 22px rgba(20, 12, 10, 0.32), 0 2px 0 rgba(255, 255, 255, 0.32);
}
.hero-content > p,
.hero-content .eyebrow {
  color: #2f1c16;
  text-shadow: 0 6px 14px rgba(20, 12, 10, 0.28);
}
.brand {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  font-family: "Playfair Display", "Plus Jakarta Sans", serif;
  color: var(--chocolate);
  margin-right: auto;
  white-space: nowrap;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  background: #fff;
  border: 1px solid rgba(210, 180, 150, 0.5);
  box-shadow: 0 10px 20px rgba(86, 52, 32, 0.15);
}
.crm-page .brand {
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.crm-page .brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}
.brand-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.header-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #3a231b;
  opacity: 0.95;
  margin: 14px 0 0;
  text-shadow: 0 4px 10px rgba(20, 12, 10, 0.2);
}
.header-meta span + span::before {
  content: "•";
  margin: 0 6px 0 2px;
  color: #9a7b68;
}

@media (max-width: 720px) {
  .header-meta {
    font-size: 0.78rem;
    row-gap: 4px;
  }
  .hero-content {
    padding-left: 0;
  }
}
.header-meta span:first-child {
  font-weight: 600;
}
.nav-links a {
  color: var(--chocolate);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 12px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(240, 158, 190, 0.18);
  transform: translateX(2px);
}
.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.nav-links.hidden {
  display: none;
}
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.25);
  background: #fff;
  transition: transform 0.25s ease, border-color 0.25s ease;
  position: relative;
  z-index: 45;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: #0f172a;
  display: block;
  transition: transform 0.2s ease;
}
.menu-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.nav .btn {
  font-size: 0.875rem;
  padding: 8px 14px;
}
.nav .btn.ghost {
  background: #fffaf4;
  color: #2b1d1a;
  border: 1px solid rgba(210, 180, 150, 0.6);
  box-shadow: none;
}
.nav .btn.ghost.hidden {
  display: none !important;
}
.nav-logout {
  white-space: nowrap;
  background: #f3e2d2;
  color: #2b1d1a;
  border: 1px solid rgba(210, 180, 150, 0.7);
  font-weight: 600;
  box-shadow: none;
}
.nav-logout:hover,
.nav-logout:focus-visible {
  background: #f0d8c4;
}
.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  margin: 0 0 12px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  margin-bottom: 8px;
}
.hero-actions {
  margin: 24px 0;
  display: flex;
  gap: 12px;
}
.cart-toggle {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.6);
  width: fit-content;
}
.cart-fixed {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 45;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 0.95rem;
  background: linear-gradient(180deg, #05090f, #0b0f1c);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fdfdfd;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.cart-fixed:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 45px rgba(5, 11, 22, 0.45);
}
.cart-icon {
  margin-right: 8px;
  font-size: 1.1rem;
  display: inline-flex;
}
.whatsapp-fixed {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 45;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, #57f28f 0%, #25d366 42%, #0f9d58 100%);
  box-shadow: 0 18px 36px rgba(37, 211, 102, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.35) inset, 0 0 26px rgba(87, 242, 143, 0.45);
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  isolation: isolate;
}
.whatsapp-fixed::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(87, 242, 143, 0.42) 0%, rgba(87, 242, 143, 0.08) 45%, rgba(87, 242, 143, 0) 72%);
  z-index: -1;
  animation: whatsappPulse 2.4s ease-out infinite;
}
.whatsapp-fixed:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 42px rgba(37, 211, 102, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.4) inset, 0 0 32px rgba(87, 242, 143, 0.6);
  filter: saturate(1.08) brightness(1.04);
}
.whatsapp-fixed svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
  flex-shrink: 0;
}
.btn {
  border: none;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.btn.primary {
  background: linear-gradient(135deg, var(--chocolate), var(--cocoa));
  color: #fff;
}
.btn.ghost {
  background: #fff1e6;
  color: var(--chocolate);
  border: 1px solid rgba(210, 180, 150, 0.6);
}
.btn.ghost.danger {
  background: #ffe5e8;
  color: #9a2437;
  border: 1px solid rgba(154, 36, 55, 0.35);
}
.btn.danger {
  background: #c2410c;
  color: #fff;
  border: 1px solid rgba(154, 52, 18, 0.4);
}
.btn.compact {
  padding: 8px 16px;
  font-size: 0.85rem;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(20, 21, 32, 0.25);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}
.hero-stats article {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.15);
}
main {
  padding: 40px var(--page-gutter) 60px;
  max-width: 1080px;
  margin: 0 auto;
}
.crm-page main {
  padding-top: 12px;
}
.section-heading {
  max-width: 640px;
  margin-bottom: 32px;
}
.section-heading h2 {
  margin: 8px 0;
  font-size: 2rem;
}
.menu .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  padding: 18px;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  gap: 12px;
}
.price {
  font-weight: 700;
  color: var(--midnight);
}
.price.is-discounted {
  color: #9a2437;
}
.card-img {
  border-radius: 16px;
  height: 180px;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}
.placeholder {
  background: linear-gradient(135deg, rgba(226, 109, 138, 0.12), rgba(245, 140, 108, 0.12));
}
.process .steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.process article {
  background: #fff;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid #eef2ff;
}
.process strong {
  font-size: 1.5rem;
  display: block;
  color: var(--pink);
}
.experience {
  margin-top: 60px;
}
.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.experience-grid article {
  background: #fff;
  padding: 18px;
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.1);
}
.experience-grid h3 {
  margin-top: 0;
  margin-bottom: 8px;
}
.cta {
  margin-top: 60px;
  padding: 32px;
  background: linear-gradient(135deg, #0f172a, #1b2840);
  color: #f8fafc;
  border-radius: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.contact {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding-top: 20px;
}
.contact h3 {
  margin-bottom: 6px;
}
.quote {
  background: #fff;
  border-radius: 32px;
  padding: 32px clamp(18px, 6vw, 60px) 22px;
  margin: 60px auto 48px;
  max-width: 860px;
  width: min(95%, 860px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}
.order-tracker-section {
  margin-top: 60px;
  scroll-margin-top: 118px;
}
.tracker-panel {
  background: linear-gradient(180deg, #fff7f1 0%, #fffdf9 100%);
  border: 1px dashed rgba(214, 161, 122, 0.8);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(94, 48, 24, 0.08);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.order-tracker-section.is-highlighted .tracker-panel {
  border-color: rgba(240, 107, 154, 0.72);
  box-shadow: 0 24px 50px rgba(240, 107, 154, 0.16);
  transform: translateY(-2px);
}
.tracker-list {
  display: grid;
  gap: 14px;
}
.tracker-empty {
  margin: 0;
  color: #6b4b3e;
  font-size: 1rem;
}
.tracker-card {
  background: #fff;
  border: 1px solid rgba(210, 180, 150, 0.45);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 14px;
  box-shadow: 0 12px 24px rgba(94, 48, 24, 0.07);
}
.tracker-card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.tracker-card-meta {
  display: grid;
  gap: 4px;
}
.tracker-card-meta h3 {
  margin: 0;
  font-size: 1.15rem;
}
.tracker-order-line,
.tracker-time-line,
.tracker-reset-note {
  margin: 0;
  color: #7b5c4b;
  font-size: 0.92rem;
}
.tracker-summary {
  display: grid;
  gap: 6px;
  color: #4b362a;
}
.tracker-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.tracker-actions .btn {
  min-width: 170px;
}
.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.quote-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  grid-column: 1 / -1;
}
.quote-form label {
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 600;
  min-width: 0;
}
.quote-form label input,
.quote-form label textarea {
  display: block;
  visibility: visible;
  opacity: 1;
}
.quote-form input,
.quote-form textarea {
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  padding: 10px 12px;
  font-size: 0.98rem;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  color: #0f172a;
  min-height: 40px;
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.7);
  appearance: auto;
}
.quote-form textarea {
  min-height: 120px;
}
.quote-form .quote-details {
  grid-column: 1 / -1;
}
.quote-message {
  grid-column: 1 / -1;
  font-size: 0.95rem;
  color: var(--midnight);
  min-height: 0;
  margin: 0;
}
.quote-message.success {
  color: #1f5f48;
  margin-top: 6px;
  min-height: 18px;
}
.quote-message.error {
  color: #9a2437;
  margin-top: 6px;
  min-height: 18px;
}
.quote-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}
.quote-form .btn.primary {
  justify-self: flex-end;
  width: 150px;
  padding: 10px 0;
  border-radius: 999px;
  font-size: 0.9rem;
  background: linear-gradient(135deg, #0f172a, #1f2937);
}
@media (max-width: 720px) {
  .quote {
    padding: 28px 18px;
    margin: 40px auto 32px;
  }
  .quote-form {
    grid-template-columns: 1fr;
  }
  .quote-fields {
    grid-template-columns: 1fr;
  }
  .quote-form .quote-details {
    grid-column: 1 / -1;
  }
  .quote-form .btn.primary {
    width: 100%;
    justify-self: stretch;
    font-size: 0.95rem;
  }
  .tracker-panel {
    padding: 18px;
  }
  .tracker-card {
    padding: 16px;
  }
  .tracker-card-header,
  .tracker-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .tracker-actions .btn {
    width: 100%;
  }
}
.hero .btn {
  min-width: 160px;
}
.cta {
  flex-direction: column;
  align-items: flex-start;
}
.cta-actions {
  width: 100%;
  justify-content: flex-start;
}
.crm {
  margin-top: 60px;
}
.crm-page .crm {
  margin-top: 12px;
}
.crm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: start;
  min-width: 0;
}
.crm-panel {
  background: #fffaf4;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.1);
  min-width: 0;
}
.crm-panel--wide {
  grid-column: 1 / -1;
  justify-self: center;
  width: 100%;
}
.crm-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  background: rgba(20, 11, 14, 0.96);
  color: #fff;
  padding: 14px 24px;
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-50%) translateY(22px) scale(0.98);
  transition: opacity 0.32s ease, transform 0.32s ease;
  z-index: 70;
  pointer-events: none;
}
.crm-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}
.crm-toast.hidden {
  visibility: hidden;
}
.summary-panel {
  background: #fff6ee;
  border: 1px solid rgba(226, 109, 138, 0.2);
}
.summary-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(226, 109, 138, 0.18);
}
.summary-panel h3 {
  margin: 0 0 6px;
  font-size: 1.4rem;
}
.summary-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
}
.summary-meta {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: #6b4b3e;
}
.summary-meta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.sync-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #6b4b3e;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(226, 109, 138, 0.3);
  background: #fffaf4;
}
.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a1a1aa;
  box-shadow: 0 0 0 3px rgba(161, 161, 170, 0.2);
}
.sync-status[data-state="ready"] .sync-dot {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}
.sync-status[data-state="saving"] .sync-dot {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}
.sync-status[data-state="error"] .sync-dot {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}
.sync-status[data-state="loading"] .sync-dot {
  background: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.summary-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.summary-tab {
  border: 1px solid rgba(226, 109, 138, 0.35);
  background: #fffaf4;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 600;
}
.summary-tab.active {
  background: #f58c6c;
  color: #fff;
  border-color: #f58c6c;
}
.summary-range {
  font-weight: 700;
  margin: 8px 0 14px;
  color: #2b1d1a;
}
.summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
}
.summary-block h4 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #6b4b3e;
}
.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.summary-card {
  background: #fffaf4;
  border: 1px solid rgba(226, 109, 138, 0.2);
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 6px;
}
.summary-card p {
  margin: 0;
  font-size: 0.85rem;
  color: #7b5c4b;
}
.summary-card strong {
  font-size: 1.55rem;
  color: #1f2937;
}
.summary-cards--sales .summary-card {
  background: #fff0e7;
  border-color: rgba(245, 140, 108, 0.35);
}
.summary-card.accent-warm {
  background: #fff2e6;
  border-color: rgba(245, 140, 108, 0.4);
}
.summary-card.accent-amber {
  background: #fff6df;
  border-color: rgba(245, 140, 108, 0.35);
}
.summary-card.accent-cool {
  background: #f3f0ff;
  border-color: rgba(139, 92, 246, 0.25);
}
.summary-card.accent-mint {
  background: #effcf6;
  border-color: rgba(34, 197, 94, 0.25);
}
.summary-card.accent-rose {
  background: #ffeef1;
  border-color: rgba(226, 109, 138, 0.35);
}
.summary-card.accent-blue {
  background: #fff0e7;
  border-color: rgba(245, 140, 108, 0.35);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
}
.metrics article {
  background: #f8fafc;
  padding: 12px;
  border-radius: 12px;
}
.metrics strong {
  font-size: 2rem;
  display: block;
}
.calendar {
  border-radius: 18px;
  border: 1px solid rgba(210, 180, 150, 0.35);
  padding: 18px;
  min-height: 230px;
  background: #fffaf4;
}
.calendar-panel .calendar {
  padding: 0;
  border: none;
  background: transparent;
}
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.calendar-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.calendar-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.calendar-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(210, 180, 150, 0.6);
  background: #fff7ef;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
}
.calendar-month {
  font-weight: 700;
  min-width: 160px;
  text-align: center;
}
.calendar-shell {
  background: #fff8f0;
  border: 1px solid rgba(210, 180, 150, 0.35);
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.calendar-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(6px, 1vw, 10px);
  width: 100%;
  grid-auto-flow: row;
  grid-auto-rows: minmax(clamp(64px, 8vw, 96px), auto);
}
.calendar-grid--weekdays {
  margin-top: 0;
  grid-auto-rows: minmax(44px, auto);
}
.calendar-grid--days {
  margin-top: 10px;
}
.calendar-day {
  border-radius: 12px;
  padding: clamp(6px, 1vw, 10px);
  background: #fff8f0;
  text-align: center;
  font-weight: 600;
  font-size: clamp(0.78rem, 1.2vw, 0.9rem);
  color: #0f172a;
  border: 1px dashed rgba(210, 180, 150, 0.45);
}
.calendar-weekday {
  background: #f3e2d2;
  border: 1px solid rgba(210, 180, 150, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: capitalize;
}
.calendar-cell {
  min-height: clamp(70px, 9vw, 110px);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  padding: clamp(8px, 1.4vw, 14px);
}
.calendar-cell button {
  all: unset;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  height: 100%;
}
.calendar-cell .day-number {
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  font-weight: 700;
}
.calendar-cell .order-count {
  font-size: clamp(0.72rem, 1.2vw, 0.85rem);
  color: #3b2f2a;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}
.calendar-cell .order-count-number,
.calendar-cell .order-count-label {
  display: block;
}
.calendar-cell .order-count-number {
  font-weight: 500;
}
.calendar-cell .order-count-label {
  line-height: 1.08;
}
.calendar-cell .order-revenue {
  display: none;
}
.calendar-cell.has-orders {
  background: #eef9f5;
  border: 1px solid rgba(74, 170, 140, 0.5);
}
.calendar-cell.is-selected {
  background: #ffeedd;
  border: 1px solid rgba(237, 159, 94, 0.75);
}
.calendar-cell.level-low {
  background: #f7fbff;
  border-color: rgba(120, 167, 215, 0.35);
}
.calendar-cell.level-medium {
  background: #fff2dd;
  border-color: rgba(237, 159, 94, 0.55);
}
.calendar-cell.level-high {
  background: #fde7df;
  border-color: rgba(226, 109, 138, 0.55);
}
.calendar-detail {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed rgba(226, 109, 138, 0.25);
}
.calendar-detail-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.calendar-detail-meta {
  margin: 6px 0 0;
  color: #6b4b3e;
}
.calendar-detail-search input {
  border-radius: 12px;
  border: 1px solid rgba(226, 109, 138, 0.3);
  padding: 10px 12px;
  font-size: 0.95rem;
  background: #fffaf4;
  min-width: 260px;
}
.calendar-day.available {
  border: 1px solid #22c55e;
  color: #166534;
}
.calendar-day.pending {
  border: 1px solid #f97316;
  color: #c2410c;
}
.timeline {
  margin-top: 60px;
}
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.timeline-grid article {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.1);
}
.quotes-panel {
  margin-top: 60px;
}
.quote-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.quote-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.quote-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.quote-created {
  font-size: 0.8rem;
  color: var(--muted);
}
.quote-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px 16px;
}
.quote-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}
.quote-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2b1d1a;
}
.quote-details p {
  margin: 6px 0 0;
  color: #4b362a;
}
.quote-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}
.summary-meta,
.order-items,
.order-client,
.quote-card,
.day-order-list li {
  overflow-wrap: anywhere;
}
.quote-card strong {
  font-size: 1.1rem;
}
.quote-card span {
  font-size: 0.9rem;
  color: var(--muted);
}
.timeline-grid h3 {
  margin-bottom: 8px;
}
.timeline-grid p {
  font-size: 2rem;
  margin: 0;
  font-weight: 700;
  color: var(--midnight);
}
.crm-top {
  background: transparent;
}
.order-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.order-list li {
  padding: 12px;
  border-bottom: 1px solid #f3f4f6;
}
.order-list li:last-child {
  border-bottom: none;
}
.order-empty {
  text-align: center;
  font-style: italic;
  color: var(--muted);
}
.day-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.day-controls label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.day-controls input {
  border-radius: 12px;
  border: 1px solid rgba(226, 109, 138, 0.3);
  padding: 10px 12px;
  font-size: 1rem;
  font-family: inherit;
  background: #fffaf4;
}
.day-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 12px;
}
.metric-card {
  background: #fff7f0;
  padding: 12px 14px;
  border-radius: 14px;
  min-width: 120px;
  border: 1px solid rgba(226, 109, 138, 0.2);
}
.day-products {
  margin-top: 16px;
  background: #fff7ef;
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(210, 180, 150, 0.35);
}
.day-products h5 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--chocolate);
}
.day-products-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  color: #4b362a;
  font-size: 0.9rem;
}
.day-products-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.metric-card p {
  margin: 0 0 6px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}
.metric-card strong {
  font-size: 1.4rem;
  color: var(--midnight);
}
.day-order-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.day-order-list li {
  background: #fffaf4;
  border-radius: 14px;
  padding: 12px;
  border: 1px solid rgba(226, 109, 138, 0.2);
}
.day-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.day-order-meta {
  font-size: 0.8rem;
  color: #6b4b3e;
}
.day-order-action {
  background: #fffaf4;
  border: 1px solid rgba(226, 109, 138, 0.35);
  color: #6b4b3e;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 999px;
}
.day-order-list small {
  color: var(--muted);
}
.orders-section {
  margin-top: 60px;
}
.order-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.order-filters input,
.order-filters select {
  border-radius: 12px;
  border: 1px solid #cbd5f5;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
}
.order-filters--pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 22px;
}
.filter-pill {
  border-radius: 999px;
  border: 1px solid rgba(210, 180, 150, 0.6);
  background: #fff7ef;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  color: var(--chocolate);
  min-width: 140px;
}
.filter-pill.active {
  background: #f5d7c0;
  border-color: rgba(237, 159, 94, 0.8);
}
.order-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.order-card {
  background: #fffaf4;
  border: 1px solid rgba(210, 180, 150, 0.35);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 14px 30px rgba(86, 52, 32, 0.08);
  display: grid;
  gap: 10px;
  overflow-wrap: anywhere;
}
.order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.order-id {
  font-weight: 700;
  color: var(--chocolate);
}
.order-status {
  background: #dff5ea;
  color: #1f5f48;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.order-status.status-pending {
  background: #fff2dd;
  color: #8a4b2a;
}
.order-status.status-prep {
  background: #f1ecff;
  color: #5b3f9a;
}
.order-status.status-ready {
  background: #e6f0ff;
  color: #2b4f8a;
}
.order-status.status-delivered {
  background: #dff5ea;
  color: #1f5f48;
}
.order-status.status-rejected {
  background: #ffe5e8;
  color: #9a2437;
}
.order-client {
  font-weight: 600;
}
.order-items {
  color: #5b4338;
  display: grid;
  gap: 4px;
}
.day-order-items {
  display: grid;
  gap: 4px;
  color: #5b4338;
}
.order-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
  color: #6b4b3e;
}
.order-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
}
.modal.hidden {
  display: none;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 10, 0.45);
  backdrop-filter: blur(2px);
}
.modal-card {
  position: relative;
  width: min(720px, 92vw);
  background: #fffaf4;
  border-radius: 22px;
  border: 1px solid rgba(210, 180, 150, 0.6);
  box-shadow: 0 30px 70px rgba(20, 12, 10, 0.35);
  padding: 24px;
  z-index: 1;
  display: grid;
  gap: 18px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-card--compact {
  width: min(520px, 92vw);
}
.modal-message {
  margin: 0;
  color: #4b362a;
  font-size: 0.98rem;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(210, 180, 150, 0.6);
  background: #fffaf4;
  cursor: pointer;
  font-size: 1.2rem;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.modal-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  margin: 0 0 6px;
  color: var(--muted);
}
.modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.modal-grid span,
.modal-items span,
.modal-notes span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}
.modal-items ul {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: grid;
  gap: 4px;
  color: #4b362a;
}
.modal-notes {
  display: grid;
  gap: 10px;
}
.modal-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.modal-note-badge {
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(214, 161, 122, 0.14);
  color: #7c4b2c;
  font-size: 0.78rem;
  font-weight: 600;
}
.modal-notes textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(203, 213, 245, 0.95);
  padding: 12px 14px;
  font: inherit;
  color: #4b362a;
  background: rgba(255, 255, 255, 0.96);
  resize: vertical;
  min-height: 96px;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.modal-notes textarea:focus {
  outline: none;
  border-color: rgba(107, 58, 34, 0.5);
  box-shadow: 0 0 0 3px rgba(214, 161, 122, 0.2);
}
.modal-notes textarea[readonly],
.modal-notes textarea:disabled {
  background: rgba(248, 241, 233, 0.95);
  color: rgba(75, 54, 42, 0.82);
  cursor: not-allowed;
}
.modal-helper,
.modal-inline-message {
  margin: 0;
  color: #4b362a;
  font-size: 0.92rem;
}
.modal-helper {
  color: #6b5a4f;
}
.modal-inline-message {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 1.4rem;
}
.modal-inline-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #c08457;
  box-shadow: 0 0 0 0 rgba(192, 132, 87, 0.28);
  flex-shrink: 0;
}
.modal-inline-message[data-state="saving"] .modal-inline-dot,
.modal-inline-message[data-state="pending"] .modal-inline-dot {
  animation: modal-saving-pulse 1.2s ease-out infinite;
}
.modal-inline-message[data-state="saved"] .modal-inline-dot {
  background: #15803d;
}
.modal-inline-message[data-state="error"] .modal-inline-dot {
  background: #dc2626;
}
.modal-inline-message[data-tone="success"] {
  color: #15803d;
}
.modal-inline-message[data-tone="error"] {
  color: #dc2626;
}
.modal-inline-message[data-tone="info"] {
  color: #7c4b2c;
}

@keyframes modal-saving-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(192, 132, 87, 0.3);
    transform: scale(1);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(192, 132, 87, 0);
    transform: scale(1.08);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(192, 132, 87, 0);
    transform: scale(1);
  }
}
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}
.orders-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: 18px;
}
.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.orders-table th,
.orders-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #eef2ff;
  vertical-align: top;
}
.orders-table tbody tr {
  cursor: pointer;
  transition: background 0.2s ease;
}
.orders-table tbody tr:hover {
  background: #f8fafc;
}
.orders-table tbody tr.active {
  background: #ffe8d9;
}
.orders-table-wrap {
  overflow-x: auto;
}
.order-detail {
  background: #f8fafc;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #e2e8f0;
}
.order-detail h4 {
  margin-top: 0;
}
.order-detail-body {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
}
.order-detail-body ul {
  margin: 6px 0 0;
  padding-left: 18px;
}
.auth-panel {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
  padding: 24px;
}
.auth-panel form {
  width: min(420px, 90%);
  background: #0f172a;
  padding: 32px;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.6);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-panel.hidden {
  display: none;
}
.hidden {
  display: none !important;
}
.auth-panel h2 {
  margin-top: 0;
}
.auth-panel label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.auth-panel input {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.auth-panel input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(249, 168, 212, 0.25);
}
.auth-message {
  min-height: 1.5rem;
}
.auth-message[data-tone="error"] {
  color: #f97316;
}
.auth-message[data-tone="success"] {
  color: #4ade80;
}
.crm-body.locked {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
}
.crm-body {
  transition: filter 0.2s ease;
}
.footer {
  text-align: center;
  padding: 36px 0 40px;
  background: #141520;
  color: #f8fafc;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 calc(24px + 96px) 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-social-link {
  color: #f8fafc;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(248, 250, 252, 0.2);
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.footer-social-link .social-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.footer-social-link:hover,
.footer-social-link:focus-visible {
  opacity: 1;
  background: rgba(248, 250, 252, 0.12);
  border-color: rgba(248, 250, 252, 0.45);
}
@media (max-width: 720px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    padding: 0 24px 64px;
  }
}
@media (max-width: 900px) {
  .hero-content {
    padding: 0;
  }
}
.cart-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 236, 226, 0.08), rgba(35, 20, 15, 0.88));
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 40;
  padding: clamp(12px, 3vw, 24px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0s linear 0.28s;
  backdrop-filter: blur(6px);
}
.cart-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.28s ease;
}
.cart-overlay.cart-overlay--empty .cart-items {
  min-height: 0;
}
.cart-overlay.cart-overlay--empty .cart-items li {
  padding-top: 4px;
  padding-bottom: 8px;
}
body.cart-open {
  overflow: hidden;
}
body.cart-open .cart-fixed {
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
}
body.cart-open .whatsapp-fixed,
body.menu-open .whatsapp-fixed {
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
}
.cart-panel {
  width: min(520px, calc(100vw - 24px));
  background: linear-gradient(180deg, #fff7f1 0%, #fff 55%, #fff 100%);
  border: 1px solid rgba(214, 161, 122, 0.25);
  border-radius: 28px;
  padding: clamp(20px, 3vw, 28px);
  padding-bottom: calc(clamp(18px, 3vw, 24px) + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 35px 70px rgba(15, 23, 42, 0.4);
  position: relative;
  color: #0f172a;
  max-height: min(92vh, 860px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.cart-overlay.is-open .cart-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.cart-close {
  position: absolute;
  right: 14px;
  top: 14px;
  border: none;
  background: transparent;
  font-size: 2rem;
  color: #0f172a;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}
.cart-close:hover {
  transform: rotate(6deg) scale(1.05);
  color: #6b3a22;
}
.cart-items {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  max-height: none;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: clamp(88px, 18vh, 140px);
  padding-right: 4px;
}
.cart-items li {
  padding: 12px 0;
  border-bottom: 1px solid #eef2ff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cart-items li:last-child {
  border-bottom: none;
}
.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  gap: 8px;
}
.cart-item-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.cart-item-thumb {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(214, 161, 122, 0.35);
  box-shadow: 0 10px 20px rgba(94, 48, 24, 0.18);
}
.cart-item-thumb.placeholder {
  background: linear-gradient(135deg, #f6e1d4, #fff3ea);
}
.cart-item-name {
  font-weight: 600;
  margin: 0;
  flex-shrink: 0;
  font-size: 0.94rem;
}
.cart-item-price {
  font-size: 0.9rem;
  color: #475467;
  white-space: nowrap;
}
.cart-item-discount {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff0f4;
  color: #9a2437;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: normal;
}
.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.remove-btn {
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  background: #f8fafc;
  color: #b91c1c;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  border-color: rgba(244, 63, 94, 0.55);
  background: #ffe4e6;
}
.remove-btn span {
  font-size: 1.1rem;
  line-height: 1;
}
.remove-btn:hover {
  background: #fecdd3;
  border-color: #e11d48;
  transform: translateY(-1px);
}
.remove-icon {
  color: #b91c1c;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  font-size: 1.05rem;
  font-weight: 700;
  border-top: 1px solid #e5e7eb;
  padding-top: 8px;
  flex-shrink: 0;
}
.cart-panel form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  flex-shrink: 0;
}
.cart-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.cart-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.cart-field--full {
  gap: 6px;
}
.cart-panel label {
  font-size: 0.9rem;
}
.cart-panel input,
.cart-panel textarea {
  border-radius: 12px;
  border: 1px solid #cbd5f5;
  padding: 9px 12px;
  font-size: 0.92rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.96);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cart-panel textarea {
  min-height: 58px;
  line-height: 1.45;
  resize: vertical;
}
.cart-panel input:focus,
.cart-panel textarea:focus {
  outline: none;
  border-color: rgba(107, 58, 34, 0.5);
  box-shadow: 0 0 0 3px rgba(214, 161, 122, 0.2);
}
.cart-message {
  min-height: 1.5rem;
  font-size: 0.9rem;
  margin: 0;
}
.cart-message.success {
  color: #16a34a;
}
.cart-message.error {
  color: #dc2626;
}
.cart-overlay.hidden {
  display: none;
}
.cart-toast {
  position: fixed;
  bottom: 90px;
  right: 24px;
  background: #070b16;
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.4);
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}
.cart-toast.show {
  opacity: 1;
  transform: translateY(0);
  animation: floatToIcon 0.9s ease forwards;
  pointer-events: none;
}
.cart-toast.hidden {
  display: none;
}

.order-success {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.98);
  background: linear-gradient(135deg, #0f172a, #1f2937);
  color: #fff;
  padding: 16px 22px;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.4);
  font-weight: 600;
  z-index: 60;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  text-align: center;
}
.order-success.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.order-tracker-prompt {
  position: fixed;
  top: 94px;
  right: 24px;
  width: min(360px, calc(100vw - 32px));
  padding: 18px 18px 16px;
  border-radius: 20px;
  border: 1px solid rgba(240, 107, 154, 0.2);
  background: rgba(255, 252, 247, 0.96);
  box-shadow: 0 22px 48px rgba(75, 42, 26, 0.18);
  backdrop-filter: blur(14px);
  z-index: 45;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.order-tracker-prompt.show {
  opacity: 1;
  transform: translateY(0);
}
.order-tracker-prompt-text {
  margin: 0 0 14px;
  padding-right: 28px;
  color: #4b2a1a;
  font-weight: 600;
  line-height: 1.45;
}
.order-tracker-prompt-action {
  width: 100%;
  justify-content: center;
}
.order-tracker-prompt-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(75, 42, 26, 0.08);
  color: #6b3a22;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.order-tracker-prompt-close:hover,
.order-tracker-prompt-close:focus-visible {
  background: rgba(240, 107, 154, 0.14);
  transform: scale(1.04);
}
.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.cart-item-name {
  margin: 0;
  font-weight: 600;
}
.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  background: #f8fafc;
  color: #0f172a;
  font-size: 0.85rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.qty-btn:hover {
  background: #f1dfd3;
  box-shadow: 0 8px 16px rgba(94, 48, 24, 0.18);
  transform: translateY(-1px);
}
.qty-btn:active {
  transform: translateY(0);
  box-shadow: none;
}
.qty-badge {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
}
.remove-btn {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.85rem;
}
.remove-btn:hover {
  transform: translateY(-1px);
}
.cart-panel .btn.primary {
  width: 100%;
  margin-top: 2px;
  padding: 10px 16px;
  font-size: 0.92rem;
  box-shadow: 0 12px 24px rgba(94, 48, 24, 0.25);
}
.cart-panel .btn.primary:hover {
  filter: brightness(1.03);
  box-shadow: 0 16px 32px rgba(94, 48, 24, 0.3);
}
.cart-panel .btn.ghost:hover {
  background: #ffece1;
  border-color: rgba(210, 180, 150, 0.8);
}

@media (max-width: 640px) {
  .cart-overlay {
    align-items: flex-end;
    padding: 12px;
  }
  .cart-overlay.cart-overlay--empty {
    align-items: center;
  }
  .cart-panel {
    width: min(100%, 560px);
    max-height: calc(100dvh - 24px);
    border-radius: 26px;
    padding: 18px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .cart-items {
    min-height: 72px;
  }
  .cart-contact-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .cart-panel textarea {
    min-height: 56px;
  }
}

@media (max-width: 420px) {
  .cart-panel {
    border-radius: 24px;
    padding: 16px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }
  .cart-close {
    top: 12px;
    right: 12px;
  }
  .cart-panel .btn.primary {
    font-size: 0.95rem;
    padding: 10px 16px;
  }
  .whatsapp-fixed {
    left: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 56px;
    height: 56px;
  }
  .whatsapp-fixed svg {
    width: 26px;
    height: 26px;
  }
}

@keyframes whatsappPulse {
  0% {
    transform: scale(0.92);
    opacity: 0.75;
  }
  70% {
    transform: scale(1.12);
    opacity: 0;
  }
  100% {
    transform: scale(1.12);
    opacity: 0;
  }
}

@media (max-width: 1100px) {
  .nav-links {
    gap: 12px;
  }
  .nav-links a {
    padding: 6px 8px;
    font-size: 0.95rem;
  }
  .hero-content {
    max-width: 700px;
  }
  .hero-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 920px) {
  .nav {
    height: auto;
    padding-bottom: 8px;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-inner {
    height: auto;
    padding-top: 8px;
    padding-bottom: 8px;
    flex-wrap: nowrap;
  }
  .brand {
    flex: 1 1 auto;
  }
  .nav-right {
    justify-content: flex-end;
    gap: 12px;
    padding-top: 0;
    margin-left: auto;
  }
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    min-height: 260px;
    background: #fffdf8;
    z-index: 40;
    flex-direction: column;
    padding: 32px 28px 18px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    transform: translateY(-20px);
    opacity: 0;
    display: flex;
    justify-content: flex-start;
    gap: 22px;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav-links.show {
    transform: translateY(0);
    opacity: 1;
  }
  .nav-links a {
    color: #0f172a;
    font-weight: 600;
  }
  body.menu-open {
    overflow: hidden;
  }
  .crm-page .nav-links {
    position: static;
    width: auto;
    min-height: auto;
    background: transparent;
    padding: 0;
    border-bottom: 0;
    transform: none;
    opacity: 1;
    flex-direction: row;
    gap: 12px;
  }
  .crm-page .nav-links a {
    padding: 6px 8px;
    font-size: 0.92rem;
  }
  .order-tracker-prompt {
    top: 84px;
    right: 16px;
    width: min(360px, calc(100vw - 24px));
  }
}
@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }
  .hero-media {
    display: flex;
  }
  .hero-actions {
    justify-content: flex-start;
  }
  .cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .cta-actions {
    width: auto;
    justify-content: flex-end;
  }
  .hero {
    padding: 48px 0 64px;
  }
  .hero-content h1 {
    font-size: clamp(2.8rem, 3vw, 4rem);
  }
}

@media (min-width: 1024px) {
  .calendar-grid--days {
    grid-auto-rows: minmax(56px, 1fr);
    gap: 8px;
  }
  .calendar-grid--weekdays {
    grid-auto-rows: minmax(40px, auto);
    gap: 8px;
  }
  .calendar-day {
    padding: 8px;
  }
  .calendar-cell {
    min-height: 70px;
    padding: 8px;
  }
  .calendar-weekday {
    font-size: 0.78rem;
  }
  .calendar-cell .day-number {
    font-size: 0.9rem;
  }
  .calendar-cell .order-count {
    font-size: 0.75rem;
  }
}

@media (max-width: 900px) {
  .menu .cards {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .experience-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .hero-content {
    max-width: 100%;
  }
  .orders-layout {
    grid-template-columns: 1fr;
  }
  .summary-grid {
    grid-template-columns: 1fr;
  }
  .calendar-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .calendar-nav {
    width: 100%;
    justify-content: space-between;
  }
  .calendar-month {
    flex: 1;
    text-align: center;
  }
}

@media (max-width: 640px) {
  body {
    padding-top: 96px;
  }
  main {
    padding: 30px 20px 40px;
  }
  .crm-panel {
    padding: 20px 16px;
  }
  .cta {
    padding: 28px;
  }
  .cta-actions {
    width: 100%;
    flex-direction: column;
  }
  .hero {
    padding: 28px 0 40px;
    min-height: auto;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
    max-width: 420px;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .nav-links {
    justify-content: center;
  }
  .calendar-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    min-width: 0;
  }
  .calendar-grid--weekdays {
    gap: 3px;
    grid-auto-rows: minmax(40px, auto);
  }
  .calendar-grid--days {
    gap: 3px;
    grid-auto-rows: minmax(64px, auto);
  }
  .calendar-day {
    padding: 5px 4px;
    font-size: 0.68rem;
  }
  .calendar-weekday {
    font-size: 0.7rem;
    padding: 4px 2px;
  }
  .calendar-cell {
    min-height: 72px;
    padding: 5px 4px;
  }
  .calendar-cell button {
    gap: 4px;
  }
  .calendar-cell .day-number {
    font-size: 0.78rem;
  }
  .calendar-cell .order-count,
  .calendar-cell .order-revenue {
    font-size: 0.62rem;
    line-height: 1.08;
  }
  .calendar-cell .order-count-label {
    font-size: 0.6rem;
  }
  .modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "primary primary"
      "close reject"
      "delete delete";
    align-items: stretch;
  }
  .modal-actions .modal-primary {
    grid-area: primary;
  }
  .modal-actions .modal-btn-close {
    grid-area: close;
  }
  .modal-actions .modal-btn-reject {
    grid-area: reject;
  }
  .modal-actions .modal-btn-delete {
    grid-area: delete;
  }
  .calendar-detail-header {
    align-items: stretch;
  }
  .calendar-detail-search input {
    width: 100%;
    min-width: 0;
  }
  .day-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .day-metrics {
    width: 100%;
  }
  .summary-tabs {
    width: 100%;
  }
  .summary-tab {
    flex: 1 1 auto;
    text-align: center;
  }
  .calendar-shell {
    padding-bottom: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .order-filters--pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 8px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .order-cards {
    grid-template-columns: 1fr;
  }
  .filter-pill {
    flex: 0 0 auto;
    min-width: auto;
    padding: 8px 14px;
    font-size: 0.9rem;
    white-space: nowrap;
  }
  .nav-inner {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero-inner {
    padding-left: 16px;
    padding-right: 16px;
  }
  .order-filters {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 24px 16px 32px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }
  .filter-pill {
    flex: 0 0 auto;
    padding: 7px 12px;
    font-size: 0.85rem;
  }
}

@media (max-width: 720px) {
  .hero-actions {
    flex-direction: column;
  }
  .nav {
    flex-wrap: wrap;
  }
  .crm-page .nav-inner {
    flex-wrap: nowrap;
    height: 62px;
    padding-top: 0;
    padding-bottom: 0;
  }
  .crm-page .nav-right {
    width: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 10px;
  }
  #order-modal .modal-card {
    width: min(100vw - 12px, 680px);
    max-height: calc(100dvh - 12px);
    padding: 16px;
    gap: 0;
    overflow: hidden;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }
  #order-modal .modal-header {
    position: relative;
    z-index: 2;
    align-items: flex-start;
    padding: 4px 56px 14px 0;
    margin-bottom: 0;
    background: #fffaf4;
    border-bottom: 1px solid rgba(210, 180, 150, 0.35);
  }
  #order-modal .modal-header > div {
    min-width: 0;
  }
  #order-modal .modal-body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px 2px 20px 0;
    display: grid;
    gap: 18px;
  }
  #order-modal .modal-actions {
    position: relative;
    z-index: 2;
    margin-top: 0;
    padding-top: 14px;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 4px);
    background: #fffaf4;
    border-top: 1px solid rgba(210, 180, 150, 0.35);
  }
  #order-modal .modal-close {
    top: 12px;
    right: 12px;
    z-index: 3;
  }
}

@media (max-width: 420px) {
  .crm-page .nav-inner {
    flex-wrap: wrap;
    height: auto;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .crm-page .nav-right {
    width: 100%;
    justify-content: flex-start;
  }
}

@keyframes floatToIcon {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
  60% {
    transform: translate3d(-10px, -20px, 0);
  }
  100% {
    transform: translate3d(-45px, -70px, 0) scale(0.95);
    opacity: 0;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
