
/* ==========================================
   THE ENGINEERS GROUP - CART PAGE
   Black + Orange Premium Design
   ========================================== */

.teg-cart-page {
    padding: 32px 20px 70px;
    background: #f6f7f9;
    color: #222222;
    min-height: 500px;
}

.teg-cart-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}

.teg-cart-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    color: #687386;
    font-size: 14px;
}

.teg-cart-breadcrumb a {
    color: #e87500;
    font-weight: 700;
    text-decoration: none;
}

.teg-cart-breadcrumb a:hover {
    color: #111111;
}

.teg-cart-heading {
    margin-bottom: 32px;
    padding: 30px 34px;
    border: 1px solid #e5e7eb;
    border-top: 4px solid #ff8a00;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(17, 17, 17, 0.04);
}

.teg-cart-kicker {
    color: #e87500;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.teg-cart-heading h1 {
    margin: 8px 0;
    color: #111111;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.2;
}

.teg-cart-heading p {
    margin: 8px 0 0;
    color: #687386;
    font-size: 15px;
}

/* WooCommerce classic cart */
.teg-cart-content .woocommerce {
    width: 100%;
}

.teg-cart-content .woocommerce-cart-form,
.teg-cart-content .cart-collaterals {
    min-width: 0;
}

.teg-cart-content table.shop_table {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: #ffffff;
}

.teg-cart-content table.shop_table th {
    padding: 16px;
    background: #111111;
    color: #ffffff;
    border: 0;
    font-size: 13px;
    font-weight: 700;
}

.teg-cart-content table.shop_table td {
    padding: 18px 14px;
    border-top: 1px solid #eceff3;
    vertical-align: middle;
}

.teg-cart-content .product-name a {
    color: #17243a;
    font-weight: 700;
    text-decoration: none;
}

.teg-cart-content .product-name a:hover {
    color: #e87500;
}

.teg-cart-content .product-thumbnail img {
    width: 76px;
    height: auto;
    border: 1px solid #eeeeee;
    border-radius: 8px;
}

.teg-cart-content .quantity .qty {
    min-height: 42px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    text-align: center;
}

.teg-cart-content .cart-collaterals .cart_totals {
    float: none;
    width: 100%;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-top: 4px solid #ff8a00;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(17, 17, 17, 0.05);
}

.teg-cart-content .cart_totals h2 {
    color: #111111;
    font-size: 22px;
    font-weight: 800;
}

