:root {
  --blue-1: #9fbefc;
  --blue-4: #c1d3fe;
  --blue-6: #d7e3fc;
  --blue-8: #edf2fb;

  --purple-1: #b66ee8;
  --purple-6: #ffb7ff;
  --purple-7: #ffc4ff;
  --purple-8: #fbd4fc;

  --pink-1: #f49abb;
  --pink-3: #feb1c6;
  --pink-4: #febdce;
  --pink-5: #ffc9d6;
  --pink-6: #ffd4de;
  --pink-7: #ffe0e6;
  --pink-8: #ffecee;

  --bg-app: #f9f9fe;
  --text-main: #332640;
  --text-muted: #786b85;
  --shadow-soft: 0 10px 30px rgba(182, 110, 232, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-app);
  color: var(--text-main);
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.6;
}
.shape-1 {
  width: 320px;
  height: 320px;
  background: var(--pink-4);
  top: -50px;
  right: -50px;
}
.shape-2 {
  width: 350px;
  height: 350px;
  background: var(--blue-4);
  bottom: 50px;
  left: -80px;
}

.app-shell {
  max-width: 540px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 90px;
  position: relative;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 224, 230, 0.6);
  padding: 12px 16px 8px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--purple-1), var(--pink-1));
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(182, 110, 232, 0.3);
}

.brand-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
}

.brand-text .sub-brand {
  font-size: 0.72rem;
  color: var(--purple-1);
  font-weight: 600;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--pink-6);
  background: white;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  position: relative;
}

.cart-btn-top {
  background: var(--pink-8);
  color: var(--pink-1);
  border-color: var(--pink-5);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--purple-1);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.search-box {
  display: none;
  position: relative;
  margin: 8px 0;
}

.search-box.active {
  display: block;
}

.search-box input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: 20px;
  border: 1px solid var(--purple-6);
  background: white;
  font-size: 0.85rem;
  outline: none;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--purple-1);
}

.categories-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 4px;
  scrollbar-width: none;
}

.categories-nav::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid var(--blue-6);
  background: white;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.cat-pill.active {
  background: linear-gradient(135deg, var(--purple-1), var(--pink-1));
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(182, 110, 232, 0.25);
}

.hero-card {
  margin: 16px 16px 8px;
  border-radius: 24px;
  height: 160px;
  background: url('img/logotipo.jpeg') center/cover;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(51, 38, 64, 0.85), rgba(182, 110, 232, 0.3));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
}

.hero-tag {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.hero-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  line-height: 1.3;
}

.hero-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-indicator {
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 20px;
}

.dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
}

