/**
 * Estilos do Carrinho de Compras - Dona Queijeira
 * Design artesanal, responsivo e limpo (sem emojis)
 */

/* Header Cart Button */
.carrinho-btn-header {
  display: inline-flex !important;
  align-items: center;
  background: var(--cor-complementar1, #a22700) !important;
  color: #fff !important;
  padding: 0 16px !important;
  border-radius: 20px;
  line-height: 38px !important;
  font-weight: 600;
  font-size: 13px !important;
  letter-spacing: 0.03em;
  transition: all 0.25s ease;
  text-decoration: none;
  margin-left: 6px;
}
.carrinho-btn-header:hover {
  background: var(--cor-principal, #481e06) !important;
  color: #ffdf72 !important;
}
.carrinho-btn-header svg {
  margin-right: 6px;
}

.cart-badge {
  display: inline-block;
  background: #ffcc7f;
  color: #2a1000;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 6px;
  line-height: 1.2;
}

/* Mobile Cart Button */
.carrinho-btn-mobile {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff !important;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.2s ease;
}
.carrinho-btn-mobile:hover,
.carrinho-btn-mobile:active {
  background: var(--cor-complementar1, #a22700);
  color: #fff !important;
}
.cart-badge-mobile {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--cor-complementar1, #a22700);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 9px;
  padding: 0 4px;
  border: 2px solid var(--cor-principal, #481e06);
}

/* Caixa de Compra - Detalhe do Produto */
.card-compra-detalhe {
  background: #fdfbf7;
  border: 1px solid #ebd9c4;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(72, 30, 6, 0.05);
}
.card-compra-detalhe .label-seletor {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cor-principal, #481e06);
  margin-bottom: 6px;
}
.card-compra-detalhe select.form-control {
  border-color: #d8c5b0;
  border-radius: 8px;
  height: 42px;
  font-size: 0.95rem;
  color: #333;
}
.card-compra-detalhe select.form-control:focus {
  border-color: var(--cor-principal, #481e06);
  box-shadow: 0 0 0 3px rgba(72, 30, 6, 0.12);
}

/* Quantidade Stepper */
.stepper-qtd {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d8c5b0;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.stepper-qtd button {
  width: 36px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--cor-principal, #481e06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.stepper-qtd button:hover {
  background: #f3ece3;
  color: var(--cor-complementar1, #a22700);
}
.stepper-qtd input {
  width: 44px;
  height: 40px;
  border: none;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--cor-principal, #481e06);
  background: transparent;
  -moz-appearance: textfield;
}
.stepper-qtd input::-webkit-outer-spin-button,
.stepper-qtd input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Linha de Ações de Compra (Stepper + Botão lado a lado) */
.compra-acoes-linha {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px;
  width: 100%;
}
.compra-acoes-linha .stepper-qtd {
  flex: 0 0 auto !important;
  height: 44px;
}
.compra-acoes-linha .stepper-qtd button {
  height: 44px;
  width: 36px;
}
.compra-acoes-linha .stepper-qtd input {
  height: 44px;
  width: 44px;
}
.compra-acoes-linha .btn-adicionar-carrinho {
  flex: 1 1 auto !important;
  height: 44px;
  white-space: nowrap;
}

/* Botão Adicionar ao Carrinho */
.btn-adicionar-carrinho {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cor-complementar1, #a22700);
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 0 18px;
  height: 44px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn-adicionar-carrinho:hover {
  background: var(--cor-principal, #481e06);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(72, 30, 6, 0.2);
}
.btn-adicionar-carrinho svg {
  margin-right: 8px;
  flex-shrink: 0;
}

/* Feedback Toast */
.carrinho-toast-aviso {
  background: #fff;
  border: 1px solid #cce5d4;
  border-left: 4px solid #28a745;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

/* Carrinho - Tabela e Cards */
.carrinho-card-box {
  background: #fff;
  border: 1px solid #ebd9c4;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(72, 30, 6, 0.04);
}
.carrinho-card-header {
  background: #faf7f2;
  border-bottom: 1px solid #ebd9c4;
  padding: 16px 20px;
}
.carrinho-card-header h2,
.carrinho-card-header strong {
  color: var(--cor-principal, #481e06);
  font-size: 1.05rem;
  font-weight: 700;
}

.tabela-carrinho-custom {
  margin-bottom: 0;
}
.tabela-carrinho-custom thead th {
  background: #fcfaf6;
  border-top: none;
  border-bottom: 1px solid #ebd9c4;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7a6a5a;
  padding: 12px 14px;
}
.tabela-carrinho-custom tbody td {
  border-top: 1px solid #f2e9de;
  padding: 16px 14px;
  vertical-align: middle;
}
.tabela-carrinho-custom tbody tr:hover {
  background: #fdfcf9;
}

.cart-item-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #ede3d7;
  background: #fff;
}
.cart-item-titulo {
  color: var(--cor-principal, #481e06);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: block;
  line-height: 1.3;
}
.cart-item-titulo:hover {
  color: var(--cor-complementar1, #a22700);
}
.cart-item-opcao {
  display: inline-block;
  font-size: 0.78rem;
  color: #6d5b4d;
  background: #f2ebe1;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 4px;
}
.cart-item-subtotal {
  font-weight: 700;
  color: var(--cor-principal, #481e06);
  font-size: 1rem;
}
.btn-remover-item {
  color: #9c8e82;
  background: transparent;
  border: none;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-remover-item:hover {
  color: #c92a2a;
  background: #fcedec;
}

/* Opções de Recebimento (Cards Selecionáveis) */
.opcao-recebimento-card {
  display: flex;
  align-items: center;
  border: 1px solid #d8c5b0;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
  margin-bottom: 8px;
}
.opcao-recebimento-card:hover {
  border-color: var(--cor-principal, #481e06);
  background: #faf7f2;
}
.opcao-recebimento-card.selecionada {
  border-color: var(--cor-principal, #481e06);
  background: #fbf5ee;
  box-shadow: 0 0 0 2px rgba(72, 30, 6, 0.15);
}
.opcao-recebimento-card input[type="radio"] {
  margin-right: 10px;
  accent-color: var(--cor-principal, #481e06);
}
.opcao-recebimento-card svg {
  margin-right: 8px;
  color: var(--cor-principal, #481e06);
}

/* Botão WhatsApp Finalizar */
.btn-finalizar-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #25D366;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 14px 20px;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn-finalizar-whatsapp:hover {
  background: #1eb855;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
  transform: translateY(-1px);
}
.btn-finalizar-whatsapp svg {
  margin-right: 10px;
  flex-shrink: 0;
}

/* Empty State */
.carrinho-vazio-box {
  background: #fff;
  border: 1px solid #ede3d7;
  border-radius: 14px;
  padding: 50px 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(72, 30, 6, 0.04);
}
.carrinho-vazio-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #faf5ee;
  color: var(--cor-principal, #481e06);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Header Banner - Imagem de Fundo (Queijos e Uvas) */
.bnr-carrinho,
.bnr-produtos {
  background-image: url(../img/topo/contato.jpg) !important;
}

/* Aviso de Valor Estimado e Frete */
.carrinho-aviso-estimado {
  background: #fdfaf5;
  border: 1px solid #ebd9c4;
  border-left: 3px solid var(--cor-complementar1, #a22700);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #634d3d;
}
.carrinho-aviso-estimado p {
  margin-bottom: 0.45rem;
}
.carrinho-aviso-estimado p:last-child {
  margin-bottom: 0;
}
.carrinho-aviso-estimado svg {
  color: var(--cor-complementar1, #a22700);
  margin-top: 2px;
  margin-right: 8px;
  flex-shrink: 0;
}

