/* style_index.css */

:root {
  /* Fundo geral */
  --bg: #0e2a1f; /* verde escuro profundo */
  --panel: #123729; /* variação levemente mais clara */
  --panel-2: #184c38; /* verde médio para seções destacadas */

  /* Paleta bronze ferrugem */
  --gold: #b66a2d; /* bronze ferrugem principal */
  --gold-2: #8a4e20; /* bronze escuro para hover */

  /* Acentos */
  --lava: #b66a2d; /* reforço do bronze */
  --accent: linear-gradient(135deg, #b66a2d, #d98a47);
  --gold-grad: linear-gradient(135deg, #e3b48a, #d98a47 45%, #b66a2d 90%);

  /* Efeitos visuais */
  --ring: 0 0 0 1px rgba(182, 106, 45, 0.15),
    0 10px 28px rgba(182, 106, 45, 0.12);

  --shadow: 0 10px 24px rgba(182, 106, 45, 0.25);

  /* Bordas */
  --radius: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    Cantarell, Noto Sans, sans-serif;
  background: var(--bg);
  color: #e7dfd6; /* substitui marrom por areia clara */
  line-height: 1.6;
}

/* ===== TOPBAR REFORMULADO ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.2) blur(10px);
  background: linear-gradient(
    180deg,
    rgba(5, 15, 10, 0.9),
    rgba(5, 15, 10, 0.65)
  );
  border-bottom: 1px solid rgba(182, 106, 45, 0.25);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: center; /* mantém a brand no centro */
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
}

/* ===== BOTÃO HAMBÚRGUER ===== */
.shelf-btn {
  font-size: 22px;
  color: var(--gold);
  background: none;
  border: 1px solid rgba(182, 106, 45, 0.35);
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--ring);
  position: absolute;
  left: 20px;
}

.shelf-btn:hover {
  background: rgba(182, 106, 45, 0.15);
  transform: translateY(-2px);
}

/* ===== LOGO E NOME ===== */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gold-grad);
  box-shadow: var(--ring);
}

