/* ===== VARIÁVEIS DE CORES ===== */
:root {
  /* Cores principais */
  /* Cores principais */
--primary-color: #5C3A21;      /* Chocolate forte */
--primary-dark: #3B2415;       /* Cacau intenso */
--primary-light: #A9745B;      /* Chocolate ao leite */

/* Cores secundárias */
--secondary-color: #D87B4A;    /* Caramelo queimado */
--secondary-light: #F3B785;    /* Doce de leite */
--accent-color: #E84C3D;       /* Vermelho morango */

/* Cores neutras */
--background-color: #FAF3E6;   /* Creme claro */
--background-light: #FFFCF7;   /* Quase branco */
--text-dark: #2B1B13;          /* Marrom profundo */
--text-medium: #6B4E3D;        /* Marrom médio */
--text-light: #A68A79;         /* Marrom suave */
--white: #FFFFFF;

/* Cores de destaque */
--success-color: #4CAF50;      /* Verde para feedback positivo */
--warning-color: #FFB300;      /* Amarelo amanteigado */
--error-color: #E74C3C;        /* Vermelho para erros */

/* Sombras */
--shadow-light: 0 2px 10px rgba(92, 58, 33, 0.1);
--shadow-medium: 0 4px 20px rgba(92, 58, 33, 0.15);
--shadow-heavy: 0 8px 30px rgba(92, 58, 33, 0.2);

  /* Transições */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Bordas */
  --border-radius: 12px;
  --border-radius-small: 8px;
  --border-radius-large: 20px;
}

/* ===== RESET E BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--background-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity var(--transition-medium), visibility var(--transition-medium);
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.cookie-loader {
  text-align: center;
}

.cookie-spinning {
  font-size: 4rem;
  animation: spin 2s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cookie-loader p {
  font-size: 1.2rem;
  color: var(--text-medium);
  font-weight: 500;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-heavy);
  padding: 20px;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  animation: slideUp var(--transition-medium) forwards;
  max-width: 500px;
  margin: 0 auto;
  display: none;
}

@keyframes slideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-banner.hidden {
  animation: slideDown var(--transition-medium) forwards;
}

@keyframes slideDown {
  to {
    transform: translateY(100px);
    opacity: 0;
  }
}

.cookie-content {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.cookie-icon {
  font-size: 2rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.cookie-text h3 {
  color: var(--primary-color);
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.cookie-text p {
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.4;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.btn-accept, .btn-learn {
  padding: 8px 16px;
  border: none;
  border-radius: var(--border-radius-small);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.9rem;
}

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

.btn-accept:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-learn {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition-medium);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-light);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo h2 {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.5rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--transition-fast);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-button {
  position: relative;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 10px 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1.1rem;
  box-shadow: var(--shadow-light);
}

.cart-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent-color);
  color: var(--white);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 20px;
}

.cart-count.hidden {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  transition: all var(--transition-fast);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 50px;
  background: linear-gradient(135deg, var(--background-light) 0%, var(--background-color) 100%);
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  z-index: 2;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.3rem;
  color: var(--text-medium);
  margin-bottom: 2rem;
  font-weight: 400;
}
.hero-content .hero-text .cta-button {
text-decoration: none;
}

/* Fix for "Try It Now" button size */
.new-product-text .cta-button.add-cart-btn {
  width: auto;
}
.cta-button {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  border: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-medium);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-slow);
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
}
.hero-image {
  position: relative;
  z-index: 1; /* Garante que a imagem do herói fique na frente */
  margin-bottom: -50px; /* Puxa a próxima seção para cima, sobrepondo a imagem */
}
.hero-image img {
  width: 100%;
  height: auto;
}

/* ===== NEW PRODUCT SECTION ===== */
.new-product {
  padding: 80px 0;
  background: var(--white);
  margin-top: 50px; 
}

.new-product-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.new-product-image img {
  width: 100%;
  height: auto;
}

.badge {
  background: var(--accent-color);
  color: var(--white);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 1rem;
}

.new-product-text h2 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 700;
}

