/* cart.css — extraído de home.blade.php */

/* Modal do Carrinho */
#cart-drawer {
    position: fixed;
    right: -400px;
    top: 0;
    width: 380px;
    max-width: 90%;
    height: 100%;
    background: #fff;
    box-shadow: -8px 0 24px rgba(0,0,0,0.15);
    transition: right 0.28s ease;
    display: flex;
    flex-direction: column;
    z-index: 9999;
    overflow-y: auto;
    font-family: Arial, sans-serif;
}

#cart-drawer.open {
    right: 0;
}

/* Cabeçalho do Carrinho */
.cart-header {
    padding: 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header button {
    background: none;
    border: none;
    font-size: 28px;
    color: red;
    cursor: pointer;
}

/* Itens do Carrinho */
#cart-items {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
}

#cart-items .cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

#cart-items .cart-item button {
    background: #eee;
    border: none;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
}

/* Footer do Carrinho */
.cart-footer {
    padding: 12px;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: bold;
}

.cart-actions {
    display: flex;
    gap: 8px;
}

.cart-actions button {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

#btn-empty-cart {
    border: 1px solid #ccc;
    background: #fff;
    color: #000;
}

#btn-empty-cart:hover {
    background: #d32f2f;
    color: #fff;
}

#btn-checkout-whatsapp {
    flex: 2;
    border: none;
    background: #18a85a;
    color: #fff;
}

/* Botão Flutuante */
#floating-cart-btn {
    position: fixed;
    right: 42px;
    bottom: 120px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #2596be;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    z-index: 9998;
    cursor: pointer;
}

#floating-cart-btn img {
    width: 28px;
    height: 28px;
}

#cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: red;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item button.qty-btn,
.cart-item button.remove-btn {
  background: #ffffff;         
  color: #222;                 
  border: 1px solid #e2e2e2;    
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  font-weight: 700;
  min-width: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-item button.remove-btn {
  background: #fff5f5;
  border-color: #ffd6d6;
  color: #b30000;
}

.cart-item .qty-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}

#cart-count {
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  border: 2px solid #ffffff;
}

/* Responsivo para telas menores */
@media screen and (max-width: 480px) {
    #cart-drawer {
        width: 90%;
    }
}
#floating-cart-btn {
        right: 20px;
        bottom: 90px;
        width: 50px;
        height: 50px;
    }

#floating-cart-btn img {
        width: 24px;
        height: 24px;
}