

.section {
    display: none;
}

.section h2 {
    margin-bottom: 20px;
}

.wallet-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: cardFadeIn 1s ease forwards;

}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.wallet-content .card-pag {
    width: 48%;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.wallet-content .card-pag:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    
}
.wallet-content .card-pag:hover h3{
    color: #3D6D40;
}
.wallet-content .card-pag h3 {
    margin-bottom: 10px;
    color: #7a3030;
}

.wallet-content .card-pag p {
    margin-bottom: 10px;
    color: #333;
}

#add-balance-form {
    display: flex;
    flex-direction: column;
}

#add-balance-form label {
    margin-bottom: 5px;
}

#add-balance-form input,
#add-balance-form select {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#add-balance-form button {
    padding: 10px 20px;
    background-color: #7a3030;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#add-balance-form button:hover {
    background-color: #3D6D40;
}

.wishlist-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: cardFadeIn 1s ease forwards;

}

.wishlist-card {
    width: calc(33.333% - 20px);
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: cardFadeIn 1s ease forwards;
}

.wishlist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
   
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #7a3030;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    
}

.product-image {
    width: 100%;
    border-radius: 10px;
}

.product-info {
    margin-top: 10px;
}

.product-info h3 {
    margin-bottom: 10px;
    color: #333;
}
.form-row{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    gap: 10px;
}
.current-price {
    color: #7a3030;
    font-size: 18px;
    font-weight: bold;
}

.original-price {
    color: #888;
    font-size: 14px;
    text-decoration: line-through;
}

.delete-icon-carrinho {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #888;
    cursor: pointer;
}

.delete-icon-carrinho:hover {
    color: #7a3030;
}

.Carrinho-p-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: cardFadeIn 1s ease forwards;
}

.Carrinho-p-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: cardFadeIn 1s ease forwards;
}

.Carrinho-p-item h3 {
    margin-bottom: 10px;
    color: #7a3030;
}

.Carrinho-p-item p {
    color: #333;
}

.edit-icon,
.delete-icon-carrinho {
    position: absolute;
    top: 10px;
    cursor: pointer;
}

.edit-icon {
    right: 40px;
    color: #888;
}

.edit-icon {
    right: 40px;
    color: #888;
}

.delete-icon-carrinho {
  left: 96%;
    color: #888;
    
}

.add-Carrinho-p-btn {
    padding: 10px 20px;
    background-color: #7a3030;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: cardFadeIn 1s ease forwards;
}

.add-Carrinho-p-btn:hover, .add-address-btn:hover {
    background-color: #7a3030;
}

#saved-cards-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 500px;
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

#saved-cards-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#saved-cards-list li {
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

#close-panel {
    padding: 10px 20px;
    background-color: #7a3030;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

#close-panel:hover {
    background-color: #7a3030;
}
.history-section{
    width: 48%;
    height: 50vh;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0px;
}
.history-section h3{
   
    width: 100%;
    height: 4rem;
    border-radius: 10px 10px 0px 0px ;
    border-bottom: #ccc solid 1px;
    align-items: center;
    display: flex;
    color: #7a3030;
    padding: 20px;
}
.history-section .history-item {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
   flex-direction: column;
   padding: 10px;
   gap: 5px;
   overflow-y: scroll;
   width: 100%;
   height: 50vh;
}
.history-section .history-item li{
    border-bottom: #ccc solid 1px;
   
}

.history-section .history-item .view-link {
    color: #7a3030;
    text-decoration: none;
}

.history-section .history-item .history-linha {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items:center ;
}

.history-item p {
    margin: 5px 0px 5px;
}

::-webkit-scrollbar{
    width: 12px;

}
::-webkit-scrollbar-thumb{
    background-color: #3d6d40;
    border-radius: 7px;
}

#cart-summary {
    display: flex;
    justify-content: end;
    align-items: end;
    padding: 10px;
    border-top: 1px solid #ccc;
    font-weight: bold;
    flex-direction: column;
    margin: 10px;
   
}

#checkout-button {
    background-color: #3d6d40;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    display: flex;
    border-radius: 10px;
}

@media (max-width: 1700px) {
    .delete-icon-carrinho {
        left: 94%;
    }
        
}
/* Responsividade */
@media (max-width: 768px) {
    .dashboard {
        flex-direction: column;
        
        width: 100%;
        overflow-x: auto;
        display: flex;
    }

    .sidebar {
        width: 100%;
        height: auto;
        box-shadow: none;
        
    }

    .sidebar ul {
        display: flex;
        flex-wrap: wrap;
        
    }

    .sidebar li {
        flex: 1 1 50%;
        justify-content: center;
        text-align: center;
        margin: 5px 0;
    }

    .main-content {
        padding: 15px;
        overflow-y: auto;
    }

    .wallet-content .card-pag {
        width: 100%;
        margin-bottom: 15px;
    }

    .wishlist-card {
        width: 100%;
        margin-bottom: 20px;
    }

    .Carrinho-p-list .Carrinho-p-item {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .sidebar ul {
        flex-direction: row;
       
    }
    .dashboard {
        flex-direction: column;
        
        width: 100%;
        overflow-x: auto;
        display: flex;
    }

    .sidebar li {
        flex: 1 1 100%;

        }
        ::-webkit-scrollbar{
            width: 12px;
        
        }
        ::-webkit-scrollbar-thumb{
            background-color: #3d6d40;
            border-radius: 7px;
        }
        .delete-icon-carrinho {
            left: 90%;
    }
}