:root {
  --bg: #0a0a0f;
  --surface: #111118;
  --surface2: #18181f;
  --border: #22222e;
  --accent: #c8a96e;
  --accent-title: #9ACD32;
  --text: #e8e8f0;
  --muted: #7a7a92;
  --tag-bg: #1e1e2a;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  min-height: 100vh;
}

/* NAVBAR */
nav {
  background: rgba(10,10,15,0.97);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo span { color: var(--text); font-weight: 400; }

.search-bar {
  flex: 1;
  max-width: 600px;
  position: relative;
}
.search-bar input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 42px 12px 16px;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.search-bar input::placeholder { color: var(--muted); }
.search-bar input:focus { border-color: var(--accent); }
.search-bar button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
}

/* DROPDOWN CATEGORIAS (apenas seta) */
.dropdown {
  position: relative;
  display: inline-block;
}
.dropbtn {
  background: var(--surface2);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 12px;
  min-width: 40px;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dropbtn:hover { border-color: var(--accent); color: var(--accent); }
.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--surface);
  min-width: 180px;
  box-shadow: 0px 8px 24px rgba(0,0,0,0.8);
  z-index: 200;
  border: 1px solid var(--border);
  border-radius: 8px;
  top: 100%;
  margin-top: 8px;
  max-height: 400px;
  overflow-y: auto;
  padding: 6px 0;
}
.dropdown-content a {
  color: var(--text);
  padding: 10px 16px;
  text-decoration: none;
  display: block;
  font-size: 13px;
  transition: background 0.2s, color 0.2s;
}
.dropdown-content a:hover { background-color: var(--surface2); color: var(--accent); }
.dropdown-content.open { display: block; }
.dropdown-content::-webkit-scrollbar { width: 6px; }
.dropdown-content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.nav-links {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface2); }
.nav-links a.active { color: var(--accent); }

/* HERO */
.hero {
  background: linear-gradient(135deg, #0d0d18 0%, #12101c 50%, #0a0f14 100%);
  border-bottom: 1px solid var(--border);
  padding: 40px 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(124,92,191,0.15) 0%, transparent 70%);
}
.hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(22px, 4vw, 38px);
  font-weight: 700;
  color: var(--text);
  position: relative;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.hero h1 em { color: var(--accent); font-style: normal; }

/* CARROSSEL HORIZONTAL (sem setas) */
.filter-carousel {
  position: relative;
  max-width: 100%;
  margin: 16px auto 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.filter-carousel::-webkit-scrollbar { display: none; }
.carousel-track {
  display: inline-flex;
  gap: 10px;
  padding: 4px 2px;
}
.carousel-item {
  background: var(--tag-bg);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 6px 16px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}
.carousel-item:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(200,169,110,0.1);
}

/* MAIN */
.main-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 20px;
  display: block;
}
.content { flex: 1; min-width: 0; }
.grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.grid-title {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  color: var(--text);
  font-weight: 600;
}
.grid-meta { color: var(--muted); font-size: 13px; }
.sort-select {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
}

.wall-grid { columns: 6; column-gap: 12px; }
@media (max-width: 1400px) { .wall-grid { columns: 5; } }
@media (max-width: 1200px) { .wall-grid { columns: 4; } }
@media (max-width: 860px)  { .wall-grid { columns: 3; } }
@media (max-width: 500px)  { .wall-grid { columns: 2; } }

.wall-card {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: block;
  background: var(--surface2);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.wall-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.6); }
.wall-card:active { opacity: 0.92; }
.wall-card-thumb {
  overflow: hidden;
  position: relative;
  background: #000;
  line-height: 0;
}
.wall-card-thumb img {
  display: block;
  width: 100%;
  height: auto;
}
.wall-card-title {
  padding: 8px 10px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--surface2);
  border-top: 1px solid var(--border);
}

.badge {
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  letter-spacing: 0.04em;
}
.badge.res { color: var(--accent); }
.badge.new { color: #7ef0a0; }

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
  padding-bottom: 40px;
}
.page-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  padding: 7px 13px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); color: var(--bg); border-color: var(--accent); font-weight: 700; }
.page-btn.arrow { font-size: 16px; padding: 7px 11px; }

