/* =========================================
1. RESET E VARIÁVEIS GLOBAIS
 ========================================= */
:root {
  /* Paleta de Cores JKB Store */
  --color-orange: #ff5722;
  --color-orange-hover: #e64a19;
  --color-blue-dark: #1a0b52;
  --color-blue-btn: #2d1b70;
  --color-text-dark: #1f1f1f;
  --color-text-light: #64626b;
  --color-white: #ffffff;
  --color-bg-light: #f9f9f9;
  --color-gray-border: #e0e0e0;

  /* Configurações */
  --container-width: 1820px;
  --border-radius-pill: 50px;
  --border-radius-card: 16px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: "Poppins", sans-serif;
  color: var(--color-text-dark);
  background-color: var(--color-white);
  line-height: 1.5;
  overflow-x: hidden;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: var(--border-radius-card);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-orange {
  background-color: var(--color-orange);
  color: var(--color-white);
}

.btn-orange:hover {
  background-color: var(--color-orange-hover);
  transform: translateY(-2px);
}

.btn-dark {
  background-color: var(--color-blue-btn);
  color: var(--color-white);
}

.btn-dark:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.2;
}

/* =========================================
2. NAVBAR
========================================= */
.navbar {
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-radius: 0 0 24px 24px;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease-in-out;
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 1);
}

.navbar.scrolled .logo-img {
  height: 40px;
  width: 40px;
  transition: all 0.3s ease-in-out;
  border-radius: 0;
}

.navbar.scrolled .nav-links a {
  font-size: 1rem;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-menu-wrapper {
  display: flex;
  align-items: center;
  gap: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 5px;
}

.logo-img {
  height: 70%;
  width: 70%;
  transition: all 0.3s ease-in-out;
  border-radius: 0;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-blue-dark);
  font-weight: 500;
  font-size: 1.2rem;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--color-orange);
}

.nav-icons {
  display: flex;
  gap: 60px;
  align-items: center;
}

.nav-icons i {
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-blue-dark);
  transition: var(--transition);
}

.nav-icons i:hover {
  color: var(--color-orange);
}

.mobile-toggle,
.mobile-menu-left,
.mobile-inner-header {
  display: none;
}

.nav-header-mobile {
  display: contents;
}

.mobile-close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-blue-dark);
  cursor: pointer;
}

/* =========================================
   DROPDOWN MENU
========================================= */

.dropdown-trigger {
  position: relative;
  height: 100%;
}

.dropdown-menu {
  position: absolute;
  top: 40px;
  left: -20px;
  background-color: #fff;
  width: 220px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 15px 0;
  list-style: none;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 25px;
  font-size: 1rem;
  font-weight: 400;
  transition:
    background 0.2s,
    color 0.2s;
}

.dropdown-menu li a:hover {
  background-color: #f5f5f5;
  color: var(--color-orange);
}

.dropdown-menu .divider {
  background-color: #eee;
  margin: 8px 0;
}

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

.dropdown-trigger.menu-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-trigger:hover .fa-chevron-down,
.dropdown-trigger.menu-open .fa-chevron-down {
  transform: rotate(180deg);
}

.fa-chevron-down {
  transition: transform 0.3s ease;
}

/* =========================================
   PÁGINA BLOG (Post Interno)
========================================= */

.blog-post-section {
  padding: 0 0 100px 0;
  background-color: #fff;
}

.blog-hero {
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  position: relative;
  background-blend-mode: multiply;
  background-color: rgba(0, 0, 0, 0.3);
}

.h-100 {
  height: 100%;
}

.blog-hero-content {
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 40px;
}

