/* ==========================================================================
   VITRINY - E-COMMERCE FRONTEND DESIGN
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Italiana&family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

:root {
  /* Cores Principais */
  --primary: #ff65c5;
  --primary-hover: #f054b5;
  --primary-dark: #d63c9d;
  --primary-gradient: linear-gradient(180deg, #ff7ecc 0%, #f752be 100%);
  --secondary: #ff7ecc;
  --btn-border-bottom: rgb(214, 60, 157);
  
  /* Cores Neutras */
  --text-main: #36393d;
  --text-muted: #777777;
  --text-light: #999999;
  --bg-white: #ffffff;
  --bg-light: #f7f7f7;
  --bg-section: #fbfbfb;
  --border-color: #ecf0f1;
  --border-dark: #d8dde0;
  
  /* Layout & Espaçamento */
  --container-max-width: 1200px;
  --header-height: 64px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Reset Básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

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

button, input {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary-gradient);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

/* Logo */
.logo {
  font-family: 'Italiana', serif;
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 3px;
  color: #ffffff;
  text-transform: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  line-height: 1;
}

.logo span {
  display: inline-block;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-transform: uppercase;
  position: relative;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #ffffff;
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Nav Item com Dropdown */
.nav-item-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background-color: #ffffff;
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  z-index: 100;
}

.nav-item-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dropdown-item:hover {
  background-color: #fcecfc;
  color: var(--primary);
  padding-left: 24px;
}

/* Ações do Header (Busca + Carrinho) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Barra de Busca */
.search-form {
  position: relative;
  width: 220px;
}

.search-input {
  width: 100%;
  height: 34px;
  padding: 6px 36px 6px 14px;
  background-color: #ffffff;
  border: 1px solid transparent;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-main);
  outline: none;
  transition: all var(--transition-fast);
}

.search-input:focus {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
  width: 250px;
}

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

.search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

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

/* Carrinho */
.cart-widget {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 20px;
  transition: background-color var(--transition-fast);
}

.cart-widget:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.cart-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #ffffff;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.cart-total-text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Menu Mobile Toggle */
.mobile-toggle-btn {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 6px;
}

/* ==========================================================================
   HERO BANNER (SLIDER RESPONSIVO COM BANNERS WEBP)
   ========================================================================== */
.hero-section {
  width: 100%;
  background-color: #ffffff;
  overflow: hidden;
  position: relative;
}

.hero-slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  overflow: hidden;
  background-color: #ffffff;
}

.hero-slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.hero-slide {
  min-width: 100%;
  flex: 0 0 100%;
  position: relative;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 600px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Setas de Navegação */
.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.88);
  color: var(--text-main);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all var(--transition-fast);
  opacity: 0.85;
}

.hero-slider-wrapper:hover .hero-slider-arrow {
  opacity: 1;
}

.hero-slider-arrow:hover {
  background-color: #ffffff;
  color: var(--primary);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.hero-slider-prev {
  left: 20px;
}

.hero-slider-next {
  right: 20px;
}

/* Pontos de Paginação */
.hero-slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.25);
  padding: 6px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.hero-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.hero-slider-dot:hover {
  background-color: #ffffff;
}

.hero-slider-dot.active {
  background-color: var(--primary);
  width: 26px;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(255, 101, 197, 0.8);
}

/* ==========================================================================
   BARRA DE BENEFÍCIOS / SERVIÇOS
   ========================================================================== */
