/**
 * Mansão Maromba - Estilos dos Componentes
 * Menu lateral, Carrinho sidebar, Busca, Notificações
 */

/* ==================== VARIÁVEIS ==================== */
:root {
  --color-primary: #000000;
  --color-secondary: #E74C3C;
  --color-accent: #27AE60;
  --color-success: #22C55E;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  --color-bg: #F8F9FA;
  --color-text: #2C3E50;
  --color-text-light: #64748B;
  --color-border: #E2E8F0;
  --color-white: #FFFFFF;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  
  --transition: all 0.3s ease;
}

/* ==================== OVERLAY ==================== */
.menu-overlay,
.cart-overlay,
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.menu-overlay.open,
.cart-overlay.open,
.search-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ==================== MENU SIDEBAR ==================== */
.menu-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: var(--color-white);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
}

.menu-sidebar.open {
  transform: translateX(0);
}

.menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.menu-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.05em;
}

.menu-close {
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.menu-close:hover {
  background: var(--color-bg);
}

.menu-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  color: var(--color-text);
  text-decoration: none;
  transition: var(--transition);
}

.menu-item:hover {
  background: var(--color-bg);
}

.menu-item.active {
  color: var(--color-primary);
  background: rgba(0, 0, 0, 0.05);
  font-weight: 600;
}

.menu-item svg {
  flex-shrink: 0;
}

.menu-divider {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
}

.menu-category {
  display: block;
  padding: 0.75rem 1.5rem 0.75rem 3rem;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: var(--transition);
}

.menu-category:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}

.menu-category.active {
  color: var(--color-primary);
  font-weight: 600;
}

.menu-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

.menu-contact {
  margin-bottom: 1rem;
}

.menu-contact p {
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.menu-contact a {
  display: block;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.menu-contact a:hover {
  color: var(--color-primary);
}

.menu-social {
  display: flex;
  gap: 1rem;
}

.menu-social a {
  color: var(--color-text-light);
  transition: var(--transition);
}

.menu-social a:hover {
  color: var(--color-primary);
}

/* ==================== CART SIDEBAR ==================== */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 430px;
  max-width: 90vw;
  height: 100vh;
  height: var(--mm-vh, 100dvh);
  max-height: var(--mm-vh, 100dvh);
  background: var(--color-white);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
}

.cart-sidebar.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  position: sticky;
  top: 0;
  z-index: 2;
}

.cart-header-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: #0f172a;
}

.cart-close {
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.cart-close:hover {
  background: var(--color-bg);
}

.cart-content {
  flex: 1;
  overflow-y: auto;
  padding: 0.9rem;
  background: #f6f8fb;
}

#cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 2rem;
  color: var(--color-text-light);
}

#cart-empty svg {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  opacity: 0.5;
}

#cart-empty p {
  margin-bottom: 1rem;
}

#cart-empty a {
  color: var(--color-primary);
  font-weight: 600;
}

.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 0.85rem;
  padding: 0.85rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 0.65rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.cart-item-image {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.cart-item-info {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.cart-item-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  align-items: start;
}

.cart-item-title {
  font-size: 0.94rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
}

.cart-item-price {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0;
  font-weight: 700;
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: #f8fafc;
  border: 1px solid #dbe3ec;
  border-radius: 999px;
  padding: 2px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #dbe3ec;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
  color: #334155;
}

.qty-btn:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.qty-value {
  min-width: 18px;
  text-align: center;
  font-weight: 900;
  color: #0f172a;
  font-size: 0.92rem;
}

.cart-item-line-total {
  font-weight: 900;
  color: #0f172a;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.cart-item-remove {
  width: 30px;
  height: 30px;
  padding: 0;
  background: #f8fafc;
  border: 1px solid #dbe3ec;
  border-radius: 999px;
  cursor: pointer;
  color: #64748b;
  transition: var(--transition);
  display: grid;
  place-items: center;
}

.cart-item-remove:hover {
  color: #dc2626;
  border-color: #fecaca;
  background: #fff1f2;
}

.cart-footer {
  padding: 0.95rem 1rem;
  border-top: 1px solid var(--color-border);
  background: #ffffff;
  box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.08);
  position: sticky;
  bottom: 0;
  z-index: 2;
}

