/*
Theme Name: SENV
Theme URI: https://senv.com.br
Author: Softiv
Author URI: https://softiv.com.br
Description: Tema custom para a loja SENV — sexy shop premium brasileira. Identidade visual: Noir, Ouro, Nude. Tipografia: Italiana, Playfair Display, Inter.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License: Proprietary
License URI: https://senv.com.br
Text Domain: senv
Tags: woocommerce, ecommerce, dark, luxury, custom
*/

/* ==========================================================================
   DESIGN TOKENS — Paleta, Tipografia, Espaçamento
   ========================================================================== */

:root {
  /* Cores */
  --senv-black:      #0A0807;
  --senv-charcoal:   #1C1715;
  --senv-charcoal-2: #2A2420;
  --senv-gold:       #B8924A;
  --senv-gold-light: #D4AA6A;
  --senv-nude:       #E2C9B0;
  --senv-blush:      #D4A5A5;
  --senv-offwhite:   #F7F2ED;
  --senv-offwhite-2: #EDE8E1;
  --senv-white:      #FFFFFF;
  --senv-success:    #4A8C5C;
  --senv-error:      #C0392B;

  /* Superfícies */
  --senv-surface-0: #0A0807;
  --senv-surface-1: #141210;
  --senv-surface-2: #1C1715;
  --senv-surface-3: #2A2420;

  /* Texto */
  --senv-ink-primary:   #0A0807;
  --senv-ink-secondary: #4A3F38;
  --senv-ink-tertiary:  #8A7B72;
  --senv-ink-muted:     #BEB0A8;

  /* Bordas */
  --senv-border:      rgba(255,255,255,0.06);
  --senv-border-2:    rgba(255,255,255,0.10);
  --senv-border-gold: rgba(184,146,74,0.25);

  /* Tipografia */
  --senv-font-display: 'Italiana', 'Times New Roman', serif;
  --senv-font-heading: 'Playfair Display', Georgia, serif;
  --senv-font-body:    'Inter', system-ui, sans-serif;

  /* Escala tipográfica */
  --senv-text-xs:   0.625rem;   /* 10px */
  --senv-text-sm:   0.75rem;    /* 12px */
  --senv-text-base: 1rem;       /* 16px */
  --senv-text-lg:   1.125rem;   /* 18px */
  --senv-text-xl:   1.25rem;    /* 20px */
  --senv-text-2xl:  1.75rem;    /* 28px */
  --senv-text-3xl:  2.5rem;     /* 40px */
  --senv-text-4xl:  4rem;       /* 64px */

  /* Espaçamento (base 8px) */
  --senv-space-1: 0.25rem;   /* 4px  */
  --senv-space-2: 0.5rem;    /* 8px  */
  --senv-space-3: 0.75rem;   /* 12px */
  --senv-space-4: 1rem;      /* 16px */
  --senv-space-5: 1.5rem;    /* 24px */
  --senv-space-6: 2rem;      /* 32px */
  --senv-space-7: 3rem;      /* 48px */
  --senv-space-8: 4rem;      /* 64px */
  --senv-space-9: 6rem;      /* 96px */

  /* Espaçamento de seção */
  --senv-section-gap: 80px;

  /* Border radius */
  --senv-radius-sm: 2px;
  --senv-radius-md: 4px;
  --senv-radius-lg: 8px;

  /* Layout */
  --senv-max-width: 1280px;
  --senv-gutter:    24px;

  /* Transições */
  --senv-transition: 200ms ease;
  --senv-transition-slow: 400ms ease;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--senv-black);
  color: var(--senv-offwhite);
  font-family: var(--senv-font-body);
  font-size: var(--senv-text-base);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ==========================================================================
   TIPOGRAFIA
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  line-height: 1.2;
}

h1 {
  font-family: var(--senv-font-display);
  font-size: var(--senv-text-4xl);
  color: var(--senv-offwhite);
}

h2 {
  font-family: var(--senv-font-heading);
  font-size: var(--senv-text-3xl);
  color: var(--senv-nude);
}

h3 {
  font-family: var(--senv-font-heading);
  font-size: var(--senv-text-2xl);
  color: rgba(255,255,255,0.55);
}

h4 {
  font-family: var(--senv-font-heading);
  font-size: var(--senv-text-xl);
}

p {
  font-family: var(--senv-font-body);
  font-size: var(--senv-text-base);
  font-weight: 300;
  color: var(--senv-offwhite);
}