.services-section {
  padding: 30px 0;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

.service-info .service-short-label {
  display: none; /* usado somente no mobile */
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: left;
  padding: 10px;
}

.service-icon {
  width: 32px;
  height: 32px;
  color: var(--text-main);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-info h3 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 2px;
}

.service-info p {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

/* ==========================================================================
   BANNERS DE CATEGORIAS (MAIÔ, BIQUÍNI, VESTIDOS)
   ========================================================================== */
.category-banners-section {
  padding: 50px 0 30px 0;
}

.category-banners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.category-card {
  position: relative;
  display: block;
  background: transparent;
  border-radius: 4px;
  overflow: visible;
  transition: transform var(--transition-normal);
}

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

.category-card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  background-color: #f0f0f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.category-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.category-card:hover .category-card-img-wrapper img {
  transform: scale(1.05);
}

/* Etiqueta geométrica perfeitamente enquadrada e responsiva */
.category-badge-box {
  position: relative;
  margin: -35px 20px 0 20px;
  padding: 22px 16px 16px 16px;
  background-color: #ffffff;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border-radius: 0 0 2px 2px;
  z-index: 2;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

/* O corte chanfrado no topo se sobrepõe em 6px ao box para eliminar qualquer brecha/seam subpixel */
.category-badge-box::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  width: 100%;
  height: 24px;
  background-color: #ffffff;
  clip-path: polygon(0 18px, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.category-card:hover .category-badge-box {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.category-badge-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-main);
  line-height: 1.2;
}

/* ==========================================================================
   CATEGORIAS PRINCIPAIS (PILLS)
   ========================================================================== */
.quick-categories-section {
  padding: 40px 0 20px 0;
  text-align: center;
}

.section-subtitle-pill {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 20px;
}

.pills-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pill-btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 4px;
  border-bottom: 4px solid var(--btn-border-bottom);
  box-shadow: 0 2px 5px rgba(255, 101, 197, 0.25);
  transition: all var(--transition-fast);
}

.pill-btn:hover {
  background: linear-gradient(180deg, #ff7ecc 0%, #f054b5 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(255, 101, 197, 0.4);
}

.pill-btn:active {
  transform: translateY(1px);
  border-bottom-width: 2px;
}

/* ==========================================================================
   DESTAQUES (GRADE DE PRODUTOS)
   ========================================================================== */
.featured-section {
  padding: 40px 0 60px 0;
}

.section-title-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
}

.section-title-divider::before,
.section-title-divider::after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background-color: var(--border-color);
}

.section-title-divider::before {
  margin-right: 20px;
}

.section-title-divider::after {
  margin-left: 20px;
}

.section-title-divider h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-main);
}

/* Grid de Produtos */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.product-card {
  position: relative;
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
  border-radius: 4px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #f8f8f8;
  overflow: hidden;
  border-radius: 4px 4px 0 0;
}

.product-img-main,
.product-img-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 0.4s ease;
  display: block;
  background-color: #f8f8f8;
}

/* Imagem Corpo: capa padrão */
.product-img-main {
  z-index: 1;
  opacity: 1;
}

/* Imagem Peça: surge no hover com fundo limpo sobrepondo perfeitamente o corpo */
.product-img-hover {
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}

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

.product-card:hover .product-img-hover {
  opacity: 1;
  transform: scale(1.04);
}

/* Overlay sutil ao hover */
.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.02);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 3;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

/* Informações do Produto com recorte angular no topo */
.product-info {
  position: relative;
  background-color: #f7f7f7;
  padding: 16px 14px 20px 14px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Borda angular chanfrada 100% responsiva com sobreposição de 6px sem brechas */
.product-info::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  width: 100%;
  height: 24px;
  background-color: #f7f7f7;
  clip-path: polygon(0 18px, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.product-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.4;
  min-height: 32px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-main);
  margin-bottom: 4px;
}

