/* ==========================================================================
   BASE — DESDRAS (reset + navbar full-width + main + responsive)
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; }

:root {
  --bg-dark: #1A0F2E;
  --bg: #1A0F2E;
  --accent: #7A2ED8;
  --accent-dark: #5A1AB8;
  --gold: #C9A864;
  --bg-hero: linear-gradient(135deg, #1A0F2E, #2A1A4A);
  --accent2: #FF2D7A;
  --neon: #00F5FF;
  --text: #fff;
  --grey: #13131a;
  --light-grey: #1e1e2e;
  --desdras: #aaa;
  --raccoon: #2a1a15;
  --raven: #1a1412;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Raleway', sans-serif;
  overflow-x: hidden;
  padding-top: 80px;
}

/* NAVBAR — full-width (Netlify-style) */
.navbar {
  width: 100vw !important;
  max-width: 100%;
  margin: 0;
  position: fixed;
  top: 0;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3rem;
  z-index: 1000;
  background: rgba(10, 10, 15, 1);
  border-bottom: 1px solid rgba(123, 47, 255, 0.15);
}
.nav-left { display: flex; align-items: center; gap: 3rem; }
.nav-logo, .logo-nav { font-family: 'Cinzel', serif; font-size: 1.4rem; color: #fff; letter-spacing: 5px; }
.logo-nav { text-decoration: none; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: #aaa; text-decoration: none; font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; transition: color 0.3s; }
.nav-links a:hover { color: #fff; }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-icon { background: none; border: none; color: #aaa; font-size: 1.1rem; cursor: pointer; transition: color 0.3s; }
.nav-icon:hover { color: #fff; }
.cart-count { background: var(--accent); border-radius: 50%; padding: 0 5px; font-size: 0.7rem; }

.social-proof { font-size: 0.9rem; color: var(--desdras); margin-top: 0.5rem; line-height: 1.5; }
.stats-bar { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 2rem; padding: 1rem 1.5rem; background: var(--raccoon); color: white; font-weight: bold; font-size: 0.9rem; }

/* SIMPLE NAVBAR (desdras-navbar) */
.desdras-navbar {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 1rem 2rem;
  background: rgba(10, 10, 15, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.desdras-navbar a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: color 0.3s;
}
.desdras-navbar a:hover { color: #fff; }
.desdras-navbar #cart-link { display: inline-flex; align-items: center; gap: 0.4rem; }
.desdras-navbar { position: relative; }
.search-wrapper { position: relative; }
.search-results { position: absolute; background: #000; color: #fff; border: 1px solid var(--raccoon); max-width: 300px; width: 100%; z-index: 200; top: 100%; left: 0; margin-top: 0.25rem; display: none; }
.search-item { display: block; padding: 0.5rem 1rem; color: #fff; text-decoration: none; }
.search-item:hover { background: rgba(255,255,255,0.1); }
#search-input { padding: 0.4rem 0.75rem; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); color: #fff; border-radius: 4px; min-width: 180px; }
#search-input::placeholder { color: #888; }

/* HERO SLIDER */
.hero-slider { position: relative; height: 100vh; overflow: hidden; }
.slides { display: flex; height: 100%; transition: transform 0.7s cubic-bezier(0.77,0,0.18,1); }
.slide { min-width: 100%; height: 100%; display: flex; align-items: center; padding: 0 10%; }
.slide-1 { background: var(--bg-hero, linear-gradient(135deg, #0a0a0f 0%, #1a0533 50%, #0d0a1f 100%)); }
.slide-2 { background: linear-gradient(135deg, #0a0f1a 0%, #0d1533 50%, #0a0a1f 100%); }
.slide-3 { background: linear-gradient(135deg, #0f0a1a 0%, #1a0520 50%, #0a0a0f 100%); }
.slide-content { max-width: 600px; }
.slide-tag { color: var(--neon); letter-spacing: 5px; font-size: 0.75rem; text-transform: uppercase; margin-bottom: 1rem; }
.slide-content h1 { font-family: 'Cinzel', serif; font-size: 4.5rem; line-height: 1.05; margin-bottom: 1.5rem; background: linear-gradient(135deg, #fff 40%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.slide-desc { color: #888; font-size: 1rem; margin-bottom: 2rem; line-height: 1.8; max-width: 450px; }
.cta { padding: 0.9rem 2.5rem; background: var(--accent); border: none; color: #fff; font-family: 'Raleway', sans-serif; font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transition: all 0.3s; border-radius: 4px; }
.cta:hover { background: var(--accent2); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(123,47,255,0.4); }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #fff; font-size: 1.2rem; padding: 0.8rem 1rem; cursor: pointer; transition: all 0.3s; z-index: 10; border-radius: 4px; }
.slider-btn:hover { background: var(--accent); border-color: var(--accent); }
.prev { left: 2rem; }
.next { right: 2rem; }
.slider-dots { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.2); cursor: pointer; transition: all 0.4s; }
.dot.active { background: #fff; width: 24px; border-radius: 4px; }

/* PRODUTOS */
.section-products { padding: 6rem 3rem; max-width: 1400px; margin: 0 auto; }
.section-title { font-family: 'Cinzel', serif; font-size: 1.6rem; margin-bottom: 0.5rem; color: #fff; letter-spacing: 2px; }
.section-subtitle { color: #555; font-size: 0.9rem; margin-bottom: 3rem; }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.product-card { position: relative; background: var(--grey); border-radius: 12px; overflow: hidden; transition: all 0.3s; border: 1px solid rgba(255,255,255,0.04); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.4); border-color: rgba(123,47,255,0.3); }
.product-img { height: 260px; background: linear-gradient(135deg, #1a0533, #0d1533); flex-shrink: 0; position: relative; }
/* Product icons — top-right hover (favorite + cart) */
.product-icons {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}
.product-card:hover .product-icons {
  opacity: 1;
}
.product-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  cursor: pointer;
  padding: 0;
  font: inherit;
}
.product-icon:hover {
  background: var(--accent);
  transform: scale(1.1);
  border-color: var(--accent);
}
@media (hover: none) {
  .product-icons { opacity: 1; }
}
.product-card img { width: 100%; height: 100%; object-fit: cover; display: block; background: linear-gradient(135deg, #1a0533, #0d1533); }
.product-info { padding: 1rem 1.2rem 1.5rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.product-cat { color: var(--accent); font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 0; }
.product-card h3 { color: #fff; font-size: 0.95rem; margin: 0 0 0.25rem; font-weight: 600; }
.product-card .product-info > p:not(.product-cat):not(.product-price), .product-desc { color: #888; font-size: 0.8rem; line-height: 1.4; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price, .product-info .price { color: #fff; font-weight: 700; font-size: 1rem; margin-top: 0.25rem; }
.product-info .actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; align-items: center; }
.product-info .size-select { padding: 0.4rem 0.6rem; border-radius: 6px; border: 1px solid rgba(255,255,255,0.12); background: #0a0a0f; color: #ccc; font-size: 0.8rem; min-width: 3rem; cursor: pointer; }
.product-info .add-cart, .product-info .add-cart-btn { padding: 0.5rem 0.9rem; background: var(--accent); border: none; color: #fff; font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; border-radius: 6px; transition: all 0.2s; flex: 1; min-width: 0; }
.product-info .add-cart:hover, .product-info .add-cart-btn:hover { background: var(--accent2); }
.product-info .add-cart[href] { text-decoration: none; text-align: center; display: inline-block; }
.nav-right .cart-count.badge, .cart-count.badge { background: var(--accent); border-radius: 50%; padding: 0.2rem 0.5rem; font-size: 0.8rem; }
.product-card-collection .product-info .price { display: none; }
.product-img .badge { position: absolute; top: 0.5rem; left: 0.5rem; font-size: 0.65rem; letter-spacing: 1px; text-transform: uppercase; background: var(--accent); color: #fff; padding: 0.2rem 0.5rem; border-radius: 4px; z-index: 2; }
.product-img .badge.new { background: var(--neon); color: #0a0a0f; }

/* DESTAQUE */
.feature-product { display: grid; grid-template-columns: 1fr 1fr; min-height: 580px; }
.feature-img { background: linear-gradient(135deg, #1a0533 0%, #0d1040 100%); }
.feature-content { display: flex; flex-direction: column; justify-content: center; padding: 5rem; background: var(--light-grey); }
.feature-tag { color: var(--neon); letter-spacing: 4px; font-size: 0.75rem; text-transform: uppercase; margin-bottom: 1rem; }
.feature-content h2 { font-family: 'Cinzel', serif; font-size: 2.8rem; margin-bottom: 1.5rem; line-height: 1.1; }
.feature-content p { color: #888; line-height: 1.9; margin-bottom: 2.5rem; font-size: 0.95rem; }

/* STORIES */
.stories-section { padding: 6rem 0 6rem 3rem; overflow: hidden; background: var(--grey); }
.stories-scroll { display: flex; gap: 1.5rem; overflow-x: auto; padding-bottom: 1.5rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; cursor: grab; }
.stories-scroll:active { cursor: grabbing; }
.stories-scroll::-webkit-scrollbar { height: 3px; }
.stories-scroll::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); }
.stories-scroll::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }
.story-card { min-width: calc(33.333% - 3rem); max-width: calc(33.333% - 3rem); background: var(--light-grey); border-radius: 12px; overflow: hidden; scroll-snap-align: start; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.04); transition: all 0.3s ease; cursor: pointer; }
.story-card:hover { transform: translateY(-6px); border-color: rgba(123,47,255,0.3); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.story-img { height: 220px; background: linear-gradient(135deg, #1a0533, #0d1533); }
.story-info { padding: 1.5rem; }
.story-tag { color: var(--accent); font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 0.5rem; }
.story-info h3 { font-family: 'Cinzel', serif; font-size: 1rem; margin-bottom: 0.6rem; color: #fff; }
.story-info p { color: #555; font-size: 0.82rem; line-height: 1.6; margin-bottom: 1rem; }
.story-info a { color: var(--accent); font-size: 0.8rem; text-decoration: none; letter-spacing: 1px; transition: color 0.3s; }
.story-info a:hover { color: #fff; }

/* FOOTER */
.footer { background: #06060a; border-top: 1px solid rgba(255,255,255,0.06); padding: 5rem 3rem 2rem; }
.why-raven { max-width: 1200px; margin: 0 auto 4rem; background: var(--grey); border-radius: 12px; padding: 3rem; display: grid; grid-template-columns: 1fr 3fr; gap: 3rem; align-items: center; }
.why-raven h3 { font-family: 'Cinzel', serif; font-size: 1.4rem; line-height: 1.4; }
.why-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.why-item { display: flex; flex-direction: column; gap: 0.4rem; }
.why-item span { font-size: 1.4rem; }
.why-item strong { font-size: 0.85rem; color: #fff; }
.why-item p { font-size: 0.78rem; color: #555; line-height: 1.5; }
.footer-top { max-width: 1200px; margin: 0 auto 4rem; display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 3rem; }
.footer-brand .nav-logo { font-size: 1.6rem; display: block; margin-bottom: 1rem; }
.footer-brand p { color: #444; font-size: 0.82rem; line-height: 1.8; max-width: 220px; }
.footer-col h4 { color: #fff; font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1.5rem; }
.footer-col a { display: block; color: #444; text-decoration: none; font-size: 0.82rem; margin-bottom: 0.8rem; transition: color 0.3s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { max-width: 1200px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.social-links { display: flex; gap: 1.5rem; }
.social-links a { color: #444; text-decoration: none; font-size: 0.82rem; transition: color 0.3s; }
.footer-bottom p { color: #333; font-size: 0.78rem; }
.footer-bottom p a { color: #444; text-decoration: none; }

/* IDENTIDADE */
body.raven-page { --accent: #6B21A8; --gold: #D4AF37; --bg-dark: #1E0F3A; --bg: #1E0F3A; --bg-hero: linear-gradient(135deg, #1E0F3A, #2A1A50); }
body.raccoon-page { --accent: #B45309; --gold: #B89778; --bg-dark: #3A1F0F; --bg: #3A1F0F; --bg-hero: linear-gradient(135deg, #3A1F0F, #5A2E1A); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-product { grid-template-columns: 1fr; }
  .story-card { min-width: calc(50% - 1rem); max-width: calc(50% - 1rem); }
}
@media (max-width: 768px) {
  .mega-menu { min-width: auto; width: 100%; grid-template-columns: 1fr; padding: 1rem 1.25rem; }
  .section-products { padding: 4rem 1.5rem; }
  .products-grid { grid-template-columns: 1fr; gap: 1rem; }
  .slide-content h1 { font-size: 2.5rem; }
  .slider-btn { padding: 0.5rem 0.75rem; font-size: 1rem; }
  .prev { left: 1rem; }
  .next { right: 1rem; }
  .why-raven { grid-template-columns: 1fr; padding: 2rem 1.5rem; }
  .why-items { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .story-card { min-width: calc(100% - 1.5rem); max-width: calc(100% - 1.5rem); }
  .stories-section { padding: 4rem 0 4rem 1.5rem; }
  .feature-content { padding: 3rem 2rem; }
  .feature-content h2 { font-size: 2rem; }
  .product-info .actions { flex-direction: column; }
  .product-info .size-select { width: 100%; }
  .product-info .add-cart { width: 100%; padding: 0.6rem 1rem; min-height: 44px; }
}
@media (max-width: 480px) { body { padding-top: 70px; } }

/* DISCOUNT POPUP */
.discount-popup { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); align-items: center; justify-content: center; z-index: 300; }
.popup-box { background: #111; padding: 2rem; border: 1px solid var(--desdras); max-width: 400px; width: 90%; text-align: center; }
.popup-box input { width: 100%; padding: 0.5rem; margin: 0.5rem 0; }
.popup-box button { margin: 0.25rem; padding: 0.5rem 1rem; border: none; cursor: pointer; }
#discount-cta { background: var(--desdras); color: #fff; }
#discount-close { background: transparent; color: #fff; border: 1px solid #555; }
