/* Estilos para o carrinho Glender */
.cart-wrapper {
    max-width: 1000px;
    margin: 0 auto 80px;
    padding: 0 20px;
    min-height: calc(100vh - 400px);
}

.cart-title {
    color: #F0A030;
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    position: relative;
}

.cart-title-line {
    width: 100%;
    height: 1px;
    background-color: #F0A030;
    margin: 10px auto 30px;
}

.glender-cart-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.cart-products-container {
    border: 1px solid #F0A030;
    border-radius: 4px;
    overflow: hidden;
}

.cart-header {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr;
    background-color: #110d06;
    padding: 15px 20px;
    border-bottom: 1px solid #F0A030;
}

.product-header, .price-header, .quantity-header {
    color: #F0A030;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 18px;
}

.cart-item {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr;
    padding: 20px;
    background-color: #110d06;
    border-bottom: 1px solid rgba(240, 160, 48, 0.3);
    align-items: center;
}

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

.product-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-remove a {
    color: #F0A030;
    font-size: 24px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #F0A030;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    background-color: #1a1510;
    border: 1px solid #F0A030;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-thumbnail img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-name a {
    color: #F0A030;
    font-family: 'Playfair Display', serif;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
}

.product-price {
    color: #F0A030;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
}

.product-price .woocommerce-Price-amount {
    color: #F0A030;
}

.product-quantity {
    display: flex;
    align-items: center;
}

.quantity {
    display: flex;
    align-items: center;
    border: 1px solid #F0A030;
    overflow: hidden;
    width: 100px;
    justify-content: space-between;
}

.quantity input {
    background-color: transparent;
    border: none;
    color: #F0A030;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    width: 30px;
    text-align: center;
    padding: 5px 0;
}

.quantity-button {
    background-color: transparent;
    border: none;
    color: #F0A030;
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-button.minus {
    border-right: 1px solid #F0A030;
}

.quantity-button.plus {
    border-left: 1px solid #F0A030;
}

.coupon-and-update {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    flex-wrap: wrap;
    gap: 15px;
    border-top: 1px solid rgba(240, 160, 48, 0.3);
    margin-top: 20px;
}

.coupon {
    display: flex;
    gap: 10px;
}

.coupon input[type="text"] {
    background-color: #110d06;
    border: 1px solid #F0A030;
    color: #F0A030;
    padding: 10px 15px;
    font-family: 'Playfair Display', serif;
    min-width: 200px;
    height: 45px;
}

.coupon input[type="text"]::placeholder {
    color: rgba(240, 160, 48, 0.6);
}

.button.coupon-button {
    background-color: #110d06;
    color: #F0A030;
    border: 1px solid #F0A030;
    padding: 10px 20px;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 45px;
    text-transform: uppercase;
}

.button.coupon-button:hover {
    background-color: #F0A030;
    color: #110d06;
}

.update-button-container {
    margin-left: auto;
}

.button.update-cart {
    background-color: #110d06;
    color: #F0A030;
    border: 1px solid #F0A030;
    padding: 10px 20px;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button.update-cart:hover {
    background-color: #F0A030;
    color: #110d06;
}

.cart-totals-container {
    border: 1px solid #F0A030;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 40px;
}

.cart-totals-container h2 {
    color: #F0A030;
    font-family: 'Playfair Display', serif;
    text-align: center;
    font-size: 24px;
    padding: 15px 0;
    margin: 0;
    border-bottom: 1px solid #F0A030;
}

.cart-totals-content {
    padding: 20px;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(240, 160, 48, 0.3);
}

.totals-row:last-child {
    border-bottom: none;
}

.totals-label {
    color: #F0A030;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
}

.totals-value {
    color: #F0A030;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
}

.total-row {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #F0A030;
}

.total-row .totals-label,
.total-row .totals-value {
    font-size: 20px;
    font-weight: 700;
}

.checkout-button-container {
    padding: 20px;
    background-color: #F0A030;
    text-align: center;
}

.checkout-button {
    background-color: #F0A030;
    color: #110d06;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    display: block;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.checkout-button:hover {
    color: #ffffff;
}

/* Estilos para os inputs de quantidade */
.quantity .minus,
.quantity .plus {
    background-color: transparent;
    border: none;
    color: #F0A030;
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsividade */
@media (max-width: 768px) {
    .cart-header {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .cart-item {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .product-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-remove {
        align-self: flex-start;
    }
    
    .cart-title {
        font-size: 36px;
    }
}

@media (max-width: 576px) {
    .cart-header {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-info {
        flex-direction: row;
    }
    
    .cart-title {
        font-size: 28px;
    }
}