.product-installments {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Botão "Ver todos os produtos" */
.view-all-container {
  margin-top: 40px;
  text-align: center;
}

.btn-view-all {
  display: inline-block;
  padding: 16px 48px;
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 4px;
  border: none;
  border-bottom: 4px solid var(--btn-border-bottom);
  box-shadow: 0 4px 12px rgba(255, 101, 197, 0.3);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-view-all:hover {
  background: linear-gradient(180deg, #ff7ecc 0%, #f054b5 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 101, 197, 0.45);
}

.btn-view-all:active {
  transform: translateY(1px);
  border-bottom-width: 2px;
}

/* ==========================================================================
   BANNER PROMOCIONAL MODA VERÃO
   ========================================================================== */
.promo-module-section {
  padding: 20px 0 50px 0;
}

.promo-banner-wrapper {
  position: relative;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: #0b7285;
}

.promo-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Card Flutuante de Chamada à Ação */
.promo-floating-card {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.95);
  padding: 24px 30px;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  backdrop-filter: blur(4px);
  max-width: 280px;
  width: 90%;
}

.promo-card-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 16px;
}

.btn-promo {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 4px;
  border: none;
  border-bottom: 4px solid var(--btn-border-bottom);
  box-shadow: 0 3px 8px rgba(255, 101, 197, 0.35);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-promo:hover {
  background: linear-gradient(180deg, #ff7ecc 0%, #f054b5 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(255, 101, 197, 0.5);
}

/* ==========================================================================
   NEWSLETTER
   ========================================================================== */
.newsletter-section {
  padding: 50px 0 60px 0;
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-color);
}

.newsletter-box {
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 8px;
}

.newsletter-description {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-input {
  width: 100%;
  height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-main);
  outline: none;
  background-color: #ffffff;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(255, 101, 197, 0.15);
}

.btn-newsletter {
  padding: 14px 28px;
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 4px;
  border: none;
  border-bottom: 4px solid var(--btn-border-bottom);
  box-shadow: 0 3px 8px rgba(255, 101, 197, 0.3);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-top: 6px;
}

.btn-newsletter:hover {
  background: linear-gradient(180deg, #ff7ecc 0%, #f054b5 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(255, 101, 197, 0.45);
}

/* ==========================================================================
   RODAPÉ (FOOTER)
   ========================================================================== */
.footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
}

.footer-nav-section {
  padding: 40px 0 30px 0;
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid var(--border-color);
}

.footer-bottom-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  text-align: center;
}

.copyright-text {
  font-size: 12px;
  color: var(--text-muted);
}

.powered-by {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.powered-by svg {
  height: 18px;
  fill: var(--text-main);
}

/* ==========================================================================
   CARRINHO LATERAL (DRAWER) & OVERLAY
   ========================================================================== */
.cart-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.cart-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background-color: #ffffff;
  z-index: 1200;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
}

.cart-drawer.active {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.cart-drawer-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-main);
}

.cart-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  transition: color var(--transition-fast);
}

.cart-close-btn:hover {
  color: var(--primary);
}

.cart-drawer-body {
  flex-grow: 1;
  padding: 24px;
  overflow-y: auto;
}

.cart-empty-message {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-muted);
}

.cart-empty-icon {
  margin-bottom: 16px;
  color: #d1d5db;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-name {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
}

.cart-item-remove {
  background: none;
  border: none;
  color: #999;
  font-size: 11px;
  cursor: pointer;
  margin-top: 6px;
  text-decoration: underline;
}

.cart-item-remove:hover {
  color: #e53935;
}

.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-light);
}

.cart-subtotal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cart-subtotal-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-main);
}

.cart-subtotal-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}

.btn-checkout {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 4px;
  border: none;
  border-bottom: 4px solid var(--btn-border-bottom);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
}

.btn-checkout:hover {
  background: linear-gradient(180deg, #ff7ecc 0%, #f054b5 100%);
}

/* Toast de Adição ao Carrinho */
.cart-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #ffffff;
  color: var(--text-main);
  padding: 16px 22px;
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2000;
  transform: translateY(120%);
  opacity: 0;
  transition: all var(--transition-normal);
}

.cart-toast.active {
  transform: translateY(0);
  opacity: 1;
}

.cart-toast-icon {
  color: var(--primary);
}

.cart-toast-text {
  font-size: 13px;
  font-weight: 600;
}

/* Menu Hambúrguer Mobile */
.mobile-nav-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background-color: #ffffff;
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
}

.mobile-nav-panel.active {
  transform: translateX(0);
}

.mobile-nav-header {
  background: var(--primary-gradient);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
}

.mobile-nav-list {
  padding: 20px 0;
}

