﻿:root {
  /* Base do tema (roxo/amarelo) */
  --bg: #2b0b4f;
  --bg-deep: #1a062f;
  --card: #fff3cf;
  --card-soft: #ffe7a3;

  /* Texto */
  --ink: #231133;
  --muted: rgba(35, 17, 51, 0.70);

  /* Acentos */
  --accent-purple: #a855f7;
  --accent-purple-deep: #6d28d9;
  --accent-yellow: #fbbf24;
  --accent-yellow-soft: #fff1b8;
  --accent-blue: var(--accent-purple-deep);
  --accent-blue-soft: var(--accent-purple);
  --accent-orange: var(--accent-yellow);

  --radius-lg: 22px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.38);

  /* Navbar */
  --nav-brand-size: 64px;
  --nav-brand-size-mobile: 56px;
}

@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Oswald-Medium.ttf') format('truetype');
}

@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Oswald-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Inter-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Inter-Medium.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Inter-SemiBold.ttf') format('truetype');
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.14), transparent 10%),
    linear-gradient(180deg, rgba(255, 238, 170, 0.12), rgba(109, 40, 217, 0.18)),
    url("../img/bg-textura-rock.webp");

  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, repeat;
  background-attachment: fixed, fixed, fixed;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;

  background: linear-gradient(180deg,
      rgba(43, 11, 79, 0.94),
      rgba(26, 6, 47, 0.92),
      rgba(26, 6, 47, 0.9));

  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.nav {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 18px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.brand-logo {
  width: var(--nav-brand-size);
  height: var(--nav-brand-size);
  border-radius: 999px;
  overflow: hidden;
  border: 3px solid var(--ink);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.55);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-title span:first-child {
  font-weight: 900;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  text-transform: uppercase;
  color: #fff6d8;
}

.brand-title span:last-child {
  font-size: 0.78rem;
  color: rgba(255, 246, 216, 0.76);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-cta a {
  color: #f5f3ff;
  text-decoration: none;
  font-weight: 500;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #f5f3ff;
  text-decoration: none;
}

.cart-link span:last-child {
  font-weight: 900;
}

.nav-cta .cart-link {
  margin-left: 8px;
}

.cart-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.cart-count {
  position: absolute;
  top: -10px;
  right: -8px;
  left: auto;
  transform: translateX(0);
  background: #f97316;
  color: #0f172a;
  font-weight: 900;
  font-size: 11px;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 999px;
  border: 1px solid #fef9c3;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
}

.nav-cta a:hover {
  text-decoration: underline;
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  color: #f5f3ff;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 8px 10px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  letter-spacing: 0.06em;
}

.nav-toggle .hamburger-icon {
  width: 22px;
  height: 22px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #f97316, #d97706);
  color: #fff6d8;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 900;
  font-size: 0.84rem;
  border: 2px solid #c2410c;
  cursor: pointer;
  text-decoration: none;
  box-shadow:
    0 0 14px rgba(249, 115, 22, 0.45),
    0 14px 30px rgba(15, 23, 42, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #2b0b4f;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 900;
  font-size: 0.84rem;
  border: 2px solid #f59e0b;
  cursor: pointer;
  text-decoration: none;
  box-shadow:
    0 0 14px rgba(251, 191, 36, 0.45),
    0 14px 30px rgba(15, 23, 42, 0.32);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.btn-secondary:hover {
  filter: brightness(1.04);
  transform: translateY(-1px) scale(1.01);
  box-shadow:
    0 0 18px rgba(251, 191, 36, 0.52),
    0 18px 36px rgba(15, 23, 42, 0.42);
}

.btn-secondary:active {
  transform: translateY(0) scale(1);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.45);
}

.btn-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #9d4edd, #7b2cbf);
  color: #f5f3ff;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 900;
  font-size: 0.84rem;
  border: 2px solid #7b2cbf;
  cursor: pointer;
  text-decoration: none;
  box-shadow:
    0 0 14px rgba(123, 44, 191, 0.4),
    0 14px 30px rgba(15, 23, 42, 0.26);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.btn-closed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #e5e7eb;
  color: #6b7280;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 900;
  font-size: 0.84rem;
  border: 2px solid #cbd5e1;
  cursor: not-allowed;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: none;
}

.btn-cart:hover {
  filter: brightness(1.05);
  transform: translateY(-1px) scale(1.01);
  box-shadow:
    0 0 18px rgba(157, 78, 221, 0.48),
    0 18px 36px rgba(15, 23, 42, 0.45);
}

.btn-cart:active {
  transform: translateY(0) scale(1);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.45);
}

.form-row-inline .btn-cart,
.form-row-inline .btn-primary,
.form-row-inline .btn-closed {
  flex: 1;
  text-align: center;
  font-size: 0.78rem;
  padding: 10px 20px;
}

.form-row-inline .btn-primary {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #ffffff;
  border-color: #f59e0b;
  box-shadow:
    0 0 14px rgba(251, 191, 36, 0.35),
    0 14px 30px rgba(15, 23, 42, 0.28);
}

.form-row-inline .btn-primary:hover {
  filter: brightness(1.06);
  box-shadow:
    0 0 18px rgba(251, 191, 36, 0.45),
    0 18px 36px rgba(15, 23, 42, 0.45);
}

.btn-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  object-fit: contain;
}

.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px) scale(1.01);
  box-shadow:
    0 0 18px rgba(249, 115, 22, 0.55),
    0 18px 36px rgba(15, 23, 42, 0.5);
}

.btn-primary:active {
  transform: translateY(0) scale(1);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.45);
}

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 18px 22px;
  font-size: 0.78rem;
  color: #f5f3ff;
  text-align: center;
  background: linear-gradient(180deg,
      rgba(43, 11, 79, 0.94),
      rgba(26, 6, 47, 0.92),
      rgba(26, 6, 47, 0.9));
}

footer a {
  color: var(--accent-yellow);
  text-decoration: none;
  font-weight: 600;
}

#toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  display: grid;
  gap: 8px;
  z-index: 99;
}

.toast {
  background: rgba(17, 24, 39, 0.9);
  color: #f8fafc;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 900px) {
  .nav {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    padding: 12px 16px 14px;
    gap: 10px;
  }

  .brand-logo {
    width: var(--nav-brand-size-mobile);
    height: var(--nav-brand-size-mobile);
  }

  .brand-title span:first-child {
    letter-spacing: 0.12em;
    font-size: 0.72rem;
  }

  .brand-title span:last-child {
    font-size: 0.72rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: center;
    margin-left: auto;
    order: 2;
  }

  .nav-cta {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    display: none;
    background: rgba(43, 11, 79, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 10px;
    order: 3;
  }

  .nav-cta a {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
  }

  .nav.open .nav-cta {
    display: flex;
  }

  .nav-cta .cart-link {
    margin-left: 0;
  }

  .nav-cta .btn-primary {
    width: 100%;
    justify-content: center;
  }
}
