/* =============================================================================
   GRIFE FACAS SG — Camada de refinamento premium (dark + dourado)
   Carregada depois do CSS do tema, para sobrescrever com seguranca.
   Paleta: fundo #0b0b0b | superficie #121212 | texto #f4f4f4 | dourado #d4af37
============================================================================= */

:root {
  --sg-gold: #d4af37;
  --sg-gold-soft: rgba(212, 175, 55, 0.45);
  --sg-gold-faint: rgba(212, 175, 55, 0.18);
  --sg-bg: #0b0b0b;
  --sg-surface: #121212;
  --sg-text: #f4f4f4;
  --sg-muted: rgba(244, 244, 244, 0.62);
  --sg-line: rgba(244, 244, 244, 0.08);
  --sg-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --section-distance: 56px;
}

@media (min-width: 768px) {
  :root {
    --section-distance: 84px;
  }
}

/* // Tipografia */

body {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.005em;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h1-huge, .h2-md, .h1-md,
.text-heading {
  font-family: "Cormorant Garamond", "Baskervville", Georgia, serif !important;
  font-weight: 500;
  letter-spacing: 0.005em;
}

h1, .h1, .h1-huge { line-height: 1.06; }
h2, .h2, .h2-md { line-height: 1.14; }
h3, .h3, .h1-md { line-height: 1.2; }

.section-title h2.text-heading {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
}

.home-subtitle,
.text-subtitle {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-weight: 400;
}

/* // Dourado apenas em destaques */

.section-title h2,
.section-title h3,
.section-title .text-heading,
.swiper-title,
.gridbanner-title,
.home-video h2,
.home-institutional h3,
.home-subtitle,
.banner-kicker,
.text-color,
.primary-color {
  color: var(--sg-gold);
}

/* // Regua dourada sob titulos de secao */

.section-title .text-heading {
  position: relative;
  padding-bottom: 16px;
}

.section-title .text-heading::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sg-gold), transparent);
}

/* // Links */

a {
  transition: color 0.25s var(--sg-ease);
}

a:hover {
  color: var(--sg-gold);
}

/* // Navegacao */

.nav-desktop .nav-list-link,
.sg-head-nav .nav-list-link {
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 500;
}

.nav-desktop .nav-list-link::after,
.sg-head-nav .nav-list-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 1px;
  background: var(--sg-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--sg-ease);
}

.nav-desktop .nav-list-link:hover::after,
.nav-desktop .nav-list-link.selected::after,
.sg-head-nav .nav-list-link:hover::after,
.sg-head-nav .nav-list-link.selected::after {
  transform: scaleX(1);
}

/* // Header dividido: menu + logo centralizado */

.sg-head-row {
  width: 100%;
  padding: 18px 0;
}

.sg-head-row__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.sg-head-nav--left {
  justify-self: start;
}

.sg-head-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 26px;
}

.sg-nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sg-head-nav .nav-item,
.sg-head-nav .nav-item-desktop {
  display: flex;
  align-items: center;
}

.sg-head-nav--right .nav-dropdown-content {
  left: auto;
  right: 0;
}

.sg-head-logo {
  justify-self: center;
  text-align: center;
}

.sg-head-logo .logo-img {
  max-height: 58px;
  width: auto;
}