.mobile-nav-item a {
  display: block;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-item a:hover {
  color: var(--primary);
  background-color: #fdf5fc;
}

/* ==========================================================================
   RESPONSIVIDADE (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 991px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .category-banners-grid {
    gap: 20px;
  }
  
  .promo-floating-card {
    padding: 16px 20px;
    max-width: 240px;
  }
}

@media (max-width: 767px) {
  .header-container {
    height: 56px;
    position: relative;
  }
  
  .desktop-nav,
  .search-form {
    display: none;
  }
  
  .mobile-toggle-btn {
    display: flex;
    position: relative;
    z-index: 2;
  }
  
  .header-actions {
    position: relative;
    z-index: 2;
  }
  
  .header-container .logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    letter-spacing: 2px;
    z-index: 1;
  }
  
  /* Serviços: 3 colunas compactas no mobile */
  .services-section {
    padding: 14px 0;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
  }

  .service-card {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 6px;
    gap: 6px;
    border-right: 1px solid var(--border-color);
  }

  .service-card:last-child {
    border-right: none;
  }

  .service-icon {
    width: 22px;
    height: 22px;
  }

  .service-icon svg {
    width: 22px;
    height: 22px;
  }

  /* Oculta o texto longo e mostra só o label curto */
  .service-info h3 {
    display: none;
  }

  .service-info p {
    display: none;
  }

  .service-info .service-short-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-main);
    line-height: 1.3;
  }
  
  .category-banners-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .category-badge-box {
    margin: -30px 20px 0 20px;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .product-info {
    padding: 12px 8px 16px 8px;
  }
  
  .product-name {
    font-size: 10px;
    min-height: 28px;
  }
  
  .product-price {
    font-size: 15px;
  }
  
  .product-installments {
    font-size: 10px;
  }
  
  .hero-slider-arrow {
    width: 34px;
    height: 34px;
    opacity: 0.9;
  }
  
  .hero-slider-prev {
    left: 8px;
  }
  
  .hero-slider-next {
    right: 8px;
  }
  
  .hero-slider-dots {
    bottom: 12px;
    padding: 4px 8px;
    gap: 6px;
  }
  
  .hero-slider-dot {
    width: 8px;
    height: 8px;
  }
  
  .hero-slider-dot.active {
    width: 18px;
  }

  .promo-floating-card {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin: -40px auto 20px auto;
    max-width: 90%;
  }
  
  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

/* ==========================================================================
   PÁGINA DE PRODUTO (OVERLAY DE DETALHE)
   ========================================================================== */

/* Overlay principal - desliza por cima da loja */
.product-page-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  height: 100%;
  background-color: #ffffff;
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

.product-page-overlay.active {
  transform: translateX(0);
}

.product-page-inner {
  min-height: 100%;
  width: 100%;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Header da página de produto */
.product-page-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 56px;
  width: 100%;
  box-sizing: border-box;
}

.product-page-header .logo {
  color: var(--primary);
  font-size: 24px;
  letter-spacing: 2px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  line-height: 1;
}

.product-page-content {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

.product-page-back {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  padding: 8px 0;
  transition: color var(--transition-fast);
  z-index: 2;
}

.product-page-back:hover {
  color: var(--primary);
}

.product-page-header-cart {
  position: relative;
  cursor: pointer;
  color: var(--text-main);
  transition: color var(--transition-fast);
  z-index: 2;
}

.product-page-header-cart:hover {
  color: var(--primary);
}

/* Breadcrumb */
.product-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.breadcrumb-link {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.breadcrumb-link:hover {
  color: var(--primary);
}

.breadcrumb-sep {
  font-size: 12px;
  color: var(--border-dark);
}

.breadcrumb-current {
  font-size: 12px;
  color: var(--text-main);
  font-weight: 600;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: middle;
}

/* Layout do Produto */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 70px;
  width: 100%;
  box-sizing: border-box;
}

/* Galeria */
.product-gallery-col {
  position: sticky;
  top: 88px;
}

.product-gallery-main {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background-color: #f8f8f8;
  aspect-ratio: 3/4;
}

.product-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}

.product-gallery-main:hover .product-gallery-img {
  transform: scale(1.03);
}

.product-gallery-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

.product-gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.product-thumb-btn {
  width: 70px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition-fast);
  background: #f8f8f8;
  padding: 0;
}

.product-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.product-thumb-btn.active,
.product-thumb-btn:hover {
  border-color: var(--primary);
}

/* Info do Produto */
.product-info-col {
  padding-top: 8px;
}

.product-detail-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 20px;
}

.product-detail-price-block {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.product-detail-price {
  font-size: 28px;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 4px;
}

.product-detail-installments {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.product-detail-pix {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #2ea04b;
  font-weight: 700;
  background: rgba(46,160,75,0.08);
  padding: 4px 10px;
  border-radius: 20px;
}

/* Seções de Opções */
.product-detail-section {
  margin-bottom: 22px;
}

.product-detail-section-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.size-guide-link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--primary);
  text-decoration: underline;
  text-transform: none;
}

