/* --- PALETA DE CORES (Baseada no palette.scss) --- */
:root {
  /* Cores da Paleta */
  --faded-copper: #a37045;
  --toffee-brown: #936948;
  --olive-wood:   #835937;
  --brown-bark:   #613b1a;
  --dark-walnut:  #4d2b0e;
  
  /* Cores Funcionais */
  --text-main:    var(--brown-bark);
  --text-dark:    var(--dark-walnut);
  --primary:      var(--olive-wood);
  --accent:       var(--faded-copper);
  --bg-light:     #fbf9f6;
  --white:        #ffffff;
  --border-color: #e5dfd5;

  --toffee-brown: #8B5A3D;    /* Cor Chocolate */
  --text-main: #444444;       /* Texto Cinza Escuro */
  --bg-cream: #fffcf5;        /* Fundo Creme Suave */
}

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

/* --- TIPOGRAFIA REFINADA --- */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-light);
}

p {
    text-align: center;
}

h1, h2, h3, .logo, .price-lg, .hero h2 {
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.5px;
}

/* Imagens Gerais */
img {
  max-width: 100%;
  height: auto;
}

/* Containers */
.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* --- HEADER SOFISTICADO --- */
.header {
  background: var(--white);
  padding: 1.2rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 50;
}

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

/* Logo */
.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Navegação */
.nav {
  display: flex;
  align-items: center;
}

.nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  position: relative;
  transition: color 0.3s;
}

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

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

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

/* --- MENU DROPDOWN --- */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown .dropbtn {
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--white);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
  z-index: 100;
  border-radius: 4px;
  top: 100%;
  left: 0;
  padding: 0.5rem 0;
  border: 1px solid var(--border-color);
}

.dropdown-content a {
  color: var(--text-main);
  padding: 10px 16px;
  text-decoration: none;
  display: block;
  margin-left: 0;
  font-size: 0.95rem;
  text-align: left;
  text-transform: none;
}

.dropdown-content a:hover {
  background-color: #f4ecd8;
  color: var(--primary);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* --- HERO (Versão Clean - Sem Imagem de Fundo) --- */
/* .hero { */
  /* Gradiente elegante usando as cores da paleta */
/* background: linear-gradient(135deg, var(--dark-walnut), var(--brown-bark)); */
  
/* display: flex; */
/* align-items: center; */
/* justify-content: center; */
/* min-height: 500px; */
/* color: var(--white); */
/* text-align: center; */
/* padding: 6rem 0; */
/* } */

.hero {
  /* Alinhamento do conteúdo */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  
  /* Tamanho */
  min-height: 500px;
  padding: 6rem 0;
  color: var(--white);
  
  background-image: url('./hero.webp'); 
  background-size: cover;
  background-position: center;
}

.hero h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
  font-weight: 300;
  opacity: 0.9;
}

/* --- BOTÕES "BOUTIQUE" --- */
.primary-btn, .btn-checkout, .btn-add-cart {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  border-radius: 50px;
  padding: 1rem 2rem;
  box-shadow: 0 4px 15px rgba(131, 89, 55, 0.2);
  transition: all 0.3s ease;
  background: var(--primary);
  color: var(--white);
  border: none;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
}

.primary-btn:hover, .btn-checkout:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(131, 89, 55, 0.3);
  background: var(--accent);
}

.btn-add-cart {
  padding: 0.6rem 1.2rem;
  border-radius: 4px; /* Quadrado nos cards */
  background: var(--white);
  border: 1px solid var(--primary);
  color: var(--primary);
  margin-top: auto;
  width: auto;
}

.btn-add-cart:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* --- CARDS DE PRODUTOS --- */
.card, .product-item {
  background: var(--white);
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Espalha o conteúdo empurrando os botões pro final */
  height: 100%;
}

.card:hover, .product-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.card img, .product-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.card h3, .product-item h3 {
  font-weight: 700;
  margin-top: 10px;
  margin-: 10px;
  font-size: 1.1rem;
  text-align: center;
  color: var(--text-dark);
  padding: 0 10px;
  line-height: 1.4em;
  height: 2.8em;
  
  /* Proteção p nomes mt grandes */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;     /* Corta o texto na segunda linha e põe "..." */
  -webkit-box-orient: vertical;
}

