/* style_index.css */

/* =========================
   ROOT ÚNICO (TEMA GLOBAL)
========================= */
:root {
  /* =========================================================
     FUNDO GERAL
     ========================================================= */
  --bg: #ffffff; /* fundo branco */
  --panel: #fff3f8; /* painéis rosados */
  --panel-2: #ffe6ee; /* variação média do rosa */

  /* =========================================================
     TEXTO
     ========================================================= */
  --text: #3a2a32; /* texto principal (rosa escuro) */
  --text-2: #6b4a5a; /* secundário */
  --text-muted: #9b7a89; /* descrições */
  --text-black: #000000;

  /* =========================================================
     ACCENT (ROSA MUNDO MULHER)
     ========================================================= */
  --gold: #e47aa5; /* rosa principal */
  --gold-2: #cc5e8e; /* rosa escuro hover */
  --gold-soft: #f7a9c3; /* rosa suave */
  --gold-light: #ffe1ec; /* rosa claro destaque */

  /* compatibilidade */
  --lava: var(--gold);

  /* =========================================================
     GRADIENTES PRINCIPAIS
     ========================================================= */
  --accent: linear-gradient(135deg, #e47aa5, #f7a9c3);

  --gold-grad: linear-gradient(135deg, #ffcfe3, #f7a9c3 45%, #e47aa5 90%);

  /* =========================================================
     GRADIENTES DE UI
     ========================================================= */
  --menu-grad: linear-gradient(135deg, #ffcfe3, #f7a9c3 45%, #e47aa5 90%);

  --menu-grad-hover: linear-gradient(135deg, #f7a9c3, #e47aa5 45%, #cc5e8e 90%);

  --topbar-grad: linear-gradient(
    180deg,
    rgba(255, 243, 248, 0.96),
    rgba(255, 230, 238, 0.9)
  );

  --caption-grad: linear-gradient(
    180deg,
    rgba(228, 122, 165, 0.6),
    rgba(228, 122, 165, 0.25)
  );

  --carousel-bg: linear-gradient(180deg, var(--panel), var(--panel-2));

  --card-bg: linear-gradient(180deg, #fff7fa, #ffe6ee);
  --card-bg-hover: linear-gradient(180deg, #ffeef5, #ffd9e8);

  --footer-bg: linear-gradient(180deg, transparent, rgba(228, 122, 165, 0.08));

  /* =========================================================
     BADGE (CARRINHO / DESTAQUES)
     ========================================================= */
  --badge-bg: linear-gradient(135deg, #e47aa5, #cc5e8e);

  /* =========================================================
     EFEITOS VISUAIS
     ========================================================= */
  --ring: 0 0 0 1px rgba(228, 122, 165, 0.15),
    0 10px 28px rgba(228, 122, 165, 0.12);

  --shadow: 0 10px 24px rgba(228, 122, 165, 0.25);

  /* =========================================================
     ALPHAS (ROSA)
     ========================================================= */
  --gold-a14: rgba(228, 122, 165, 0.14);
  --gold-a15: rgba(228, 122, 165, 0.15);
  --gold-a20: rgba(228, 122, 165, 0.2);
  --gold-a25: rgba(228, 122, 165, 0.25);
  --gold-a30: rgba(228, 122, 165, 0.3);
  --gold-a35: rgba(228, 122, 165, 0.35);
  --gold-a40: rgba(228, 122, 165, 0.4);
  --gold-a45: rgba(228, 122, 165, 0.45);

  --white-a07: rgba(255, 255, 255, 0.07);
  --white-a10: rgba(255, 255, 255, 0.1);
  --white-a25: rgba(255, 255, 255, 0.25);
  --white-a35: rgba(255, 255, 255, 0.35);
  --white-a40: rgba(255, 255, 255, 0.4);

  --black-a25: rgba(0, 0, 0, 0.25);
  --black-a50: rgba(0, 0, 0, 0.5);
  --black-a70: rgba(0, 0, 0, 0.7);

  /* =========================================================
     CONTROLES
     ========================================================= */
  --ctrl-bg: rgba(228, 122, 165, 0.35);
  --ctrl-bg-hover: rgba(204, 94, 142, 0.7);
  --ctrl-border: rgb(228, 122, 165);

  --dot-bg: rgba(228, 122, 165, 0.35);

  /* =========================================================
     LOADER / SHIMMER
     ========================================================= */
  --thumb-wrap-bg: #ffe6ee;
  --shimmer-1: #f7c0d6;
  --shimmer-2: #fff3f8;

  /* =========================================================
     PLAYER
     ========================================================= */
  --video-bg: #000000;

  /* =========================================================
     BORDAS
     ========================================================= */
  --radius: 18px;
  --radius-sm: 14px;

  /* =========================================================
     INPUTS
     ========================================================= */
  --input-bg: #fff0f6;
}

* {
  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: var(--text);
  line-height: 1.6;
}

/* ===== TOPBAR REFORMULADO ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.2) blur(10px);
  background: var(--topbar-grad);
  border-bottom: 1px solid var(--gold-a25);
}

.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-2);
  background: none;
  border: 1px solid var(--gold-a35);
  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;
  text-decoration: none;
  position: absolute;
  top: -80%;
  left: 50%;
  transform: translateX(-50%);
}

.brand-logo {
  height: 230px;
  width: auto;
  display: block;
}

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

/* ===== RESPONSIVO ===== */
@media (max-width: 640px) {
  .shelf-btn {
    font-size: 20px;
    padding: 4px 8px;
    left: 14px;
  }
}

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

.menu a {
  color: var(--text-black);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--white-a35);

  background: var(--menu-grad);
  box-shadow: inset 0 0 0 1px var(--white-a25),
    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: var(--menu-grad-hover);
  box-shadow: 0 6px 16px rgba(182, 106, 45, 0.4),
    inset 0 0 0 1px var(--white-a40);
  transform: translateY(-2px);
  color: var(--text-black);
}

@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: var(--carousel-bg);
  border: 1px solid var(--gold-a15);
  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: var(--caption-grad);
  border: 1px solid var(--gold-a25);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  font-weight: 600;
}

.slide .caption b {
  color: var(--gold-2);
  background: var(--bg);
  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: var(--ctrl-bg);
  border: 1px solid var(--ctrl-border);
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.ctrl:hover {
  background: var(--ctrl-bg-hover);
}

.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: var(--dot-bg);
  transition: all 0.2s ease;
}

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

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

.section h2 {
  order: 1;
  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: var(--card-bg);
  border: 1px solid var(--gold-a30);
  box-shadow: 0 10px 24px rgba(182, 106, 45, 0.2);
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text);
}

.card:hover {
  transform: translateY(-6px);
  background: var(--card-bg-hover);
  border-color: var(--gold-a45);
  box-shadow: 0 14px 36px rgba(182, 106, 45, 0.35);
}

.card .name {
  color: var(--text);
}

.card .short {
  color: var(--text-muted);
}

.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: var(--badge-bg);
  border: 1px solid var(--black-a25);
  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 var(--gold-a14);
  color: var(--text-2);
  text-align: center;
  padding: 28px 20px;
  font-size: 14px;
  background: var(--footer-bg);
}

@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 ===== */
/* (mantido como estava no seu arquivo; sim, está duplicado com o de cima) */
.shelf-btn {
  font-size: 22px;
  color: var(--gold-2);
  background: none;
  border: 1px solid var(--gold-a35);
  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: var(--carousel-bg);
  border-left: 1px solid var(--gold-a25);
  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: var(--text);
}

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

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

.shelf-panel h3 {
  color: var(--gold-2);
  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-2), 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: var(--text);
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--white-a07);
  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-2);
  background: var(--card-bg-hover);
  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 var(--gold-a25);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.shelf-panel ul.main-links a {
  background: var(--white-a10);
}

.shelf-panel ul.main-links a:hover {
  background: var(--card-bg);
  transform: translateX(4px);
  color: var(--gold-2);
}

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

/* BOTÃO FECHAR */
.close-shelf {
  background: none;
  border: none;
  color: var(--gold-2);
  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: var(--video-bg);
}

.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: var(--thumb-wrap-bg);
}

.thumb-loader {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    var(--shimmer-1) 30%,
    var(--shimmer-2) 50%,
    var(--shimmer-1) 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;
  border: none; /* mantive sua intenção (cart é link/botão leve) */
  background: none;
}

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

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

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

/* BARRA BUSCA */

.search-wrap {
  width: 100%;
  flex: 1 1 100%;
  margin: 0;
  order: 2;
}

.search-wrap input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--gold-a25);
  background: var(--input-bg);
  color: var(--text);
  font-size: 14px;
  outline: none;
}

.search-wrap input::placeholder {
  color: var(--text-muted);
}