.sg-head-logo .logo-text {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sg-head-utilities {
  display: flex;
  align-items: center;
  gap: 18px;
}

.sg-head-search {
  display: inline-flex;
  align-items: center;
  color: var(--sg-text);
}

.sg-head-search:hover {
  color: var(--sg-gold);
}

.sg-head-row .utilities-container,
.sg-head-row .utilities-item {
  display: flex;
  align-items: center;
}

/* // Dropdown do menu (o tema forca background #fff) */

.sg-head-nav .desktop-dropdown {
  background: var(--sg-surface);
  border: 1px solid var(--sg-line);
  border-radius: 2px;
  box-shadow: 0 26px 54px -24px rgba(0, 0, 0, 0.95);
}

.sg-head-nav .desktop-dropdown .nav-list-link,
.sg-head-nav .desktop-list-subitems a {
  color: var(--sg-text);
}

.sg-head-nav .desktop-list-subitems .nav-list-link {
  padding: 9px 20px;
  font-size: 0.76rem;
}

.sg-head-nav .desktop-list-subitems .nav-list-link::after {
  display: none;
}

.sg-head-nav .desktop-list-subitems .nav-list-link:hover,
.sg-head-nav .desktop-list-subitems a:hover {
  color: var(--sg-gold);
}

/* // Botoes */

.btn {
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 500;
  transition: background-color 0.35s var(--sg-ease), color 0.35s var(--sg-ease),
    border-color 0.35s var(--sg-ease), transform 0.35s var(--sg-ease),
    opacity 0.35s var(--sg-ease);
}

.btn:hover,
.btn:focus {
  opacity: 1;
}

.btn-primary,
.btn-secondary,
.btn-add-to-cart {
  background-color: var(--sg-gold);
  color: var(--sg-bg);
  fill: var(--sg-bg);
  border: 1px solid var(--sg-gold);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-secondary:hover,
.btn-secondary:focus,
a.btn-add-to-cart:hover,
.btn-add-to-cart:hover {
  background-color: transparent;
  color: var(--sg-gold);
  fill: var(--sg-gold);
  border-color: var(--sg-gold);
  transform: translateY(-1px);
}

.btn-default {
  background-color: transparent;
  color: var(--sg-gold);
  fill: var(--sg-gold);
  border: 1px solid var(--sg-gold-soft);
}

.btn-default:hover,
.btn-default:focus {
  background-color: var(--sg-gold);
  color: var(--sg-bg);
  fill: var(--sg-bg);
  border-color: var(--sg-gold);
}

/* // Cards de produto */

.item.product-container {
  border: 1px solid var(--sg-line);
  transition: border-color 0.35s var(--sg-ease), transform 0.35s var(--sg-ease),
    box-shadow 0.35s var(--sg-ease);
}

.item.product-container:hover {
  border-color: var(--sg-gold-faint);
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -28px rgba(0, 0, 0, 0.95);
}

.item-image img {
  transition: transform 0.7s var(--sg-ease);
}

.item:hover .item-image img {
  transform: scale(1.04);
}

.item .item-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.item-link .item-name {
  position: relative;
  display: inline-block;
}

.item-link .item-name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--sg-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--sg-ease);
}

.item:hover .item-link .item-name::after {
  transform: scaleX(1);
}

/* // Detalhes globais */

html {
  scroll-behavior: smooth;
}

::selection {
  background: var(--sg-gold);
  color: var(--sg-bg);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 1px solid var(--sg-gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .item.product-container:hover,
  .btn-primary:hover,
  .btn-default:hover {
    transform: none;
  }
}

/* // Hero de video (snipplet home-video-hero.tpl) */

.sg-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 82vh;
  background: var(--sg-bg);
  overflow: hidden;
}

.sg-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sg-hero__media video,
.sg-hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sg-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 11, 11, 0.5) 0%,
    rgba(11, 11, 11, 0.35) 40%,
    rgba(11, 11, 11, 0.8) 82%,
    rgba(11, 11, 11, 1) 100%
  );
  pointer-events: none;
}

.sg-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 56px 24px 64px;
  text-align: center;
}

.sg-hero__kicker {
  display: inline-block;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.72rem;
  color: var(--sg-gold);
}

.sg-hero__title {
  margin: 0 0 18px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 1.03;
  font-size: clamp(2.6rem, 9vw, 4rem);
  color: var(--sg-text);
}

.sg-hero__title em {
  font-style: italic;
  color: var(--sg-gold);
}

.sg-hero__text {
  max-width: 34rem;
  margin: 0 auto 30px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--sg-muted);
}

.sg-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

@media (min-width: 992px) {
  .sg-hero {
    display: grid;
    grid-template-columns: minmax(0, 44%) minmax(0, 56%);
    align-items: stretch;
    min-height: 78vh;
  }

  .sg-hero__media {
    position: relative;
    inset: auto;
    order: 2;
    min-height: 78vh;
  }

  .sg-hero__media::after {
    background:
      linear-gradient(
        180deg,
        rgba(11, 11, 11, 0) 60%,
        rgba(11, 11, 11, 0.85) 92%,
        rgba(11, 11, 11, 1) 100%
      ),
      linear-gradient(
        90deg,
        rgba(11, 11, 11, 0.95) 0%,
        rgba(11, 11, 11, 0.35) 45%,
        rgba(11, 11, 11, 0.05) 100%
      );
  }

  .sg-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    order: 1;
    padding: 96px 72px;
    text-align: left;
  }

  .sg-hero__title {
    font-size: clamp(3rem, 4.4vw, 4.6rem);
  }

  .sg-hero__text {
    margin-left: 0;
    margin-right: 0;
  }

  .sg-hero__cta {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sg-hero__media video {
    display: none;
  }
}

/* // Faixa de video (snipplet home-video-band.tpl) */

.sg-band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58vh;
  text-align: center;
  background: var(--sg-bg);
  overflow: hidden;
}

