:root {
  --bg-dark: #1e1d1b;
  --bg-darker: #141312;
  --bg-card: #272624;
  --bg-card-hover: #2f2d2a;
  --text-primary: #f5f5f5;
  --text-secondary: #a39f99;
  --text-muted: #74716c;
  --gold-primary: #d4af37;
  --gold-light: #e6c86e;
  --gold-dark: #997c1e;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-active: rgba(212, 175, 55, 0.4);
  --transition-default: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html {
  box-sizing: border-box;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-default);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

/* ====================================================
   HEADER & NAVEGAÇÃO FIXA
   ==================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  z-index: 100;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.site-header * {
  pointer-events: auto;
}

.header-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(26, 25, 24, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: var(--transition-default);
}

.header-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  transform: scale(1.05);
}

.site-brand {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.site-brand a {
  color: inherit;
}

/* ====================================================
   SEÇÕES DA HERO / HOME (CATEGORIAS EM TELA CHEIA)
   ==================================================== */
.categories-showcase {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.category-fullscreen-slide {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 80px 32px 60px;
  overflow: hidden;
}

.category-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
  transition: transform 1.2s ease-out;
  z-index: 1;
}

.category-fullscreen-slide:hover .category-bg-layer {
  transform: scale(1.06);
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(20, 19, 18, 0.6) 60%, rgba(20, 19, 18, 0.95) 100%);
  z-index: 2;
}

.category-slide-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 750px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
}

.category-slide-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--gold-primary);
}

.category-slide-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 8px;
  text-align: center;
}

.category-slide-subtitle {
  font-size: 1.05rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 26px;
  text-align: center;
}

.category-slide-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 14px 36px;
  border-radius: 30px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #ffffff;
  transition: var(--transition-default);
}

.category-slide-action:hover {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: #1a1918;
  transform: translateY(-2px);
}

/* Indicador lateral da página inicial */
.slide-indicators {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 10;
}

.slide-indicator-dot {
  width: 4px;
  height: 24px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  transition: var(--transition-default);
  cursor: pointer;
}

.slide-indicator-dot.active {
  background: var(--gold-primary);
  height: 48px;
}

/* ====================================================
   PÁGINA DE CATEGORIA / GRID DE PRATOS
   ==================================================== */
.category-page-container {
  min-height: 100vh;
  padding: 90px 24px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.category-header {
  text-align: center;
  margin-bottom: 30px;
}

.category-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
}

/* Filtro horizontal de subcategorias (pills) */
.subcategories-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.subcat-pill {
  padding: 8px 18px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition-default);
}

.subcat-pill:hover,
.subcat-pill.active {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

/* Grid de Pratos */
.dishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.dish-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: var(--transition-default);
  text-decoration: none;
}

.dish-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

.dish-card-img-wrap {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
  border: 3px solid rgba(212, 175, 55, 0.2);
  transition: var(--transition-default);
}

.dish-card:hover .dish-card-img-wrap {
  border-color: var(--gold-primary);
  transform: scale(1.05);
}

.dish-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dish-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 8px;
}

.dish-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dish-card-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-top: auto;
}

/* ====================================================
   PÁGINA DE DETALHE DO PRATO (SINGLE-PRATO)
   ==================================================== */
.dish-single-container {
  min-height: 100vh;
  padding: 90px 24px 80px;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dish-hero-img-wrap {
  width: clamp(240px, 45vw, 360px);
  height: clamp(240px, 45vw, 360px);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  border: 4px solid var(--border-active);
  margin-bottom: 36px;
}

.dish-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dish-single-details {
  width: 100%;
  text-align: left;
}

.dish-single-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 12px;
}

.dish-base-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.dish-base-text {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.dish-price-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.dish-price-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.dish-price-val {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
}

.dish-portion-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.portion-tag {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.portion-tag strong {
  color: var(--gold-primary);
}

/* Seção de Ingredientes / Extras */
.extras-section {
  margin-top: 20px;
  margin-bottom: 40px;
}

.extras-title {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin-bottom: 8px;
}

.extras-subtitle {
  font-size: 0.88rem;
  color: var(--gold-primary);
  margin-bottom: 20px;
}

.extras-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.extra-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-default);
}

.extra-pill:hover {
  border-color: var(--gold-primary);
  color: var(--text-primary);
}

.extra-price {
  color: var(--gold-light);
  font-weight: 600;
}

/* Informações Legais & Rodapé Portugal */
.pt-restaurant-notices {
  width: 100%;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.pt-restaurant-notices p {
  margin-bottom: 6px;
}

/* ====================================================
   MENU DRAWER (OFFCANVAS)
   ==================================================== */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-default);
  overflow: hidden;
}

.drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(440px, 90vw);
  height: 100vh;
  background: #252422;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  overflow-y: auto;
}

.drawer-backdrop.is-open .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.drawer-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold-light);
  text-transform: uppercase;
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-default);
}