.blog-title {
  color: var(--color-white);
  font-size: 4rem;
  font-weight: 800;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* --- BARRA SUPERIOR (Filtros) --- */
.blog-top-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.post-count {
  font-size: 0.85rem;
  color: #666;
}

.btn-filter {
  background-color: transparent;
  border: 1px solid var(--color-blue-dark); /* #1a0b52 */
  color: var(--color-blue-dark);
  padding: 8px 25px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.btn-filter:hover {
  background-color: var(--color-blue-dark);
  color: white;
}

/* Container principal do Post (Mais estreito para leitura confortável) */
.single-post-container {
  max-width: 1000px; /* Limita a largura do texto */
  margin: 0 auto; /* Centraliza na tela */
  padding-bottom: 60px;
}

/* Imagem de Destaque */
.post-featured-image {
  width: 100%;
  margin-bottom: 40px;
  border-radius: 24px;
  overflow: hidden;
}

.post-featured-image img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

/* Cabeçalho do Post */
.post-header {
  margin-bottom: 40px;
}

.post-main-title {
  font-size: 2.2rem;
  color: var(--color-blue-dark); /* #1a0b52 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.post-meta {
  font-size: 0.8rem;
  color: #888;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Corpo do Post */
.post-body p {
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 25px;
  text-align: justify; /* Baseado na formatação formal de texto longo */
}

/* Grid Interno de Imagens */
.post-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Duas colunas iguais */
  gap: 30px;
  margin: 40px 0;
}

.post-image-grid img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
  aspect-ratio: 1 / 1; /* Mantém as imagens quadradas conforme a foto de referência */
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
  .blog-hero {
    height: 250px;
  }

  .blog-title {
    font-size: 3rem;
  }

  .blog-top-bar {
    justify-content: space-between; /* Espalha botão e contagem no mobile */
  }

  .post-main-title {
    font-size: 1.8rem;
  }

  .post-image-grid {
    grid-template-columns: 1fr; /* As imagens ficam uma embaixo da outra no celular */
    gap: 20px;
  }

  .post-featured-image img {
    max-height: 300px; /* Reduz altura da imagem principal no mobile */
  }
}

/* =========================================
   DROPDOWN DE FILTROS DO BLOG
========================================= */

.filter-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.btn-filter i {
  transition: transform 0.3s ease;
}

/* Gira a setinha quando o menu está aberto */
.btn-filter.active i {
  transform: rotate(180deg);
}

.filter-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background-color: #fff;
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 10px 0;
  list-style: none;
  z-index: 100;

  /* Escondido por padrão com transição */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

/* Classe ativada via JavaScript */
.filter-dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.filter-dropdown-menu li {
  padding: 0;
}

.filter-dropdown-menu li a {
  display: block;
  padding: 10px 25px;
  font-size: 0.9rem;
  color: var(--color-text-light); /* Cinza claro */
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
  text-align: left;
}

.filter-dropdown-menu li a:hover {
  background-color: #f5f5f5;
  color: var(--color-orange);
}

/* =========================================
11. FOOTER
========================================= */
.footer {
  background-color: #f0f0f0;
  padding: 50px 64px;
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
  padding-top: 20px;
}

.footer-logo img {
  height: 80px;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  gap: 80px;
  margin-left: auto;
  margin-right: 60px;
}

.footer-links h4 {
  color: var(--color-blue-dark);
  margin-bottom: 15px;
  font-size: 1rem;
}

.footer-links ul {
  list-style: none;
}

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

.footer-links a {
  text-decoration: none;
  color: var(--color-blue-dark);
  transition: var(--transition);
  font-weight: 700;
}

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

.social-links {
  text-align: left;
  border-left: 2px solid #1a0b52;
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-height: 100px;
}

.social-links p {
  font-weight: 400;
  color: var(--color-blue-dark);
}

.social-links a {
  color: var(--color-blue-dark);
  font-size: 1.8rem;
  transition: var(--transition);
  display: inline-block;
}

.social-links a:hover {
  color: var(--color-orange);
  transform: translateY(-3px);
}

.copyright {
  text-align: left;
  border-top: 1px solid #d1d1d1;
  padding-top: 30px;
  color: var(--color-blue-dark);
  font-size: 0.85rem;
  max-width: 100%;
  margin: 0 auto;
}

/* =========================================
   POPUPS VISUAL (Mantido igual)
========================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-close {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: #1a0b52;
  cursor: pointer;
  float: right;
}
.login-box {
  background: white;
  padding: 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 800px;
}
.cart-sidebar {
  background: white;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  padding: 30px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s ease;
}
.modal-overlay.active .cart-sidebar {
  transform: translateX(0);
}
.cart-overlay-wrapper {
  justify-content: flex-end;
}

/* =========================================
   RESPONSIVIDADE (MOBILE & TABLET)
========================================= */

@media (max-width: 1025px) {
  .nav-content {
    justify-content: space-between;
    padding: 0 20px;
  }

  .nav-header-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    z-index: 1001;
  }

  .mobile-toggle {
    display: block;
    font-size: 1.8rem;
    color: var(--color-blue-dark);
    border: none;
    background: transparent;
    cursor: pointer;
  }

  /* --- 2. O MENU OVERLAY (Wrapper Geral) --- */
  .nav-menu-wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: white;
    z-index: 2000;
    overflow: hidden;
  }

  .nav-menu-wrapper.active {
    display: grid;
    grid-template-columns: 35% 65%;
    animation: slideIn 0.3s ease-out;
  }

  /* --- 3. COLUNA ESQUERDA (ROXA) --- */
  .mobile-menu-left {
    display: none;
    align-items: center;
    background: linear-gradient(180deg, #1a0b52 0%, #2d1b70 100%);
    padding: 40px 20px;
    text-align: left;
    color: white;
    position: relative;
  }

  .mobile-promo-content h2 {
    font-size: 1.8rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: white;
  }

  .mobile-promo-content h2 strong {
    font-weight: 800;
    font-size: 2.2rem;
  }

  .btn-outline-white {
    border: 1px solid white;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 30px;
  }

  .promo-arrow {
    border: 1px solid white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
  }

  /* --- 4. COLUNA DIREITA (BRANCA - CONTEÚDO) --- */
  .mobile-menu-right {
    display: flex;
    flex-direction: column;
    background-color: white;
    height: 100%;
    overflow-y: auto;
  }

  .mobile-inner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    flex-direction: row-reverse;
  }

  .mobile-logo-inner {
    height: 40px;
    width: 40px;
    display: none;
  }

  .mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .search-icon-mobile {
    font-size: 1.5rem;
    color: var(--color-blue-dark);
  }

  .nav-icons {
    display: flex;
    justify-content: space-around;
    padding: 30px 40px;
    gap: 20px;
  }

  .nav-icons i {
    font-size: 1.8rem;
  }

  .desktop-only {
    display: none !important;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 0 40px;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid #f5f5f5;
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-blue-dark);
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    padding: 0 0 20px 20px;
    display: none;
    background: white;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .dropdown-trigger.menu-open .dropdown-menu {
    display: block;
  }

  .dropdown-menu li a {
    font-size: 1rem;
    font-weight: 400;
    padding: 10px 0;
  }

  .tool-card {
    width: calc(50% - 15px);
    height: 35vh;
  }
}
@media (max-width: 1025px) {
  .nav-content {
    justify-content: space-between;
    padding: 0 20px;
  }

  .footer-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }

  .footer-links {
    margin: 0;
    gap: 10px;
    justify-content: center;
    flex-direction: column;
  }
  .social-links {
    border-left: none;
    padding-left: 0;
    border-top: 2px solid #1a0b52;
    padding-top: 20px;
    width: 50%;
    align-items: center;
    text-align: center;
    min-height: auto;
  }

  .logo-img {
    height: 60%;
    width: 60%;
    border-radius: 0;
  }

  .nav-header-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    z-index: 1001;
  }

  .mobile-toggle {
    display: block;
    font-size: 1.8rem;
    color: var(--color-blue-dark);
    border: none;
    background: transparent;
    cursor: pointer;
  }

  .nav-menu-wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: white;
    z-index: 2000;
    overflow: hidden;
  }

  .nav-menu-wrapper.active {
    display: grid;
    grid-template-columns: 35% 65%;
    animation: slideIn 0.3s ease-out;
  }

  .nav-links {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
  }

  .nav-icons {
    justify-content: center;
    gap: 30px;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    background-color: #f9f9f9;
    width: 100%;
    text-align: center;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .dropdown-trigger:hover .dropdown-menu {
    display: block;
  }
}