/* Mobile: keep checkout button above gesture bar */
@media (max-width: 768px) {
  .cart-footer {
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom) + var(--mm-vv-bottom-offset, 0px));
  }

  .cart-checkout-btn {
    margin-bottom: 0.35rem;
  }
}

.cart-orderbump {
  margin-bottom: 1rem;
  padding: 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.08), rgba(255, 255, 255, 1) 60%);
}

.cart-orderbump-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cart-orderbump-title {
  font-weight: 900;
  font-size: 0.95rem;
  color: #0f172a;
}

.cart-orderbump-badge {
  font-weight: 900;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #166534;
  white-space: nowrap;
}

.cart-orderbump-sub {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.78);
}

.cart-orderbump-row {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.6rem;
}

.cart-orderbump-select {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  padding: 0 0.75rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: #0f172a;
}

.cart-orderbump-add {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 0.95rem;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(90deg, #16A34A 0%, #22C55E 100%);
  box-shadow: 0 10px 18px rgba(22, 163, 74, 0.22);
  transition: var(--transition);
}

.cart-orderbump-add:hover {
  filter: saturate(1.05) brightness(1.02);
  transform: translateY(-1px);
}

.cart-orderbump-add:active {
  transform: translateY(0px);
}

.cart-orderbump-msg {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: #166534;
}

/* ==================== ORDER BUMP MODAL ==================== */
.mm-bump-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.mm-bump-overlay.open {
  display: flex;
}

.mm-bump {
  width: min(560px, 92vw);
  max-height: min(86vh, 760px);
  overflow: hidden;
  border-radius: 22px;
  background: var(--color-white);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  transform: translateY(8px) scale(0.98);
  opacity: 0.98;
  animation: mmBumpIn 220ms ease-out forwards;
  position: relative;
}

@keyframes mmBumpIn {
  from { transform: translateY(12px) scale(0.98); opacity: 0.0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.mm-bump-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
}

.mm-bump-x:hover {
  background: rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.mm-bump-banner {
  width: 100%;
  height: auto;
  background: #0b0b0b;
  position: relative;
  padding: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mm-bump-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.mm-bump-body {
  padding: 18px 18px 16px 18px;
}

.mm-bump-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #166534;
}

.mm-bump-title {
  margin: 10px 0 6px;
  font-weight: 950;
  font-size: 1.25rem;
  color: #0f172a;
}

.mm-bump-sub {
  margin: 0 0 12px;
  color: rgba(15, 23, 42, 0.78);
  font-weight: 650;
}

.mm-bump-label {
  display: block;
  margin: 10px 0 6px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #0f172a;
}

.mm-bump-select {
  width: 100%;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  padding: 0 0.9rem;
  font-weight: 800;
  color: #0f172a;
  background: #fff;
}

.mm-bump-msg {
  margin-top: 8px;
  font-weight: 850;
  font-size: 0.85rem;
  color: #b91c1c;
}

.mm-bump-actions {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.mm-bump-add {
  height: 50px;
  border-radius: 16px;
  border: 0;
  cursor: pointer;
  font-weight: 950;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(90deg, #16A34A 0%, #22C55E 100%);
  box-shadow: 0 18px 30px rgba(22, 163, 74, 0.28);
  transition: var(--transition);
}

.mm-bump-add:hover {
  transform: translateY(-1px);
  filter: saturate(1.05) brightness(1.02);
}

.mm-bump-skip {
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.84);
  transition: var(--transition);
}

.mm-bump-skip:hover {
  background: rgba(0, 0, 0, 0.03);
}

.mm-bump-footnote {
  margin-top: 12px;
  font-size: 0.83rem;
  color: rgba(15, 23, 42, 0.72);
  font-weight: 650;
}

@media (max-width: 520px) {
  .mm-bump-banner { height: auto; }
  .mm-bump-title { font-size: 1.15rem; }
}

/* ==================== TERMS POPUP (FIRST VISIT) ==================== */
.mm-terms-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background:
    radial-gradient(900px 420px at 50% 20%, rgba(34, 197, 94, 0.18), rgba(0, 0, 0, 0) 60%),
    rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(8px);
}

.mm-terms-overlay.open {
  display: flex;
}

.mm-terms {
  width: min(560px, 92vw);
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.46),
    0 14px 30px rgba(0, 0, 0, 0.22);
  animation: mmTermsIn 220ms ease-out forwards;
}

@keyframes mmTermsIn {
  from { transform: translateY(14px) scale(0.985); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.mm-terms-banner {
  position: relative;
  background: #0b0b0b;
}

.mm-terms-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.mm-terms-body {
  padding: 18px 18px 16px 18px;
}

.mm-terms-kicker {
  display: inline-flex;
  align-items: center;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #166534;
}

.mm-terms-title {
  margin: 10px 0 6px;
  font-weight: 950;
  font-size: 1.3rem;
  color: #0f172a;
}

.mm-terms-sub {
  margin: 0 0 14px;
  color: rgba(15, 23, 42, 0.78);
  font-weight: 650;
  line-height: 1.35;
}

.mm-terms-link {
  color: #0f172a;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mm-terms-accept {
  width: 100%;
  height: 52px;
  border-radius: 18px;
  border: 0;
  cursor: pointer;
  font-weight: 950;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(90deg, #16A34A 0%, #22C55E 100%);
  box-shadow:
    0 18px 34px rgba(22, 163, 74, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: var(--transition);
}

.mm-terms-accept:hover {
  transform: translateY(-1px);
  filter: saturate(1.05) brightness(1.02);
}

.mm-terms-accept:active {
  transform: translateY(0px);
}

.mm-terms-accept:focus-visible {
  outline: 3px solid rgba(34, 197, 94, 0.45);
  outline-offset: 3px;
}

.cart-totals {
  margin-bottom: 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.65rem 0.8rem;
  background: #f8fafc;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.9rem;
}

.cart-total-row.subtotal {
  color: var(--color-text-light);
}

.cart-total-row.discount {
  color: var(--color-success);
}

.cart-total-row.total {
  border-top: 1px solid var(--color-border);
  padding-top: 0.7rem;
  margin-top: 0.25rem;
  font-weight: 900;
  font-size: 1.25rem;
  color: #0f172a;
}

.cart-checkout-btn {
  width: 100%;
  padding: 0.92rem 0.95rem;
  background: linear-gradient(90deg, #16A34A 0%, #22C55E 100%);
  color: var(--color-white);
  border: none;
  border-radius: 18px;
  font-weight: 900;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  box-shadow:
    0 18px 34px rgba(22, 163, 74, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  position: relative;
  min-height: 66px;
}

.cart-checkout-btn:hover {
  filter: saturate(1.05) brightness(1.02);
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(22, 163, 74, 0.30);
}

.cart-checkout-btn:active {
  transform: translateY(0px);
  box-shadow: 0 10px 22px rgba(22, 163, 74, 0.22);
}

.cart-checkout-btn:focus-visible {
  outline: 3px solid rgba(34, 197, 94, 0.45);
  outline-offset: 3px;
}

.cart-checkout-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1 1 auto;
  justify-content: center;
}

.cart-checkout-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  flex: 0 0 auto;
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.cart-checkout-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.cart-checkout-title {
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.9rem;
}

.cart-checkout-sub {
  font-size: 0.8rem;
  font-weight: 800;
  opacity: 0.95;
}

.cart-checkout-amount {
  font-weight: 900;
  font-size: 0.98rem;
  padding: 0.6rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  white-space: nowrap;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.cart-continue {
  display: block;
  text-align: center;
  margin-top: 0.7rem;
  color: #475569;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.cart-continue:hover {
  color: var(--color-primary);
}

/* Cart Counter Badge */
.cart-counter,
[data-cart-counter] {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--color-secondary);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  display: none;
  align-items: center;
  justify-content: center;
}

@keyframes cartVibrate {
  0% { transform: translateZ(0) rotate(0deg) scale(1); }
  20% { transform: translateZ(0) rotate(-8deg) scale(1.03); }
  40% { transform: translateZ(0) rotate(8deg) scale(1.05); }
  60% { transform: translateZ(0) rotate(-6deg) scale(1.03); }
  80% { transform: translateZ(0) rotate(6deg) scale(1.02); }
  100% { transform: translateZ(0) rotate(0deg) scale(1); }
}

.cart-vibrate {
  animation: cartVibrate 0.6s ease;
  transform-origin: center;
}

/* ==================== SEARCH MODAL ==================== */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4rem 1rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.search-modal.open {
  opacity: 1;
  visibility: visible;
}

.search-container {
  width: 100%;
  max-width: 600px;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.search-modal.open .search-container {
  transform: translateY(0);
}

.search-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.search-header svg {
  color: var(--color-text-light);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  background: transparent;
}

.search-close-btn {
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-light);
  border-radius: var(--radius-md);
}

.search-close-btn:hover {
  background: var(--color-bg);
}

.search-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 1rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-text);
  transition: var(--transition);
}

.search-result-item:hover {
  background: var(--color-bg);
}

.search-result-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.search-result-image {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: var(--color-bg);
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-title {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.search-result-meta {
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-bottom: 0.25rem;
}

.search-result-price {
  font-weight: 600;
  color: var(--color-primary);
}

.search-result-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

.search-result-actions .product-card-btn {
  width: 140px;
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
}

.search-result-actions .product-card-btn svg {
  width: 14px;
  height: 14px;
}

.search-result-actions .product-card-btn-secondary svg {
  width: 12px;
  height: 12px;
}

.search-result-item {
  cursor: pointer;
}

.search-empty {
  text-align: center;
  padding: 2rem;
  color: var(--color-text-light);
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.cart-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

.cart-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.cart-toast-success {
  background: var(--color-success);
}

.cart-toast-warning {
  background: var(--color-warning);
}

.cart-toast-error {
  background: var(--color-error);
}

/* ==================== PRODUCT GRID ==================== */
.products-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.products-header {
  margin-bottom: 2rem;
}

.products-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.products-subtitle {
  color: var(--color-text-light);
}

.cart-toast-inline {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 84px;
  bottom: auto;
  z-index: 4;
}

.page-top {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1rem 0.75rem;
}

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.page-back:hover {
  color: var(--color-primary);
}

.page-title {
  margin: 0.5rem 0 0.25rem;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
}

.page-count {
  margin: 0;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* Product page: recommendations section */
.recommended {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.recommended-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.recommended-title {
  margin: 0;
  font-weight: 900;
  font-size: 22px;
  line-height: 1.2;
  color: #000000;
}

.recommended-controls {
  display: none;
  gap: 8px;
}

@media (min-width: 860px) {
  .recommended-controls {
    display: flex;
  }
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #ffffff;
  cursor: pointer;
  font-weight: 900;
  color: rgba(17, 17, 17, 0.85);
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

.recommended-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.recommended-carousel::-webkit-scrollbar {
  height: 10px;
}

.recommended-carousel::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 999px;
}

.recommended-carousel .product-card {
  scroll-snap-align: start;
  flex: 0 0 78%;
}

@media (min-width: 540px) {
  .recommended-carousel .product-card {
    flex-basis: 46%;
  }
}

@media (min-width: 860px) {
  .recommended-carousel .product-card {
    flex-basis: 320px;
  }
}

/* =========================
   Hero Banner Carousel
   ========================= */
.mm-hero {
  position: relative;
  background: #000;
}

.mm-hero-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.mm-hero-track::-webkit-scrollbar {
  height: 0;
}

.mm-hero-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: block;
  height: clamp(220px, 34vw, 520px);
  position: relative;
}

.mm-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mm-hero-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.mm-hero-btn:hover {
  background: rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.4);
}

.mm-hero-btn:active {
  transform: translateY(-50%) scale(0.98);
}

.mm-hero-btn.prev { left: 10px; }
.mm-hero-btn.next { right: 10px; }

.mm-hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
  padding: 0 12px;
}

.mm-hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  padding: 0;
}

.mm-hero-dot.active {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 640px) {
  .mm-hero-btn {
    width: 40px;
    height: 40px;
  }
}

/* ==================== PRODUCT PAGE ==================== */
.mm-product .container {
  max-width: 1200px;
}

.mm-product .panel {
  position: relative;
}

.mm-product .btnPrimary {
  background: #22C55E;
  border-color: #22C55E;
  color: #ffffff;
}

.mm-product .btnPrimary:hover {
  filter: brightness(0.95);
}

.mm-product .btnSecondary {
  background: #ffffff;
  border-color: #111111;
  color: #111111;
}

.mm-product .btnSecondary:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* ==================== HOME ==================== */
.mm-home-banner {
  background: #000000;
}

.mm-home-banner-link {
  display: block;
}

.mm-home-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* Mantem o impacto visual do banner no mobile (evita ficar "achatado"). */
@media (max-width: 900px) {
  .mm-home-banner-link {
    min-height: 190px;
  }

  .mm-home-banner img {
    width: 100%;
    min-height: 190px;
    object-fit: cover;
    object-position: center;
  }
}

.mm-home-section {
  padding: 28px 16px;
}

@media (min-width: 1024px) {
  .mm-home-section {
    padding: 44px 32px;
  }
}

.mm-home-section .products-container {
  padding: 20px 0 0;
}

.mm-home-section-head {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.mm-home-section-title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #111111;
}

.mm-home-section-link {
  color: rgba(17, 17, 17, 0.8);
  font-weight: 700;
  text-decoration: none;
}

.mm-home-section-link:hover {
  color: rgba(17, 17, 17, 1);
  text-decoration: underline;
}

/* ==================== CHECKOUT: SHIPPING + MODAL ==================== */
.mm-ship-methods {
  display: grid;
  gap: 12px;
}

.mm-ship-method {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  padding: 14px 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
}

.mm-ship-method-selected {
  border-color: rgba(0, 0, 0, 0.9);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.9) inset;
}

.mm-ship-radio {
  margin-top: 6px;
}

.mm-ship-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mm-ship-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #111111;
}

.mm-ship-icon {
  width: 22px;
  display: inline-flex;
  justify-content: center;
}

.mm-ship-price {
  font-weight: 900;
  color: rgba(17, 17, 17, 0.9);
}

.mm-ship-free {
  color: #16a34a;
}

.mm-ship-sub {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(17, 17, 17, 0.7);
  font-size: 13px;
}

.mm-ship-pill {
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.03);
}

.mm-ship-pill-ok {
  background: #ecfdf5;
  border-color: rgba(22, 163, 74, 0.25);
  color: #16a34a;
}

.mm-ship-link {
  border: none;
  background: transparent;
  padding: 0;
  font-weight: 800;
  color: rgba(17, 17, 17, 0.9);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mm-ship-link:hover {
  color: #000000;
}

.mm-ship-result {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #16a34a;
}

@media (max-width: 640px) {
  .mm-ship-title-row {
    align-items: flex-start;
    gap: 8px;
  }

  .mm-ship-title {
    flex-wrap: wrap;
    min-width: 0;
  }

  .mm-ship-sub {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

.mm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
}

.mm-modal-overlay.open {
  display: flex;
}

.mm-modal {
  width: min(560px, 100%);
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.mm-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 0;
}

.mm-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: #111111;
}

.mm-modal-sub {
  margin: 6px 0 0;
  color: rgba(17, 17, 17, 0.7);
  font-size: 13px;
}

.mm-modal-close {
  border: none;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: rgba(17, 17, 17, 0.7);
  padding: 6px 8px;
}

.mm-modal-close:hover {
  color: rgba(17, 17, 17, 1);
}

.mm-modal-body {
  padding: 16px;
}

.mm-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .mm-modal-grid {
    grid-template-columns: 1fr;
  }
}

.mm-field {
  display: grid;
  gap: 6px;
}

.mm-label {
  font-size: 13px;
  font-weight: 800;
  color: rgba(17, 17, 17, 0.85);
}

.mm-input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  font-size: 14px;
  box-sizing: border-box;
}

.mm-input:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.7);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.mm-help {
  font-size: 12px;
  color: rgba(17, 17, 17, 0.6);
}

.mm-modal-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.mm-btn {
  border-radius: 12px;
  border: 2px solid #111111;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
}

.mm-btn-primary {
  background: #111111;
  color: #ffffff;
}

.mm-btn-primary:hover {
  filter: brightness(0.95);
}

.mm-btn-secondary {
  background: #ffffff;
  color: #111111;
}

.mm-btn-secondary:hover {
  background: rgba(0, 0, 0, 0.04);
}

.mm-modal-result {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 800;
  color: #16a34a;
  min-height: 18px;
}

/* Checkout: Aviso PIX (Carnaval) */
.mm-carnaval-note {
  margin: 12px 0 14px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(234, 88, 12, 0.25);
  background: rgba(234, 88, 12, 0.08);
  color: rgba(124, 45, 18, 0.95);
  display: grid;
  gap: 4px;
  font-size: 13px;
}

.mm-carnaval-note strong {
  font-weight: 900;
  letter-spacing: 0.01em;
}

.pixBox {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.10);
  color: #14532d;
}