.drawer-close-btn:hover {
  color: #ffffff;
  transform: rotate(90deg);
}

.drawer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #2e2d2a;
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-primary);
  border: 1px solid transparent;
  transition: var(--transition-default);
}

.drawer-nav-item:hover {
  border-color: var(--border-active);
  background: #363532;
  color: var(--gold-light);
  transform: translateX(4px);
}

.drawer-nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.drawer-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.drawer-footer-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.lang-selector {
  display: flex;
  gap: 12px;
  align-items: center;
}

.lang-flag-btn {
  padding: 4px;
  border-radius: 4px;
  border: 1px solid transparent;
  opacity: 0.7;
  transition: var(--transition-default);
}

.lang-flag-btn:hover,
.lang-flag-btn.active {
  opacity: 1;
  border-color: var(--gold-primary);
}

/* Seção Sobre no Drawer */
.drawer-about-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 24px;
}

.drawer-about-badge {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-light);
  margin-bottom: 8px;
  font-weight: 600;
}

.drawer-about-text {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
}

.drawer-about-highlight {
  font-size: 0.82rem;
  color: var(--gold-primary);
  font-style: italic;
  line-height: 1.4;
}

/* Links Legais / Institucionais no Drawer */
.drawer-legal-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.legal-link-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-default);
}

.legal-link-item:hover {
  color: var(--gold-light);
  border-color: var(--border-active);
  background: rgba(212, 175, 55, 0.1);
  transform: translateX(4px);
}

/* Seção de Contactos e Redes Sociais */
.drawer-contact-section {
  margin-bottom: 24px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-color);
}

.drawer-subheading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.contact-item-phone,
.contact-item-email {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-primary);
  transition: var(--transition-default);
}

.contact-item-phone:hover,
.contact-item-email:hover {
  color: var(--gold-light);
}

.drawer-socials {
  display: flex;
  gap: 10px;
}

.social-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
  background: #2b2a28;
  color: var(--text-primary);
  transition: var(--transition-default);
}

.social-facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: #ffffff;
}

.social-instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: transparent;
  color: #ffffff;
}

/* Páginas Legais (Política de Privacidade e Resolução de Litígios) */
.legal-page-container {
  min-height: 100vh;
  padding: 100px 24px 60px;
  max-width: 900px;
  margin: 0 auto;
}

.legal-page-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px 36px;
}

.legal-page-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-family: var(--font-serif);
  color: var(--gold-light);
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.legal-section {
  margin-bottom: 26px;
}

.legal-section h2 {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 12px;
  font-weight: 600;
}

.legal-section p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-empty-content {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 24px 0;
}

.legal-back-action {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.legal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-light);
  font-weight: 500;
  transition: var(--transition-default);
}

.legal-back-btn:hover {
  transform: translateX(-4px);
  color: #ffffff;
}

/* ====================================================
   ESTADOS VAZIOS / EM BREVE (EMPTY STATES)
   ==================================================== */
.empty-state-slide {
  background: radial-gradient(circle at center, #2e2c28 0%, #171615 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.empty-state-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.empty-state-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 24px;
}

.empty-state-badge {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid var(--border-active);
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.empty-state-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.empty-state-actions {
  display: flex;
  justify-content: center;
}

/* Empty State dentro de Categoria ou Prato */
.category-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: 16px;
  max-width: 650px;
  margin: 20px auto;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.empty-title {
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 12px;
}

.empty-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.empty-cta {
  display: flex;
  justify-content: center;
}

.dish-price-prefix {
  font-size: 0.75rem;
  font-weight: normal;
  color: var(--text-muted);
  display: block;
}

.drawer-empty-notice {
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border-color);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* ====================================================
   RESPONSIVIDADE E AJUSTES DE TELA
   ==================================================== */
@media (max-width: 768px) {
  .category-fullscreen-slide {
    padding: 80px 24px 44px;
    align-items: center;
    justify-content: flex-end;
  }
  
  .category-slide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
  }

  .category-slide-icon {
    margin-bottom: 10px;
  }

  .category-slide-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    text-align: center;
  }

  .category-slide-subtitle {
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-align: center;
    margin-bottom: 20px;
  }

  .category-slide-action {
    width: auto;
    max-width: 100%;
    justify-content: center;
    padding: 13px 30px;
    font-size: 0.95rem;
  }

  .slide-indicators {
    display: flex;
    position: fixed;
    left: 14px;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99;
    pointer-events: auto;
  }

  .slide-indicator-dot {
    width: 4px;
    height: 22px;
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  }

  .slide-indicator-dot.active {
    background: var(--gold-primary);
    height: 40px;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.7);
  }
  
  .category-page-container {
    padding: 80px 16px 40px;
  }
  
  .dishes-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
  }

  .legal-page-card {
    padding: 24px 18px;
  }
}

