html {
  height: 100%;
}

:root {
  --primary-color: #9a1c29;
  --accent-color: #9a1c29;
  --header-bg: #9a1c29;
  --button-color: #0047ba;
  --header-height: 72px;
  --text-dark: #1a1a2e;
  --text-muted: #6b7280;
  --bg-light: #f8fafc;
  --font-primary: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body:has(.hero-fullscreen) {
  /* Permite rolagem vertical, mantendo apenas bloqueio horizontal */
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Conteúdo principal cresce: rodapé permanece no fundo com pouca altura na página */
body > .main-container,
body > .hero-fullscreen,
body > main {
  flex: 1 0 auto;
}

body > .loading-container {
  flex-shrink: 0;
}

/* ===== HERO FULLSCREEN ===== */
.hero-fullscreen {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: var(--header-height);
  box-sizing: border-box;
  /* Só esconde rolagem horizontal; vertical continua disponível */
  overflow-x: hidden;
}

/* Imagem de fundo (visível logo de cara) */
.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../images/allespark_background_home.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.25) 40%,
    rgba(0, 0, 0, 0.35) 100%
  );
  z-index: 1;
}

/* Conteúdo do hero alinhado ao container do header (1320px + padding 24px; 16px no mobile) */
.hero-main-inner {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ===== CABEÇALHO (home — layout Figma) ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--header-bg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.site-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  min-height: var(--header-height);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.header-brand-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(200px, 42vw);
  object-fit: contain;
}

.site-header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Páginas internas: grid no mobile (menu | logo | ações), flex no desktop */
.site-header-inner--internal {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 10px;
}

.site-header-inner--internal .btn-header-menu {
  grid-column: 1;
  justify-self: start;
}

.site-header-inner--internal .header-brand--internal {
  grid-column: 2;
  justify-self: start;
  min-width: 0;
}

.site-header-inner--internal .site-header-tools {
  grid-column: 3;
  justify-self: end;
}

@media (min-width: 768px) {
  .site-header-inner--internal {
    display: flex;
    justify-content: space-between;
  }

  .site-header-inner--internal .header-brand--internal {
    justify-self: auto;
  }
}

.btn-header-menu {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.btn-header-menu:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

@media (max-width: 767.98px) {
  .header-lang.header-lang--desktop-toolbar {
    display: none !important;
  }

  .site-footer.site-footer--internal-mobile {
    display: none !important;
  }
}

body.mobile-nav-open {
  overflow: hidden;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-nav-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(100vw - 40px, 320px);
  z-index: 1002;
  background: #9a1c29;
  color: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.25);
}

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

.mobile-nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  flex-shrink: 0;
}

.mobile-nav-drawer-logo {
  height: 40px;
  width: auto;
  max-width: 155px;
  object-fit: contain;
}

.btn-mobile-nav-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-mobile-nav-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.mobile-nav-drawer-body {
  flex: 1;
  padding: 8px 20px 24px;
  min-height: 0;
}

.mobile-nav-link {
  display: block;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  padding: 10px 0;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-primary);
}

.mobile-nav-link:hover {
  color: rgba(255, 255, 255, 0.88);
}

.mobile-nav-link--btn {
  padding-left: 0;
  padding-right: 0;
}

.mobile-nav-drawer-footer {
  padding: 20px 20px 28px;
  flex-shrink: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.18);
}

.mobile-nav-lang-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.mobile-nav-lang-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 16px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.mobile-nav-lang-select option {
  color: #1a1a1a;
  background: #fff;
}

.mobile-nav-footer-rule {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 4px 0 12px;
}

.mobile-nav-drawer-footer .mobile-nav-link {
  font-size: 1rem;
  padding: 11px 0;
}

.mobile-nav-copy {
  margin: 20px 0 0;
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.45;
}

@media (min-width: 768px) {
  .mobile-nav-backdrop,
  .mobile-nav-drawer {
    display: none !important;
  }
}

.btn-header-lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-header-lang:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.85);
}

.btn-header-lang .fa-chevron-down {
  font-size: 0.65rem;
  opacity: 0.9;
}

.header-lang-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 1rem;
  font-weight: 700;
  color: #3f3f46;
  border-radius: 10px;
}

