/* === CARDAPIO PREMIUM DESIGN SYSTEM === */
:root {
  --olika-bg: #fdfcfb;
  --olika-surface: #ffffff;
  --olika-surface-muted: #f4efe8;
  --olika-border: rgba(41, 26, 17, 0.08);
  --olika-muted: #7a6553;
  --olika-molasses: #291a11;
  --olika-crust: #92400e;
  --olika-honey: #d97706;
  --olika-success: #15803d;
  --olika-font-display: 'Cormorant Garamond', Georgia, serif;
  --olika-font-sans: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --olika-radius: 16px;
  --olika-radius-sm: 8px;
  --olika-radius-lg: 24px;
  --olika-shadow-soft: 0 4px 20px -8px rgba(41, 26, 17, 0.18);
  --olika-shadow-cart: 0 20px 50px -12px rgba(41, 26, 17, 0.45);
}

.dark {
  --olika-bg: #1c1917;
  --olika-surface: #292524;
  --olika-surface-muted: #1c1917;
  --olika-border: rgba(253, 252, 251, 0.08);
  --olika-muted: #a8a29e;
}

.olika body { font-family: var(--olika-font-sans); background: var(--olika-bg); color: var(--olika-molasses); }
.olika h1, .olika h2, .olika h3, .olika .display { font-family: var(--olika-font-display); font-weight: 600; letter-spacing: -0.01em; }

/* Header */
.olika-header { position: sticky; top: 0; z-index: 40; background: rgba(253, 252, 251, 0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--olika-border); }
.dark .olika-header { background: rgba(28, 25, 23, 0.95); }


/* Input */
.olika-input { width: 100%; background: var(--olika-surface-muted); border: 1px solid var(--olika-border); border-radius: 9999px; padding: 10px 16px 10px 40px; font-size: 14px; font-family: var(--olika-font-sans); color: var(--olika-molasses); transition: border-color .15s, box-shadow .15s; height: 44px; }
.olika-input:focus { outline: 0; border-color: rgba(146, 64, 14, 0.4); box-shadow: 0 0 0 3px rgba(146, 64, 14, 0.15); }
.dark .olika-input { background: var(--olika-surface); border-color: var(--olika-border); color: #f5f5f4; }
.dark .olika-input::placeholder { color: #78716c; }

/* Buttons */
.olika-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--olika-font-sans); font-weight: 600; font-size: 14px; height: 44px; padding: 0 20px; border-radius: 9999px; border: 0; cursor: pointer; transition: transform .15s, filter .15s; min-height: 44px; min-width: 44px; }
.olika-btn:active { transform: scale(.97); }
.olika-btn--primary { background: var(--olika-honey); color: var(--olika-molasses); }
.olika-btn--primary:hover { filter: brightness(1.06); }
.olika-btn--ghost { background: var(--olika-surface-muted); color: var(--olika-molasses); }
.olika-btn--ghost:hover { background: var(--olika-border); }

/* Cards */
.olika-card { background: var(--olika-surface); border: 1px solid var(--olika-border); border-radius: var(--olika-radius-lg); padding: 20px; box-sizing: border-box; max-width: 100%; min-width: 0; }
.dark .olika-card { background: var(--olika-surface); }
@media (max-width: 640px) {
  .olika-card { padding: 14px; border-radius: var(--olika-radius); }
}

/* Product Card */
.olika-product-card { position: relative; display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.olika-product-card__link { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; cursor: pointer; }
.olika-product-card__media { position: relative; background: var(--olika-surface-muted); border: 1px solid var(--olika-border); border-radius: var(--olika-radius); padding: 8px; overflow: hidden; }
.olika-product-card__media img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 12px; transition: transform .5s ease; }
.olika-product-card:hover .olika-product-card__media img { transform: scale(1.05); }
.olika-product-card__name { font-size: 14px; font-weight: 600; line-height: 1.2; }
.olika-product-card__desc { font-size: 11px; color: var(--olika-muted); line-height: 1.35; }
.olika-product-card__price { font-size: 14px; font-weight: 700; padding-right: 36px; }
.olika-product-card__price--sale { color: var(--olika-crust); }