.brand-name {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 22px;
  background: var(--gold-grad);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-logo {
  height: 42px;
  width: auto;
  display: block;
  border-radius: 10px;
  box-shadow: var(--ring);
}

@media (max-width: 640px) {
  .brand-logo {
    height: 32px;
  }
}

/* ===== RESPONSIVO ===== */
@media (max-width: 640px) {
  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand-name {
    font-size: 18px;
  }

  .shelf-btn {
    font-size: 20px;
    padding: 4px 8px;
    left: 14px;
  }
}

/* ===== MENU REFINADO ===== */
.menu {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
}

.menu a {
  color: #000;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);

  /* substitui amarelo por cobre queimado */
  background: linear-gradient(135deg, #f3d3a1, #d98a47 45%, #b66a2d 90%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25),
    0 4px 10px rgba(182, 106, 45, 0.25);

  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

.menu a:hover {
  background: linear-gradient(135deg, #fff5e2, #e3b48a 45%, #c47833 90%);
  box-shadow: 0 6px 16px rgba(182, 106, 45, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  color: #000;
}

@media (max-width: 640px) {
  .topbar-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
}

/* ===== HERO CAROUSEL ===== */
.hero {
  max-width: 1200px;
  margin: 28px auto 10px;
  padding: 0 20px;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid rgba(182, 106, 45, 0.15);
  box-shadow: var(--shadow);
}

.track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.slide {
  min-width: 100%;
  aspect-ratio: 16/9;
  position: relative;
}

.slide img,
.slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide .caption {
  position: absolute;
  left: 20px;
  bottom: 18px;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.25));
  border: 1px solid rgba(182, 106, 45, 0.25);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  font-weight: 600;
}

.slide .caption b {
  color: var(--gold);
  background: var(--gold-grad);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ctrl {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(182, 106, 45, 0.35);
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.ctrl:hover {
  background: rgba(0, 0, 0, 0.7);
}

.ctrl.prev {
  left: 12px;
}

.ctrl.next {
  right: 12px;
}

.dots {
  position: absolute;
  display: flex;
  gap: 8px;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
}

.dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: rgba(182, 106, 45, 0.35);
  transition: all 0.2s ease;
}

.dots button.active {
  width: 22px;
  background: var(--gold);
}

/* Section title */
.section {
  max-width: 1200px;
  margin: 28px auto 0;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.section h2 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 28px;
  margin: 0;
  letter-spacing: 0.3px;
  background: var(--gold-grad);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Grid */
.grid {
  max-width: 1200px;
  margin: 18px auto 60px;
  padding: 0 20px;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(180deg, #1c3329, #10241d);
  border: 1px solid rgba(182, 106, 45, 0.3);
  box-shadow: 0 10px 24px rgba(182, 106, 45, 0.2);
  transition: all 0.3s ease;
  text-decoration: none;
  color: #e7dfd6;
}

.card:hover {
  transform: translateY(-6px);
  background: linear-gradient(180deg, #244238, #153027);
  border-color: rgba(182, 106, 45, 0.45);
  box-shadow: 0 14px 36px rgba(182, 106, 45, 0.35);
}

.card .name {
  color: #e7dfd6;
}

.card .short {
  color: #cfcfcf;
}

.card .price {
  color: var(--gold);
}

.thumb {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}

.badge {
  position: absolute;
  left: 10px;
  top: 10px;
  font-size: 12px;
  padding: 6px 10px;
  background: linear-gradient(
    135deg,
    rgba(255, 150, 60, 0.9),
    rgba(200, 70, 0, 0.9)
  );
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 999px;
  backdrop-filter: blur(3px);
  box-shadow: var(--ring);
}

.info {
  padding: 14px 14px 16px;
}

.name {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}

.short {
  font-size: 14px;
  min-height: 60px;
  max-height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.price {
  margin-top: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
  color: var(--gold);
}

footer {
  border-top: 1px solid rgba(182, 106, 45, 0.14);
  color: #c2b7a8;
  text-align: center;
  padding: 28px 20px;
  font-size: 14px;
  background: linear-gradient(180deg, transparent, rgba(182, 106, 45, 0.05));
}

@media (max-width: 640px) {
  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: 18px;
  }

  .menu {
    gap: 6px;
  }

  .menu a {
    font-size: 12px;
    padding: 6px 7px;
  }

  .ctrl {
    width: 30px;
    height: 30px;
  }

  .grid {
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    padding: 0 12px;
    margin: 14px auto 40px;
  }

  .info {
    padding: 10px 10px 12px;
  }

  .name {
    font-size: 14px;
  }

  .short {
    font-size: 12px;
    min-height: 36px;
  }

  .price {
    font-size: 13px;
  }

  footer {
    font-size: 12px;
    padding: 20px 10px;
  }
}

/* ===== BOTÃO DE CATEGORIAS ===== */
.shelf-btn {
  font-size: 22px;
  color: var(--gold);
  background: none;
  border: 1px solid rgba(182, 106, 45, 0.35);
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--ring);
}

.shelf-btn:hover {
  background: rgba(182, 106, 45, 0.15);
  transform: translateY(-2px);
}

/* ===== MENU LATERAL ===== */
.shelf-panel {
  position: fixed;
  top: 0;
  left: -300px;
  width: 270px;
  height: 100%;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border-left: 1px solid rgba(182, 106, 45, 0.25);
  box-shadow: -10px 0 30px rgba(182, 106, 45, 0.15);
  backdrop-filter: blur(14px) saturate(1.2);
  transition: left 0.45s cubic-bezier(0.65, 0.05, 0.36, 1);
  z-index: 999;
  padding: 28px 22px;
  overflow-y: auto;
  scrollbar-width: none;
  color: #e7dfd6;
}

.shelf-panel::-webkit-scrollbar {
  display: none;
}

.shelf-panel.open {
  left: 0;
}

.shelf-panel h3 {
  color: var(--gold);
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.4px;
  text-shadow: 0 0 8px rgba(182, 106, 45, 0.2);
  position: relative;
  animation: fadeDown 0.4s ease forwards;
}

.shelf-panel h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
}

/* LISTAS */
.shelf-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.shelf-panel li {
  margin-bottom: 14px;
}

.shelf-panel a {
  display: block;
  text-decoration: none;
  color: #e7dfd6;
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.07);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(182, 106, 45, 0.1);
}

.shelf-panel a:hover {
  color: var(--gold);
  background: linear-gradient(135deg, #244238, #153027);
  transform: translateX(6px);
  box-shadow: 0 8px 18px rgba(182, 106, 45, 0.25);
}

/* MENU PRINCIPAL */
.shelf-panel ul.main-links {
  border-bottom: 1px solid rgba(182, 106, 45, 0.25);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.shelf-panel ul.main-links a {
  background: rgba(255, 255, 255, 0.1);
}

.shelf-panel ul.main-links a:hover {
  background: linear-gradient(135deg, #1c3329, #10241d);
  transform: translateX(4px);
  color: var(--gold);
}

/* CATEGORIAS */
.shelf-panel ul.categories a {
  font-size: 15px;
}

/* BOTÃO FECHAR */
.close-shelf {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 28px;
  position: absolute;
  top: 14px;
  right: 18px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-shadow: 0 0 8px rgba(182, 106, 45, 0.25);
}

.close-shelf:hover {
  color: var(--gold-2);
  transform: rotate(90deg);
}

/* ÍCONES */
.cat-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 8px;
  filter: brightness(1);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.shelf-panel a:hover .cat-icon {
  transform: scale(1.1);
  filter: brightness(1.3);
}

/* ANIMAÇÕES */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.shelf-panel li {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.4s ease forwards;
}

.shelf-panel.open li {
  animation-delay: calc(var(--i, 1) * 0.05s);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVO */
@media (max-width: 600px) {
  .shelf-panel {
    width: 82%;
    left: -100%;
    padding: 24px 18px;
  }

  .shelf-panel h3 {
    font-size: 20px;
  }

  .shelf-panel a {
    font-size: 14px;
    padding: 8px 10px;
  }

  .close-shelf {
    font-size: 24px;
  }
}

/* PLAYER EMBUTIDO (YouTube iframe) */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* LIMPA INTERAÇÃO NO PLAYER */
.no-pointer {
  pointer-events: none;
}

.video-wrapper iframe {
  border: none;
  width: 100%;
  height: 100%;
  display: block;
}

/* Loader Shimmer */
.thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 10px;
  background: #163026;
}

.thumb-loader {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, #1e3c30 30%, #244238 50%, #1e3c30 70%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
  border-radius: inherit;
}

@keyframes shimmer {
  to {
    background-position-x: -200%;
  }
}

.thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.thumb.loaded {
  opacity: 1;
}

/* BOTÃO DO CARRINHO NO HEADER */
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-left: auto;
  padding: 8px 10px;
}

.cart-icon {
  font-size: 24px;
  color: var(--gold);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--gold);
  color: #0e2a1f;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
}

@media (max-width: 640px) {
  .cart-btn {
    padding: 4px 6px;
  }
  .cart-icon {
    font-size: 22px;
  }
}