.card p.price, .product-item .price {
  font-family: 'Lato', sans-serif;
  color: var(--olive-wood);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.product-item .card-info {
  padding: 1rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-tag {
  font-size: 0.85rem;
  color: var(--toffee-brown);
  margin-bottom: 0.5rem;
  text-transform: capitalize;
}

/* Seção Sobre */
.sobre {
  background: var(--white);
  padding: 4rem 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

/* Contato */
.contato {
  padding: 4rem 0;
  text-align: center;
  background-color: var(--bg-light);
}

.secondary-btn {
  background: var(--brown-bark);
  color: var(--white);
  padding: .6rem 1.2rem;
  text-decoration: none;
  border-radius: 4px;
  display: inline-block;
  margin-top: 0.5rem;
  transition: background 0.3s;
}

.secondary-btn:hover {
  background: var(--faded-copper);
}

/* --- FOOTER --- */
.footer {
  background: var(--dark-walnut);
  color: #e0d6c6;
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-top: auto;
}

/* --- PÁGINA DE PRODUTOS (LAYOUT) --- */
.produtos-layout {
  display: flex;
  padding: 3rem 0;
    /* gap: 2rem; */
  gap: 20px;
  align-items: flex-start;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.filters-sidebar {
  width: 250px;
  background: #f9f9f9;
    /* padding: 1.5rem; */
  padding: 15px;
  border: 1px solid var(--border-color);
    /* border-radius: 12px; */
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
  height: fit-content;
}

.products-grid {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
    /* gap: 1.5rem; */
  gap: 20px;
}

.product-item {
  width: calc(33.333% - 1rem);
}

/* Filtros */
/* .filter-group { margin-bottom: 2rem; } */
.filter-group { margin-bottom: 20px; }
.filter-group h3 {
  font-size: 1.1rem;
    /* margin-bottom: 0.8rem; */
  margin-bottom: 10px;
  color: #555;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.filter-group label { display: block;
  margin-bottom: 5px;
  cursor: pointer;
}

/* seletor de preços */
.range-slider-container {
   position: relative;
   width: 100%;
   height: 30px;
   margin-top: 10px;
}

/* O trilho cinza no fundo */
.slider-track {
    position: absolute;
    width: 100%;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 5px;
    top: 50%;
    transform: translateY(-50%);
}

/* Faz as barras originais ficarem invisíveis, exceto a "bolinha" (thumb) */
.range-slider-container input[type="range"] {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    -webkit-appearance: none;
    appearance: none;
    background: none;
    pointer-events: none; /* Deixa o clique passar reto pelo trilho invisível */
    margin: 0;
    outline: none;
}

/* Estilo da "bolinha" (Puxador) para Chrome, Safari, Edge */
.range-slider-container input[type="range"]::-webkit-slider-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #d4a373; /* Cor principal do seu tema */
    pointer-events: auto; /* Torna a bolinha clicável novamente */
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: transform 0.1s;
}

.range-slider-container input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15); /* Efeito de crescer ao passar o mouse */
}

/* Estilo da "bolinha" para Firefox */
.range-slider-container input[type="range"]::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #d4a373;
    pointer-events: auto;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: transform 0.1s;
}

.range-slider-container input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.15);
}

/* --- DETALHE PRODUTO --- */
.breadcrumb {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
  margin: 2rem auto;
}

.breadcrumb a { color: var(--primary); text-decoration: none; }