.senv-label {
  font-family: var(--senv-font-body);
  font-size: var(--senv-text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--senv-gold);
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.senv-container {
  width: 100%;
  max-width: var(--senv-max-width);
  margin-inline: auto;
  padding-inline: var(--senv-gutter);
}

.senv-section {
  padding-block: var(--senv-space-9);
}

/* ==========================================================================
   HEADER
   ========================================================================== */

#senv-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 72px;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--senv-transition-slow),
              border-color var(--senv-transition-slow);
  display: flex;
  align-items: center;
}

#senv-header.is-scrolled {
  background-color: rgba(10, 8, 7, 0.95);
  border-color: var(--senv-border);
  backdrop-filter: blur(12px);
}

#senv-header .senv-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.senv-logo {
  font-family: var(--senv-font-display);
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  color: var(--senv-offwhite);
  text-transform: lowercase;
  text-decoration: none;
}

.senv-nav {
  display: flex;
  align-items: center;
  gap: var(--senv-space-7);
}

.senv-nav__list {
  display: flex;
  align-items: center;
  gap: var(--senv-space-7);
  list-style: none;
  margin: 0;
  padding: 0;
}

.senv-nav__list li {
  list-style: none;
}

.senv-nav a,
.senv-nav__list a {
  font-size: var(--senv-text-xs);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--senv-offwhite);
  opacity: 0.75;
  transition: opacity var(--senv-transition), color var(--senv-transition);
  text-decoration: none;
}

.senv-nav a:hover,
.senv-nav__list a:hover {
  opacity: 1;
  color: var(--senv-gold);
}

/* ==========================================================================
   MENU MOBILE — DRAWER LATERAL MINIMALISTA
   ========================================================================== */

#senv-mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: rgba(10,8,7,0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 200;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-left: 1px solid rgba(247,242,237,0.06);
  box-shadow: -12px 0 48px rgba(10,8,7,0.6);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}

#senv-mobile-nav.is-open {
  transform: translateX(0);
}

/* Overlay escuro para fechar */
#senv-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,8,7,0.45);
  backdrop-filter: blur(2px);
  z-index: 199;
}

#senv-mobile-overlay.is-open {
  display: block;
}

/* Topo: logo + botão fechar */
.senv-mobile-nav__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px 28px 24px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(247,242,237,0.07);
}

