/* Estilos Gerais */
body {
    background-color: #f8f9fa;
    color: #2d3436;
    line-height: 1.6;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1.5rem;
}

.page-title {
    color: #2ab7a9;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    position: relative;
    display: inline-block;
}

.page-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #f9d71c;
    border-radius: 2px;
}

.page-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 15px 60px;
}
.cart-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    color: #2d3436;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e9ecef;
}

.cart-items {
    margin-bottom: 2.5rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 2fr 1fr 1fr 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cart-item:hover {
    background-color: #fff;
    box-shadow: 0 4px 16px rgba(42, 183, 169, 0.12);
    transform: translateY(-2px);
    border-color: rgba(42, 183, 169, 0.3);
}

.cart-item-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.cart-item-image:hover {
    transform: scale(1.08);
}

.cart-item-details h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    color: #2d3436;
}

.cart-item-details p {
    margin: 0.2rem 0;
    color: #6c757d;
    font-size: 0.95rem;
}

.cart-item-category {
    color: #2ab7a9;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
    display: inline-block;
}

.cart-item-price {
    font-weight: 600;
    color: #2ab7a9;
    font-size: 1.1rem;
}

.cart-item-subtotal {
    font-weight: 700;
    color: #2ab7a9;
    font-size: 1.2rem;
}

.cart-item-subtotal strong {
    color: #2ab7a9;
}
.quantity-selector {
    display: flex;
    align-items: center;
}

.quantity-btn {
    width: 38px;
    height: 38px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #2ab7a9;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px 0 0 6px;
}

.quantity-btn:last-of-type {
    border-radius: 0 6px 6px 0;
}

.quantity-btn:hover {
    background: #2ab7a9;
    color: white;
    border-color: #2ab7a9;
    transform: scale(1.05);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-input {
    width: 60px;
    height: 38px;
    text-align: center;
    border: 1px solid #dee2e6;
    border-left: none;
    border-right: none;
    font-size: 1rem;
    font-weight: 600;
    color: #2d3436;
    background: #fff;
    transition: all 0.2s;
}

.quantity-input:focus {
    outline: none;
    border-color: #2ab7a9;
    box-shadow: 0 0 0 3px rgba(42, 183, 169, 0.1);
}

.update-btn, .remove-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.update-btn {
    background-color: #2ab7a9;
    color: white;
    margin-right: 0.5rem;
}

.update-btn:hover {
    background-color: #1f9c8f;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(42, 183, 169, 0.2);
}

.remove-btn {
    background-color: transparent;
    color: #dc3545;
    border: 1px solid #f8d7da;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.remove-btn:hover {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.remove-btn:active {
    transform: translateY(0);
}

.remove-btn i {
    font-size: 1rem;
}
.cart-summary-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.coupon-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 1.8rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.coupon-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #2d3436;
}

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

.coupon-input {
    flex: 1;
    padding: 0.85rem 1.2rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.coupon-input:focus {
    outline: none;
    border-color: #2ab7a9;
    box-shadow: 0 0 0 3px rgba(42, 183, 169, 0.1);
}

.apply-coupon-btn {
    background: linear-gradient(135deg, #2ab7a9 0%, #1f9c8f 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(42, 183, 169, 0.2);
}

.apply-coupon-btn:hover {
    background: linear-gradient(135deg, #1f9c8f 0%, #2ab7a9 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 183, 169, 0.3);
}

.apply-coupon-btn:active {
    transform: translateY(0);
}

.apply-coupon-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.cart-summary {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    position: sticky;
    top: 20px;
}

.cart-summary h3 {
    font-size: 1.5rem;
    color: #2d3436;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.summary-label {
    color: #6c757d;
}

.summary-value {
    font-weight: 500;
    color: #2d3436;
}

.summary-total {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2ab7a9;
    margin: 1.5rem 0;
    padding-top: 1.2rem;
    border-top: 2px solid #2ab7a9;
    background: linear-gradient(135deg, rgba(42, 183, 169, 0.05) 0%, transparent 100%);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-bottom: 0.5rem;
    border-radius: 8px;
    margin-top: 1.2rem;
}
.checkout-btn {
    background: linear-gradient(135deg, #2ab7a9 0%, #1f9c8f 100%);
    color: white;
    width: 100%;
    padding: 1.1rem 1.5rem;
    text-align: center;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 12px rgba(42, 183, 169, 0.25);
}

.checkout-btn:hover {
    background: linear-gradient(135deg, #1f9c8f 0%, #2ab7a9 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(42, 183, 169, 0.4);
}

.checkout-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(42, 183, 169, 0.3);
}

.checkout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.continue-shopping {
    display: inline-block;
    margin-top: 1.5rem;
    color: #2ab7a9;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.continue-shopping:hover {
    color: #1f9c8f;
    text-decoration: underline;
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.empty-cart-icon {
    font-size: 5rem;
    color: #e9ecef;
    margin-bottom: 1.5rem;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.empty-cart:hover .empty-cart-icon {
    color: #2ab7a9;
    opacity: 0.8;
    transform: scale(1.1);
}

.empty-cart h2 {
    color: #2d3436;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.empty-cart p {
    color: #6c757d;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.btn-shop-now {
    background: linear-gradient(135deg, #f9d71c 0%, #f0cc18 100%);
    color: #2d3436;
    padding: 0.9rem 2.2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 10px rgba(249, 215, 28, 0.25);
    border: none;
    cursor: pointer;
}

.btn-shop-now i {
    color: #000000;
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
    margin: 0;
    padding: 0;
}

.btn-shop-now:hover {
    background: linear-gradient(135deg, #f0cc18 0%, #f9d71c 100%);
    transform: translateY(-3px);
    box-shadow: 0 5px 18px rgba(249, 215, 28, 0.35);
    color: #2d3436;
    text-decoration: none;
}

.btn-shop-now:hover i {
    color: #000000;
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.btn-shop-now:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(249, 215, 28, 0.3);
}

/* Container para mensagens inline - alinhado com o conteúdo do carrinho */
.cart-messages-container {
    margin-bottom: 1.5rem;
    padding: 0;
}

/* Melhorias visuais adicionais */
.cart-item-details h3 {
    font-weight: 600;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.cart-item-details {
    padding-left: 0.5rem;
}

.cart-item-actions {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    .cart-summary-container {
        grid-template-columns: 1fr;
    }
    
    .cart-header {
        display: none;
    }
}