@media (max-width: 600px) {
  .nav-menu-wrapper.active {
    grid-template-columns: 10% 90%;
  }
  .mobile-menu-left {
    display: none;
  }
  .mobile-promo-content {
    display: none;
  }
  .mobile-menu-left::after {
    content: "\f060";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: white;
    border: 1px solid white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 20px;
  }

  .nav-icons i {
    font-size: 1rem;
  }

  .nav-links a {
    font-size: 1rem;
  }

  .dropdown-menu li a {
    font-size: 0.8rem;
  }

  .tool-card {
    width: 100%;
    height: 40vh;
    min-width: 250px;
  }
  .page-title {
    font-size: 2rem;
    padding: 0;
    text-align: center;
  }
}

@media (min-width: 993px) {
  .mobile-menu-left,
  .mobile-inner-header {
    display: none !important;
  }

  .mobile-menu-right {
    display: flex;
    flex-direction: row-reverse;
    gap: 100px;
  }
}

@media (max-width: 1025px) {
  .nav-menu-wrapper.active {
    display: flex;
    justify-content: end;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    background: transparent;
  }

  .mobile-close-btn {
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #1a0b52;
  }

  .mobile-menu-right {
    background: white;
    height: 100vh;
    width: 60vw;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }
}

@media (min-width: 1026px) {
  .mobile-menu-left,
  .mobile-inner-header,
  .mobile-toggle,
  .mobile-close-btn {
    display: none !important;
  }
  .mobile-menu-right {
    display: flex;
    flex-direction: row-reverse;
    gap: 64px;
  }
}