.senv-mobile-nav__logo {
  font-family: var(--senv-font-display, 'Italiana', serif);
  font-size: 20px;
  letter-spacing: 5px;
  color: var(--senv-offwhite, #F7F2ED);
  text-decoration: none;
}

.senv-mobile-nav__close {
  background: none;
  border: none;
  color: var(--senv-offwhite, #F7F2ED);
  font-size: 12px;
  cursor: pointer;
  opacity: 0.3;
  transition: opacity 0.2s;
  line-height: 1;
  padding: 6px;
}
.senv-mobile-nav__close:hover { opacity: 0.9; }

/* Oculta label de seção — não é necessário no drawer */
.senv-mobile-nav__section-label { display: none; }

/* Lista de itens */
.senv-mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.senv-mobile-nav__item {
  border-bottom: none;
}

.senv-mobile-nav__link {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 18px 28px;
  transition: background 0.15s;
}

.senv-mobile-nav__link:hover {
  background: rgba(184,146,74,0.07);
}

.senv-mobile-nav__link:hover .senv-mobile-nav__label {
  color: var(--senv-gold, #B8924A);
  opacity: 1;
}

/* Oculta o número — não é necessário neste conceito */
.senv-mobile-nav__num { display: none; }

.senv-mobile-nav__label {
  font-family: var(--senv-font-body, 'Inter', sans-serif);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--senv-offwhite, #F7F2ED);
  opacity: 0.65;
  transition: color 0.2s, opacity 0.2s;
}

/* Remove seta — visual minimalista */
.senv-mobile-nav__link::after {
  display: none;
}

/* Rodapé */
.senv-mobile-nav__footer {
  padding: 24px 28px 36px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(247,242,237,0.08);
  margin-top: auto;
}

.senv-mobile-nav__footer-links {
  display: flex;
  flex-direction: column;
  margin-bottom: 32px;
}

.senv-mobile-nav__action {
  font-family: var(--senv-font-body, 'Inter', sans-serif);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--senv-ink-tertiary, #8A7B72);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s;
}

.senv-mobile-nav__action:last-child { border-bottom: none; }
.senv-mobile-nav__action:hover { color: var(--senv-gold, #B8924A); }

.senv-mobile-nav__tagline {
  font-family: var(--senv-font-heading, 'Playfair Display', serif);
  font-size: 10px;
  font-style: italic;
  color: var(--senv-ink-tertiary, #8A7B72);
  opacity: 0.35;
  margin: 0;
  padding: 0;
}

.senv-header-actions__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.senv-header-actions__hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--senv-offwhite);
  transition: transform 0.3s;
}

@media (max-width: 768px) {
  .senv-nav { display: none; }
  .senv-header-actions__hamburger { display: flex; }
}

.senv-header-actions {
  display: flex;
  align-items: center;
  gap: var(--senv-space-5);
}

.senv-header-actions a {
  color: var(--senv-offwhite);
  opacity: 0.75;
  font-size: var(--senv-text-sm);
  letter-spacing: 0.1em;
  transition: opacity var(--senv-transition);
}

.senv-header-actions a:hover {
  opacity: 1;
}

/* Ícone com badge (wishlist) */
.senv-header-actions__icon--wishlist {
  position: relative;
}

.senv-header-actions__badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--senv-gold);
  color: var(--senv-black);
  font-family: var(--senv-font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 16px;
  text-align: center;
  border-radius: 8px;
  pointer-events: none;
}

/* ==========================================================================
   BOTÕES
   ========================================================================== */

.senv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--senv-space-2);
  padding: 0 var(--senv-space-6);
  height: 48px;
  border-radius: var(--senv-radius-sm);
  font-family: var(--senv-font-body);
  font-size: var(--senv-text-xs);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color var(--senv-transition),
              color var(--senv-transition),
              border-color var(--senv-transition),
              transform var(--senv-transition);
  text-decoration: none;
}

.senv-btn:hover {
  transform: translateY(-1px);
}

/* Primário — dourado */
.senv-btn--primary {
  background-color: var(--senv-gold);
  color: var(--senv-black);
  border-color: var(--senv-gold);
}

.senv-btn--primary:hover {
  background-color: var(--senv-gold-light);
  border-color: var(--senv-gold-light);
}

/* Secundário — contorno dourado */
.senv-btn--secondary {
  background-color: transparent;
  color: var(--senv-offwhite);
  border-color: var(--senv-gold);
}

.senv-btn--secondary:hover {
  background-color: var(--senv-gold);
  color: var(--senv-black);
}

/* Ghost — contorno suave */
.senv-btn--ghost {
  background-color: transparent;
  color: rgba(255,255,255,0.6);
  border-color: var(--senv-charcoal-2);
}

.senv-btn--ghost:hover {
  color: var(--senv-offwhite);
  border-color: var(--senv-border-2);
}

/* Wishlist */
.senv-btn--wishlist {
  background-color: var(--senv-charcoal);
  color: var(--senv-nude);
  border-color: transparent;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.senv-hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.senv-hero__bg {
  position: absolute;
  inset: 0;
  background-color: var(--senv-charcoal);
  background-size: cover;
  background-position: center top;
}

.senv-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,8,7,0.15) 0%,
    rgba(10,8,7,0.40) 50%,
    rgba(10,8,7,0.85) 100%
  );
}

.senv-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-bottom: var(--senv-space-9);
}

.senv-hero__label {
  font-family: var(--senv-font-body);
  font-size: var(--senv-text-xs);
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--senv-gold);
  margin-bottom: var(--senv-space-4);
  display: block;
}

.senv-hero__title {
  font-family: var(--senv-font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--senv-offwhite);
  max-width: 560px;
  margin-bottom: var(--senv-space-5);
}

.senv-hero__subtitle {
  font-size: var(--senv-text-base);
  font-weight: 300;
  color: rgba(247,242,237,0.7);
  max-width: 400px;
  margin-bottom: var(--senv-space-7);
}

.senv-hero__actions {
  display: flex;
  gap: var(--senv-space-4);
  flex-wrap: wrap;
}

/* ==========================================================================
   CARDS DE PRODUTO
   ========================================================================== */

.senv-product-card {
  position: relative;
  background-color: var(--senv-surface-1);
  border-radius: var(--senv-radius-md);
  overflow: hidden;
  transition: transform var(--senv-transition-slow);
}

.senv-product-card:hover {
  transform: translateY(-4px);
}

.senv-product-card__image {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--senv-surface-2);
}

.senv-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--senv-transition-slow);
}

.senv-product-card:hover .senv-product-card__image img {
  transform: scale(1.04);
}

.senv-product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 4px 14px;
  border-radius: var(--senv-radius-sm);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background-color: var(--senv-gold);
  color: var(--senv-black);
}

