/* static/css/ecommerce.css */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Montserrat:wght@400;500;600&display=swap");

/* ============================================= */
/* 1. DECLARAÇÕES FIXAS (ATUALIZADO)             */
/* ============================================= */

@font-face {
    font-family: '--font-corpo';
    src: url('../fonts/JosefinSans-ExtraLight.ttf') format('opentype');
}

@font-face {
    font-family: '--font-logo';
    src: url('../fonts/Vanitas-Bold.otf') format('opentype');
}

@font-face {
    font-family: '--font-valor';
    src: url('../fonts/Chivo-Light.ttf') format('opentype');
}

:root {
    /* -- Tipografia -- */
    --font-family-corpo: --font-corpo, sans-serif;
    --font-family-logo: --font-logo, sans-serif;
    --font-family-valor: --font-valor, sans-serif;

    --font-size-logo: 2.5rem;
    --font-size-biggest: 1.6rem;
    --font-size-big: 1.2rem;
    --font-size-normal: 1rem;
    --font-size-small: 0.8rem;

    /* -- Cores -- */
    --color-background-light: #ffffff;
    --color-background-secondary: #f4f4f4;
    --color-text-primary: #1c1c1c;
    --color-text-secondary: #555555;
    --color-border: #eeeeee;
    --color-text: #333333;
    --color-primary: #8d6e63;
    --color-white: #ffffff;

    /* -- Outros -- */
    --shadow-color: rgba(0, 0, 0, 0.08);
}

