/**
 * WooCommerce Quantity Buttons Styles
 * 
 * Estilos para os botões +/- de quantidade
 * 
 * @package GEPAM
 * @since 1.0.0
 */

/* Sobrescrever largura fixa do WooCommerce */
.woocommerce .quantity,
.woocommerce #content .quantity,
.woocommerce-page .quantity,
.woocommerce-page #content .quantity {
  width: auto !important;
  overflow: visible !important;
}

/* Wrapper dos botões e campo de quantidade */
.gepam-quantity-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  vertical-align: middle;
  width: auto;
}

/* Botões +/- */
.gepam-qty-button {
  width: 30px;
  height: 35px;
  border: 1px solid #ddd;
  background: #f7f7f7 !important;
  color: #333 !important;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  user-select: none;
  flex-shrink: 0;
}

.gepam-qty-button:hover {
  background: #333 !important;
  color: #fff !important;
  border-color: #333 !important;
}

.gepam-qty-button:active {
  transform: scale(0.95);
}

.gepam-qty-button:focus {
  outline: 2px solid #0073aa;
  outline-offset: 2px;
}

/* Campo de quantidade */
.gepam-quantity-wrapper .quantity {
  margin: 0;
  width: auto !important;
}

.gepam-quantity-wrapper input.qty {
  width: 60px;
  height: 35px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 14px;
  padding: 0 5px;
}

/* Remover setas do input number */
.gepam-quantity-wrapper input.qty::-webkit-outer-spin-button,
.gepam-quantity-wrapper input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.gepam-quantity-wrapper input.qty[type=number] {
  -moz-appearance: textfield;
}

/* Responsivo para mobile */
@media (max-width: 768px) {
  .gepam-quantity-wrapper {
    gap: 3px;
  }

  .gepam-qty-button {
    width: 28px;
    height: 32px;
    font-size: 16px;
  }

  .gepam-quantity-wrapper input.qty {
    width: 50px;
    height: 32px;
    font-size: 13px;
  }
}

/* Ajustes para página do carrinho */
.woocommerce-cart .gepam-quantity-wrapper {
  justify-content: center;
}

/* Ajustes para página de produto */
.single-product .gepam-quantity-wrapper {
  margin-bottom: 10px;
}

.wc-proceed-to-checkout br {
  display: none;
}


/* Layout responsivo do carrinho - Colunas lado a lado no desktop */
.gepam-cart-container {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  flex-wrap: wrap;
}

#coluna1 {
  flex: 1 1 60%;
  min-width: 300px;
}

#coluna2 {
  flex: 1 1 35%;
  min-width: 300px;
}

/* Mobile: empilhar colunas */
@media (max-width: 768px) {
  .gepam-cart-container {
    flex-direction: column;
    gap: 20px;
  }

  #coluna1,
  #coluna2 {
    flex: 1 1 100%;
    width: 100%;
  }
}