
/* ── CUSTOM CART DRAWER STYLES (NERES STYLE) ── */

.my-neres-cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.my-neres-cart-overlay.is-active {
  opacity: 1 !important;
  visibility: visible !important;
}

.my-neres-cart-drawer {
  position: fixed !important;
  top: 0 !important;
  right: -100% !important;
  width: 450px !important;
  max-width: 90% !important;
  height: 100% !important;
  background: #fff !important;
  z-index: 100000 !important;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  display: flex !important;
  flex-direction: column !important;
  color: #333 !important;
  visibility: hidden;
}

.my-neres-cart-drawer.is-active {
  right: 0 !important;
  visibility: visible !important;
}

/* Header */
.cart-drawer-header {
  padding: 20px 25px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cart-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.cart-drawer-close:hover {
  transform: rotate(90deg);
}

/* Content / Items */
.cart-drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 25px;
}

.cart-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  animation: fadeIn 0.4s ease;
}

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

.cart-item-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #f7f7f7;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.cart-item-name {
  margin: 0 0 5px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

.cart-item-price {
  font-weight: 700;
  color: #138D36;
  margin-bottom: 10px;
}

.cart-item-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- Estilo do Seletor de Quantidade --- */
.cart-qty-selector {
  display: flex;
  align-items: center;
  justify-content: center; /* Centraliza o conteúdo horizontalmente */
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 90px;
  height: 32px;
  margin: 10px 0;
  overflow: hidden; /* Garante que os botões não saiam do limite */
}

.cart-qty-btn {
  background: none;
  border: none;
  width: 30px;
  height: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #333;
  padding: 0;
  transition: background 0.2s;
}

.cart-qty-btn:hover {
  background: #f5f5f5;
}

.cart-qty-display {
  flex: 1;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  min-width: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Remover ícones de busca, pesquisa e conta do cabeçalho */
.header__icon-list a[href="/search"],
.header__icon-list a[aria-controls="search-drawer"],
.header__icon-list button[aria-controls="search-drawer"],
.header__icon-list a[href="/account"],
.header__icon-list .icon-account {
  display: none !important;
}

/* Remover botões de adicionar ao carrinho rápido (Listagem/Home) */
.product-card__quick-buy,
.product-card__mobile-quick-buy-button {
  display: none !important;
}

/* Remover "Modelo: (SABOR)" da página do produto */
.variant-picker__option-info .h-stack.gap-2 {
  display: none !important;
}

.cart-item-remove {
  font-size: 0.8rem;
  color: #999;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.cart-item-remove:hover {
  color: #ff4d4d;
}

/* Footer */
.cart-drawer-footer {
  padding: 25px;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cart-summary-label {
  font-size: 1.1rem;
  font-weight: 600;
}

.cart-summary-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: #138D36;
}

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

.cart-btn {
  display: block;
  width: 100%;
  padding: 15px;
  text-align: center;
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.cart-btn-primary {
  background: #000000;
  color: #fff;
}

.cart-btn-primary:hover {
  background: #333333;
  transform: translateY(-2px);
}

.cart-btn-secondary {
  background: transparent;
  color: #333;
  border: 1px solid #ddd;
}

.cart-btn-secondary:hover {
  background: #f0f0f0;
}

/* Empty State */
.cart-empty-message {
  text-align: center;
  padding: 50px 0;
}

.cart-empty-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.3;
}

/* Forçar cursor nos botões de adicionar */
[data-ignite-bound="true"], 
button[is="custom-button"],
.product-card__mobile-quick-buy-button {
  cursor: pointer !important;
}

/* Esconder o cart-drawer original da Shopify para não dar conflito visual */
cart-drawer, #cart-drawer, .shopify-section--cart-drawer {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