/* PRODUCT PAGE */
#productView {
  display: none;
  background: var(--bg);
  min-height: calc(100vh - 70px);
}

.prod-topbar {
  background: rgba(10,10,15,0.98);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 70px;
  z-index: 90;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(10px);
}
.prod-back {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}
.prod-back:hover { border-color: var(--accent); color: var(--accent); }
.prod-breadcrumb {
  color: var(--muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}
.prod-breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.2s; white-space: nowrap; }
.prod-breadcrumb a:hover { color: var(--accent); }
.prod-breadcrumb span { color: var(--border); }

.prod-wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 28px 20px 60px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
}
@media (max-width: 900px) { .prod-wrap { grid-template-columns: 1fr; } }

.prod-title-bar {
  max-width: 1300px;
  margin: 0 auto;
  padding: 24px 20px 0;
}
.prod-preview-wrap {
  display: flex;
  justify-content: center;
}
.prod-preview {
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  display: inline-flex;
  max-width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
}
.prod-preview-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 82vh;
}
@media (max-width: 900px) {
  .prod-preview-img { max-height: 72vh; }
  #mainDlBtn { margin-top: 22px !important; }
}
.prod-preview-badge { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; }
.prod-zoom-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 7px 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.prod-zoom-btn:hover { background: rgba(255,255,255,0.12); }

.prod-panel { display: flex; flex-direction: column; gap: 16px; }
.prod-title {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--accent-title);
  text-align: center;
}
.prod-desc {
  font-size: 15.5px;
  color: var(--text);
  opacity: 0.85;
  line-height: 1.8;
  margin-top: 10px;
  text-align: center;
}

/* Título/descrição duplicados: um bloco fica acima da imagem (mobile),
   outro fica no painel direito acima do botão de download (desktop) */
.prod-desktop-head { display: none; }
@media (min-width: 901px) {
  .prod-title-bar { display: none; }
  .prod-desktop-head { display: block; }
}