.senv-product-card__badge--sale {
  background-color: var(--senv-error);
  color: var(--senv-white);
}

.senv-product-card__badge--exclusive {
  background-color: transparent;
  color: var(--senv-gold);
  border: 1px solid var(--senv-gold);
}

.senv-product-card__wishlist {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 1;
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  font-size: 1.25rem;
  cursor: pointer;
  transition: color var(--senv-transition), transform var(--senv-transition);
  line-height: 1;
  padding: 4px;
}

.senv-product-card__wishlist:hover,
.senv-product-card__wishlist.is-active {
  color: var(--senv-nude);
  transform: scale(1.15);
}

.senv-product-card__body {
  padding: var(--senv-space-4) var(--senv-space-4) var(--senv-space-5);
}

.senv-product-card__category {
  display: block;
  font-size: var(--senv-text-xs);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--senv-gold);
  margin-bottom: var(--senv-space-2);
}

.senv-product-card__name {
  font-family: var(--senv-font-heading);
  font-size: var(--senv-text-base);
  font-weight: 400;
  color: var(--senv-offwhite);
  margin-bottom: var(--senv-space-3);
  line-height: 1.35;
}

.senv-product-card__pricing {
  display: flex;
  align-items: baseline;
  gap: var(--senv-space-3);
  margin-bottom: var(--senv-space-4);
}

.senv-product-card__price {
  font-family: var(--senv-font-heading);
  font-size: var(--senv-text-xl);
  font-weight: 400;
  color: var(--senv-offwhite);
}

.senv-product-card__price-old {
  font-size: var(--senv-text-sm);
  color: var(--senv-ink-tertiary);
  text-decoration: line-through;
}

.senv-product-card__btn {
  width: 100%;
  height: 36px;
  background-color: var(--senv-gold);
  color: var(--senv-black);
  border: none;
  border-radius: var(--senv-radius-sm);
  font-family: var(--senv-font-body);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--senv-transition);
}

.senv-product-card__btn:hover {
  background-color: var(--senv-gold-light);
}

/* Grid de produtos */
.senv-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--senv-gutter);
}

/* ==========================================================================
   SEÇÃO DE CATEGORIAS
   ========================================================================== */

.senv-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--senv-space-4);
}

.senv-category-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--senv-radius-md);
  cursor: pointer;
}

.senv-category-card__bg {
  position: absolute;
  inset: 0;
  background-color: var(--senv-surface-2);
  background-size: cover;
  background-position: center;
  transition: transform var(--senv-transition-slow);
}

.senv-category-card:hover .senv-category-card__bg {
  transform: scale(1.05);
}

.senv-category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,8,7,0.8) 0%, transparent 60%);
}

.senv-category-card__label {
  position: absolute;
  bottom: var(--senv-space-5);
  left: var(--senv-space-5);
  z-index: 1;
  font-family: var(--senv-font-heading);
  font-size: var(--senv-text-lg);
  font-weight: 400;
  color: var(--senv-offwhite);
}

/* ==========================================================================
   SEÇÃO DE DESTAQUES / EDITORIAL
   ========================================================================== */

.senv-editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--senv-space-4);
  align-items: center;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

#senv-footer {
  background-color: var(--senv-surface-1);
  border-top: 1px solid var(--senv-border);
  padding-block: var(--senv-space-9) var(--senv-space-7);
}

.senv-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--senv-space-8);
  margin-bottom: var(--senv-space-8);
}

.senv-footer__logo {
  font-family: var(--senv-font-display);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  color: var(--senv-offwhite);
  display: block;
  margin-bottom: var(--senv-space-4);
}

.senv-footer__tagline {
  font-size: var(--senv-text-sm);
  color: var(--senv-ink-tertiary);
  font-style: italic;
  margin-bottom: var(--senv-space-5);
}

.senv-footer__col-title {
  font-size: var(--senv-text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--senv-gold);
  margin-bottom: var(--senv-space-4);
  display: block;
}

.senv-footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--senv-space-3);
}

.senv-footer__links a {
  font-size: var(--senv-text-sm);
  color: var(--senv-ink-tertiary);
  transition: color var(--senv-transition);
}

.senv-footer__links a:hover {
  color: var(--senv-nude);
}

.senv-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--senv-space-6);
  border-top: 1px solid var(--senv-border);
  font-size: var(--senv-text-xs);
  color: var(--senv-ink-tertiary);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   BADGES
   ========================================================================== */