.new-product-text p {
  font-size: 1.1rem;
  color: var(--text-medium);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* ===== PRODUCT PRESENTATION ===== */
.product-presentation {
  padding: 80px 0;
  background: var(--background-light);
}

.presentation-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.presentation-text h2 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.presentation-text p {
  font-size: 1.1rem;
  color: var(--text-medium);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.differentials {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.differential {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 15px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: transform var(--transition-fast);
}

.differential:hover {
  transform: translateX(10px);
}

.differential i {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.differential span {
  font-weight: 500;
  color: var(--text-dark);
}

.presentation-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* ===== CATALOG SECTION ===== */
.catalog {
  padding: 80px 0;
  background: var(--white);
}

.catalog h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
  font-weight: 700;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  border-radius: 25px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary-color);
  color: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  overflow: hidden;
  transition: all var(--transition-medium);
  position: relative;
  display: flex; /* Adicione esta linha */
  flex-direction: column; /* Adicione esta linha */
}
.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.product-card img {
  width: 100%;
  height: 200px; /* Você pode manter ou remover a altura dependendo do design desejado */
  object-fit: contain; /* Alterado de 'cover' para 'contain' */
}
.product-card h3 {
  padding: 1rem 1rem 0.5rem;
  font-size: 1.3rem;
  color: var(--text-dark);
  font-weight: 600;
}

.product-card p {
  padding: 0 1rem;
  color: var(--text-medium);
  font-size: 0.9rem;
  line-height: 1.5;
  min-height: 45px; /* Adicione esta linha para garantir a altura de 2 linhas */
}
.price {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.add-cart-btn {
  width: 100%;
  padding: 15px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
  margin-top: auto; /* Adicione esta linha */
}
.add-cart-btn:hover {
  background: var(--primary-dark);
}
/* ===== ESTILOS PARA O BOTÃO "VER MAIS" ===== */
.product-card.hidden {
  display: none;
}

/* ===== ESTILO PARA O BOTÃO VER MAIS (CORREÇÃO) ===== */
.see-more-btn {
  padding: 10px 20px;
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  border-radius: 25px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: 500;
}

.see-more-btn:hover {
  background: var(--primary-color);
  color: var(--white);
}
/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 80px 0;
  background: var(--background-light);
}

.testimonials h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 3rem;
  font-weight: 700;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: transform var(--transition-medium);
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.testimonial-header img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-info h4 {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.stars {
  color: var(--warning-color);
}

.testimonial-card p {
  color: var(--text-medium);
  font-style: italic;
  line-height: 1.6;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 80px 0;
  background: var(--white);
}

.how-it-works h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 3rem;
  font-weight: 700;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.step {
  text-align: center;
  padding: 2rem;
  background: var(--background-light);
  border-radius: var(--border-radius);
  transition: transform var(--transition-medium);
}

.step:hover {
  transform: translateY(-10px);
}

.step-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: transform var(--transition-medium);
}

.step:hover .step-icon {
  transform: scale(1.1);
}

.step-icon i {
  font-size: 2rem;
  color: var(--white);
}

.step h3 {
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 600;
}

.step p {
  color: var(--text-medium);
  line-height: 1.6;
}

/* ===== ABOUT US ===== */
.about-us {
  padding: 80px 0;
  background: var(--background-light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-medium);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about-us .about-image img {
width: 400px; 
 border-radius: 10px; 
}
/* ===== CONTACT SECTION ===== */
.contact {
  padding: 80px 0;
  background: var(--white);
}

.contact h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 3rem;
  font-weight: 700;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-item i {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-item h4 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-item p {
  color: var(--text-medium);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
}

.social-links a {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

.whatsapp-btn {
  background: #25D366;
  color: var(--white);
  border: none;
  padding: 15px 25px;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 10px;
}

.whatsapp-btn:hover {
  background: #128C7E;
  transform: translateY(-2px);
}

.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--secondary-light);
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--white);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: var(--secondary-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--text-medium);
  color: var(--text-light);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    /* A linha 'height' foi removida para que a altura seja automática */
    background: var(--white);
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 2rem; /* Adicionado para dar um espaço embaixo */
    transition: left var(--transition-medium);
    box-shadow: var(--shadow-medium);
    border-bottom-left-radius: var(--border-radius); /* Borda arredondada */
    border-bottom-right-radius: var(--border-radius); /* Borda arredondada */
  }

  .nav-menu.active {
    left: 0;
  }
  
  .nav-actions {
    gap: 0.5rem;
  }
  
  .cart-modal-content, .checkout-modal-content {
    width: 95%;
    margin: 10px;
  }
  
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .cart-item-controls {
    width: 100%;
    justify-content: space-between;
  }
  
  .cart-actions {
    flex-direction: column;
  }
  
  .checkout-footer {
    flex-direction: column;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .new-product-content,
  .presentation-content,
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-buttons {
    justify-content: center;
  }
  
  .filter-buttons {
    justify-content: center;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-text p {
    font-size: 1.1rem;
  }
  
  .new-product-text h2,
  .presentation-text h2,
  .about-text h2,
  .catalog h2,
  .testimonials h2,
  .how-it-works h2,
  .contact h2 {
    font-size: 2rem;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .cookie-banner {
    left: 10px;
    right: 10px;
    padding: 15px;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .cart-header h2, .checkout-header h2 {
    font-size: 1.2rem;
  }
  
  .cart-body, .checkout-body {
    padding: 15px;
  }
  
  .cart-footer, .checkout-footer {
    padding: 15px;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* ===== UTILITY CLASSES ===== */
.hidden {
  display: none !important;
}

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

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }


/* ===== CART MODAL ===== */
.cart-modal, .checkout-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.cart-modal.active, .checkout-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn var(--transition-medium) ease;
}

.cart-modal-content, .checkout-modal-content {
  background: var(--white);
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-heavy);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
  animation: slideUp var(--transition-medium) ease;
}

.checkout-modal-content {
  max-width: 600px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cart-header, .checkout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
  background: var(--background-light);
}

.cart-header h2, .checkout-header h2 {
  color: var(--text-dark);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.close-modal {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-medium);
  cursor: pointer;
  transition: color var(--transition-fast);
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.cart-body, .checkout-body {
  padding: 20px;
  max-height: 400px;
  overflow-y: auto;
}

.checkout-body {
  max-height: 500px;
}

/* Empty Cart */
.empty-cart {
  text-align: center;
  padding: 40px 20px;
}

.empty-cart-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-cart h3 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.empty-cart p {
  color: var(--text-medium);
  margin-bottom: 2rem;
}

.continue-shopping-btn {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.continue-shopping-btn:hover {
  background: var(--primary-dark);
}

/* Cart Items */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: var(--background-light);
  border-radius: var(--border-radius);
  transition: transform var(--transition-fast);
}

.cart-item:hover {
  transform: translateX(5px);
}

.cart-item-image {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-small);
  object-fit: cover;
}

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

.cart-item-name {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.cart-item-price {
  color: var(--primary-color);
  font-weight: 500;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border-radius: var(--border-radius-small);
  padding: 5px;
}

.quantity-btn {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: background var(--transition-fast);
}

.quantity-btn:hover {
  background: var(--primary-dark);
}

.quantity-btn:disabled {
  background: var(--text-light);
  cursor: not-allowed;
}

.quantity-display {
  min-width: 30px;
  text-align: center;
  font-weight: 600;
  color: var(--text-dark);
}

.remove-item-btn {
  background: var(--error-color);
  color: var(--white);
  border: none;
  padding: 8px;
  border-radius: var(--border-radius-small);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.remove-item-btn:hover {
  background: #d32f2f;
}

/* Cart Footer */
.cart-footer {
  padding: 20px;
  border-top: 1px solid #eee;
  background: var(--background-light);
}

.cart-total {
  margin-bottom: 20px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--text-medium);
}

.total-final {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
  border-top: 1px solid #ddd;
  padding-top: 8px;
  margin-top: 8px;
}

.cart-actions {
  display: flex;
  gap: 10px;
}

.clear-cart-btn {
  flex: 1;
  background: transparent;
  color: var(--error-color);
  border: 2px solid var(--error-color);
  padding: 12px;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.clear-cart-btn:hover {
  background: var(--error-color);
  color: var(--white);
}

.checkout-btn {
  flex: 2;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 12px;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.checkout-btn:hover {
  background: var(--primary-dark);
}

/* ===== CHECKOUT MODAL ===== */
.checkout-form {
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: var(--border-radius-small);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.order-summary {
  background: var(--background-light);
  padding: 20px;
  border-radius: var(--border-radius);
  margin-top: 20px;
}

.order-summary h3 {
  color: var(--text-dark);
  margin-bottom: 15px;
}

.checkout-items {
  margin-bottom: 15px;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
}

.checkout-item:last-child {
  border-bottom: none;
}

.checkout-item-name {
  font-weight: 500;
}

.checkout-item-quantity {
  color: var(--text-medium);
  font-size: 0.9rem;
}

.checkout-item-price {
  font-weight: 600;
  color: var(--primary-color);
}

.checkout-total {
  text-align: right;
  font-size: 1.2rem;
  color: var(--text-dark);
  border-top: 2px solid var(--primary-color);
  padding-top: 10px;
}

.checkout-footer {
  padding: 20px;
  border-top: 1px solid #eee;
  background: var(--background-light);
  display: flex;
  gap: 15px;
}

.cancel-checkout-btn {
  flex: 1;
  background: transparent;
  color: var(--text-medium);
  border: 2px solid var(--text-medium);
  padding: 12px;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cancel-checkout-btn:hover {
  background: var(--text-medium);
  color: var(--white);
}

.confirm-order-btn {
  flex: 2;
  background: var(--success-color);
  color: var(--white);
  border: none;
  padding: 12px;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.confirm-order-btn:hover {
  background: #45a049;
}

/* ===== RESPONSIVE CART ===== */
@media (max-width: 768px) {
  .nav-actions {
    gap: 0.5rem;
  }
  
  .cart-modal-content, .checkout-modal-content {
    width: 95%;
    margin: 10px;
  }
  
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .cart-item-controls {
    width: 100%;
    justify-content: space-between;
  }
  
  .cart-actions {
    flex-direction: column;
  }
  
  .checkout-footer {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .cart-header h2, .checkout-header h2 {
    font-size: 1.2rem;
  }
  
  .cart-body, .checkout-body {
    padding: 15px;
  }
  
  .cart-footer, .checkout-footer {
    padding: 15px;
  }
}