.header-lang-menu {
  min-width: 130px;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  background: #efefef;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.header-lang-menu .dropdown-item:hover,
.header-lang-menu .dropdown-item:focus {
  background: #e5e7eb;
  color: #1f2937;
}

.header-lang-menu .dropdown-item.active,
.header-lang-menu .dropdown-item.active:hover,
.header-lang-menu .dropdown-item.active:focus {
  background: transparent;
  color: #9a1c29;
}

.header-lang-flag {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.header-lang-current-flag {
  width: 18px;
  height: 18px;
}

/* Carrinho no header (galeria; oculto na index) */
.btn-header-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: #fff;
  background: transparent;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  font-size: 1.1rem;
}

.btn-header-cart:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.9);
  color: #fff;
}

.btn-header-cart .header-tool-icon,
.btn-header-user .header-tool-icon {
  display: block;
  width: 22px;
  height: 22px;
}

.header-cart-badge {
  position: absolute;
  right: -4px;
  bottom: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  background: var(--accent-color);
  border: 2px solid var(--header-bg);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Carrinho lateral global */
.sidebar-carrinho {
  position: fixed;
  top: 0;
  right: -480px;
  width: 470px;
  height: 100vh;
  height: 100dvh;
  background: #e9e9ea;
  box-shadow: -2px 0 16px rgba(0,0,0,0.12);
  z-index: 1050;
  transition: right 0.3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
}

.sidebar-carrinho.aberta {
  right: 0;
}

.sidebar-header {
  padding: 16px 20px 14px;
}

.sidebar-header h5 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
  margin: 0;
  letter-spacing: 0.01em;
}

.sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.sidebar-body-cart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.carrinho-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-content: start;
}

.cart-thumb-item {
  position: relative;
}

.cart-thumb-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  object-fit: cover;
  display: block;
}

.cart-thumb-remove {
  position: absolute;
  right: -6px;
  bottom: -8px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: #ff6657;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.carrinho-empty {
  flex: 1;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #5a5a5a;
  gap: 12px;
}

.carrinho-empty .carrinho-empty-icon {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.carrinho-empty span {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  max-width: 260px;
  line-height: 1.35;
}

.carrinho-selected-count {
  margin-top: auto;
  padding-top: 10px;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6b7280;
}

.sidebar-pagamento {
  background: #f3f3f3;
  border-top: 1px solid #ddd !important;
  /* iOS Safari: evita ficar por trás da barra inferior / safe-area */
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
}

.carrinho-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.carrinho-total-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #4b5563;
}

#carrinho-total-valor {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111827;
}

#btn-finalizar {
  background: var(--button-color);
  border-color: var(--button-color);
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 12px 16px;
  touch-action: manipulation;
}

#btn-finalizar:disabled {
  background: #a0a2a4;
  border-color: #a0a2a4;
  opacity: 1;
}

.carrinho-flags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}

.carrinho-flags-img {
  height: 16px;
  width: auto;
  max-width: 100%;
  display: block;
  opacity: 0.95;
}

.carrinho-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.35);
  z-index: 1049;
  display: none;
  transition: opacity 0.2s;
  pointer-events: none;
}

.carrinho-overlay.aberta {
  display: block;
  pointer-events: auto;
}

.header-account {
  display: flex;
  align-items: center;
}

.btn-header-user {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: #fff;
  background: transparent;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  font-size: 1.05rem;
}

.btn-header-user:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.9);
}

.header-user-menu {
  min-width: 200px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
}

.header-user-greeting {
  font-size: 0.9rem;
  color: var(--text-dark);
  padding: 8px 16px;
  white-space: normal;
}

#navNotLoggedIn,
#navLoggedIn {
  display: flex;
  align-items: center;
}

/* Compat: outros contextos que ainda usem botões da top bar antiga */
.top-actions {
  display: flex;
  gap: 8px;
}

.btn-action {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-primary);
}