/* Tamanhos */
.size-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.size-btn {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  border: 1.5px solid var(--border-dark);
  background: #fff;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
  letter-spacing: 0.5px;
}

.size-btn:hover,
.size-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

/* Quantidade */
.qty-selector {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border-dark);
  border-radius: 6px;
  overflow: hidden;
}

.qty-btn {
  width: 40px;
  height: 40px;
  background: #f5f5f5;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-main);
  transition: background var(--transition-fast);
  font-family: var(--font-primary);
}

.qty-btn:hover {
  background: #ebebeb;
}

.qty-value {
  width: 48px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

/* Botões de Compra */
.product-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.btn-add-to-cart-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: transparent;
  border: 2px solid var(--primary);
  border-radius: 6px;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-add-to-cart-detail:hover {
  background: var(--primary);
  color: #fff;
}

.btn-buy-now {
  width: 100%;
  padding: 16px;
  background: var(--primary-gradient);
  border: none;
  border-bottom: 4px solid var(--btn-border-bottom);
  border-radius: 6px;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 101, 197,0.35);
  transition: all var(--transition-fast);
}

.btn-buy-now:hover {
  background: linear-gradient(180deg, #ff7ecc 0%, #f054b5 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 101, 197,0.5);
}

/* Cálculo de Frete */
.freight-calc-box {
  background: #fafafa;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 24px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.freight-calc-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 12px;
}

.freight-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  width: 100%;
  box-sizing: border-box;
}

.freight-cep-input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border: 1.5px solid var(--border-dark);
  border-radius: 6px;
  font-family: var(--font-primary);
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition-fast);
  box-sizing: border-box;
}

.freight-cep-input:focus {
  border-color: var(--primary);
}

.freight-calc-btn {
  flex-shrink: 0;
  padding: 0 18px;
  height: 42px;
  background: var(--text-main);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition-fast);
  white-space: nowrap;
  box-sizing: border-box;
}

.freight-calc-btn:hover {
  background: var(--primary);
}

.freight-find-cep {
  font-size: 11px;
  color: var(--primary);
  text-decoration: underline;
  display: inline-block;
  margin-bottom: 4px;
}

.freight-result {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.freight-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}

.freight-option-info {
  min-width: 0;
  flex: 1;
}

.freight-option-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.freight-option-detail {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.3;
  word-break: break-word;
}

.freight-option-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  flex-shrink: 0;
  white-space: nowrap;
}

.freight-option-price.gratis {
  color: #2ea04b;
}

/* Descrição */
.product-detail-description {
  margin-bottom: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.product-detail-description p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-top: 10px;
}

/* Badges de Info */
.product-detail-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.detail-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Produtos Similares */
.similar-products-section {
  padding-bottom: 60px;
}

.similar-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

/* Cards similares (mini-versão do product-card) */
.similar-card {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  text-align: left;
  transition: transform 0.2s ease;
}

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

.similar-card-img-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #f8f8f8;
  aspect-ratio: 3/4;
  margin-bottom: 10px;
}

.similar-card-img-main,
.similar-card-img-hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: opacity 0.4s ease;
}

.similar-card-img-hover {
  opacity: 0;
  background: #f8f8f8;
}

.similar-card:hover .similar-card-img-hover {
  opacity: 1;
}

.similar-card-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 4px;
  line-height: 1.3;
}

.similar-card-price {
  font-size: 14px;
  font-weight: 900;
  color: var(--text-main);
}

.similar-card-installments {
  font-size: 10px;
  color: var(--text-muted);
}

/* Footer da página de produto */
.product-page-footer {
  margin-top: auto;
  padding: 20px;
  text-align: center;
  border-top: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--text-muted);
}

/* =====================================
   RESPONSIVO - PÁGINA DE PRODUTO
   ===================================== */