body {
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

h1,
h2 {
  font-family: var(--font-title);
  text-align: center;
}

h2 {
  font-size: 28px;
  margin-top: 40px;
  margin-bottom: 20px;
}

p {
  line-height: 1.6;
  font-size: 16px;
}

.search-popup {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background-color: var(--color-white);
  z-index: 102;
  padding: 25px;
  box-sizing: border-box;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transform: translateY(-200%);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 0px;
}
.search-popup.active {
  transform: translateY(0);
}
.search-popup input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  font-family: var(--font-body);
  outline: none;
}
.search-popup input:focus {
  border-color: var(--color-primary);
}
.search-popup .close-icon {
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
}
#floating-search-btn {
  position: fixed;
  top: 125px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 101;
  transition: transform 0.3s ease;
  text-decoration: none;
}
#floating-search-btn:hover {
  transform: scale(1.1);
}
#floating-search-btn svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-white);
}
@keyframes scrollAnimation {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.banner {
  position: relative;
  width: 100%;
  height: 60vh;
  max-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}
.banner-slider {
  display: flex;
  width: 200%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  animation: scrollAnimation 30s linear infinite;
}
.banner-slide {
  width: 50%;
  height: 100%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.banner-content {
  position: relative;
  z-index: 2;
}
.banner-content h1 {
  font-size: 36px;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.banner-button {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 25px;
  background-color: var(--color-white);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  border-radius: 5px;
  transition: all 0.3s ease;
}
.banner-button:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}
.categories-section {
  padding: 0;
  margin-top: 30px;
}
.categories-section h2 {
  margin-bottom: 20px;
}
.categories-container {
  position: relative;
}
.categories-wrapper {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.categories-wrapper::-webkit-scrollbar {
  display: none;
}
.categories-slider {
  display: flex;
  gap: 15px;
  padding: 10px;
  margin: 0 -10px;
}
.category-item {
  position: relative;
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.category-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.category-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 1;
  transition: opacity 0.4s ease;
}
.category-name {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  opacity: 1;
  transition: opacity 0.4s ease;
  z-index: 2;
  padding: 0 5px;
  box-sizing: border-box;
}
@media (hover: hover) and (pointer: fine) {
  .category-item::after,
  .category-name {
    opacity: 0;
  }
  .category-item:hover::after,
  .category-item:hover .category-name {
    opacity: 1;
  }
  .category-item:hover img {
    transform: scale(1.1);
  }
}
.arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid #eee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.arrow-btn.left-arrow {
  left: -5px;
}
.arrow-btn.right-arrow {
  right: -5px;
}
.arrow-btn svg {
  width: 20px;
  height: 20px;
}
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-top: 40px;
}
.product-card {
  background: var(--color-white);
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center;
}
.product-card-info {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.product-card-info h3 {
  font-family: var(--font-body);
  font-size: 16px;
  margin: 0 0 15px;
  text-align: center;
  color: var(--color-text);
  text-decoration: none;
}
.product-card-info p {
  margin: 0 0 15px;
  font-size: 14px;
  font-weight: 600;
}
.product-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.details-btn,
.cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}
.details-btn {
  flex-grow: 3;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  font-size: 14px;
  border-color: var(--color-primary);
}
.cart-btn {
  flex-grow: 1;
  background-color: var(--color-white);
}
.cart-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-primary);
}
.details-btn:hover {
  background: #795548;
  border-color: #795548;
}
.cart-btn:hover {
  background-color: var(--color-light-bg);
}
.cta-block {
  margin-top: 40px;
  padding: 40px 20px;
  text-align: center;
  background-image: linear-gradient(
      rgba(249, 249, 249, 0.8),
      rgba(249, 249, 249, 0.8)
    ),
    url(https://images.pexels.com/photos/1702373/pexels-photo-1702373.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1);
  background-size: cover;
  background-position: center;
  border-radius: 8px;
}
.cta-block h2 {
  margin-top: 0;
  margin-bottom: 15px;
}
.cta-button {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
  border-radius: 5px;
  transition: all 0.3s ease;
}
.cta-button:hover {
  background: #795548;
}
.about-section {
  margin-top: 40px;
}
.about-section-content {
  text-align: center;
}
.about-section-content p {
  margin-right: 40px;
}
.about-section-content img {
  display: none;
  margin-left: 40px;
}
.footer {
  margin-top: 40px;
  padding: 30px 0;
  background-color: var(--color-text);
  color: var(--color-white);
  text-align: center;
}
.footer .logo {
  font-family: var(--font-title);
  font-size: 24px;
  letter-spacing: 2px;
}
.footer-links {
  margin: 15px 0;
}
.footer-links a {
  color: var(--color-white);
  text-decoration: none;
  margin: 0 10px;
}
.footer p {
  font-size: 12px;
  opacity: 0.7;
  margin: 0;
}
@media (min-width: 1024px) {
  .container {
    max-width: 1200px;
  }
  h2 {
    font-size: 36px;
    margin-top: 60px;
    margin-bottom: 30px;
  }
  #floating-search-btn {
    right: 40px;
  }
  .banner {
    height: 70vh;
    max-height: 600px;
  }
  .banner-slider {
    width: 400%;
  }
  .banner-slide {
    width: 25%;
  }
  .banner-content h1 {
    font-size: 56px;
  }
  .banner-button {
    padding: 15px 35px;
    font-size: 18px;
  }
  .categories-slider {
    gap: 25px;
  }
  .category-item {
    width: 150px;
    height: 150px;
  }
  .category-name {
    font-size: 16px;
  }
  .arrow-btn.left-arrow {
    left: 10px;
  }
  .arrow-btn.right-arrow {
    right: 10px;
  }
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
  }
  .product-card img {
    height: 200px;
  }
  .cta-block {
    padding: 80px 40px;
    margin-top: 60px;
  }
  .about-section {
    margin-top: 60px;
  }
  .about-section-content {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
  }
  .about-section-content img {
    display: block;
    width: 45%;
    border-radius: 8px;
    object-fit: cover;
    height: 400px;
  }
  .about-section-content .text {
    width: 55%;
  }
  .about-section-content h2 {
    text-align: left;
    margin-top: 0;
  }
}

.product-detail-card {
    display: grid;
    /* Em telas pequenas, fica uma coluna só (empilhado) */
    grid-template-columns: 1fr;
    gap: 20px; /* Espaçamento entre imagem e texto */
    margin-top: 30px;
    margin-bottom: 30px;
}