.btn-action:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.btn-action-outline {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-action-outline:hover {
  background: rgba(255, 255, 255, 0.2);
}

.user-welcome {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===== BANNER DE COOKIES ===== */
.cookie-consent {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1120px;
  z-index: 1040;
  padding: 0;
}

.cookie-consent-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cookie-consent-text {
  flex: 1;
  min-width: 0;
}

.cookie-consent-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 8px;
  line-height: 1.3;
}

.cookie-consent-desc {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #4b5563;
  margin: 0;
}

.cookie-consent-link {
  color: #9a1c29;
  text-decoration: underline;
  font-weight: 500;
}

.cookie-consent-link:hover {
  color: #9a1c29;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.btn-cookie {
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-cookie-secondary {
  background: transparent;
  color: #4b5563;
  border: 1px solid #d1d5db;
}

.btn-cookie-secondary:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.btn-cookie-primary {
  background: var(--button-color);
  color: #fff;
  border: 1px solid transparent;
}

.btn-cookie-primary:hover {
  background: var(--button-color);
  color: #fff;
}

/* ===== MODAL VINCULAR E-MAIL (fluxo QR / home) ===== */
#modalVincularEmail .modal-dialog.modal-vincular-dialog {
  max-width: 520px;
  width: calc(100% - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
  margin: 0.75rem auto;
  display: flex;
  align-items: stretch;
}

.modal-vincular-email {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  width: 100%;
  max-height: calc(100dvh - 1.5rem);
  display: flex;
  flex-direction: column;
}

.modal-vincular-hero {
  position: relative;
  flex-shrink: 0;
  height: 148px;
  min-height: 120px;
  background-color: #9a1c29;
  background-image: url('../images/bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.modal-vincular-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.btn-vincular-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-vincular-close:hover {
  background: #fff;
  transform: scale(1.05);
}

.modal-vincular-body {
  background: var(--accent-color);
  padding: 22px 24px 26px;
  text-align: left;
}

.modal-vincular-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.25;
}

.modal-vincular-lead {
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 20px;
}

.modal-vincular-field {
  margin-bottom: 18px;
}

.modal-vincular-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.modal-vincular-input {
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.modal-vincular-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.modal-vincular-hint {
  font-weight: 500;
  opacity: 0.85;
  font-size: 0.8em;
}

.modal-vincular-step2 {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.modal-vincular-field-camera {
  margin-bottom: 12px;
}

.camera-container--modal {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  border-radius: 12px;
}

.modal-vincular-camera-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.btn-modal-cam {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-modal-cam:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}

.btn-modal-cam-accent {
  background: rgba(255, 255, 255, 0.95);
  color: var(--header-bg);
  border-color: transparent;
}

.btn-modal-cam-accent:hover {
  background: #fff;
  color: var(--header-bg);
}

.btn-vincular-submit {
  width: 100%;
  margin-top: 4px;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--button-color);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}

.btn-vincular-submit:hover:not(:disabled) {
  background: var(--button-color);
  color: #fff;
}

.btn-vincular-submit:active:not(:disabled) {
  transform: scale(0.99);
}

.btn-vincular-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-vincular-skip {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 0;
  border: none;
  background: none;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  text-align: center;
}

.btn-vincular-skip:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* FAQ Link */
.faq-link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.faq-link:hover {
  background: rgba(255, 255, 255, 0.35);
  color: #fff;
  transform: translateY(-1px);
}

/* ===== HERO CENTER ===== */
.hero-center {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

/* Headline */
.headline {
  text-align: left;
}

.headline h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.headline p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

/* Search Area */
.search-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.search-box {
  width: 100%;
  display: flex;
  position: relative;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  border-radius: 14px;
  overflow: hidden;
  border: none;
  transition: box-shadow 0.3s ease;
}

.search-box:focus-within {
  box-shadow: 0 4px 30px rgba(0, 71, 186, 0.4);
}

.search-input {
  flex: 1;
  border: none;
  padding: 16px 20px;
  font-size: 1rem;
  font-family: var(--font-primary);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  outline: none;
  color: var(--text-dark);
}

.search-input::placeholder {
  color: #9ca3af;
}

.search-btn {
  background: var(--button-color);
  color: #fff;
  border: none;
  padding: 0 24px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn:hover {
  background: var(--button-color);
}

/* Separator */
.separator {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.separator::before,
.separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

.separator span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  text-transform: lowercase;
}

/* Botão Facial */
.btn-facial {
  width: 100%;
  background: var(--button-color);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 15px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 71, 186, 0.4);
  font-family: var(--font-primary);
}

.btn-facial:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 71, 186, 0.5);
}

/* Powered By */
.powered-by {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.powered-by span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.powered-by svg {
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.powered-by:hover svg {
  opacity: 0.9;
}

.help-note {
  margin-top: 8px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  text-align: left;
  max-width: 100%;
}

.help-note a {
  color: #fff;
  font-weight: 600;
}

.help-note a:hover {
  color: #fff;
}

/* ===== MODALS ===== */
.modal-content {
  border-radius: 20px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
  border-bottom: 1px solid #e9ecef;
  border-radius: 20px 20px 0 0;
  background: #9a1c29;
  color: white;
  padding: 20px 24px;
}

.modal-header .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.modal-header .btn-close:hover {
  opacity: 1;
}

/* Header claro (Central de ajuda) */
.modal-header-light {
  background: #ffffff;
  color: #111827;
}

.modal-header-light .btn-close {
  filter: none;
  opacity: 0.6;
}

.modal-header-light .btn-close:hover {
  opacity: 1;
}

.modal-title {
  font-weight: 600;
  font-size: 1.3rem;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  border-top: 1px solid #e9ecef;
  padding: 16px 24px;
}

/* Camera Container */
.camera-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  aspect-ratio: 4/3;
  background: #000;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#videoCamera,
#videoCameraReconhecimento {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.preview-foto {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.preview-foto img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.btn-refazer {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border: none;
  border-radius: 25px;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.btn-refazer:hover {
  background: white;
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Form Styles */
.form-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

/* Labels menores apenas na Central de ajuda */
#modalSuporte .form-label {
  font-size: 0.8rem;
}

.modal-body .form-control {
  border-radius: 10px;
  border: 1px solid #ced4da;
  padding: 12px 16px;
  font-size: 1rem;
  height: auto;
}

.modal-body .form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(154, 28, 41, 0.2);
}

.modal-body .form-select {
  font-size: 1rem;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #ced4da;
}

.modal-body .form-select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(154, 28, 41, 0.2);
}

.modal-body textarea {
  resize: vertical;
  min-height: 100px;
}

/* Botões do Modal */
.modal-footer .btn {
  border-radius: 25px;
  padding: 10px 24px;
  font-weight: 600;
}

.btn-primary {
  background: var(--button-color);
  border: none;
}

.btn-primary:hover {
  background: var(--button-color);
}

.btn-primary:disabled {
  background: #6c757d;
  opacity: 0.6;
}

.btn-secondary {
  background: #6c757d;
  border: none;
}

.btn-secondary:hover {
  background: #5a6268;
}

.btn-success {
  background: var(--button-color);
  border: none;
}

.btn-success:hover {
  background: var(--button-color);
}

.btn-outline-primary {
  border-color: var(--button-color);
  color: var(--button-color);
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: var(--button-color);
  border-color: var(--button-color);
  color: white;
  transform: translateY(-2px);
}

/* Lista de Galerias */
.galleries-list {
  max-height: 500px;
  overflow-y: auto;
  padding: 10px 0;
}

.gallery-item {
  display: flex;
  align-items: center;
  padding: 16px;
  margin-bottom: 12px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.gallery-item:hover {
  border-color: var(--accent-color);
  box-shadow: 0 4px 12px rgba(154, 28, 41, 0.15);
  transform: translateX(5px);
}

.gallery-icon {
  width: 60px;
  height: 60px;
  background: #9a1c29;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  flex-shrink: 0;
}

.gallery-info {
  flex: 1;
  margin-left: 16px;
  min-width: 0;
}

.gallery-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-details {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

.gallery-count {
  display: inline-block;
  background: #f0fafb;
  color: var(--accent-color);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 8px;
}

.gallery-action {
  color: var(--accent-color);
  font-size: 20px;
  margin-left: 12px;
  flex-shrink: 0;
}

/* Accordion FAQ */
.accordion-item {
  border: 1px solid #e9ecef;
  border-radius: 10px !important;
  margin-bottom: 12px;
  overflow: hidden;
}

.accordion-button {
  background-color: #f8f9fa;
  color: #333;
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 20px;
  border: none;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  background-color: var(--accent-color);
  color: white;
  box-shadow: none;
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.accordion-button:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.25rem rgba(154, 28, 41, 0.2);
}

.accordion-button:hover {
  background-color: #e9ecef;
}

.accordion-button:not(.collapsed):hover {
  background-color: #9a1c29;
}

.accordion-body {
  padding: 20px;
  background-color: white;
  line-height: 1.6;
}

.accordion-body p { margin-bottom: 0; }
.accordion-body ol { margin-bottom: 0; }

.accordion-body a {
  color: var(--accent-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.accordion-body a:hover {
  color: #9a1c29;
}

/* Abas da Central de Ajuda */
.help-tabs .nav-link {
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 18px;
  color: #495057;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.help-tabs .nav-link.active {
  background: var(--button-color);
  color: #fff;
}

.help-tabs {
  background: #f3f4f6;
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
  display: flex;
  justify-content: center;
}

.help-tabs .nav-item {
  flex: 1 1 0;
}

/* Suporte photos */
#previewFotoLocal img,
#previewFotoQrCode img {
  border: 2px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#btnRemoverFotoLocal,
#btnRemoverFotoQrCode {
  width: 100%;
}

/* Modal rows */
.modal-body .row {
  margin-left: 0;
  margin-right: 0;
}

.modal-body .col-4,
.modal-body .col-6,
.modal-body .col-8 {
  padding-left: 8px;
  padding-right: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 576px) {
  :root {
    --header-height: 64px;
  }

  .site-header-inner {
    padding: 0 16px;
    min-height: var(--header-height);
  }

  .hero-main-inner {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: calc(100dvh - var(--header-height));
    box-sizing: border-box;
  }

  .header-brand-logo {
    height: 36px;
  }

  .btn-header-user,
  .btn-header-cart {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }

  .header-cart-badge {
    min-width: 18px;
    height: 18px;
    font-size: 0.6rem;
    right: -3px;
    bottom: -3px;
  }

  .sidebar-carrinho {
    width: 100vw;
    right: -100vw;
  }

  .carrinho-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .sidebar-header h5 {
    font-size: 1rem;
  }

  .carrinho-empty .carrinho-empty-icon {
    width: 44px;
    height: 44px;
  }

  .carrinho-empty span {
    font-size: 0.9375rem;
  }

  .carrinho-selected-count {
    font-size: 0.75rem;
  }

  .carrinho-total-label,
  #carrinho-total-valor {
    font-size: 0.875rem;
  }

  #btn-finalizar {
    font-size: 0.875rem;
    padding: 11px 14px;
  }

  .cookie-consent-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 20px;
    gap: 18px;
  }

  .cookie-consent-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-cookie {
    width: 100%;
    justify-content: center;
  }

  .hero-center {
    padding: 0;
    gap: 22px;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }

  .hero-fullscreen {
    justify-content: center;
  }

  .headline {
    text-align: center;
  }

  .headline h1 {
    font-size: 1.4rem;
  }

  .headline p {
    font-size: 0.85rem;
  }

  .help-note {
    text-align: center;
  }

  .powered-by {
    justify-content: center;
    width: 100%;
  }

  .search-input {
    padding: 14px 16px;
    font-size: 0.95rem;
  }

  .btn-facial {
    padding: 14px 18px;
    font-size: 0.95rem;
  }

  .btn-action {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  .faq-link {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  .help-floating {
    bottom: 16px;
    right: 16px;
  }

  .btn-help {
    padding: 10px 18px;
    font-size: 0.85rem;
  }

  .modal-title {
    font-size: 1.1rem;
  }

  /* Abas FAQ / SAC: caber em uma linha no mobile */
  .help-tabs .nav-link {
    font-size: 0.8rem;
    padding: 9px 6px;
    line-height: 1.2;
    white-space: nowrap;
    letter-spacing: -0.01em;
    gap: 5px;
  }

  .help-tabs .nav-link i {
    margin-right: 0 !important;
    flex-shrink: 0;
    font-size: 0.95em;
  }

  .camera-container {
    max-width: 100%;
  }

  .modal-body .col-4,
  .modal-body .col-6,
  .modal-body .col-8 {
    padding-left: 4px;
    padding-right: 4px;
  }

  .accordion-button {
    font-size: 0.9rem;
    padding: 14px 16px;
  }

  .accordion-body {
    padding: 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 380px) {
  .hero-center {
    gap: 18px;
  }

  .headline h1 {
    font-size: 1.2rem;
  }

  .help-tabs .nav-link {
    font-size: 0.73rem;
    padding: 8px 4px;
  }
}

/* ===== LARGE SCREENS ===== */
@media (min-width: 1400px) {
  .hero-center {
    max-width: 520px;
  }

  .headline h1 {
    font-size: 2rem;
  }
}

/* ===== TERMOS / PRIVACIDADE — voltar (círculo ~50% menor + chevron SVG, sem Font Awesome) ===== */
.legal-page-back {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px 10px 10px;
  margin: -10px 0 -10px -10px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #434a52;
  cursor: pointer;
  transition: color 0.15s ease;
}

.legal-page-back-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  box-sizing: border-box;
  border: 1px solid #7c8793;
  border-radius: 50%;
  background: transparent;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.legal-page-back:hover .legal-page-back-ring {
  border-color: #434a52;
  background: rgba(0, 0, 0, 0.04);
}

.legal-page-back:hover {
  color: #2d3740;
}

.legal-page-back:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.legal-page-back .legal-page-back-icon {
  display: block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ===== RODAPÉ GLOBAL ===== */
.site-footer {
  background: #3C3C3C;
  color: rgba(255, 255, 255, 0.85);
  padding: 40px 0 24px;
  margin-top: auto;
  flex-shrink: 0;
}

.pagina-galeria .site-footer,
.pagina-personalizar .site-footer {
  margin-top: 0;
}

.site-footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px 32px;
}

@media (max-width: 576px) {
  .site-footer-inner {
    padding: 0 16px;
  }

  .site-footer-copy {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.site-footer-logo {
  display: block;
  width: 138px;
  height: auto;
  max-width: 100%;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
}

.site-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer-links li {
  margin-bottom: 10px;
}

.site-footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer-social {
  display: flex;
  gap: 14px;
  align-items: center;
}

.site-footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.site-footer-social-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.site-footer-copy {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 28px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 1320px;
  box-sizing: border-box;
}

/* Subbar personalizar — mesma régua do header (.galeria-toolbar-container = 1320px + padding) */
.personalizar-subbar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  z-index: 989;
  background: #eceff1;
  border-bottom: 1px solid #dde2e6;
  padding: 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

/* Três colunas: voltar alinhado à esquerda (com o logo), título no centro real da faixa.
   Mesmo ritmo vertical da faixa cinza da galeria (.galeria-subheader-inner). */
.personalizar-subbar-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 12px;
  padding: 10px 0 12px;
  min-width: 0;
}

.personalizar-subbar-left {
  justify-self: start;
  min-width: 0;
}

.personalizar-subbar-center {
  justify-self: center;
  text-align: center;
  max-width: 100%;
}

.personalizar-subbar-right {
  justify-self: end;
  min-width: 0;
}

.personalizar-subbar-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-weight: 600;
  color: #374151;
  margin: 0;
  font-size: 1rem;
}

.personalizar-subbar-icon {
  color: var(--accent-color);
  font-size: 1.05em;
}

@media (max-width: 576px) {
  .personalizar-subbar-row {
    /* Mobile: mesma faixa, mas conteúdo alinhado à esquerda */
    grid-template-columns: 1fr auto;
    grid-template-rows: auto;
    column-gap: 12px;
    row-gap: 0;
    justify-items: start;
    align-items: center;
    padding: 10px 0 12px;
  }

  .personalizar-subbar-left {
    display: none;
  }

  .personalizar-subbar-center {
    justify-self: start;
    text-align: left;
  }

  .personalizar-subbar-right {
    display: block;
    justify-self: end;
  }

  .personalizar-subbar-title {
    font-size: 0.98rem;
    gap: 8px;
    justify-content: flex-start;
  }
}

/* Fechar: visível no mobile por padrão; escondido no desktop (regra vem depois e sobrescreve) */
.btn-personalizar-fechar {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(100, 116, 139, 0.45);
  color: #334155;
  background: transparent;
}

@media (min-width: 577px) {
  .pagina-personalizar .btn-personalizar-fechar {
    display: none;
  }
}

.btn-personalizar-fechar:hover {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(100, 116, 139, 0.7);
  color: #1e293b;
}

@media (max-width: 576px) {
  /* No mobile, remove o “risco/borda” extra que estava destacando demais */
  .personalizar-subbar {
    box-shadow: none;
  }
}

.btn-voltar-album {
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid #94a3b8;
  background: transparent;
  color: #334155;
}

.btn-voltar-album:hover {
  background: rgba(255, 255, 255, 0.45);
  border-color: #64748b;
  color: #1e293b;
}

body.pagina-personalizar {
  background: #eef1f4;
}

.personalizar-main {
  padding-top: calc(var(--header-height) + 80px);
  padding-bottom: 40px;
  min-height: 50vh;
}

@media (max-width: 576px) {
  .personalizar-main {
    padding-top: calc(var(--header-height) + 44px);
    padding-bottom: 24px;
  }

  /* Conteúdo mais “colado” como no layout */
  .pagina-personalizar .galeria-toolbar-container.personalizar-page-inner {
    padding-left: 12px;
    padding-right: 12px;
  }

  .personalizar-panel-canvas {
    padding: 0.75rem 0 0.9rem;
  }

  .personalizar-panel-sidebar {
    padding: 0.9rem 0 1rem;
  }

  .pagina-personalizar #canvas-container {
    min-height: 300px !important;
  }

  .pagina-personalizar .personalizar-canvas-area {
    min-height: 300px !important;
  }

  .personalizar-bottom-bar {
    padding: 12px 14px;
    gap: 10px;
    flex-wrap: nowrap;
    align-items: center;
  }

  .personalizar-bottom-text {
    min-width: 0;
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .btn-baixar-imagem {
    padding: 8px 14px;
    font-size: 0.8rem;
    white-space: nowrap;
    flex: 0 0 auto;
    flex-shrink: 0;
  }
}

/* Mobile/tablet: manter texto + botão na mesma linha (global já faz isso);
   aqui só garantimos o tamanho/legibilidade no mobile. */

.personalizar-page-inner {
  width: 100%;
}

/* Painel branco (canvas + coluna stickers/bordas), alinhado ao grid do site */
.personalizar-panel {
  overflow: hidden;
}

.personalizar-panel-canvas {
  padding: 1.25rem 1.25rem 1.5rem;
}

.personalizar-canvas-card.foto-destaque-card {
  box-shadow: none !important;
}

.personalizar-panel-sidebar {
  padding: 1.15rem 1.25rem 1.35rem;
  min-height: 380px;
}

/* Stickers e Bordas empilhados (sem tabs): título à esquerda, botão à direita */
.personalizar-decor-block {
  margin-bottom: 1.5rem;
}

.personalizar-decor-block:last-child {
  margin-bottom: 0;
}

.personalizar-decor-block-header {
  margin-bottom: 0.75rem;
}

.personalizar-decor-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.personalizar-decor-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: #374151;
  margin: 0;
  letter-spacing: 0.02em;
}

/* Excluir: desativado = apagado; ativo = vermelho (estado via :disabled no botão) */
.personalizar-decor-block .btn-decor-remove {
  font-weight: 600;
  font-size: 0.78rem;
  border-width: 1px;
  background: transparent;
  color: #94a3b8;
  border-color: #cbd5e1;
  opacity: 0.72;
}

.personalizar-decor-block .btn-decor-remove:disabled {
  cursor: not-allowed;
  pointer-events: none;
}

.personalizar-decor-block .btn-decor-remove:not(:disabled) {
  opacity: 1;
  color: #dc3545;
  border-color: #dc3545;
}

.personalizar-decor-block .btn-decor-remove:not(:disabled):hover {
  background: rgba(220, 53, 69, 0.08);
  color: #bb2d3b;
  border-color: #bb2d3b;
}

.personalizar-canvas-wrap {
  box-sizing: border-box;
  padding: 0;
}

@media (max-width: 991.98px) {
  .personalizar-panel-sidebar {
    border-left: none;
    border-top: 1px solid #e8ecf0;
    min-height: 0;
  }
}

.personalizar-bottom-bar {
  display: flex;
  /* Sempre: botão na lateral; texto pode quebrar em linhas */
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  margin-top: 12px;
  background: #fff;
  border: 1px solid #dde2e6;
  border-radius: 10px;
  box-sizing: border-box;
}

.personalizar-bottom-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

.btn-baixar-imagem {
  border-radius: 999px;
  padding: 12px 28px;
  font-weight: 700;
  background: var(--button-color);
  border: none;
  color: #fff;
  flex: 0 0 auto;
  flex-shrink: 0;
  align-self: center;
}

.btn-baixar-imagem:hover {
  background: var(--button-color);
  color: #fff;
}