.sg-band__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sg-band__media video,
.sg-band__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sg-band__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 11, 11, 1) 0%,
    rgba(11, 11, 11, 0.62) 16%,
    rgba(11, 11, 11, 0.5) 45%,
    rgba(11, 11, 11, 0.9) 100%
  );
  pointer-events: none;
}

.sg-band__content {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  padding: 72px 24px;
}

.sg-band__kicker {
  display: inline-block;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.72rem;
  color: var(--sg-gold);
}

.sg-band__title {
  margin: 0 0 18px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 1.05;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  color: var(--sg-text);
}

.sg-band__title em {
  font-style: italic;
  color: var(--sg-gold);
}

.sg-band__text {
  margin: 0 auto 28px;
  max-width: 38rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--sg-muted);
}

.sg-band__cta {
  display: flex;
  justify-content: center;
}

@media (min-width: 992px) {
  .sg-band {
    min-height: 68vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sg-band__media video {
    display: none;
  }
}

/* // Descricoes com estilos inline (fundo claro/escuro quebra no tema dark) */

.product-description [style*="background"],
.product-description [style*="background-color"],
.user-content [style*="background"],
.user-content [style*="background-color"] {
  background: transparent !important;
}

.product-description [style*="color:"],
.user-content [style*="color:"] {
  color: inherit !important;
}

/* // Reels (snipplet home-reels.tpl) */

.sg-reels {
  padding: var(--section-distance) 0;
  background: var(--sg-bg);
}

.sg-reels__head {
  max-width: 44rem;
  margin: 0 auto 34px;
  padding: 0 24px;
  text-align: center;
}

.sg-reels__kicker {
  display: inline-block;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.72rem;
  color: var(--sg-gold);
}

.sg-reels__title {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 1.08;
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: var(--sg-text);
}

.sg-reels__title em {
  font-style: italic;
  color: var(--sg-gold);
}

.sg-reels__subtitle {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--sg-muted);
}

.sg-reels__track {
  display: flex;
  gap: 16px;
  padding: 4px 24px 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.sg-reels__track::-webkit-scrollbar {
  display: none;
}

.sg-reel {
  position: relative;
  flex: 0 0 auto;
  width: min(92vw, 46vh);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid var(--sg-line);
  border-radius: 4px;
  background: var(--sg-surface);
  scroll-snap-align: center;
  transition: border-color 0.35s var(--sg-ease), transform 0.35s var(--sg-ease);
}

.sg-reel:hover {
  border-color: var(--sg-gold-faint);
  transform: translateY(-3px);
}

.sg-reel__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.sg-reel__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  padding: 18px 16px;
  background: linear-gradient(
    180deg,
    rgba(11, 11, 11, 0.88) 0%,
    rgba(11, 11, 11, 0.5) 38%,
    rgba(11, 11, 11, 0) 68%
  );
  pointer-events: none;
}

.sg-reel__tag {
  align-self: flex-start;
  padding: 4px 10px;
  border: 1px solid var(--sg-gold-soft);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.6rem;
  color: var(--sg-gold);
}

.sg-reel__caption {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.22rem;
  font-weight: 500;
  line-height: 1.22;
  color: var(--sg-text);
}

.sg-reel__cta {
  align-self: flex-start;
  margin-top: 2px;
  pointer-events: auto;
}

/* // Botao de som dos reels */

.sg-reel__sound {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--sg-gold-soft);
  border-radius: 50%;
  background: rgba(11, 11, 11, 0.55);
  color: var(--sg-text);
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: background-color 0.3s var(--sg-ease), color 0.3s var(--sg-ease),
    border-color 0.3s var(--sg-ease), transform 0.3s var(--sg-ease);
}

.sg-reel__sound:hover,
.sg-reel__sound:focus-visible {
  background: var(--sg-gold);
  color: var(--sg-bg);
  border-color: var(--sg-gold);
}

.sg-reel__sound.is-on {
  background: var(--sg-gold);
  color: var(--sg-bg);
  border-color: var(--sg-gold);
}

.sg-reel__sound-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.sg-reel__sound .sg-reel__sound-icon--on {
  display: none;
}

.sg-reel__sound.is-on .sg-reel__sound-icon--on {
  display: block;
}

.sg-reel__sound.is-on .sg-reel__sound-icon--off {
  display: none;
}

@media (min-width: 768px) {
  .sg-reel {
    width: min(40vw, 46vh);
  }
}

@media (min-width: 992px) {
  .sg-reels__track {
    justify-content: center;
    gap: 22px;
    padding-left: 32px;
    padding-right: 32px;
  }

  .sg-reel {
    width: 300px;
  }
}