/* Botão de Adição Rápida (+) */
.olika-product-card__action {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--olika-surface-muted);
  color: var(--olika-crust);
  border: 1px solid var(--olika-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s, color 0.15s;
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 10;
}
.olika-product-card__action:hover {
  background: #1c1712;
  color: #ffffff;
  border-color: #1c1712;
  transform: scale(1.08);
}
.olika-product-card__action:active {
  transform: scale(0.9);
  background: var(--olika-honey);
}
.dark .olika-product-card__action {
  background: var(--olika-surface);
  color: #f5f5f4;
  border-color: rgba(255,255,255,0.1);
}
.dark .olika-product-card__action:hover {
  background: #ffffff;
  color: #1c1712;
  border-color: #ffffff;
}

/* Hero Combo */
.olika-hero { background: var(--olika-molasses); color: #fdfcfb; border-radius: var(--olika-radius-lg); padding: 24px; position: relative; overflow: hidden; }
.olika-hero__price { color: var(--olika-honey); font-size: 22px; font-weight: 700; }
.olika-hero__price-old { color: rgba(253, 252, 251, 0.4); text-decoration: line-through; margin-left: 8px; }
.dark .olika-hero { background: #292524; }

/* Badge */
.olika-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 2px 8px; border-radius: 9999px; }
.olika-badge--dark { background: var(--olika-molasses); color: #fdfcfb; }
.olika-badge--honey { background: var(--olika-honey); color: var(--olika-molasses); }

/* Cart FAB */
.olika-cart-fab { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); width: calc(100% - 32px); max-width: 672px; z-index: 40; }
.olika-cart-fab__btn { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 56px; padding: 0 20px; border-radius: 9999px; background: var(--olika-molasses); color: #fdfcfb; border: 1px solid rgba(255,255,255,0.1); font-weight: 600; cursor: pointer; text-decoration: none; }
.olika-cart-fab__count { width: 32px; height: 32px; border-radius: 50%; background: var(--olika-honey); color: var(--olika-molasses); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.dark .olika-cart-fab__btn { background: #292524; }

/* Grid */
.olika-grid { display: grid; gap: 16px; }
.olika-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .olika-grid--md-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .olika-grid--lg-4 { grid-template-columns: repeat(4, 1fr); } }

/* Descrição recolhível na página do produto */
.desc-recolhida {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Carrossel Horizontal de Destaques */
.olika-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px;
}
.olika-carousel::-webkit-scrollbar { display: none; }

/* Card de Destaque (carrossel) */
.destaque-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 140px;
  flex-shrink: 0;
  border-radius: var(--olika-radius);
  background: var(--olika-surface);
  border: 1px solid var(--olika-border);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.destaque-card:hover {
  box-shadow: var(--olika-shadow-soft);
  transform: translateY(-2px);
}
.dark .destaque-card {
  background: #292524;
}

/* Imagem */
.destaque-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--olika-surface-muted);
}
.destaque-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.destaque-card:hover .destaque-card__media img {
  transform: scale(1.06);
}
.destaque-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--olika-muted);
}

/* Badge estrela (canto superior esquerdo) */
.destaque-card__badge {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(28, 23, 18, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
}

/* Texto */
.destaque-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px 36px;
  text-decoration: none;
  color: inherit;
  flex: 1;
}
.destaque-card__name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--olika-molasses);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dark .destaque-card__name { color: #f5f5f4; }
.destaque-card__price {
  font-size: 13px;
  font-weight: 700;
  color: var(--olika-molasses);
  margin-top: 4px;
}
.dark .destaque-card__price { color: #f5f5f4; }
.destaque-card__from {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--olika-muted);
}

/* Botão + (canto inferior direito) */
.destaque-card__action {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--olika-molasses);
  color: #fdfcfb;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  z-index: 5;
}
.destaque-card__action:hover {
  background: var(--olika-honey);
  color: var(--olika-molasses);
  transform: scale(1.1);
}
.destaque-card__action:active { transform: scale(0.92); }
.dark .destaque-card__action {
  background: #f5f5f4;
  color: #1c1712;
}