/* 2. Coluna da Esquerda (Imagem) */
.product-image-gallery .main-product-image {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #eee;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
}

/* 3. Coluna da Direita (Informações) */
.product-info .product-title {
    font-family: var(--font-title);
    font-size: 32px;
    margin-top: 0;
    margin-bottom: 10px;
    text-align: left; /* Sobrescreve o text-align: center padrão de h1/h2 */
    line-height: 1.2;
}

.product-info .product-description {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 25px;
}

/* 4. Lista de Opções do Produto */
.product-options-list {
    margin-bottom: 25px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.product-options-list .options-title {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-options-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-options-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

.product-options-list li:last-child {
    border-bottom: none;
}

.product-options-list .option-name {
    font-weight: 500;
}

.product-options-list .option-price {
    color: var(--color-primary);
    font-weight: 600;
    white-space: nowrap;
    padding-left: 15px;
}

/* 5. Formulário (Quantidade e Botão) */
.product-form {
    margin-top: 10px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.quantity-selector label {
    font-weight: 600;
    font-size: 1rem;
}

.quantity-input {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden; /* Para arredondar as bordas dos botões internos */
}

.quantity-input input {
    width: 50px;
    height: 44px;
    text-align: center;
    border: none;
    padding: 0 5px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    -moz-appearance: textfield;
}
.quantity-input input::-webkit-outer-spin-button,
.quantity-input input::-webkit-inner-spin-button {
    -webkit-appearance: none; margin: 0;
}

.quantity-btn {
    width: 40px;
    height: 44px;
    border: none;
    background-color: var(--color-light-bg);
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--color-primary);
    transition: background-color 0.2s;
}
.quantity-btn:hover {
    background-color: #e9e9e9;
}

/* Botão Adicionar ao Carrinho (baseado no estilo .details-btn) */
.add-to-cart-btn {
    display: block;
    width: 100%;
    padding: 14px 25px;
    background-color: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    font-size: 1rem;
    cursor: pointer;
}
.add-to-cart-btn:hover {
    background-color: #795548; /* Tom mais escuro para hover, como no .details-btn:hover */
}


/* --- Media Query para Desktop --- */
@media (min-width: 768px) {
    /* Ativa o layout de duas colunas em telas maiores */
    .product-detail-card {
        grid-template-columns: 1fr 1.2fr;
        gap: 50px;
    }

    .product-info .product-title {
        font-size: 42px; /* Título maior no desktop */
    }
}

/* Estilo para o link "Voltar" (breadcrumb) */
.product-detail-container .breadcrumb {
  margin-top: 30px;
}
.product-detail-container .breadcrumb a {
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 500;
  font-family: var(--font-body);
}
.product-detail-container .breadcrumb a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   ESTILOS ADICIONAIS - PÁGINA DE DETALHES DO PRODUTO
   ========================================================================== */

/* Agrupa label e input/select */
.product-form .form-group {
    margin-bottom: 20px;
}

.product-form .form-group label {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 8px;
    font-family: var(--font-body);
}

/* Estilo para o novo dropdown de opções */
.product-option-select {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    -webkit-appearance: none; /* Remove a aparência padrão do sistema */
    -moz-appearance: none;
    appearance: none;
    /* Adiciona uma seta personalizada */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%238D6E63' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

/* Garanta que esta regra existe no seu ecommerce.css */
.product-form .quantity-selector {
    display: flex;
    align-items: center; /* Alinha a label e o input verticalmente */
    gap: 15px; /* Cria um espaço entre a label e o input */
}

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

/* ==========================================================================
   ESTILOS DA PÁGINA DO CARRINHO
   ========================================================================== */
.cart-container-page { padding: 40px 15px; }
.cart-container-page h1 { text-align: left; font-size: 2.5rem; margin-bottom: 30px; }

.cart-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
@media (min-width: 992px) {
    .cart-layout { grid-template-columns: 2fr 1fr; }
}

/* Lista de Itens */
.cart-items-list .cart-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}
.cart-item:last-child { border-bottom: none; }

.cart-item-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    margin-right: 20px;
}

.cart-item-details { flex-grow: 1; }
.cart-item-details .product-name { font-size: 1.1rem; margin: 0 0 5px 0; }
.cart-item-details .option-name { color: #666; font-size: 0.9rem; margin: 0; }
.cart-item-details .unit-price { font-weight: 600; color: #888; margin-top: 8px; }

/* Resumo do Pedido */
.cart-summary {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    height: fit-content; /* Para que não estique a altura inteira */
}
.cart-summary h2 { text-align: left; font-size: 1.5rem; margin-top: 0; }

.cart-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}
.cart-summary .summary-row.total {
    font-weight: 700;
    font-size: 1.2rem;
}

.checkout-btn {
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.checkout-btn:hover { background-color: #795548; }

/* ==========================================================================
   ATUALIZAÇÃO DE ESTILOS DA PÁGINA DO CARRINHO
   ========================================================================== */

/* Regra principal para cada linha de item */
.cart-items-list .cart-item {
    display: flex;
    align-items: center;
    gap: 20px; /* Espaçamento entre os elementos */
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

/* Faz a coluna de detalhes (nome, opção, preço) crescer para ocupar o espaço vago */
.cart-item-details {
    flex-grow: 1;
}

/* Novo container que agrupa Qtd e Subtotal */
.cart-item-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    align-items: baseline;
    gap: 5px 20px;
    margin-left: auto;
    text-align: center;
}

.cart-item-quantity {
    grid-row: 1;
    grid-column: 1;
}

.cart-item-subtotal {
    grid-row: 1;
    grid-column: 2;
}

.remove-item-btn {
    grid-column: span 2;
    background: none;
    border: none;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.9em;
    padding: 5px 0 0 0;
    text-align: right;
    width: 100%;
}
.remove-item-btn:hover {
    color: #990000;
    font-size: 0.9em;
    text-decoration: underline;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    border: 2px dashed #eee;
    border-radius: 8px;
}
.cart-empty .btn-primary {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background-color: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
}
.pagination-controls:not(:empty) {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding-bottom: 40px;
}
.pagination-btn {
    padding: 10px 20px;
    border: 1px solid var(--color-primary);
    background-color: transparent;
    color: var(--color-primary);
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.pagination-btn:hover:not(:disabled) {
    background-color: var(--color-primary);
    color: var(--color-white);
}
.pagination-btn:disabled {
    border-color: #ccc;
    color: #ccc;
    cursor: not-allowed;
}
/* Em static/css/ecommerce.css, adicione ou ajuste a partir daqui */

/* --- ESTILOS PARA O MODAL DE VISUALIZAÇÃO RÁPIDA --- */
#product-quick-view-modal .modal-body {
    padding: 0;
}

.product-quick-view-layout {
    display: flex; /* Usamos flexbox para mais controle */
    flex-direction: column; /* Coluna em telas pequenas */
    background-color: var(--color-white); /* Fundo branco para o conteúdo */
    border-radius: 10px; /* Bordas arredondadas */
    overflow: hidden; /* Garante que a imagem arredondada não vaze */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); /* Sombra suave */
    position: relative; /* Para posicionar o botão de fechar */
}

/* Ajuste o botão de fechar para ser visível e interativo */
#product-quick-view-modal .btn-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    font-size: 1.2rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    padding: 8px;
    opacity: 1; /* Garante que o botão esteja visível */
}
#product-quick-view-modal .btn-close:hover {
    background-color: var(--color-primary); /* Cor no hover */
    color: var(--color-white);
}

.quick-view-image {
  flex-shrink: 0; /* Impede que a imagem encolha demais */
  min-height: 200px; /* Altura mínima para a imagem em mobile */
  background-color: #f8f8f8; /* Cor de fundo para o espaço da imagem */
  display: flex;
  justify-content: center;
  align-items: center;
}
.quick-view-image img {
  width: 100%;
  height: 100%;
  max-height: 300px;
  object-fit: cover;
  object-position: center;
  padding: 0;
}

.quick-view-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espaçamento entre os elementos de informação */
}
.quick-view-info h2 {
    font-size: 1.8rem; /* Tamanho do título do produto */
    text-align: left;
    margin-top: 0;
    margin-bottom: 0; /* Remove margem padrão */
    color: var(--color-heading);
}
.quick-view-info p {
    font-size: 1rem;
    margin-bottom: 0;
    color: var(--color-text);
}

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