@media (max-width: 900px) {
  .product-detail-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    margin-bottom: 40px;
    width: 100%;
  }
  .product-gallery-col,
  .product-info-col {
    position: static;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .similar-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .product-page-header {
    padding: 0 16px;
    height: 52px;
  }
  .product-page-header .logo {
    font-size: 22px;
  }
  .product-detail-name {
    font-size: 16px;
    letter-spacing: 0.8px;
    line-height: 1.35;
    word-break: break-word;
    overflow-wrap: break-word;
    margin-bottom: 14px;
  }
  .product-detail-price {
    font-size: 24px;
  }
  .product-detail-section-label {
    flex-wrap: wrap;
    gap: 6px;
  }
  .size-options {
    gap: 6px;
  }
  .size-btn {
    width: 42px;
    height: 42px;
    font-size: 11px;
  }
  .freight-calc-box {
    padding: 12px;
  }
  .freight-input-row {
    gap: 6px;
  }
  .freight-cep-input {
    min-width: 0;
    font-size: 13px;
    padding: 0 10px;
  }
  .freight-calc-btn {
    padding: 0 12px;
    font-size: 11px;
    white-space: nowrap;
  }
  .freight-option {
    padding: 8px 10px;
    gap: 6px;
  }
  .freight-option-name {
    font-size: 12px;
  }
  .freight-option-detail {
    font-size: 10.5px;
  }
  .freight-option-price {
    font-size: 13px;
  }
  .similar-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

/* ==========================================================================
   MODAL DE PAGAMENTO
   ========================================================================== */

.payment-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.payment-modal-backdrop.active { opacity: 1; visibility: visible; }

.payment-modal {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  z-index: 3100;
  padding: 0 0 32px 0;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.18);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.payment-modal.active { transform: translateX(-50%) translateY(0); }
.payment-modal::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: #e0e0e0;
  border-radius: 4px;
  margin: 12px auto 0 auto;
}

.payment-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px 12px 24px;
  border-bottom: 1px solid var(--border-color);
}
.payment-modal-title { font-size: 16px; font-weight: 800; letter-spacing: 1px; color: var(--text-main); }
.payment-modal-close { background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 4px; transition: color var(--transition-fast); display: flex; align-items: center; }
.payment-modal-close:hover { color: var(--primary); }

.payment-modal-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: #f9f9f9;
  border-bottom: 1px solid var(--border-color);
}
.payment-summary-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.payment-summary-value { font-size: 18px; font-weight: 900; color: var(--text-main); }

.payment-methods-list { padding: 16px 24px; display: flex; flex-direction: column; gap: 10px; }

.payment-method-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  background: #fff;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}
.payment-method-card:hover {
  border-color: var(--primary);
  background: #fff5fd;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 101, 197,0.12);
}