.prod-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 10px;
}
.res-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  padding: 11px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.18s;
  text-decoration: none;
  width: 100%;
  text-align: left;
}
.res-btn.primary {
  background: var(--accent);
  color: #0a0a0f;
  border-color: var(--accent);
  font-weight: 700;
  justify-content: center;
  gap: 10px;
}
.res-btn.primary:hover { background: #dfc080; }

.prod-info-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.info-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.info-row .ik { color: var(--muted); }
.info-row .iv { color: var(--text); font-weight: 500; }

.prod-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.prod-tag {
  background: var(--tag-bg);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s;
}
.prod-tag:hover { color: var(--accent); border-color: var(--accent); }

.social-share-row { display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn {
  flex: 1; min-width: 52px; height: 44px; border: none; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  transition: opacity 0.2s, transform 0.15s; text-decoration: none;
}
.social-btn:hover { opacity: 0.85; transform: translateY(-2px); }
.social-btn.pinterest { background: #e60023; }
.social-btn.facebook  { background: #1877f2; }
.social-btn.twitter   { background: #000; }
.social-btn.reddit    { background: #ff4500; }
.social-btn.copy      { background: var(--surface2); border: 1px solid var(--border); font-size:14px; color: var(--text); }

.prod-related { margin-top: 32px; }
.prod-related-title {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.related-card {
  border-radius: 8px; overflow: hidden; cursor: pointer; border: 1px solid var(--border);
  position: relative; transition: transform 0.2s, box-shadow 0.2s;
  background: var(--surface2);
  line-height: 0;
}
.related-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.related-thumb { width: 100%; height: auto; display: block; background: var(--surface); }
.related-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 55%);
  opacity: 0; transition: opacity 0.2s; display: flex; align-items: flex-end; padding: 10px;
}
.related-card:hover .related-overlay { opacity: 1; }
.related-name { color: #fff; font-size: 11px; font-weight: 600; line-height: 1.3; }

/* SHOP BANNER */
.shop-banner { background: linear-gradient(135deg, #1a1200 0%, #120e00 50%, #0f0c00 100%); }
.shop-banner-inner {
  max-width: 1440px; margin: 0 auto; padding: 20px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.shop-banner-left { display: flex; align-items: center; gap: 14px; }
.shop-banner-icon { font-size: 32px; }
.shop-banner-title { font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 700; color: var(--accent); }
.shop-banner-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.shop-banner-links { display: flex; gap: 10px; flex-wrap: wrap; }
.shop-btn {
  background: var(--surface2); border: 1px solid #3a2800; color: var(--text); text-decoration: none;
  font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 600; padding: 10px 20px; border-radius: 8px;
  transition: all 0.2s; white-space: nowrap;
}
.shop-btn:hover { border-color: var(--accent); color: var(--accent); }
.shop-btn-accent { background: var(--accent); color: #0a0a0f; border-color: var(--accent); }
.shop-btn-accent:hover { background: #dfc080; border-color: #dfc080; color: #0a0a0f; }

/* FOOTER */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 20px;
  text-align: center;
}
.footer-inner { max-width: 1440px; margin: 0 auto; }
.footer-logo { font-family: 'Cinzel', serif; color: var(--accent); font-size: 20px; margin-bottom: 12px; }
.footer-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--muted); font-size: 12px; }

/* MOBILE */
.mobile-nav-icons { display: none; gap: 8px; margin-left: auto; align-items: center; }
.mob-icon-btn {
  background: #1e1e28;
  border: 1px solid #2a2a38;
  color: var(--text);
  height: 40px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
  padding: 0 14px;
  gap: 6px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
}
.mob-icon-btn.cat-btn { min-width: 48px; }
.mob-icon-btn.search-btn { width: 40px; padding: 0; border-radius: 20px; }
.mob-icon-btn:hover, .mob-icon-btn.active { border-color: var(--accent); background: #252530; }
.mob-chevron {
  display: inline-block;
  font-size: 11px;
  color: var(--muted);
  transition: transform 0.2s;
  margin-left: 2px;
}
.mob-icon-btn.active .mob-chevron { transform: rotate(180deg); color: var(--accent); }

.mob-search-expand, .mob-dropdown {
  display: none;
  position: fixed;
  top: 56px; left: 0; right: 0;
  background: rgba(10,10,15,0.99);
  border-bottom: 1px solid var(--border);
  padding: 12px;
  z-index: 200;
  backdrop-filter: blur(14px);
}
.mob-search-expand.open, .mob-dropdown.open { display: block; }
.mob-search-expand input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  outline: none;
}
.mob-dropdown-grid { display: grid; grid-template-columns: 1fr 1fr; }
.mob-dropdown a {
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: block;
  font-size: 14px;
}
.mob-dropdown a:hover { background: rgba(200,169,110,0.08); color: var(--accent); }

@media (max-width: 700px) {
  .search-bar, .dropdown, .nav-links { display: none !important; }
  .mobile-nav-icons { display: flex !important; }
  .nav-inner { padding: 0 12px; height: 56px; gap: 8px; }
  .logo { font-size: 14px; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; }
  .logo span { display: inline; }
  .wall-grid { columns: 2 !important; column-gap: 8px; }
  .main-wrap { padding: 14px 12px; }
  .grid-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero { padding: 24px 16px; }
  .hero h1 { font-size: 22px; }
  .shop-banner-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .shop-banner-links { width: 100%; }
  .shop-btn { flex: 1; text-align: center; padding: 10px 8px; font-size: 13px; }
  .footer-links { gap: 12px; }
  .prod-wrap { flex-direction: column; padding: 16px; gap: 20px; }
  .prod-panel { padding: 0; }
  .prod-topbar { padding: 12px 16px; top: 56px; }
  .related-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .mob-icon-btn.search-btn { width: 36px; padding: 0 8px; }
  .mob-icon-btn.cat-btn { padding: 0 10px; font-size: 12px; }
}

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--accent);
  color: #0a0a0f;
  width: 44px;
  height: 44px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 200;
  font-size: 22px;
  font-weight: bold;
  border: none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: #dfc080; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.wall-card { animation: fadeIn 0.4s ease both; }

#cookieBanner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15,15,22,0.98);
  border-top: 1px solid #22222e;
  padding: 16px 24px;
  z-index: 500;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  backdrop-filter: blur(10px);
}
@media (max-width: 600px) { #cookieBanner { flex-direction: column; text-align: center; } }