.product-detail { display: flex; gap: 3rem; margin-bottom: 4rem; }
.product-gallery { flex: 1; }
.main-image {
  width: 100%; height: 450px; object-fit: cover;
  border-radius: 12px; margin-bottom: 1rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.thumbnails { display: flex; gap: 10px; }
.thumbnails img {
  width: 80px; height: 80px; object-fit: cover;
  border-radius: 8px; cursor: pointer; opacity: 0.7;
  transition: all 0.3s;
}
.thumbnails img:hover { opacity: 1; transform: scale(1.05); }

.product-info { flex: 1; }
.category-label {
  background: #f4ecd8; color: var(--primary);
  padding: 4px 10px; border-radius: 20px;
  font-size: 0.75rem; text-transform: uppercase; font-weight: bold;
  letter-spacing: 1px;
}

.product-info h1 {
  font-size: 2.5rem; margin: 1rem 0 0.5rem 0;
  color: var(--text-dark);
}

.description h3 {
  font-size: 1.2rem; margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem; color: var(--text-dark);
}

.specs {
  background: var(--white); padding: 1.5rem;
  border-radius: 12px; margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  list-style: none;
}

/* --- CARRINHO & MODAL --- */
.cart-btn-header {
  position: relative; cursor: pointer; margin-left: 20px;
  display: flex; align-items: center; color: var(--text-dark);
  font-weight: bold; font-size: 0.9rem; letter-spacing: 1px;
}
.cart-count {
  background-color: var(--accent); color: white;
  border-radius: 50%; padding: 2px 6px; font-size: 0.75rem;
  position: absolute; top: -8px; right: -10px;
}

/* Modal Carrinho */
.cart-modal-overlay {
    display: flex;
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    
    z-index: 1000;
    justify-content: flex-end;

    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-modal {
    background: var(--white);
    width: 400px;
    max-width: 90%;

    height: 100%;
    padding: 2rem;

    box-shadow: -5px 0 30px rgba(0,0,0,0.1);

    display: flex;
    flex-direction: column;

    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

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

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

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

/* Seletores */
.model-btn {
  background-color: var(--white); border: 2px solid #e0e0e0;
  color: #555; padding: 10px 20px; font-size: 0.9rem;
  border-radius: 8px; cursor: pointer; transition: all 0.3s ease;
}
.model-btn.selected {
  border-color: var(--primary); background-color: var(--primary); color: var(--white);
}

/* --- CARROSSEL --- */
.carousel-wrapper {
  position: relative; display: flex; justify-content: center; padding: 0 20px;
}
.carousel-track-container { overflow: hidden; width: 100%; max-width: 1200px; }
.carousel-track { display: flex; gap: 20px; transition: transform 0.5s ease-in-out; }

.carousel-track .card {
  min-width: calc((100% - 40px) / 3);
  width: calc((100% - 40px) / 3);
  max-width: none; flex-shrink: 0;
}

.carousel-btn {
  background-color: var(--accent); color: white; border: none;
  width: 40px; height: 40px; border-radius: 50%;
  cursor: pointer; font-size: 1.2rem; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  position: absolute; top: 150px; transform: translateY(-50%);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.carousel-btn:hover { background-color: var(--brown-bark); transform: translateY(-50%) scale(1.1); }
.prev-btn { left: 0; }
.next-btn { right: 0; }

/* RESPONSIVIDADE */
@media (max-width: 900px) {
  .product-item { width: calc(50% - 1rem); }
}

@media (max-width: 768px) {
  .header .container { flex-direction: column; gap: 1rem; }
  .nav { flex-direction: column; }
  .nav a { display: block; margin: .5rem 0; }
  .produtos-layout { flex-direction: column; }
  .filters-sidebar { width: 100%; margin-bottom: 2rem; }
  .product-item { width: 100%; }
  
  .carousel-track .card { min-width: 100%; width: 100%; }
  .carousel-btn { top: 125px; width: 35px; height: 35px; }
  .hero h2 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }

    .hero {
	background-image: url('./hero-mobile.webp');
	background-size: cover;
	background-position: center;
    }
}

/* Extras de Suavização */
html {
  scroll-behavior: smooth;
}

/* --- 1. ESTILO DA SELEÇÃO DE CORES (Quadrado Dividido) --- */
.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.color-btn {
    display: flex; /* Alinha o quadrado e o texto lado a lado */
    align-items: center;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    color: #333;
}

.color-btn:hover {
    border-color: #999;
    background-color: #f9f9f9;
}

/* O estado "selecionado" */
.color-btn.selected {
    border-color: #333; /* Borda mais escura */
    background-color: #f0f0f0;
    font-weight: bold;
    box-shadow: 0 0 0 1px #333; /* Realce extra */
}

/* O Ícone Quadrado Dividido */
.color-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px; /* Espaço entre o quadrado e o texto */
    border: 1px solid rgba(0,0,0,0.1); /* Borda sutil no quadrado */
    border-radius: 3px; /* Leve arredondamento */
    flex-shrink: 0; /* Impede que o quadrado amasse */
}


/* --- 2. CORREÇÃO DOS BOTÕES DE QUANTIDADE (+ e -) --- */
.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden; /* Garante que os botões não vazem as bordas */
    height: 40px; /* Altura fixa para alinhar com o botão de comprar */
}

.qty-selector button {
    background-color: #f5f5f5;
    border: none;
    width: 35px; /* Largura fixa para o botão ficar quadrado */
    height: 100%; /* Ocupa toda a altura do container */
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    color: #333;
    padding: 0; /* Remove padding padrão que pode desalinhar */
}

.qty-selector button:hover {
    background-color: #e0e0e0;
}

.qty-selector span {
    min-width: 30px;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    padding: 0 5px;
}

/* --- 2. ESTILO DOS CARDS "VOCÊ TAMBÉM PODE GOSTAR" (CORRIGIDO) --- */

/* Restringe o layout GRID apenas à seção de relacionados */
.related-products .cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 30px;
    padding: 0 10px;
}

