/* =========================================
   ELVORA PREMIUM CART
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700&display=swap');

.woocommerce-cart {
    background: #fbfbfb;
    font-family: 'Sora', sans-serif;
}

.elvora-cart-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px 80px;
    display: grid;
    grid-template-columns: 1fr 400px;
    /* Sidebar Width */
    gap: 40px;
    align-items: start;
}

.ec-title {
    font-size: 28px;
    font-weight: 800;
    color: #1a3c34;
    margin-bottom: 25px;
}

/* 1. CART ITEMS (Main) */
.elvora-cart-main {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.shop_table {
    border: none !important;
    border-collapse: collapse !important;
    width: 100%;
}

.shop_table th {
    font-size: 13px;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 1px;
    border: none !important;
    padding: 0 0 20px 0 !important;
    font-weight: 600;
}

/* HIDE SUBTOTAL COLUMN */
.shop_table th.product-subtotal,
.shop_table td.product-subtotal {
    display: none !important;
}

.shop_table td {
    border: none !important;
    border-top: 1px solid #f4f4f4 !important;
    padding: 25px 0 !important;
    vertical-align: middle;
}

/* Product Info */
.product-thumbnail img {
    border-radius: 12px;
    width: 80px !important;
    height: 80px !important;
    object-fit: cover;
}

.product-name a {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
}

.product-name a:hover {
    color: #1a3c34;
}

.product-price .amount {
    font-weight: 700;
    color: #1a3c34;
    font-size: 15px;
}

.product-remove .remove {
    background: #fdf2f2 !important;
    color: #e11d48 !important;
    width: 24px;
    height: 24px;
    line-height: 24px;
    border-radius: 50%;
    font-size: 16px;
    display: block;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
}

.product-remove .remove:hover {
    background: #e11d48 !important;
    color: #fff !important;
}

/* QUANTITY STEPPER STYLES */
.elvora-qty-wrapper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e2e6e3;
    border-radius: 8px;
    padding: 4px;
    gap: 0;
}

.elvora-qty-btn {
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    color: var(--text-main, #333);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background .2s;
}

.elvora-qty-btn:hover {
    background: #f0f0f0;
}

.elvora-qty-wrapper input.qty {
    width: 40px;
    text-align: center;
    border: none !important;
    background: transparent !important;
    padding: 0;
    margin: 0;
    font-weight: 600;
    font-size: 14px;
    -moz-appearance: textfield;
}

.elvora-qty-wrapper input.qty::-webkit-outer-spin-button,
.elvora-qty-wrapper input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Actions Row (Coupon + Update) */
td.actions {
    padding-top: 30px !important;
}

.coupon {
    display: flex;
    gap: 10px;
    float: left;
}

.coupon input.input-text {
    width: 150px !important;
    padding: 12px 15px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 13px;
}

.coupon .button {
    background: #fff !important;
    border: 1px solid #1a3c34 !important;
    color: #1a3c34 !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    font-weight: 600 !important;
}

.actions>.button[name="update_cart"] {
    float: right;
    background: #f4f4f4 !important;
    color: #1a3c34 !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    font-weight: 600 !important;
}

/* =========================================
   2. NEW SIDEBAR LAYOUT (DIV BASED)
   ========================================= */
.elvora-cart-sidebar {
    position: sticky;
    top: 100px;
    width: 100%;
}

.cart-sidebar-summary {
    background: #1a3c34;
    color: #fff;
    padding: 30px 5%;
    /* 90% Content Width */
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(26, 60, 52, 0.2);
}

.cart-sidebar-summary h2 {
    color: #fff !important;
    font-size: 22px !important;
    font-weight: 800;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 20px;
    margin-bottom: 25px !important;
    margin-top: 0;
    text-transform: none !important;
}

/* Rows */
.css-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 15px;
}

.css-row:last-child {
    border-bottom: none;
}

.css-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.css-value {
    color: #fff;
    font-weight: 700;
    text-align: right;
}

/* Total specific */
.css-row.total-row {
    margin-top: 10px;
    border-bottom: none;
    padding-top: 25px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.css-row.total-row .css-label {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.css-row.total-row .css-value {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

/* Submit Button */
.wc-proceed-to-checkout {
    padding-top: 30px;
}

.wc-proceed-to-checkout .checkout-button {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100% !important;
    background: #fff !important;
    color: #1a3c34 !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    padding: 16px !important;
    border-radius: 50px !important;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    white-space: nowrap !important;
    /* Prevent text wrapping */
}

.wc-proceed-to-checkout .checkout-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background: #fff !important;
    color: #15302a !important;
}

/* Shipping Text override */
.woocommerce-shipping-calculator {
    margin: 0;
}

.shipping-calculator-button {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: underline;
    font-size: 13px;
}

/* Trust Box */
.ec-trust {
    display: none !important;
}

/* 3. RESPONSIVE */
@media (max-width: 900px) {
    .elvora-cart-wrapper {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 30px;
    }

    .elvora-cart-main {
        padding: 20px;
    }

    .shop_table tr {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        padding: 20px 0 !important;
    }
}