@font-face {
  font-family: 'MoreSugar';
  src: url('/fonts/more_sugar/MoreSugar-Regular.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'MoreSugar-Extras';
  src: url('/fonts/more_sugar/MoreSugar-Extras.ttf') format('truetype');
  font-display: swap;
}

body {
  font-family: 'MoreSugar', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("/images/fundo.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.08;
  z-index: -1;
  pointer-events: none;
}

.MoreSugar-Extras { font-family: 'MoreSugar-Extras'; }
.MoreSugar { font-family: 'MoreSugar', sans-serif; }

.giro360 {
  display: inline-block;
  animation: vibrar 1.6s infinite;
}

@keyframes vibrar {
  0%,70%,100% { transform: translateX(0); }
  72% { transform: translateX(-2px); }
  74% { transform: translateX(2px); }
  76% { transform: translateX(-2px); }
  78% { transform: translateX(2px); }
  80% { transform: translateX(-2px); }
  82% { transform: translateX(-1px); }
  84% { transform: translateX(1px); }
}

@keyframes pulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.pulse { animation: pulse 1.8s infinite; }

@keyframes blinkBW {
  0%, 100% { background: black; color: white; }
  50% { background: white; color: black; }
}

.animate-blink { animation: blinkBW 0.7s infinite; }

@keyframes glitch {
  0% { transform: translateY(0); }
  25% { transform: translateY(-3px); }
  50% { transform: translateY(2px); }
  75% { transform: translateY(-2px); }
  100% { transform: translateY(0); }
}

.glitch { animation: glitch 2.5s ease-in-out infinite; }

h1, h2, h3, h4, h5, h6, p, img, a, section, article, .card, .fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}

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

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
}

.cart-drawer.cart-drawer--open { display: block; }

.cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cart-drawer--open .cart-drawer__backdrop { opacity: 1; }

.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-left: 2px solid #000;
  z-index: 71;
}

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

.cart-drawer__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 2px solid #000;
}

.cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.cart-drawer__empty {
  text-align: center;
  padding: 40px 0;
  font-size: 1.2rem;
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cart-drawer__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.cart-drawer__item-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid #000;
  border-radius: 8px;
}

.cart-drawer__item-info { flex: 1; min-width: 0; }

.cart-drawer__item-name {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-drawer__item-variant {
  font-size: 0.75rem;
  color: #666;
  margin-top: 2px;
}

.cart-drawer__item-price { font-size: 0.8rem; margin-top: 4px; }
.cart-drawer__item-qty {
  font-size: 1.2rem;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

.cart-drawer__footer { padding: 20px; border-top: 2px solid #000; }

.cart-drawer__total {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cart-drawer__checkout {
  width: 100%;
  padding: 16px;
  background: #000;
  color: #fff;
  border: 2px solid #000;
  border-radius: 16px;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-transform: uppercase;
  animation: blink 1s linear infinite;
}

.cart-drawer__checkout:hover { background: #222; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #000;
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  z-index: 1000;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
  white-space: nowrap;
  border: 1px solid #333;
}

.toast.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast--error { background: #dc2626; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  h1, h2, h3, h4, h5, h6, p, img, a, section, article, .card, .fade-up {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  h1, h2, h3, h4, h5, h6, p, img, a, section, article, .card, .fade-up {
    opacity: 1 !important;
    transform: none !important;
  }
}