.dot.pulse {
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.share-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-content {
  padding: 0 16px;
}

.promo-card {
  margin: 12px 0 20px;
  background: linear-gradient(135deg, var(--pink-7), var(--purple-7));
  border: 1px solid var(--pink-4);
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.promo-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.promo-icon {
  width: 36px;
  height: 36px;
  background: white;
  border-radius: 10px;
  color: var(--pink-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.promo-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
}

.promo-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.menu-section {
  margin-bottom: 24px;
  scroll-margin-top: 110px;
}

.section-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.section-header p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.product-card {
  background: white;
  border-radius: 18px;
  padding: 12px;
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
  border: 1px solid var(--pink-8);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  cursor: pointer;
}

.product-img-box {
  width: 95px;
  height: 95px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.product-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-tag {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  color: var(--purple-1);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
}

.product-tag.kg-tag {
  background: var(--purple-1);
  color: white;
}

.product-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.product-snippet {
  font-size: 0.73rem;
  color: var(--text-muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.product-price {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--purple-1);
}

.add-quick-btn {
  border: none;
  background: var(--pink-8);
  color: var(--pink-1);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  cursor: pointer;
}

.add-quick-btn.highlight {
  background: var(--purple-8);
  color: var(--purple-1);
}

.cart-floating-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 508px;
  background: linear-gradient(135deg, var(--purple-1), var(--pink-1));
  color: white;
  padding: 10px 14px;
  border-radius: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 25px rgba(182, 110, 232, 0.35);
  z-index: 99;
  cursor: pointer;
}

.cart-floating-bar.hidden {
  display: none;
}

.cart-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-badge-pill {
  background: white;
  color: var(--purple-1);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
}

.cart-bar-text {
  display: flex;
  flex-direction: column;
}

.cart-bar-text span {
  font-size: 0.85rem;
  font-weight: 700;
}

.cart-bar-text small {
  font-size: 0.68rem;
  opacity: 0.9;
}

.cart-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-bar-price {
  font-weight: 800;
  font-size: 0.95rem;
}

.cart-bar-action {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glass-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(51, 38, 64, 0.45);
  backdrop-filter: blur(6px);
  z-index: 1000;
  justify-content: center;
  align-items: flex-end;
}

.glass-modal-overlay.active {
  display: flex;
}

.glass-modal-card {
  background: white;
  width: 100%;
  max-width: 540px;
  border-radius: 28px 28px 0 0;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--pink-6);
  color: var(--text-main);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-hero-img {
  width: 100%;
  height: 180px;
}

.modal-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: 18px;
}

.modal-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.modal-body p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 14px;
}

.modal-price-tag {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--purple-1);
  margin-bottom: 16px;
}

.modal-actions-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.counter-control {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--pink-8);
  border: 1px solid var(--pink-5);
  border-radius: 20px;
  padding: 4px 10px;
}

.counter-control.large {
  padding: 8px 14px;
  justify-content: center;
}

.counter-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--purple-1);
  cursor: pointer;
}

.counter-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.main-cta-btn {
  flex: 1;
  background: var(--purple-1);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.main-cta-btn.highlight-btn {
  background: linear-gradient(135deg, var(--purple-1), var(--pink-1));
}

.kilo-option-group {
  margin-bottom: 16px;
}

.group-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--purple-1);
  margin-bottom: 8px;
}

.flavors-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.flavor-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--pink-6);
  border-radius: 12px;
  background: white;
  cursor: pointer;
}

.flavor-option.selected {
  border-color: var(--purple-1);
  background: var(--purple-8);
}

.flavor-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
}

.flavor-radio {
  accent-color: var(--purple-1);
}

.flavor-price-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--purple-1);
}

.weight-selector-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.weight-chips {
  display: flex;
  gap: 6px;
}

.chip-btn {
  flex: 1;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--blue-4);
  background: white;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
}

.chip-btn.active {
  background: var(--blue-1);
  color: white;
  border-color: transparent;
}

.kilo-price-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--pink-8);
  padding: 10px 14px;
  border-radius: 14px;
  margin-bottom: 14px;
  font-size: 0.85rem;
}

.kilo-total-amount {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--purple-1);
}

.cart-modal-body {
  padding-top: 24px;
}

.cart-header {
  text-align: center;
  margin-bottom: 16px;
}

.cart-header-icon {
  font-size: 2rem;
  color: var(--pink-1);
}

.cart-items-container {
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-item-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--pink-8);
  padding: 10px 12px;
  border-radius: 14px;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
}

.cart-item-title {
  font-size: 0.82rem;
  font-weight: 700;
}

.cart-item-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.cart-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item-price {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--purple-1);
}

.cart-remove-btn {
  border: none;
  background: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 0.9rem;
}

.cart-summary-card {
  background: var(--blue-8);
  padding: 12px;
  border-radius: 14px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.summary-line.highlight {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  border-top: 1px dashed var(--blue-4);
  padding-top: 6px;
}

.whatsapp-checkout-btn {
  width: 100%;
  background: #22c55e;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.bg-slideshow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transition: background-image 1.5s ease-in-out;
  opacity: 0.25; /* Ajusta para regular a transparência do fundo */
}