.senv-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: var(--senv-radius-sm);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.senv-badge--new      { background-color: var(--senv-gold); color: var(--senv-black); }
.senv-badge--urgent   { background-color: var(--senv-error); color: var(--senv-white); }
.senv-badge--exclusive{ background-color: transparent; color: var(--senv-gold); border: 1px solid var(--senv-gold); }
.senv-badge--sale     { background-color: var(--senv-charcoal); color: var(--senv-nude); }
.senv-badge--stock    { background-color: var(--senv-success); color: var(--senv-white); }

/* ==========================================================================
   INPUTS
   ========================================================================== */

.senv-input {
  width: 100%;
  height: 48px;
  padding: 0 var(--senv-space-4);
  background-color: var(--senv-surface-1);
  border: 1px solid var(--senv-border-2);
  border-radius: var(--senv-radius-sm);
  color: var(--senv-offwhite);
  font-family: var(--senv-font-body);
  font-size: var(--senv-text-sm);
  font-weight: 300;
  transition: border-color var(--senv-transition);
  outline: none;
}

.senv-input::placeholder {
  color: rgba(255,255,255,0.2);
}

.senv-input:focus {
  border-color: var(--senv-gold);
}

/* ==========================================================================
   DIVISOR DOURADO
   ========================================================================== */

.senv-divider {
  width: 48px;
  height: 1px;
  background-color: var(--senv-gold);
  margin-block: var(--senv-space-5);
}

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */

@media (max-width: 1024px) {
  .senv-product-grid     { grid-template-columns: repeat(3, 1fr); }
  .senv-category-grid    { grid-template-columns: repeat(2, 1fr); }
  .senv-footer__grid     { grid-template-columns: 1fr 1fr; gap: var(--senv-space-6); }
}

@media (max-width: 768px) {
  :root {
    --senv-gutter: 20px;
  }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.75rem; }

  .senv-nav              { display: none; }
  .senv-product-grid     { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .senv-category-grid    { grid-template-columns: repeat(2, 1fr); }
  .senv-editorial        { grid-template-columns: 1fr; }
  .senv-footer__grid     { grid-template-columns: 1fr; gap: var(--senv-space-6); }
  .senv-footer__bottom   { flex-direction: column; gap: var(--senv-space-3); text-align: center; }
  .senv-hero__title      { font-size: 2.5rem; }
}

@media (max-width: 480px) {
  .senv-product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .senv-hero         { height: 90svh; }
}

/* ==========================================================================
   TOAST — mensagem de feedback (adicionar ao carrinho, erros, etc.)
   ========================================================================== */

.senv-toast-wrap {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.senv-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 8px;
  font-family: var(--senv-font-body, 'Inter', sans-serif);
  font-size: 14px;
  line-height: 1.4;
  max-width: 320px;
  pointer-events: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
  animation: senv-toast-in .25s cubic-bezier(.22,1,.36,1) both;
}

.senv-toast--success {
  background: var(--senv-noir, #0A0807);
  color: var(--senv-offwhite, #F7F2ED);
  border-left: 3px solid var(--senv-gold, #B8924A);
}

.senv-toast--error {
  background: #2a0a0a;
  color: #f7eded;
  border-left: 3px solid #c0392b;
}

.senv-toast__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
}

.senv-toast__icon svg { display: block; }

.senv-toast--out {
  animation: senv-toast-out .2s ease-in forwards;
}

@keyframes senv-toast-in {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes senv-toast-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(8px) scale(.96); }
}

@media (max-width: 600px) {
  .senv-toast-wrap {
    bottom: 16px;
    right: 16px;
    left: 16px;
  }
  .senv-toast { max-width: 100%; }
}

/* ==========================================================================
   WORDPRESS ADMIN BAR — compensação de top no header fixo
   ========================================================================== */

/* Desktop: admin bar tem 32px */
.admin-bar #senv-header {
  top: 32px;
}

/* Mobile (<= 782px): admin bar tem 46px */
@media screen and (max-width: 782px) {
  .admin-bar #senv-header {
    top: 46px;
  }

  /* Drawer e busca respeitam a admin bar no mobile */
  .admin-bar #senv-mobile-nav,
  .admin-bar #senv-mobile-overlay,
  .admin-bar #senv-search-overlay {
    top: 46px;
  }
}

/* Desktop: drawer e busca respeitam admin bar */
.admin-bar #senv-mobile-nav,
.admin-bar #senv-mobile-overlay,
.admin-bar #senv-search-overlay {
  top: 32px;
}
