/* ==============================================
   COSIONT HEART SRL — Cart Page Styles
   ============================================== */

/* 1. TABLE STYLING */
.woocommerce-cart-form__contents {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 1rem;
}
.woocommerce-cart-form__contents thead th {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--cst-text-dim);
    padding-bottom: 1rem;
    text-align: left;
    font-weight: 700;
    border-bottom: 1px solid var(--cst-border);
}
.woocommerce-cart-form__contents tbody tr {
    background: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.woocommerce-cart-form__contents tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.woocommerce-cart-form__contents td {
    padding: 1.5rem;
    border-top: 1px solid var(--cst-border);
    border-bottom: 1px solid var(--cst-border);
    color: var(--cst-dark);
    vertical-align: middle;
}
.woocommerce-cart-form__contents td:first-child {
    border-left: 1px solid var(--cst-border);
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
}
.woocommerce-cart-form__contents td:last-child {
    border-right: 1px solid var(--cst-border);
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
}

/* 2. PRODUCT DETAILS */
.product-thumbnail img {
    border-radius: 0.5rem;
    width: 80px; height: 80px;
    object-fit: cover;
    border: 1px solid #f5f5f4;
}
.product-name a {
    color: var(--cst-dark);
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}
.product-name a:hover { color: var(--cst-gold); }
.product-price, .product-subtotal {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--cst-gold);
    font-size: 1.1rem;
}
.product-remove a {
    color: var(--cst-error) !important;
    font-size: 1.2rem;
    transition: transform 0.3s;
    display: inline-block;
    width: 30px; height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    background: #fef2f2;
}
.product-remove a:hover {
    background: var(--cst-error) !important;
    color: white !important;
}

/* 3. QUANTITY INPUT */
.quantity input {
    background: #f5f5f4 !important;
    border: 1px solid var(--cst-border) !important;
    color: var(--cst-dark) !important;
    border-radius: 99px !important;
    padding: 0.5rem !important;
    width: 60px !important;
    text-align: center;
    font-weight: 600;
}

/* 4. COUPON & ACTIONS */
.actions {
    padding-top: 2rem !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.coupon {
    display: flex;
    gap: 0.5rem;
}
.coupon input {
    background: #fff !important;
    border: 1px solid var(--cst-border) !important;
    color: var(--cst-dark) !important;
    padding: 0.8rem 1.5rem !important;
    border-radius: 99px !important;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    outline: none;
}
.coupon input:focus { border-color: var(--cst-gold) !important; }
button[name="apply_coupon"], button[name="update_cart"] {
    background: transparent !important;
    border: 1px solid var(--cst-border) !important;
    color: var(--cst-text-dim) !important;
    padding: 0.8rem 1.5rem !important;
    border-radius: 99px !important;
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all 0.3s;
}
button[name="apply_coupon"]:hover, button[name="update_cart"]:hover {
    border-color: var(--cst-gold) !important;
    color: var(--cst-gold) !important;
    background: #fff !important;
}

/* 5. CART TOTALS */
.cart_totals {
    width: 100%;
    margin-top: 3rem;
    background: #fff;
    border: 1px solid var(--cst-border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
@media (min-width: 1024px) {
    .cart-collaterals { display: flex; justify-content: flex-end; }
    .cart_totals { width: 40%; }
}
.cart_totals h2 {
    font-family: 'Playfair Display', serif;
    color: var(--cst-dark);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--cst-border);
    padding-bottom: 1rem;
}
.cart_totals table { width: 100%; border-collapse: collapse; }
.cart_totals th {
    text-align: left;
    color: var(--cst-text-dim);
    padding: 1rem 0;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.cart_totals td {
    text-align: right;
    color: var(--cst-dark);
    padding: 1rem 0;
    font-weight: 700;
    font-size: 1.1rem;
}
.wc-proceed-to-checkout { margin-top: 2rem; }
.wc-proceed-to-checkout a.checkout-button {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--cst-dark) !important;
    color: white !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 1.2rem !important;
    border-radius: 99px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
}
.wc-proceed-to-checkout a.checkout-button:hover {
    background: var(--cst-gold) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3);
}