/* WooCommerce classic buttons */
.teg-cart-content .woocommerce button.button,
.teg-cart-content .woocommerce a.button,
.teg-cart-content .woocommerce input.button,
.teg-cart-content .wc-proceed-to-checkout a.checkout-button {
    border: 1px solid #e87500 !important;
    border-radius: 9px !important;
    background: linear-gradient(135deg, #ffad33, #ff8a00) !important;
    color: #111111 !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    box-shadow: 0 6px 16px rgba(255, 138, 0, 0.15);
}

.teg-cart-content .wc-proceed-to-checkout a.checkout-button {
    display: block;
    padding: 17px 20px !important;
    text-align: center;
    font-size: 16px;
}

.teg-cart-content .woocommerce button.button:hover,
.teg-cart-content .woocommerce a.button:hover,
.teg-cart-content .woocommerce input.button:hover,
.teg-cart-content .wc-proceed-to-checkout a.checkout-button:hover {
    background: #ffbd59 !important;
    color: #111111 !important;
}

/* WooCommerce Cart Block */
.teg-cart-content .wp-block-woocommerce-cart,
.teg-cart-content .wc-block-cart {
    color: #222222;
}

.teg-cart-content .wc-block-cart__main,
.teg-cart-content .wc-block-cart__sidebar {
    min-width: 0;
}

.teg-cart-content .wc-block-cart__sidebar {
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-top: 4px solid #ff8a00;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(17, 17, 17, 0.05);
}

.teg-cart-content .wc-block-cart__submit-button,
.teg-cart-content .wc-block-components-button:not(.is-link) {
    border: 1px solid #e87500 !important;
    border-radius: 9px !important;
    background: linear-gradient(135deg, #ffad33, #ff8a00) !important;
    color: #111111 !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    box-shadow: 0 6px 16px rgba(255, 138, 0, 0.15);
}

.teg-cart-content .wc-block-cart__submit-button:hover,
.teg-cart-content .wc-block-components-button:not(.is-link):hover {
    background: #ffbd59 !important;
    color: #111111 !important;
}

.teg-cart-content .wc-block-components-totals-wrapper {
    border-color: #e5e7eb;
}

.teg-cart-content .wc-block-components-product-name {
    color: #17243a;
    font-weight: 700;
    text-decoration: none;
}

.teg-cart-content .wc-block-components-product-name:hover {
    color: #e87500;
}

/* Trust notes */
.teg-cart-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 28px;
    margin-top: 28px;
    color: #586273;
    font-size: 13px;
    font-weight: 600;
}

.teg-cart-trust span::first-letter {
    color: #e87500;
}

/* Responsive */
@media (max-width: 800px) {
    .teg-cart-page {
        padding: 22px 14px 42px;
    }

    .teg-cart-heading {
        padding: 24px 20px;
        margin-bottom: 22px;
    }

    .teg-cart-content .wc-block-cart__sidebar,
    .teg-cart-content .cart-collaterals .cart_totals {
        padding: 18px;
    }

    .teg-cart-trust {
        gap: 10px 16px;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .teg-cart-heading h1 {
        font-size: 29px;
    }

    .teg-cart-breadcrumb {
        margin-bottom: 20px;
    }

    .teg-cart-content table.shop_table td {
        padding: 10px 6px;
    }

    .teg-cart-trust {
        flex-direction: column;
        gap: 8px;
    }
}

/* ==========================================
   TEG PREMIUM COUPON BOX
   ========================================== */

/* Coupon section inside cart totals */
.teg-cart-content .cart-collaterals .coupon,
.teg-cart-content .cart-collaterals .wc-block-components-totals-coupon {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    padding: 18px;
    border: 1px solid #ffd09a;
    border-left: 4px solid #ff8a00;
    border-radius: 12px;
    background: #fff8ef;
}

/* Coupon toggle row in WooCommerce Cart Block */
.teg-cart-content .wc-block-components-totals-coupon-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 18px;
    border: 1px solid #ffd09a;
    border-left: 4px solid #ff8a00;
    border-radius: 10px;
    background: #fff8ef;
    color: #222222;
    font-weight: 700;
    text-decoration: none;
}

/* Coupon input field */
.teg-cart-content .coupon input.input-text,
.teg-cart-content .wc-block-components-totals-coupon input,
.teg-cart-content .wc-block-components-totals-coupon .wc-block-components-text-input input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid #d7dce3;
    border-radius: 8px;
    background: #ffffff;
    color: #111111;
    font-size: 14px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.teg-cart-content .coupon input.input-text:focus,
.teg-cart-content .wc-block-components-totals-coupon input:focus {
    border-color: #ff8a00;
    box-shadow: 0 0 0 3px rgba(255, 138, 0, .13);
}

/* Apply coupon button */
.teg-cart-content .coupon button,
.teg-cart-content .coupon .button,
.teg-cart-content .wc-block-components-totals-coupon button {
    min-height: 46px;
    padding: 12px 20px;
    border: 1px solid #e87500 !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #ffad33, #ff8a00) !important;
    color: #111111 !important;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.teg-cart-content .coupon button:hover,
.teg-cart-content .coupon .button:hover,
.teg-cart-content .wc-block-components-totals-coupon button:hover {
    background: #ffbd59 !important;
    color: #111111 !important;
}

/* Classic cart: make coupon form easier to use */
.teg-cart-content .coupon {
    width: 100%;
}

.teg-cart-content .coupon input.input-text {
    flex: 1 1 180px;
}

@media (max-width: 480px) {
    .teg-cart-content .cart-collaterals .coupon,
    .teg-cart-content .cart-collaterals .wc-block-components-totals-coupon {
        padding: 14px;
    }

    .teg-cart-content .coupon input.input-text,
    .teg-cart-content .coupon button,
    .teg-cart-content .coupon .button {
        width: 100%;
    }
}

/* Cart coupon area - remove dropdown arrow */
.teg-cart-content .wc-block-components-totals-coupon-link {
    display: none !important;
}

/* Classic WooCommerce cart coupon form */
.teg-cart-content .woocommerce-cart-form .coupon {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 16px;
    margin: 16px 0;
    border: 1px solid #ffd09a;
    border-left: 4px solid #ff8a00;
    border-radius: 10px;
    background: #fff8ef;
}

.teg-cart-content .woocommerce-cart-form .coupon input.input-text {
    flex: 1 1 180px;
    width: auto !important;
    min-height: 46px;
    padding: 12px;
    border: 1px solid #d7dce3;
    border-radius: 8px;
    background: #ffffff;
}

.teg-cart-content .woocommerce-cart-form .coupon button,
.teg-cart-content .woocommerce-cart-form .coupon .button {
    min-height: 46px;
    padding: 12px 20px;
    border: 1px solid #e87500 !important;
    border-radius: 8px !important;
    background: #ff8a00 !important;
    color: #111111 !important;
    font-weight: 800 !important;
}

@media (max-width: 480px) {
    .teg-cart-content .woocommerce-cart-form .coupon input.input-text,
    .teg-cart-content .woocommerce-cart-form .coupon button {
        width: 100% !important;
    }
}

/* ==========================================
   TEG CART - PREMIUM PRODUCT DETAILS
   ========================================== */

/* Product row spacing */
.teg-cart-content table.shop_table tr.cart_item td {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
    vertical-align: middle;
}

/* Product title */
.teg-cart-content .product-name a {
    display: inline-block;
    margin-bottom: 6px;
    color: #111111 !important;
    font-size: 16px;
    font-weight: 800 !important;
    line-height: 1.55;
    text-decoration: none !important;
    transition: color .2s ease;
}

.teg-cart-content .product-name a:hover {
    color: #e87500 !important;
}

/* Product description and variation text */
.teg-cart-content .product-name,
.teg-cart-content .product-name dl,
.teg-cart-content .product-name p {
    color: #596273;
    font-size: 13px;
    line-height: 1.7;
}

.teg-cart-content .product-name p {
    margin: 7px 0;
}

/* Product cover image */
.teg-cart-content td.product-thumbnail img {
    display: block;
    width: 82px !important;
    max-width: 82px !important;
    height: auto !important;
    padding: 5px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 5px 14px rgba(17, 17, 17, .07);
    transition: transform .2s ease, box-shadow .2s ease;
}

.teg-cart-content td.product-thumbnail img:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(17, 17, 17, .12);
}

/* Regular price */
.teg-cart-content .product-name del,
.teg-cart-content .product-price del {
    color: #8992a0;
    font-size: 13px;
    font-weight: 500;
}

/* Sale price */
.teg-cart-content .product-name ins,
.teg-cart-content .product-price ins {
    color: #e87500;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
}

/* Product subtotal */
.teg-cart-content td.product-subtotal,
.teg-cart-content td.product-price {
    color: #111111;
    font-size: 15px;
    font-weight: 800;
}

/* Savings badge, if provided by your cart markup */
.teg-cart-content .product-name .onsale,
.teg-cart-content .product-name .teg-savings,
.teg-cart-content .product-price .teg-savings {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 8px;
    border: 1px solid #ffd09a;
    border-radius: 5px;
    background: #fff3e3;
    color: #b65300;
    font-size: 11px;
    font-weight: 800;
}

/* Quantity field */
.teg-cart-content .quantity {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
}

.teg-cart-content .quantity .qty {
    width: 76px !important;
    min-height: 42px;
    border: 1px solid #d8dee8 !important;
    border-radius: 8px !important;
    background: #ffffff;
    color: #111111;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.teg-cart-content .quantity .qty:focus {
    border-color: #ff8a00 !important;
    outline: 3px solid rgba(255, 138, 0, .12);
}

/* Remove product button */
.teg-cart-content a.remove {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 34px !important;
    height: 34px !important;
    margin-left: 8px;
    border: 1px solid #f0dada;
    border-radius: 8px !important;
    background: #fff7f7;
    color: #c83b3b !important;
    font-size: 21px !important;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.teg-cart-content a.remove:hover {
    border-color: #d93636;
    background: #d93636 !important;
    color: #ffffff !important;
}

/* Cleaner separators */
.teg-cart-content table.shop_table tbody tr.cart_item td {
    border-bottom: 1px solid #e7eaf0;
}

.teg-cart-content table.shop_table tbody tr.cart_item:last-of-type td {
    border-bottom: 0;
}

/* Mobile cart product layout */
@media (max-width: 600px) {
    .teg-cart-content table.shop_table tr.cart_item td {
        padding: 14px 7px !important;
    }

    .teg-cart-content td.product-thumbnail img {
        width: 62px !important;
        max-width: 62px !important;
    }

    .teg-cart-content .product-name a {
        font-size: 14px;
    }

    .teg-cart-content .product-name,
    .teg-cart-content .product-name p {
        font-size: 12px;
    }
}

