
/* ============================================================
   CUSTOM CART LAYOUT
   ============================================================ */

.custom-cart-wrap {
    margin: 0 auto;
    padding: 24px 0px;
    font-family: inherit;
}

/* ── 1. Full-width product table ── */
.custom-cart-table-wrap {
    width: 100%;
    margin-bottom: 28px;
}

.custom-cart-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 3px solid #e5e7eb!important;
    border-radius: 12px;
    overflow: hidden;
}

.custom-cart-table thead tr {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    border-left: none !important;
    border-right: none !important;
}

.custom-cart-table thead th {
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
    text-align: left;
    border-left: none !important;
    border-right: none !important;
}

.custom-cart-table thead th.col-price,
.custom-cart-table thead th.col-qty,
.custom-cart-table thead th.col-subtotal {
    text-align: center;
}

.custom-cart-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s;
    background-color: white !important;
}

.custom-cart-table tbody tr:last-child {
    border-bottom: none;
}

.custom-cart-table tbody tr:hover {
    background: #fafafa;
}

.custom-cart-table td {
    padding: 16px;
    vertical-align: middle;
    color: #1f2937;
    font-size: 14px;
}

/* Remove button */
/* Remove column */
.custom-cart-table .col-remove {
    width: 40px;
    text-align: center;
    padding-right: 8px;
}

/* Remove button */
.custom-cart-table .col-remove a.remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    border-radius: 50%;

    color: #9ca3af !important;
    background: transparent !important;

    text-decoration: none;

    transition:
        background 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}

/* SVG sizing */
.custom-cart-table .col-remove a.remove svg {
    width: 14px;
    height: 14px;
    display: block;
}

/* Hover */
.custom-cart-table .col-remove a.remove:hover {
    transform: scale(1.08);
}

/* Thumbnail */
.custom-cart-table .col-thumb {
    width: 72px;
    padding-right: 0;
}

.custom-cart-table .col-thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    display: block;
}

/* Product name */
.custom-cart-table .col-name {
    font-weight: 500;
    color: #111827;
}

.custom-cart-table .col-name a {
    color: inherit;
    text-decoration: none;
}

.custom-cart-table .col-name a:hover {
    color: #1d4ed8;
}

/* Price / subtotal */
.custom-cart-table .col-price,
.custom-cart-table .col-subtotal {
    text-align: center;
    white-space: nowrap;
}

.custom-cart-table .col-subtotal {
    font-weight: 600;
    color: #111827;
}

/* Quantity stepper */
.custom-cart-table .col-qty {
    text-align: center;
}

.custom-qty-wrapper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.custom-qty-wrapper button {
    width: 32px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    padding: 0;
}

.custom-qty-wrapper button:hover {
    background: #f3f4f6;
}

.custom-qty-wrapper input.qty {
    width: 40px!important;
    height: 36px;
    border: none;
    border-left: 1px solid #d1d5db;
    border-right: 1px solid #d1d5db;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    -moz-appearance: textfield;
    background: #fff;
    margin-bottom: 0px !important;
}

.custom-qty-wrapper input.qty::-webkit-inner-spin-button,
.custom-qty-wrapper input.qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

/* ── 2. Bottom two-column row ── */
.custom-cart-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

/* LEFT: Coupon card */
.custom-coupon-card {
    flex: 1 1 40%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}

.custom-coupon-card label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.custom-coupon-row {
    display: flex;
    gap: 10px;
}

.custom-coupon-row input[type="text"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    background: #f9fafb;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
    margin-bottom: 0px !important;
}

.custom-coupon-row input[type="text"]:focus {
    border-color: #1d4ed8;
    background: #fff;
}

.custom-coupon-row input[type="text"]::placeholder {
    color: #9ca3af;
}

.custom-coupon-row button {
    background: #1d4ed8!important;
    color: #fff;
    border: none;
    border-radius: 8px !important;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.15s;
    margin: 0px !important;
}

.custom-coupon-row button:hover {
    background: #1e40af;
}

/* RIGHT: Order Summary card */
.custom-summary-card {
    flex: 0 0 360px;
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.custom-summary-inner {
    padding: 24px;
}

.custom-summary-inner h3 {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 18px;
}

.custom-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.custom-totals-row:last-child {
    margin-bottom: 0;
}

.custom-totals-row .label {
    color: #6b7280;
}

.custom-totals-row .value {
    font-weight: 500;
    color: #111827;
}

.custom-totals-row .value.discount {
    color: #16a34a;
    font-weight: 600;
}

.custom-summary-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 16px 0;
}

/* Grand total row */
.custom-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.custom-total-row .total-label {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.custom-total-row .total-value {
    font-size: 26px;
    font-weight: 800;
    color: #1d4ed8;
    line-height: 1;
}

/* Checkout button — targets WooCommerce's own rendered button too */
.checkout-button.button.alt.wc-forward {
    margin-bottom: 20px;
}

.checkout-button.button.alt.wc-forward {
    display: block;
    width: 100%;
    padding: 14px;
    background: #1d4ed8 !important;
    color: #fff !important;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    letter-spacing: 0.02em;
    box-sizing: border-box;
}

.checkout-button.button.alt.wc-forward:hover {
    background: #1e40af !important;
    transform: translateY(-1px);
    color: #fff !important;
}

.custom-cart-table thead th.col-product-group {
    text-align: center;
    padding-left: 16px;
}

/* Hidden update cart button */
.custom-update-cart-btn {
    display: none;
}

.custom-cart-table tbody tr,
.custom-cart-table td {
    border: none !important;
}

/* Discount badge */
.custom-discount-badge-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.custom-discount-badge {
    background: #d9f5df;
    color: #0a8f3c;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
}

/* Subscription box */
.custom-subscription-box {
    margin-top: 24px;
    padding: 24px;
    background: #f4f7fd;
    border: 1px solid #dbe6ff;
    border-radius: 16px;
}

.subscription-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.subscription-title {
    font-size: 18px;
    font-weight: 700;
    color: #1d4ed8;
    margin-bottom: 12px;
    line-height: 1.3;
}

.subscription-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    background: #1d4ed8;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-top: 2px;
}

.subscription-content {
    display: flex;
    flex-direction: column;
}

.subscription-line {
    font-size: 15px;
    line-height: 1.6;
    color: #1e3a8a;
}


/* ── Responsive ── */
@media (max-width: 768px) {
    .custom-cart-bottom {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .custom-coupon-card,
    .custom-summary-card {
        flex: 1 1 100%;
        width: 100%;
    }

    .custom-cart-table thead th.col-price,
    .custom-cart-table thead th.col-subtotal,
    .custom-cart-table td.col-price,
    .custom-cart-table td.col-subtotal {
        display: none;
    }

}