/* =========================================
   POPUPS (LOGIN & CARRINHO) - ESTILO VISUAL
========================================= */

/* Fundo Escuro (Overlay) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;

  /* Escondido por padrão */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* --- ESTILOS COMUNS --- */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.modal-title {
  font-size: 2rem; /* Bem grande como na imagem */
  color: var(--color-blue-dark);
  font-weight: 800;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--color-blue-dark);
  cursor: pointer;
}

/* --- MODAL LOGIN (CENTRAL) --- */
.login-box {
  background: white;
  width: 90%;
  max-width: 800px; /* Mais largo conforme imagem */
  padding: 40px 50px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  position: relative;
}

.login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Lado a lado */
  gap: 30px;
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--color-blue-dark);
  font-weight: 500;
}

.input-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
}

/* Área do meio: Recaptcha e Botão */
.login-middle-actions {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.recaptcha-placeholder {
  border: 1px solid #ddd;
  background: #f9f9f9;
  padding: 10px 15px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 200px;
  color: #555;
  font-size: 0.8rem;
}

.login-btn-area {
  text-align: right;
}

.forgot-pass {
  display: block;
  color: var(--color-blue-dark);
  text-decoration: underline;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.btn-login {
  background-color: var(--color-blue-dark);
  color: white;
  padding: 12px 40px;
  border-radius: 12px;
  font-weight: 700;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}

/* Footer do Login */
.login-divider {
  height: 1px;
  background-color: #ddd;
  margin-bottom: 30px;
}

.login-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-text h3 {
  color: var(--color-blue-dark);
  font-size: 1.2rem;
  margin-bottom: 5px;
}
.footer-text p {
  font-size: 0.9rem;
  color: #555;
  max-width: 400px;
}

.btn-register {
  background: transparent;
  border: 2px solid var(--color-blue-dark);
  color: var(--color-blue-dark);
  padding: 10px 30px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s;
}
.btn-register:hover {
  background: var(--color-blue-dark);
  color: white;
}

/* --- MODAL CARRINHO (SIDEBAR) --- */
.cart-overlay-wrapper {
  justify-content: flex-end; /* Alinha à direita */
}

.cart-sidebar {
  background: white;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  padding: 30px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%); /* Escondido na direita */
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal-overlay.active .cart-sidebar {
  transform: translateX(0);
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding-right: 10px; /* Espaço para scrollbar */
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.cart-img {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}
.cart-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cart-info {
  flex: 1;
}

.cart-info h4 {
  color: var(--color-blue-dark);
  font-size: 0.85rem;
  line-height: 1.2;
  margin-bottom: 5px;
}
.cart-desc {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 5px;
}
.cart-price {
  color: var(--color-blue-dark);
  font-weight: 800;
  font-size: 1.1rem;
}

/* Botão de Quantidade (Pílula) */
.cart-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--color-blue-dark);
  border-radius: 50px;
  padding: 5px 10px;
  min-width: 60px;
}

.cart-qty button {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: var(--color-blue-dark);
  font-weight: 700;
  cursor: pointer;
}

.cart-qty span {
  font-weight: 700;
  color: var(--color-blue-dark);
}

/* Footer Carrinho */
.cart-footer-area {
  border-top: 1px solid #ddd;
  padding-top: 20px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  color: var(--color-blue-dark);
  font-size: 1.2rem;
}
.cart-total-row .total-price {
  font-weight: 800;
}

.cart-inputs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.btn-checkout {
  background-color: var(--color-blue-dark);
  color: white;
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
  .login-grid {
    grid-template-columns: 1fr;
  }
  .login-footer {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  .login-box {
    padding: 20px;
    width: 75%;
  }
  .cart-sidebar {
    width: 80%;
    height: 70%;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