/* Estilo do Card individual apenas dentro dessa seção */
.related-products .card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    /* Removemos larguras fixas que possam conflitar com o index */
    width: auto; 
}

.related-products .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* Imagem do Card */
.related-products .card img {
    width: 100%;
    height: 220px; /* Altura específica para esta seção */
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* Título */
.related-products .card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #444;
    font-weight: 600;
}

/* Preço */
.related-products .card p {
    font-weight: bold;
    color: #B96A54;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Botão adicionar ao carrinho */
.related-products .card .btn-add-cart {
    width: 100%;
    padding: 10px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.related-products .card .btn-add-cart:hover {
    background-color: #555;
}

/* --- BOTÃO VER DETALHES */
/* --- BOTÃO VER DETALHES (Estilo Botão Real) --- */
.btn-details {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.5rem; /* O preenchimento cria o formato do botão */
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--bg-cream) !important; /* Força a cor do texto */
  background-color: transparent;
  border: 1px solid var(--toffee-brown); /* A borda que define o botão */
  border-radius: 50px; /* Arredondado igual aos outros botões */
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  min-width: 140px; /* Garante um tamanho mínimo elegante */
  margin: 10px;
  background-color: var(--primary);
}

.btn-details:hover {
  background-color: var(--toffee-brown);
  color: #fff !important; /* Texto fica branco no hover */
  transform: translateY(-3px); /* Leve flutuação */
  box-shadow: 0 4px 10px rgba(147, 105, 72, 0.2);
  border-color: var(--toffee-brown);
}



/* --- SEÇÃO SOBRE NÓS (Corrigido) --- */
.sobre {
  background-color: var(--bg-cream); 
  padding: 6rem 0;
  text-align: center;
  position: relative;
  border-top: 1px solid rgba(185, 106, 84, 0.2); 
  border-bottom: 1px solid rgba(185, 106, 84, 0.2);
  margin-top: 4rem; /* Espaço para separar do carrossel */
}

/* Ícone decorativo acima */
/* .sobre::before {
   content: "✦";
   display: block;
   font-size: 2rem;
   color: var(--faded-copper);
   margin-bottom: 1rem;
   opacity: 0.6;
   }
 */
.sobre-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.sobre h2 {
  font-family: 'Playfair Display', serif; /* Fonte mais elegante se disponível */
  font-size: 2.5rem;
  color: var(--dark-walnut);
  margin-bottom: 2.5rem;
  display: inline-block;
}

/* Linha decorativa abaixo do título */
.sobre h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--faded-copper);
  margin: 15px auto 0;
  border-radius: 2px;
}

