/* ============================================
   CART PAGE - Full Styled Cart
   Black & Yellow Theme
   ============================================ */

.cart {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 60vh;
}

.page-title {
    color: #ffd700;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.1);
    padding-bottom: 15px;
}

/* --- TABLE --- */
.cart-table-wrapper {
    overflow-x: auto;
}

.cart table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.cart table thead {
    background: rgba(255, 215, 0, 0.05);
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
}

.cart table th {
    padding: 14px 16px;
    text-align: left;
    color: #ffd700;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart table td {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.cart table tr:hover td {
    background: rgba(255, 215, 0, 0.02);
}

/* --- PRODUCT COLUMN --- */
.product {
    display: flex;
    align-items: center;
    gap: 16px;
}

.product img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.product-placeholder {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    color: #666;
    font-size: 30px;
}

.product-details {
    display: flex;
    flex-direction: column;
}

.product-details a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
}

.product-details a:hover {
    color: #ffd700;
}

/* --- PRODUCT REMOVE --- */
.product-remove {
    text-align: center;
    width: 40px;
}

.product-remove .remove {
    color: #ff6b6b;
    font-size: 24px;
    font-weight: 300;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
}

.product-remove .remove:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff4444;
    transform: scale(1.1);
}

/* --- PRICE & QUANTITY --- */
.product-price,
.product-subtotal {
    color: #fff;
    font-size: 15px;
}

.product-price .amount,
.product-subtotal .amount {
    color: #ffd700;
    font-weight: 600;
}

.product-quantity input {
    width: 60px;
    padding: 8px 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    text-align: center;
}

.product-quantity input:focus {
    outline: none;
    border-color: #ffd700;
}

/* --- CART COLLATERALS --- */
.cart-collaterals {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.totals {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 400px;
    padding: 16px 0;
    font-size: 18px;
    color: #fff;
}

.totals span:last-child {
    font-size: 22px;
    font-weight: 700;
    color: #ffd700;
}

.terms-conditions {
    color: #888;
    font-size: 13px;
    text-align: right;
    margin: 10px 0 20px;
    font-style: italic;
    max-width: 500px;
}

.actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.actions .button {
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: #fff;
    background: transparent;
    cursor: pointer;
}

.actions .button:hover {
    background: rgba(255, 215, 0, 0.06);
    border-color: #ffd700;
    color: #ffd700;
}

.actions .checkout-button {
    background: linear-gradient(135deg, #d4af37, #ffd700);
    color: #000;
    border: none;
}

.actions .checkout-button:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
    color: #000;
}

/* --- EMPTY CART --- */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart i {
    font-size: 60px;
    color: #ffd700;
    opacity: 0.3;
    margin-bottom: 20px;
}

.empty-cart p {
    color: #888;
    font-size: 18px;
    margin-bottom: 20px;
}

.empty-cart .button {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid #ffd700;
    color: #ffd700;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.empty-cart .button:hover {
    background: #ffd700;
    color: #000;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .cart table {
        font-size: 13px;
    }
    
    .cart table th,
    .cart table td {
        padding: 10px 8px;
    }
    
    .product img,
    .product-placeholder {
        width: 50px;
        height: 50px;
    }
    
    .product-details a {
        font-size: 13px;
    }
    
    .product-remove .remove {
        font-size: 18px;
        width: 24px;
        height: 24px;
        line-height: 24px;
    }
    
    .totals {
        max-width: 100%;
        font-size: 16px;
    }
    
    .actions {
        flex-direction: column;
        width: 100%;
    }
    
    .actions .button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cart table thead {
        display: none;
    }
    
    .cart table tr {
        display: block;
        padding: 16px 0;
        border-bottom: 2px solid rgba(255, 215, 0, 0.1);
    }
    
    .cart table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border: none;
    }
    
    .cart table td:first-child {
        justify-content: flex-start;
    }
    
    .product {
        flex: 1;
    }
    
    .product img,
    .product-placeholder {
        width: 40px;
        height: 40px;
    }
    
    .product-remove .remove {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 20px;
    }
    
    .product-quantity input {
        width: 50px;
        padding: 6px 4px;
    }
    
    .cart-collaterals {
        align-items: stretch;
    }
    
    .totals {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-align: center;
    }
    
    .terms-conditions {
        text-align: center;
    }
}