.quick-view-info .product-option-select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    font-size: 1rem;
    background-color: var(--color-white);
    appearance: none; /* Remove estilo padrão de select */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}

.quick-view-info .quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}
.quick-view-info .quantity-selector label {
    flex-shrink: 0;
    margin-bottom: 0;
    font-weight: 600;
}
.quick-view-info .quantity-input {
    display: flex;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    overflow: hidden;
    width: 120px; /* Largura fixa para o controle de quantidade */
}
.quick-view-info .quantity-btn {
    background-color: var(--color-light-gray);
    border: none;
    padding: 8px 12px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}
.quick-view-info .quantity-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}
.quick-view-info .quantity-input input {
    border: none;
    text-align: center;
    width: 40px; /* Largura do campo de número */
    -moz-appearance: textfield; /* Remove setas padrão do Firefox */
    appearance: textfield; /* Remove setas padrão */
}
.quick-view-info .quantity-input input::-webkit-outer-spin-button,
.quick-view-info .quantity-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quick-view-info .add-to-cart-btn {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
    margin-top: 15px; /* Espaçamento antes do botão */
}
.quick-view-info .add-to-cart-btn:hover {
    background-color: #795548;
}


/* Versão Desktop (acima de 768px) */
@media (min-width: 768px) {
    .product-quick-view-layout {
        flex-direction: row; /* Layout em linha em telas maiores */
        max-height: 600px; /* Limita a altura total do modal */
    }
    .quick-view-image {
        flex: 1; /* Ocupa metade do espaço */
        min-height: auto; /* Remove altura mínima fixa */
    }
    .quick-view-image img {
        max-height: 100%; /* Permite que a imagem preencha a altura */
    }
    .quick-view-info {
        flex: 1.2; /* Ocupa um pouco mais de espaço */
        padding: 30px;
    }
    .quick-view-info h2 {
        font-size: 2.2rem;
    }
}

/* Tamanho máximo para o modal em telas muito grandes */
@media (min-width: 1200px) {
    #product-quick-view-modal .modal-dialog {
        max-width: 900px;
    }
}

.product-card-link .product-card-info h3 {
    font-family: var(--font-body); /* Força o uso da fonte 'Montserrat' */
    text-transform: none; /* Garante que não fique tudo em maiúsculas se houver outra regra */
    letter-spacing: normal; /* Reseta o espaçamento se houver outra regra */
}

.product-card-link,
.product-card-link:hover,
.product-card-link .product-card-info h3 {
    text-decoration: none !important;
}

/* Em static/css/ecommerce.css */

/* --- ESTILOS PARA NOTIFICAÇÕES GLOBAIS --- */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000; /* Garante que fique sobre outros elementos */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none; /* Permite clicar através do contêiner */
}

.notification {
    background-color: #333;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s ease;
    pointer-events: auto; /* Habilita eventos na notificação em si */
    cursor: pointer;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* Tipos de notificação */
.notification-success { background-color: #28a745; }
.notification-error { background-color: #dc3545; }
.notification-info { background-color: #17a2b8; }
.notification-warning { background-color: #ffc107; color: #1c1c1c; }

main {
    padding-bottom: 60px;
}