@media (min-width: 640px) {
  .destaque-card { width: 168px; }
  .destaque-card__name { font-size: 14px; }
  .destaque-card__price { font-size: 14px; }
}

/* Loading */
#loading-screen { transition: opacity 0.5s ease-out, visibility 0.5s ease-out; }
.loading-bar { width: 50%; animation: progress 1.5s ease-in-out infinite; }

/* Modal */
.olika-modal-backdrop { background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); }
.olika-modal { background: var(--olika-surface); border-radius: var(--olika-radius-lg); }
.dark .olika-modal { background: #292524; }

/* Variant option */
.variant-option { transition: all .15s ease; }
.variant-option.selected { border-color: var(--olika-honey) !important; background: rgba(217,119,6,0.05); }

/* Notification Toast */
#notification-toast { animation: slideDown 0.3s ease-out; }
@keyframes slideDown { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@keyframes progress {
  0% { left: -50%; }
  100% { left: 100%; }
}

/* Utility */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
/* Modo Lista Nativo em Mobile e Customizável no Desktop */
@media (max-width: 767px) {
  .olika-grid { 
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important; 
  }
  .olika-product-card:not(.mamma-card) { 
    display: grid !important; 
    grid-template-columns: 72px 1fr 34px !important; 
    grid-template-rows: auto auto 1fr !important; 
    gap: 2px 12px !important; 
    padding: 14px 0 !important; 
    border-bottom: 1px solid var(--olika-border) !important; 
    border-radius: 0 !important; 
    background: transparent !important; 
    align-items: center !important; 
  }
  .olika-product-card:not(.mamma-card) .olika-product-card__link {
    display: contents !important;
  }
  .olika-product-card:not(.mamma-card):last-child { 
    border-bottom: none !important; 
  }
  .olika-product-card:not(.mamma-card) .olika-product-card__media { 
    grid-column: 1 !important; 
    grid-row: 1 / 4 !important; 
    width: 72px !important; 
    height: 72px !important; 
    padding: 0 !important; 
    border: none !important; 
    border-radius: 12px !important; 
  }
  .olika-product-card:not(.mamma-card) .olika-product-card__name { 
    grid-column: 2 !important; 
    grid-row: 1 !important; 
    align-self: end !important; 
    font-size: 15px !important; 
  }
  .olika-product-card:not(.mamma-card) .olika-product-card__desc { 
    grid-column: 2 !important; 
    grid-row: 2 !important; 
    -webkit-line-clamp: 1 !important; 
  }
  .olika-product-card:not(.mamma-card) .olika-product-card__price { 
    grid-column: 2 !important; 
    grid-row: 3 !important; 
    align-self: start !important; 
    margin-top: 4px !important; 
    padding-right: 0 !important; 
  }
  .olika-product-card:not(.mamma-card) .olika-product-card__action { 
    position: static !important; 
    grid-column: 3 !important; 
    grid-row: 1 / 4 !important; 
    align-self: center !important; 
    justify-self: center !important; 
    width: 34px !important; 
    height: 34px !important; 
  }
}

/* Modo Lista em Tablets e Desktop (quando ativo) */
@media (min-width: 768px) {
  .modo-lista .olika-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .modo-lista .olika-product-card {
    display: grid;
    grid-template-columns: 72px 1fr 34px;
    grid-template-rows: auto auto 1fr;
    gap: 2px 12px;
    padding: 12px;
    border: 1px solid var(--olika-border);
    border-radius: var(--olika-radius);
    background: var(--olika-surface);
    align-items: center;
  }
  .modo-lista .olika-product-card__link {
    display: contents;
  }
  .modo-lista .olika-product-card__media {
    grid-column: 1;
    grid-row: 1 / 4;
    width: 72px;
    height: 72px;
    padding: 0;
    border: none;
    border-radius: 12px;
  }
  .modo-lista .olika-product-card__name {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    font-size: 15px;
  }
  .modo-lista .olika-product-card__desc {
    grid-column: 2;
    grid-row: 2;
    -webkit-line-clamp: 1;
  }
  .modo-lista .olika-product-card__price {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
    margin-top: 4px;
    padding-right: 0;
  }
  .modo-lista .olika-product-card__action {
    position: static;
    grid-column: 3;
    grid-row: 1 / 4;
    align-self: center;
    justify-self: center;
    width: 34px;
    height: 34px;
  }
}

@media (min-width: 1024px) {
  .modo-lista .olika-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* === APP BAR UNIFICADA (HOME & PÁGINAS INTERNAS) === */
.app-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

/* Home: transparente sobre a capa, translúcida no scroll */
.app-bar--home {
    margin-bottom: -56px;
    background: transparent;
    border-bottom: 1px solid transparent;
}
@media (min-width: 640px) {
    .app-bar--home { margin-bottom: -60px; }
}
.app-bar--home.app-bar--scrolled {
    background: rgba(253, 252, 251, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--olika-border, #f0ede8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.dark .app-bar--home.app-bar--scrolled {
    background: rgba(28, 25, 23, 0.95);
    border-bottom-color: #292524;
}

/* Páginas internas: header compacto sólido com borda limpa */
.app-bar--internal {
    margin-bottom: 0;
    background: rgba(253, 252, 251, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--olika-border, #f0ede8);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
}
.dark .app-bar--internal {
    background: rgba(28, 25, 23, 0.97);
    border-bottom-color: #292524;
}

.app-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 12px;
}
@media (min-width: 640px) {
    .app-bar__inner { height: 60px; padding: 0 16px; }
}

.app-bar__left {
    display: flex;
    align-items: center;
    gap: 8px;
}
@media (min-width: 640px) {
    .app-bar__left { gap: 12px; }
}

.app-bar__brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.app-bar__brand--home {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s, transform 0.25s;
    pointer-events: none;
}
.app-bar--scrolled .app-bar__brand--home {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.app-bar__back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    background: transparent;
    color: var(--olika-molasses, #1c1712);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.15s;
}
.app-bar__back:hover { background: rgba(0,0,0,0.05); }
.app-bar__back:active { transform: scale(0.95); }
.dark .app-bar__back { color: #fdfcfb; }
.dark .app-bar__back:hover { background: rgba(255,255,255,0.1); }

.app-bar__logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--olika-border, #f0ede8);
    flex-shrink: 0;
}
.dark .app-bar__logo { border-color: #292524; }
.app-bar__logo--fallback {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--olika-molasses, #1c1712);
    color: #fdfcfb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}
.dark .app-bar__logo--fallback {
    background: #fdfcfb;
    color: #1c1712;
}

.app-bar__title {
    font-size: 15px;
    font-weight: 700;
    font-family: var(--olika-font-display, serif);
    color: var(--olika-molasses, #1c1712);
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (min-width: 640px) {
    .app-bar__title { max-width: 280px; font-size: 17px; }
}
.dark .app-bar__title { color: #fdfcfb; }

.app-bar__right {
    display: flex;
    align-items: center;
    gap: 6px;
}
@media (min-width: 640px) {
    .app-bar__right { gap: 8px; }
}

.app-bar__action {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    color: var(--olika-molasses, #1c1712);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: background-color 0.2s, transform 0.15s;
}
.app-bar__action:active { transform: scale(0.95); }
.app-bar--scrolled .app-bar__action,
.app-bar--internal .app-bar__action {
    background: rgba(41, 26, 17, 0.05);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}
.app-bar__action:hover { background: rgba(0,0,0,0.08); }
.dark .app-bar__action {
    background: rgba(28, 25, 23, 0.85);
    color: #fdfcfb;
}
.dark .app-bar--scrolled .app-bar__action,
.dark .app-bar--internal .app-bar__action {
    background: rgba(253, 252, 251, 0.08);
}
.dark .app-bar__action:hover { background: rgba(255,255,255,0.12); }

.app-bar__action-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #E50033;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}
.dark .app-bar__action-badge { border-color: #1c1917; }

/* Busca na App Bar */
.app-bar__search {
    position: relative;
    display: flex;
    align-items: center;
}
.app-bar__search-btn, .app-bar__search-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    color: var(--olika-molasses, #1c1712);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.15s;
}
.app-bar__search-btn:active, .app-bar__search-close:active { transform: scale(0.95); }
.app-bar--scrolled .app-bar__search-btn,
.app-bar--scrolled .app-bar__search-close,
.app-bar--internal .app-bar__search-btn,
.app-bar--internal .app-bar__search-close {
    background: rgba(41, 26, 17, 0.05);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}
.app-bar__search-btn:hover, .app-bar__search-close:hover { background: rgba(0,0,0,0.08); }
.dark .app-bar__search-btn, .dark .app-bar__search-close {
    background: rgba(28, 25, 23, 0.85);
    color: #fdfcfb;
}
.dark .app-bar--scrolled .app-bar__search-btn,
.dark .app-bar--scrolled .app-bar__search-close,
.dark .app-bar--internal .app-bar__search-btn,
.dark .app-bar--internal .app-bar__search-close {
    background: rgba(253, 252, 251, 0.08);
}
.dark .app-bar__search-btn:hover, .dark .app-bar__search-close:hover { background: rgba(255,255,255,0.12); }

.app-bar__search-close {
    position: absolute;
    right: 0;
    display: none;
}
.app-bar__search-input {
    position: absolute;
    right: 0;
    width: 0;
    opacity: 0;
    height: 44px;
    padding: 0 16px;
    border-radius: 22px;
    border: 1px solid var(--olika-border, #f0ede8);
    background: var(--olika-surface, #fff);
    color: var(--olika-molasses, #1c1712);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s;
    outline: none;
    pointer-events: none;
    font-size: 14px;
}
.dark .app-bar__search-input {
    background: #1c1917;
    border-color: #292524;
    color: #fdfcfb;
}
.app-bar__search-input:focus {
    border-color: var(--olika-molasses, #1c1712);
}
.dark .app-bar__search-input:focus {
    border-color: #fdfcfb;
}

.app-bar__search.is-open .app-bar__search-input {
    width: 220px;
    opacity: 1;
    pointer-events: auto;
    padding-right: 44px;
}
@media (min-width: 640px) {
    .app-bar__search.is-open .app-bar__search-input { width: 300px; }
}
.app-bar__search.is-open .app-bar__search-close { display: flex; }
.app-bar__search.is-open .app-bar__search-btn { display: none; }

/* === BANNER CAPA (HOME) === */
.hero-wrapper {
    position: relative;
    width: 100%;
}
.hero-capa {
    width: 100%;
    height: 115px;
    position: relative;
    z-index: 10;
    overflow: hidden;
    background: #f0ede8;
}
@media (min-width: 640px) {
    .hero-capa { height: 175px; }
}
.dark .hero-capa { background: #292524; }

.hero-capa__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-capa__fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--olika-molasses, #1c1712), #3a3229);
}

/* === CABEÇALHO DA LOJA NA HOME (STORE HEADER OTIMIZADO) === */
.store-header {
    position: relative;
    z-index: 20;
    padding-top: 0;
    padding-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
@media (min-width: 640px) {
    .store-header {
        display: block;
    }
}

.store-header__main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
@media (min-width: 640px) {
    .store-header__main {
        flex-direction: row;
        gap: 16px;
    }
}

.hero-avatar {
    width: 60px;
    height: 60px;
    margin-top: -30px;
    border-radius: 50%;
    border: 3px solid var(--olika-surface, #fff);
    overflow: hidden;
    background: var(--olika-surface, #fff);
    padding: 0;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    transition: transform 0.2s;
    flex-shrink: 0;
    position: relative;
    z-index: 20;
}
@media (min-width: 640px) {
    .hero-avatar {
        width: 72px;
        height: 72px;
        margin-top: -36px;
        border-width: 4px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.14);
    }
}
.hero-avatar:hover { transform: scale(1.05); }
.dark .hero-avatar {
    border-color: #1c1917;
    background: #1c1917;
}
.hero-avatar__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-header__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
    width: 100%;
}
@media (min-width: 640px) {
    .store-header__info {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }
}

.store-title-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
@media (min-width: 640px) {
    .store-title-group {
        flex-direction: row;
        align-items: baseline;
        gap: 8px;
    }
}

.store-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--olika-molasses, #1c1712);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (min-width: 640px) {
    .store-title { font-size: 22px; }
}
.dark .store-title { color: #f5f5f4; }

.store-greeting {
    font-size: 12px;
    color: var(--olika-muted, #6b5c4e);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (min-width: 640px) {
    .store-greeting { font-size: 13px; }
}
.dark .store-greeting { color: #a8a29e; }

.store-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}
@media (min-width: 640px) {
    .store-actions { margin-top: 0; margin-left: auto; gap: 16px; }
}

.store-location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--olika-muted, #6b5c4e);
    white-space: nowrap;
}
@media (min-width: 640px) {
    .store-location { font-size: 12px; }
}
.dark .store-location { color: #a8a29e; }
.store-location svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.store-btn-info {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #d97706;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    min-height: 36px;
    white-space: nowrap;
}
@media (min-width: 640px) {
    .store-btn-info { font-size: 12px; min-height: 44px; }
}
.dark .store-btn-info { color: #fbbf24; }
.store-btn-info svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

/* Badges da Loja (Tags sutis com wrap natural abaixo da localização) */
.store-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    width: 100%;
}
@media (min-width: 640px) {
    .store-badges {
        gap: 8px;
        margin-top: 6px;
    }
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.2;
    white-space: nowrap;
    max-width: 100%;
}
.store-badge span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (min-width: 640px) {
    .store-badge { font-size: 11px; padding: 4px 10px; border-radius: 9999px; }
}
.store-badge__dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}
.store-badge--green {
    background: #f0fdf4;
    color: #15803d;
}
.store-badge--amber {
    background: #fffbeb;
    color: #b45309;
}
.dark .store-badge--green {
    background: rgba(21, 128, 61, 0.15);
    color: #4ade80;
}
.dark .store-badge--amber {
    background: rgba(180, 83, 9, 0.15);
    color: #fbbf24;
}

/* Category nav (Abas com borda ativa e fade de rolagem) */
.category-nav-wrapper {
  position: relative;
  width: 100%;
}
.category-nav-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 28px;
  background: linear-gradient(to right, transparent, rgba(250, 250, 248, 0.95));
  pointer-events: none;
  z-index: 10;
}
.dark .category-nav-wrapper::after {
  background: linear-gradient(to right, transparent, rgba(3, 7, 18, 0.95));
}
.olika-cat-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  padding: 4px 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.olika-cat-nav::-webkit-scrollbar { display: none; }
.olika-cat {
  font-size: 14px;
  font-weight: 500;
  color: var(--olika-muted, #7a6553);
  padding: 10px 4px 8px;
  border-bottom: 2.5px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  flex-shrink: 0;
}
.olika-cat:hover {
  color: var(--olika-molasses, #1c1712);
}
.olika-cat--active {
  color: var(--olika-molasses, #1c1712) !important;
  border-color: #d97706 !important;
  font-weight: 700;
}
.dark .olika-cat {
  color: #a8a29e;
}
.dark .olika-cat:hover {
  color: #f5f5f4;
}
.dark .olika-cat--active {
  color: #f5f5f4 !important;
  border-color: #d97706 !important;
}

/* ============================================================
   UTILITÁRIOS .5 (usados nas views)
   ============================================================ */
.w-1\.5 { width: 0.375rem; }
.h-1\.5 { height: 0.375rem; }
.w-2\.5 { width: 0.625rem; }
.h-2\.5 { height: 0.625rem; }
.w-3\.5 { width: 0.875rem; }
.h-3\.5 { height: 0.875rem; }
.w-4\.5 { width: 1.125rem; }
.h-4\.5 { height: 1.125rem; }

/* Proteção contra vazamento lateral global no Cardápio */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}
.checkout-main {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}
.cart-item {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}
#carrinho-recomendacoes {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}
#carrinho-recomendacoes .overflow-x-auto {
    max-width: 100% !important;
    min-width: 0 !important;
    -webkit-overflow-scrolling: touch;
}

/* Suporte a line-clamp e contenção de texto no carrinho */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cart-item h4 {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* =======================================================
   ESTÉTICA MAMMA ARTESANAL (Alta Conversão · Mobile-First)
   ======================================================= */

/* Fundo Artesanal Limpo */
body.olika-mamma-theme {
    background-color: #fbf9f6 !important;
    color: #1c1712 !important;
}

/* Faixa Panorâmica de Capa */
.mamma-hero-strip {
    position: relative;
    width: 100%;
    height: 120px;
    background-color: #261c14;
    overflow: hidden;
}
@media (min-width: 640px) {
    .mamma-hero-strip {
        height: 160px;
    }
}
.mamma-hero-strip__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65;
}
.mamma-hero-strip__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(28,23,18,0.7) 100%);
}

/* Logo Circular Centralizada (Vazando da Capa) */
.mamma-brand-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: -46px;
    position: relative;
    z-index: 10;
    padding: 0 1rem;
}
@media (min-width: 640px) {
    .mamma-brand-center {
        margin-top: -56px;
    }
}
.mamma-brand-avatar {
    width: 88px;
    height: 88px;
    border-radius: 9999px;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 20px -4px rgba(41, 26, 17, 0.22);
    background-color: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
@media (min-width: 640px) {
    .mamma-brand-avatar {
        width: 104px;
        height: 104px;
    }
}
.mamma-brand-avatar:active {
    transform: scale(0.96);
}
.mamma-brand-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mamma-brand-avatar__fallback {
    width: 100%;
    height: 100%;
    background-color: #1c1712;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
}

.mamma-brand-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.375rem;
    font-weight: 800;
    color: #1c1712;
    margin-top: 0.5rem;
    line-height: 1.2;
}
.mamma-brand-slogan {
    font-size: 0.8125rem;
    color: #7a6553;
    font-weight: 500;
    margin-top: 0.25rem;
}

/* Pílulas de Status da Loja & Atalhos */
.mamma-status-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.875rem;
    width: 100%;
}
.mamma-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    background-color: #ffffff;
    border: 1px solid #e8e2d9;
    color: #44372c;
    box-shadow: 0 1px 3px rgba(41, 26, 17, 0.05);
    min-height: 32px;
    text-decoration: none;
    transition: background-color 0.15s, border-color 0.15s, transform 0.1s;
}
.mamma-pill:active {
    transform: scale(0.97);
}
.mamma-pill--highlight {
    background-color: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}
.mamma-pill--action {
    background-color: #1c1712;
    border-color: #1c1712;
    color: #ffffff;
}
.mamma-pill--action:hover {
    background-color: #000000;
}
.mamma-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 9999px;
    background-color: #22c55e;
}

/* Barra Fixa de Categorias com Alto Contraste */
.mamma-cat-nav {
    position: sticky;
    top: 56px;
    z-index: 40;
    background-color: #1c1712;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.15);
}
@media (min-width: 640px) {
    .mamma-cat-nav {
        top: 60px;
    }
}
.mamma-cat-nav__scroll {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    overflow-x: auto;
    padding: 0.5rem 0.75rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.mamma-cat-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 0.4375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.15s ease;
    min-height: 34px;
}
.mamma-cat-item:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}
.mamma-cat-item--active {
    background-color: #ffffff !important;
    color: #1c1712 !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Card de Produto Horizontal (Estilo Mamma Artesanal) */
.mamma-card {
    background-color: #ffffff !important;
    border: 1px solid #ece6dc !important;
    border-radius: 18px !important;
    padding: 12px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    gap: 12px !important;
    box-shadow: 0 2px 8px -2px rgba(41, 26, 17, 0.06) !important;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative !important;
    box-sizing: border-box !important;
    width: 100% !important;
}
.mamma-card:hover {
    box-shadow: 0 6px 18px -4px rgba(41, 26, 17, 0.12);
    border-color: #dcd3c4;
}

/* Lado Esquerdo do Card: Textos e Ações */
.mamma-card__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.mamma-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.mamma-card__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1c1712;
    line-height: 1.25;
    margin: 0;
}
.mamma-card__desc {
    font-size: 0.75rem;
    color: #7a6553;
    line-height: 1.35;
    margin-top: 3px;
    margin-bottom: 4px;
}
.mamma-card__prices {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 2px;
}
.mamma-card__price-orig {
    font-size: 0.75rem;
    color: #a89f91;
    text-decoration: line-through;
}
.mamma-card__price-final {
    font-size: 1rem;
    font-weight: 800;
    color: #1c1712;
}
.mamma-card__price-prefix {
    font-size: 0.6875rem;
    color: #7a6553;
    font-weight: 500;
    margin-right: 2px;
}
.mamma-card__stock {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.6875rem;
    color: #b45309;
    font-weight: 600;
    margin-top: 4px;
}

/* Linha de Ações: Seletor de Quantidade + Botão de Compra */
.mamma-card__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}
.mamma-qty-picker {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e3ddd3;
    border-radius: 9999px;
    background-color: #f7f5f1;
    padding: 2px;
    height: 34px;
    flex-shrink: 0;
}
.mamma-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    border: 0;
    background: transparent;
    color: #1c1712;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s, transform 0.1s;
}
.mamma-qty-btn:active {
    background-color: rgba(0, 0, 0, 0.08);
    transform: scale(0.9);
}
.mamma-qty-number {
    min-width: 22px;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1c1712;
}

.mamma-buy-action {
    flex: 1;
    height: 34px;
    border-radius: 9999px;
    background-color: #ffffff;
    border: 1.5px solid #1c1712;
    color: #1c1712;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    text-decoration: none;
    min-height: 34px;
}
.mamma-buy-action:hover {
    background-color: #1c1712;
    color: #ffffff;
}
.mamma-buy-action:active {
    transform: scale(0.97);
}
.mamma-buy-action--solid {
    background-color: #1c1712;
    color: #ffffff;
    border-color: #1c1712;
}
.mamma-buy-action--solid:hover {
    background-color: #000000;
    border-color: #000000;
}

/* Lado Direito do Card: Imagem e Badges */
.mamma-card__media {
    width: 96px;
    height: 96px;
    position: relative;
    flex-shrink: 0;
    border-radius: 14px;
    overflow: hidden;
    background-color: #f4efe8;
    align-self: center;
}
@media (min-width: 640px) {
    .mamma-card__media {
        width: 110px;
        height: 110px;
    }
}
.mamma-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.mamma-card:hover .mamma-card__img {
    transform: scale(1.05);
}
.mamma-card__badge-discount {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background-color: #dc2626;
    color: #ffffff;
    font-size: 0.625rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.mamma-card__badge-top {
    position: absolute;
    top: 6px;
    left: 6px;
    background-color: #1c1712;
    color: #ffffff;
    font-size: 0.5625rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 5px;
}