/* User Info
.user-greeting {
    font-size: 0.9rem;
    color: var(--txt-cor-terciario);
}

.user-greeting b {
    color: var(--foxb2c-primary);
}
*/

/* Cart Container */
.cart-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 2rem;
    margin-bottom: 2rem;
    min-height: 1250px;
}

.card{
    background: white;
    border-radius: 8px;
    border: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 1rem;
    margin-bottom: 2rem;
    max-height: 305px;
}

.card.address{
    max-height: 400px;
}

.cart-header {
    background: var(--foxb2c-neutro);
    color: white;
    padding: 1.5rem;
    padding-bottom: 0;
    border-radius: 8px 8px 0 0;
    margin: -2rem -2rem 0 -2rem;
    border-top: 5px solid var(--foxb2c-primary);
    /*border-top: 5px solid var(--foxb2c-secondary);*/
}

.card-header.bg-success,
.card-header.bg-primary{
    /*background: var(--foxb2c-primary);
    background-color: var(--foxb2c-primary)!important;*/
    background-color: initial !important;
    color: var(--foxb2c-primary) !important;
    border: 0;
}

.cart-header h1 {
    color: var(--foxb2c-primary);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--foxb2c-border-secondary);
}

.card-body > .mb-3{
    height: 100px;
    max-height: 100px;
    overflow: hidden;
}

.card-body > .alert-info{
    max-height: 45px;
    padding: 0.5rem;
}

.card-body strong{
    font-size: 18px;
    font-size: 14px;
    font-weight: 400;
    color: var(--foxb2c-secondary);
}

/* Cart Table */
.cart-table {
    width: 100%;
    margin-bottom: 2rem;
}

.cart-item {
    border-bottom: 1px solid var(--foxb2c-border);
    padding: 1.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.cart-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 1px solid var(--foxb2c-border);
    border-radius: 5px;
    padding: 0.5rem;
}

.item-details {
    flex-grow: 1;
}

.item-name {
    font-weight: 600;
    color: var(--txt-cor-texto);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1rem;
    width: 85%;
}

.item-name a {
    color: var(--txt-cor-texto);
    text-decoration: none;
}

.item-name a:hover {
    color: var(--foxb2c-primary);
}

.item-price {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 19px;
    color: var(--preco-grid);
}

.item-price > small,
.item-price > small>small{
    font-size: .875em;
    font-weight: 500;
}

.item-control{
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.item-quantity label{
    display: none;
}

.item-quantity.mt-3{
    margin-top: 0 !important;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 2px solid var(--foxb2c-border);
    border-radius: 5px;
    overflow: hidden;
}

.quantity-control button {
    background: var(--txt-cor-controles);
    border: none;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: background 0.3s;
}

.quantity-control button:hover {
    background: #e9ecef;
}

.quantity-control input {
    border: none;
    width: 50px;
    text-align: center;
    font-weight: 600;
}

.item-remove {
    flex-shrink: 0;
}

.item-remove span{
    display: none;
}

.btn-remove {
    background: var(--foxb2c-danger);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-remove:hover {
    background: var(--foxb2c-error);
    transform: scale(1.05);
}

.btn-car-endereco,
.btn-car-frete{
    background: var(--foxb2c-primary);
    color: var(--foxb2c-neutro);
    width: 50% !important;
    border: 0;
}

.btn-car-endereco:hover,
.btn-car-frete:hover{
    background: var(--foxb2c-secondary);
    border-color: var(--foxb2c-secondary);
}


/* Summary Box */
.summary-box {
    background: var(--foxb2c-neutro);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 2rem;
    position: sticky;
    top: 20px;
}

.summary-header {
    background: var(--foxb2c-neutro);
    color: var(--foxb2c-primary);;
    padding: 2rem;
    padding-bottom: 0;
    border-radius: 8px 8px 0 0;
    margin: -2rem -2rem 1.5rem -2rem;
    font-weight: 600;
    border-top: 5px solid var(--foxb2c-primary);
    /*border-top: 5px solid var(--foxb2c-secondary);*/
}

.summary-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--foxb2c-border-secondary);
}

.summary-header h4 i{
    display: none;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--foxb2c-border);
    border: 0;
}

.summary-row strong{
    font-weight: 500;
}

.summary-row.discount {
    padding: 0;
    margin: 0;
    line-height: 19px;
    text-align: right;
    color: var(--foxb2c-success);
    display: none;
}

.summary-row:last-child {
    border-bottom: none;
    font-size: 1.25rem;
    font-weight: 700;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 2px solid var(--foxb2c-secondary);
    border: 0;
}