.payment-method-icon { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pix-icon { background: #e8f9f1; color: #32bcad; }
.card-icon { background: #f0f0ff; color: #5a5fcf; }
.mp-icon { background: #e8f4fc; color: #009ee3; }

.payment-method-info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.payment-method-name { font-size: 14px; font-weight: 800; color: var(--text-main); }
.payment-method-desc { font-size: 11px; color: var(--text-muted); }

.payment-method-tag { font-size: 9px; font-weight: 800; letter-spacing: 1px; padding: 3px 7px; border-radius: 20px; text-transform: uppercase; flex-shrink: 0; }
.pix-tag { background: #e8f9f1; color: #1f9c87; }

.payment-method-arrow { color: #ccc; flex-shrink: 0; transition: color var(--transition-fast), transform var(--transition-fast); }
.payment-method-card:hover .payment-method-arrow { color: var(--primary); transform: translateX(3px); }

.payment-modal-security { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; color: var(--text-muted); padding: 0 24px; margin-top: 4px; }

/* Confirm Modal */
.payment-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 3200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.payment-confirm-modal.active { opacity: 1; visibility: visible; }

.payment-confirm-inner {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.payment-confirm-modal.active .payment-confirm-inner { transform: scale(1); }

.payment-confirm-screen { display: none; flex-direction: column; align-items: center; text-align: center; }
.payment-confirm-screen.visible { display: flex; }

.confirm-icon-wrap { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.pix-confirm { background: #e8f9f1; color: #32bcad; }
.mp-confirm { background: #e8f4fc; }

.confirm-title { font-size: 20px; font-weight: 800; color: var(--text-main); margin-bottom: 10px; }
.confirm-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 24px; max-width: 320px; }

.pix-qr-code { width: 160px; height: 160px; padding: 10px; border: 2px solid var(--border-dark); border-radius: 10px; margin-bottom: 18px; background: white; }
.qr-grid { width: 100%; height: 100%; display: grid; grid-template-columns: repeat(10, 1fr); grid-template-rows: repeat(10, 1fr); gap: 1px; }
.qr-cell { background: #000; border-radius: 1px; }
.qr-cell.empty { background: transparent; }

.pix-copy-row { display: flex; gap: 8px; width: 100%; margin-bottom: 10px; }
.pix-code-input { flex: 1; height: 40px; padding: 0 12px; border: 1.5px solid var(--border-dark); border-radius: 8px; font-size: 11px; color: var(--text-muted); background: #f8f8f8; outline: none; min-width: 0; }
.pix-copy-btn { padding: 0 16px; height: 40px; background: var(--primary-gradient); color: #fff; border: none; border-radius: 8px; font-family: var(--font-primary); font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: all var(--transition-fast); }
.pix-copy-btn:hover { opacity: 0.9; transform: scale(1.02); }
.pix-copy-btn.copied { background: linear-gradient(135deg, #2ea04b, #25893f); }

.pix-timer { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.confirm-total-row { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 14px 16px; background: #f8f8f8; border-radius: 10px; margin-bottom: 20px; font-size: 13px; color: var(--text-muted); }
.confirm-total-val { font-size: 18px; font-weight: 900; color: #2ea04b; }

.card-form { display: flex; flex-direction: column; gap: 14px; width: 100%; margin-bottom: 8px; text-align: left; }
.card-form-group { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card-form-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
.card-form-input { height: 46px; padding: 0 14px; border: 1.5px solid var(--border-dark); border-radius: 8px; font-family: var(--font-primary); font-size: 14px; color: var(--text-main); background: #fff; outline: none; transition: border-color var(--transition-fast); width: 100%; }
.card-form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 101, 197,0.1); }
.card-form-row { display: flex; gap: 12px; }
select.card-form-input { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

.mp-total-box { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 28px; background: #f0f9ff; border-radius: 12px; margin-bottom: 24px; width: 100%; }
.mp-total-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.mp-total-value { font-size: 28px; font-weight: 900; color: #009ee3; }

.btn-confirm-payment { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 16px; background: var(--primary-gradient); border: none; border-bottom: 4px solid var(--btn-border-bottom); border-radius: 8px; font-family: var(--font-primary); font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #fff; cursor: pointer; box-shadow: 0 4px 14px rgba(255, 101, 197,0.35); transition: all var(--transition-fast); margin-bottom: 4px; }
.btn-confirm-payment:hover { background: linear-gradient(180deg, #ff7ecc 0%, #f054b5 100%); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(255, 101, 197,0.5); }
.mp-btn { background: linear-gradient(135deg, #009ee3, #0077cc); border-bottom-color: #005fa3; box-shadow: 0 4px 14px rgba(0,158,227,0.35); }
.mp-btn:hover { background: linear-gradient(135deg, #00b0f5, #0090d8); box-shadow: 0 6px 18px rgba(0,158,227,0.5); }

.confirm-back-btn { background: none; border: none; cursor: pointer; font-family: var(--font-primary); font-size: 12px; font-weight: 600; color: var(--text-muted); padding: 8px; margin-top: 8px; transition: color var(--transition-fast); }
.confirm-back-btn:hover { color: var(--primary); }

/* Sucesso */
.success-animation { margin-bottom: 20px; }
.checkmark-circle { stroke: #2ea04b; stroke-width: 2; stroke-dasharray: 166; stroke-dashoffset: 166; }
.payment-confirm-modal.active #confirmSuccess .checkmark-circle { animation: stroke-circle 0.6s cubic-bezier(0.65, 0, 0.45, 1) 0.2s forwards; }
.checkmark-check { stroke: #2ea04b; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; }
.payment-confirm-modal.active #confirmSuccess .checkmark-check { animation: stroke-check 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.7s forwards; }
@keyframes stroke-circle { 100% { stroke-dashoffset: 0; } }
@keyframes stroke-check { 100% { stroke-dashoffset: 0; } }
.success-order-num { font-size: 13px; color: var(--text-muted); padding: 10px 18px; background: #f4f4f4; border-radius: 8px; margin-top: 4px; }