.pixBox-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pixBox-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #22C55E;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.pixBox-icon svg {
  width: 18px;
  height: 18px;
  color: #ffffff;
}

.pixBox-price {
  font-weight: 900;
  font-size: 14px;
  line-height: 1.1;
}

.pixBox-sub {
  margin-top: 2px;
  font-size: 12px;
  opacity: 0.9;
}

.qtyRow {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.qtyLabel {
  font-size: 13px;
  color: rgba(17, 17, 17, 0.75);
  font-weight: 600;
}

.qtyStepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.qtyStepBtn {
  width: 40px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.qtyStepBtn:hover {
  background: rgba(0, 0, 0, 0.04);
}

.qtyInput {
  width: 54px;
  height: 36px;
  border: 0;
  text-align: center;
  font-weight: 800;
  outline: none;
}

.qtyTotal {
  font-size: 13px;
  color: rgba(17, 17, 17, 0.8);
}

.payRow {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.payLabel {
  font-size: 12px;
  font-weight: 700;
  color: rgba(17, 17, 17, 0.65);
}

.payIcons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.payPill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #ffffff;
  font-size: 11px;
  font-weight: 800;
  color: rgba(17, 17, 17, 0.8);
}

.shipBox {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
}

.shipTitle {
  font-weight: 900;
  color: #111111;
}

.shipSub {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(17, 17, 17, 0.65);
}

.shipLabel {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(17, 17, 17, 0.7);
}

.shipRow {
  margin-top: 6px;
  display: flex;
  gap: 8px;
}

.shipInput {
  flex: 1;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 0 12px;
  outline: none;
}

.shipInput:focus {
  border-color: rgba(0, 0, 0, 0.35);
}

.shipBtn {
  height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.shipBtn:hover {
  background: rgba(0, 0, 0, 0.04);
}

.shipResult {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(17, 17, 17, 0.75);
}

.trustRow {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 680px) {
  .trustRow {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trustItem {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 12px;
  font-weight: 700;
  color: rgba(17, 17, 17, 0.75);
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.product-card-image {
  position: relative;
  display: block;
  aspect-ratio: 1;
  background: #ffffff;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.3s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: #FCD34D;
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.375rem 0.75rem;
  border-bottom-right-radius: var(--radius-lg);
}

.product-card-info {
  padding: 1rem;
}

.product-card-title {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
  min-height: 44px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-title a {
  color: inherit;
  text-decoration: none;
}

.product-card-title a:hover {
  color: var(--color-primary);
}

.product-card-meta {
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.product-card-price-old {
  font-size: 0.75rem;
  color: var(--color-text-light);
  text-decoration: line-through;
}

.product-card-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #000000;
}

.product-card-installments {
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-top: 0.25rem;
}

.product-card-pix {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: #DCFCE7;
  color: #166534;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  margin-top: 0.5rem;
}

.product-card-pix::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #22C55E;
  border-radius: 50%;
}

.product-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.product-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.product-card-btn-primary {
  background: #000000;
  color: #ffffff;
  border: none;
}

.product-card-btn-primary:hover {
  background: #111111;
}

.product-card-btn-secondary {
  background: #ffffff;
  color: #000000;
  border: 2px solid #111111;
}

.product-card-btn-secondary:hover {
  background: #f6f7f8;
  color: #000000;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .cart-sidebar {
    width: 100%;
    max-width: none;
    height: 100vh;
    height: var(--mm-vh, 100dvh);
    max-height: var(--mm-vh, 100dvh);
  }

  .cart-header,
  .cart-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .cart-content {
    padding: 0.75rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom) + var(--mm-vv-bottom-offset, 0px));
  }

  .cart-item {
    grid-template-columns: 64px 1fr;
    padding: 0.7rem;
    gap: 0.65rem;
  }

  .cart-item-image {
    width: 64px;
    height: 64px;
  }

  .cart-item-title {
    font-size: 0.86rem;
  }

  .cart-item-line-total {
    font-size: 1rem;
  }

  .cart-checkout-btn {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    min-height: 64px;
  }

  .cart-checkout-left {
    justify-content: flex-start;
    padding: 0;
    gap: 0.5rem;
  }

  .cart-checkout-icon {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .cart-checkout-text {
    align-items: flex-start;
    text-align: left;
  }

  .cart-checkout-title {
    white-space: normal;
    font-size: 0.82rem;
    line-height: 1.12;
  }

  .cart-checkout-sub {
    font-size: 0.72rem;
    line-height: 1.1;
  }

  .cart-checkout-amount {
    position: static;
    top: auto;
    right: auto;
    transform: none;
    padding: 0.45rem 0.55rem;
    font-size: 0.86rem;
  }
  
  .menu-sidebar {
    width: 100%;
    max-width: none;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .product-card-info {
    padding: 0.75rem;
  }
  
  .product-card-title {
    font-size: 0.875rem;
    min-height: 40px;
  }
  
  .product-card-btn {
    padding: 0.625rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .cart-toast {
    left: 20px;
    right: 20px;
    bottom: 80px;
  }

  .cart-toast-inline {
    left: 10px;
    right: 10px;
    top: 76px;
  }
}

@media (max-width: 480px) {
  .cart-footer {
    padding-bottom: calc(1.1rem + env(safe-area-inset-bottom) + var(--mm-vv-bottom-offset, 0px) + 12px);
  }

  .cart-checkout-btn {
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .product-card-price {
    font-size: 1rem;
  }
}

/* Defensive mobile menu layer to avoid style overrides from utility CSS bundles. */
.menu-overlay {
  background: rgba(0, 0, 0, 0.48) !important;
  z-index: 1000 !important;
}

.menu-sidebar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 320px !important;
  max-width: 88vw !important;
  background: #ffffff !important;
  color: #0f172a !important;
  z-index: 1001 !important;
  box-shadow: 0 20px 32px rgba(0, 0, 0, 0.22) !important;
  transform: translateX(-100%);
}

.menu-sidebar.open {
  transform: translateX(0) !important;
}

@media (max-width: 768px) {
  .menu-sidebar {
    width: 86vw !important;
    max-width: 360px !important;
  }
}