.summary-row.total {
    border-top: 2px solid var(--foxb2c-border);
    margin-top: 1rem;
    padding-top: 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--foxb2c-success);
}

.summary-row.total .legend{
    font-weight: 400;
    font-size: 15px;
    color: var(--foxb2c-success)!important;
}

.summary-row.total .text-end{
    line-height: 19px !important;
}

.btn-checkout {
    width: 100%;
    background: var(--foxb2c-success);
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 5px;
    margin-top: 1.5rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-checkout:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-continue {
    width: 100%;
    background: transparent;
    color: var(--foxb2c-primary);
    border: 2px solid var(--foxb2c-primary);
    padding: 0.75rem;
    font-weight: 600;
    border-radius: 5px;
    margin-top: 1rem;
    transition: all 0.3s;
}

.btn-continue:hover {
    background: var(--foxb2c-primary);
    color: white;
}

/* Shipping Message */
.shipping-message {
    background: var(--foxb2c-bgcolor);
    border-left: 4px solid var(--foxb2c-danger);
    padding: 1rem;
    margin: 2rem 0 2rem 0;
    border-radius: 5px;
}

.shipping-message h4{
    font-size: 14px;
    color: var(--foxb2c-danger);
}

.shipping-message i{
    color: var(--foxb2c-danger);
}


/* Shipping Calculator */
.shipping-calc {
    background: var(--txt-cor-controles);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.shipping-calc h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.shipping-calc .alert-info{
    border-color: var(--foxb2c-secondary);
    border-color: var(--foxb2c-primary);
    background-color: #ebedef85;
}

.shipping-calc .alert-info > strong > i,
.shipping-calc .alert-info > strong{
    color: var(--foxb2c-secondary);
    color: var(--foxb2c-primary);
}

.shipping-form {
    display: flex;
    gap: 0.5rem;
}

.shipping-form input {
    flex-grow: 1;
    padding: 0.75rem;
    border: 2px solid var(--foxb2c-border);
    border-radius: 5px;
}

.shipping-form button {
    background: var(--foxb2c-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    white-space: nowrap;
}

.d-block {
    color: var(--foxb2c-primary);
}

.shipping-option-item.frete-combinar,
.shipping-option-item{
    background-color: #FFF!important;
}

.shipping-option-item.border-primary{
    border-color: var(--foxb2c-primary)!important;
}

/* Estilos para Frete Grátis */
.frete-opcao.frete-gratis,
.shipping-option-item.frete-gratis {
    background-color: #d4edda !important;
    border: 2px solid #28a745 !important;
    border-radius: 5px;
    padding: 10px;
}

.frete-opcao.frete-gratis .frete-info strong,
.shipping-option-item.frete-gratis strong {
    color: #155724;
}

.shipping-option-item.frete-gratis {
    position: relative;
    overflow: hidden;
}

.shipping-option-item.frete-gratis::before {
    content: "🎁 GRÁTIS";
    position: absolute;
    top: -5px;
    right: -35px;
    background: #28a745;
    color: white;
    padding: 5px 40px;
    font-size: 0.7rem;
    font-weight: bold;
    transform: rotate(45deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Address Form Container */
#address-form-container {
    scroll-margin-top: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#address-form-container:not(.d-none) {
    animation: fadeIn 0.5s ease-in-out;
}


/* Carrinho > Formas de Pagamento */
.payment-section {
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.payment-option {
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.payment-option.selected {
    border-color: #28a745;
    background-color: #f0fff4;
}


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

/* Coupon Section */
.coupon-section {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.coupon-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.coupon-form input {
    flex-grow: 1;
    padding: 0.5rem;
    border: 2px solid #ffc107;
    border-radius: 5px;
}

.coupon-form button {
    background: #ffc107;
    color: var(--foxb2c-secondary);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 600;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-cart i {
    font-size: 5rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.empty-cart h2 {
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 991px) {
    .item-name{
        width: 100%;
    }

    .summary-box {
        position: static;
        margin-top: 2rem;
    }

    .card{
        max-height: fit-content!important;
    }
}

@media (max-width: 767px) {
    .cart-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .item-image {
        width: 150px;
        height: 150px;
    }
    
    .cart-container {
        padding: 1rem;
    }
    
    .cart-header {
        margin: -1rem -1rem 1rem -1rem;
        padding: 1rem;
    }
    
    .shipping-form,
    .coupon-form {
        flex-direction: column;
    }
}