:root {
  --mg-container: 1160px;
  --mg-500: #8b1a2f;
  --mg-600: #6b1224;
  --mg-700: #4a0c18;
  --mg-200: #f0dde0;
  --mg-bg-top: #faf4f5;
  --mg-bg-bottom: #f4eee8;
  --mg-surface: #fff9f5;
  --mg-surface-soft: #f8efea;
  --mg-text: #28201a;
  --mg-text-soft: #5a5049;
  --mg-text-muted: #9a8f86;
  --mg-footer: #16110d;
  --mg-gold: #c49a28;
  --mg-border: rgba(139, 26, 47, 0.1);
  --mg-border-strong: rgba(139, 26, 47, 0.18);
  --mg-shadow: 0 14px 36px rgba(74, 12, 24, 0.08);
  --mg-shadow-soft: 0 8px 24px rgba(74, 12, 24, 0.05);
  --mg-shadow-button: 0 8px 22px rgba(139, 26, 47, 0.22);
  --mg-radius: 16px;
  --mg-radius-lg: 22px;
  --mg-radius-pill: 40px;
  --mg-font-display: "Cormorant Garamond", Georgia, serif;
  --mg-font-body: "DM Sans", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body.lestari-front-static {
  margin: 0;
  color: var(--mg-text);
  background: linear-gradient(180deg, var(--mg-bg-top), var(--mg-bg-bottom));
  font-family: var(--mg-font-body);
  -webkit-font-smoothing: antialiased;
}

.lestari-front-shell a {
  color: inherit;
}

.lestari-front-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 12px clamp(16px, 4vw, 30px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(250, 247, 242, 0.84);
  box-shadow: 0 1px 16px rgba(125, 31, 46, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.lestari-front-brand {
  color: var(--mg-600);
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.lestari-front-brand span {
  color: var(--mg-text-soft);
}

.lestari-front-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lestari-front-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(74, 12, 24, 0.76);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.lestari-front-nav a:hover,
.lestari-front-nav a[aria-current="page"] {
  background: rgba(139, 26, 47, 0.08);
  color: var(--mg-600);
}

.lestari-front-cta {
  border: 1px solid transparent;
  background: linear-gradient(180deg, #9a2138 0%, var(--mg-500) 100%) !important;
  color: #fff8f4 !important;
  box-shadow: var(--mg-shadow-button);
}

.lestari-front-main {
  min-height: 100dvh;
}

.lestari-front-footer {
  padding: 34px clamp(16px, 4vw, 30px) 110px;
  background: var(--mg-footer);
  color: rgba(255, 248, 242, 0.76);
  font-size: 0.86rem;
}

.lestari-front-footer__inner {
  width: min(var(--mg-container), 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.lestari-front-footer a {
  color: rgba(255, 248, 242, 0.86);
  text-decoration: none;
}

.lestarimall-chatbot {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 650;
  font-family: var(--mg-font-body);
}

.lestarimall-chatbot__toggle {
  min-width: 58px;
  min-height: 58px;
  border: 4px solid #fff8f4;
  border-radius: 999px;
  background: linear-gradient(145deg, #9a2138, var(--mg-600));
  color: #fff8f4;
  box-shadow: 0 12px 22px rgba(107, 18, 36, 0.28);
  cursor: pointer;
}

.lestarimall-chatbot__panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(360px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid var(--mg-border-strong);
  border-radius: 18px;
  background: rgba(255, 249, 245, 0.98);
  box-shadow: 0 22px 48px rgba(74, 12, 24, 0.22);
}

.lestarimall-chatbot__panel[hidden] {
  display: none;
}

.lestarimall-chatbot__header,
.lestarimall-chatbot__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
}

.lestarimall-chatbot__header {
  justify-content: space-between;
  border-bottom: 1px solid var(--mg-border);
}

.lestarimall-chatbot__brand {
  font-weight: 800;
  color: var(--mg-600);
}

.lestarimall-chatbot__close {
  border: 0;
  background: transparent;
  color: var(--mg-text-soft);
  font-size: 20px;
  cursor: pointer;
}

.lestarimall-chatbot__messages {
  display: grid;
  gap: 10px;
  max-height: 330px;
  overflow: auto;
  padding: 12px;
}

.lestarimall-chatbot__message {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(139, 26, 47, 0.07);
  color: var(--mg-text);
  font-size: 13px;
  line-height: 1.45;
}

.lestarimall-chatbot__message.is-user {
  margin-left: 24px;
  background: var(--mg-600);
  color: #fff8f4;
}

.lestarimall-chatbot__input {
  min-width: 0;
  flex: 1;
  min-height: 42px;
  border: 1px solid var(--mg-border);
  border-radius: 999px;
  padding: 9px 12px;
  background: #fff;
  color: var(--mg-text);
}

.lestarimall-chatbot__send {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  background: var(--mg-600);
  color: #fff8f4;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 720px) {
  .lestari-front-header {
    min-height: 60px;
  }

  .lestari-front-nav a:not(.lestari-front-cta) {
    display: none;
  }

  .lestari-front-footer__inner {
    display: grid;
  }
}
