@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Nunito:wght@300;400;600;700;800&display=swap');

/* =============================================
   CSS VARIABLES — PALETA JAJÁ SNOOKER
   ============================================= */
:root {
  --green:       #3CB371;
  --green-dark:  #228B22;
  --green-glow:  rgba(60, 179, 113, 0.25);
  --black:       #0a0a0a;
  --surface-1:   #141414;
  --surface-2:   #1e1e1e;
  --surface-3:   #2a2a2a;
  --border:      rgba(255,255,255,0.07);
  --text:        #f0f0f0;
  --text-muted:  #888;
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --shadow:      0 8px 32px rgba(0,0,0,0.5);
  --transition:  0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Nunito', sans-serif;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--green-dark); border-radius: 4px; }

/* =============================================
   HEADER / HERO
   ============================================= */
.header {
  position: relative;
  width: 100%;
  height: 240px;
  background: url('../imgs/home_web.jpg') no-repeat center center / cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
}

/* =============================================
   PROFILE PIC
   ============================================= */
.profile-pic {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--green);
  background: url('../imgs/new_logo.png') no-repeat center center / cover;
  box-shadow: 0 0 0 6px rgba(60,179,113,0.15), var(--shadow);
  z-index: 10;
}

/* =============================================
   CONTENT (SOCIAL + DIVIDER)
   ============================================= */
.content {
  text-align: center;
  margin-top: 80px;
  padding: 0 16px;
}

.content h1 {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 2px;
  color: var(--green);
  margin: 8px 0 4px;
}

.content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px auto;
  max-width: 360px;
}

/* =============================================
   SOCIAL ICONS
   ============================================= */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 17px;
  text-decoration: none;
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--green-glow);
}

/* =============================================
   MENU CONTAINER (INDEX)
   ============================================= */
.menu-container {
  max-width: 480px;
  margin: 12px auto 60px;
  padding: 24px 20px;
}

.menu {
  text-align: center;
}

/* Preço da hora */
.price-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.price-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 600;
}

.price-badge span {
  color: var(--green);
  font-size: 18px;
  font-weight: 800;
}

/* Nav links do índice */
.menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
}

.menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  padding: 16px 24px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  width: 100%;
}

.menu a .icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 15px;
  flex-shrink: 0;
  transition: var(--transition);
}

.menu a:hover {
  background: var(--surface-3);
  border-color: var(--green);
  transform: translateX(4px);
  box-shadow: inset 3px 0 0 var(--green);
}

.menu a:hover .icon-wrap {
  background: var(--green);
  color: #fff;
}

/* =============================================
   CATEGORY NAV (CARDÁPIO)
   ============================================= */
.category-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.category-nav-inner {
  display: flex;
  overflow-x: auto;
  gap: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 12px;
}

.category-nav-inner::-webkit-scrollbar { display: none; }

.category-nav-inner a {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 14px 18px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  flex-shrink: 0;
}

.category-nav-inner a:hover,
.category-nav-inner a.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

/* Sub-nav (Cervejas / Doses / etc.) */
.subcategory-nav {
  background: var(--surface-1);
  border-bottom: 1px solid var(--border);
  display: none;
}

.subcategory-nav.visible { display: block; }

.subcategory-nav-inner {
  display: flex;
  overflow-x: auto;
  gap: 0;
  scrollbar-width: none;
  padding: 0 12px;
}

.subcategory-nav-inner::-webkit-scrollbar { display: none; }

.subcategory-nav-inner a {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  flex-shrink: 0;
}

.subcategory-nav-inner a:hover { color: var(--text); }

/* =============================================
   SECTION TITLE
   ============================================= */
.section-title {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 16px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* =============================================
   PRODUCT CARDS
   ============================================= */
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 16px;
}

.container h2 {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 2px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 10px;
  transition: var(--transition);
  gap: 12px;
}

.product:hover {
  border-color: var(--green);
  background: var(--surface-3);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.product-info { flex: 1; min-width: 0; }

.product-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-desc {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.product-price {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--green);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Produto com imagem */
.product-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

/* =============================================
   ACCESSORIES TABLE
   ============================================= */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-2);
  font-size: 14px;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--surface-3);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

td:last-child {
  color: var(--green);
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
}

tr:last-child td { border-bottom: none; }

tr:hover td { background: var(--surface-3); }

/* =============================================
   GALLERY
   ============================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.video-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
  position: relative;
}

.video-card video {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.video-card.featured {
  grid-column: span 2;
}

.video-card.featured video { height: 220px; }

.video-label {
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =============================================
   BACK TO TOP BUTTON
   ============================================= */
#btnTopo {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border: none;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 4px 16px var(--green-glow);
  font-size: 16px;
  line-height: 1;
  transition: var(--transition);
}

#btnTopo:hover {
  background: var(--green-dark);
  transform: translateY(-3px);
}

/* =============================================
   PAGE HEADER (sub-pages)
   ============================================= */
.page-header {
  padding: 20px 16px 0;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-header a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
  flex-shrink: 0;
}

.page-header a:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 2px;
  color: var(--text);
}

/* =============================================
   EMPTY STATE
   ============================================= */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

.empty-state i {
  font-size: 36px;
  color: var(--surface-3);
  display: block;
  margin-bottom: 12px;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  padding: 24px 20px;
  text-align: center;
  margin-top: 40px;
}

footer .footer-content p {
  color: var(--text-muted);
  font-size: 12px;
  margin: 4px 0;
}

footer a {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
}

footer a:hover { text-decoration: underline; }

/* =============================================
   UTILITIES
   ============================================= */
.tabela { display: none; }
.tabela.active { display: block; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 480px) {
  .header { height: 200px; }
  .profile-pic { width: 100px; height: 100px; bottom: -50px; }
  .content { margin-top: 68px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .video-card.featured { grid-column: span 1; }
  .category-nav-inner a { padding: 12px 14px; font-size: 12px; }
  .product-price { font-size: 20px; }
  table { font-size: 13px; }
  th, td { padding: 10px 12px; }
}