.sobre p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

/* Letra Capitular (A primeira letra grande) */
.sobre p:first-of-type::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  color: var(--olive-wood);
  float: left;
  line-height: 0.8;
  margin-right: 12px;
  margin-top: 0px;
}

.sobre em {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--toffee-brown);
  margin-top: 3rem;
  font-style: italic;
}

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

/* --- ITENS DO CARRINHO (Layout Vertical: Nome em Cima) --- */
.cart-item {
  display: flex;
  flex-direction: column; /* Muda para coluna: Título em cima, controles embaixo */
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
  gap: 12px; /* Espaço entre o nome e os controles */
}

/* Bloco do Título e Preço Unitário */
.cart-item-info {
  width: 100%;
}

.cart-item-info h4 {
  font-size: 1rem;
  margin-bottom: 2px;
  color: var(--text-dark);
  font-family: 'Playfair Display', serif; /* Fonte mais elegante para o título */
  font-weight: 700;
}

.cart-item-info p {
  font-size: 0.85rem;
  color: #777; /* Cinza suave para o preço unitário */
  margin: 0;
}

/* Bloco dos Controles (Quantidade, Total, Lixo) */
.cart-item-controls {
  width: 100%; /* Garante que ocupe a linha inteira */
  display: flex;
  align-items: center;
  /* justify-content: space-between; PODE USAR ISSO, OU O TRUQUE ABAIXO: */
}

/* Truque para alinhar: Quantidade na Esquerda, Resto na Direita */
.cart-item-controls .qty-selector {
  margin-right: auto; /* Empurra tudo que vem depois para a direita */
}

.cart-item-controls strong {
  font-size: 1rem;
  color: var(--primary);
  margin-right: 15px; /* Espaço entre o preço total e o lixo */
}

/* Botão de Lixo (Mantemos o estilo anterior) */
.remove-item {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 5px;
  transition: transform 0.2s, color 0.2s;
  color: #999;
}

.remove-item:hover {
  transform: scale(1.1);
  color: #d9534f; /* Vermelho suave ao passar o mouse */
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- NOTIFICAÇÃO TOAST (Flutuante) --- */
.toast-notification {
  position: fixed;
  bottom: -100px; /* Começa escondido abaixo da tela */
  right: 20px;
  background-color: #4CAF50; /* Fundo Verde */
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 2000;
  opacity: 0;
  pointer-events: none; /* Para não interferir com cliques */
  /* Animação suave para subir e descer */
  transition: bottom 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.4s ease;
}

/* Classe adicionada pelo JS para mostrar o Toast */
.toast-notification.show {
  bottom: 20px; /* Sobe para a posição visível */
  opacity: 1;
}

/* --- MODAL FLUTUANTE DE CORES (Cards) --- */
.color-modal-overlay {
    display: flex;
    visibility: hidden;
    opacity: 0;
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 1005;
    justify-content: center; align-items: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.color-modal-box {
    background: var(--white); 
    padding: 2rem; 
    border-radius: 12px;
    width: 90%; 
    max-width: 400px; 
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateY(20px); 
    transition: transform 0.3s ease;
}

.color-modal-overlay.open .color-modal-box {
    transform: translateY(0);
}

.color-modal-box h3 {
    margin-bottom: 1.5rem; 
    color: var(--text-dark);
    font-family: 'Playfair Display', serif;
}

.color-modal-options {
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
    justify-content: center; 
    margin-bottom: 1.5rem;
}

.cart-modal .close-cart {
    background: transparent;
    border: none;
    font-size: 1.8rem;       /* Tamanho ideal, nem muito grande nem muito pequeno */
    font-weight: 300;        /* Deixa o "X" mais fino e delicado */
    line-height: 1;
    color: var(--text-main); /* Usa o tom de marrom escuro do site */
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}

/* Efeito ao passar o mouse */
.cart-modal .close-cart:hover {
    color: var(--accent);       /* Fica no tom terracota do site */
    transform: rotate(90deg) scale(1.1); /* Dá um giro suave e charmoso */
}
