/* Custom Cart Styling - Two Column Layout Only */

/* Two-column layout for cart page - no design changes */
.woocommerce-cart .wp-block-post-title h1{
    text-align: left !important;
    max-width: 100% !important;
}
.woocommerce-cart main .woocommerce{
    max-width: 100% !important;
}
.woocommerce table.shop_table{
    border: none !important;
}
.cart-page-layout {
    display: flex;
    gap: 10rem;
    margin: 2.5rem auto;
}

.cart-main-content {
    flex: 2;
}

.cart-sidebar {
    flex: 1;
}
.woocommerce .cart-collaterals .cart_totals,.woocommerce-page .cart-collaterals .cart_totals{
    float: none !important;
    width: 100% !important;
}
.woocommerce-cart-form .shop_table thead{
    display: none !important;
}

.cart-summary-title{
    font-family: "Matter", "Roboto", sans-serif;
    line-height: 32px !important;
    font-size: 24px !important;
    font-weight: 600;
    margin-top: 0px !important;
}


.woocommerce-page .woocommerce-cart-form .product-thumbnail{
    padding-left: 0 !important;
    width: 160px !important;     
    max-width: 160px !important;
  }
  
  .woocommerce-page .woocommerce-cart-form .product-thumbnail .product-thumbnail-picture{
    box-sizing: border-box;
    width: 100%;     
    background: #FAFAFA;
    border-radius: 16px;
    padding: 24px;
    overflow: hidden;            
    display: grid;
    place-items: center;          
  }
  
  .woocommerce-page .woocommerce-cart-form .product-thumbnail a{
    display: block;
    width: 100%;
    height: 100%;
  }
  

  .woocommerce-page .woocommerce-cart-form .product-thumbnail a img{
    display: block;
    width: 100%;
    height: 100%;
    height: auto;                
    object-fit: contain;         
  }
  
.woocommerce-cart-form .product-name .cart-variable-title {
    display: block !important;
    font-weight: 600; 
    line-height: 24px;
    font-size: 16px;
    clear: both;
    text-decoration: none !important;
}

.woocommerce-cart-form .product-name .cart-variable-title a {
    color: #2D3645;
    text-decoration: none !important;
}

.woocommerce-cart-form .product-name .cart-variable-title a:hover {
    text-decoration: none !important;
} 

.woocommerce-cart-form .product-name .cart-category {
    display: block !important;
    line-height: 1.4;
    clear: both;
    padding-right: 18px !important;
    font-size: 14px;
    color: #5F656F;
}
.cart-row .cart-subtotal .amount bdi {
    line-height: 1.4;
    font-size: 14px;
    color: #5F656F;
}
.cart-sidebar .cart-collaterals td{
    text-align: right !important;
}
.cart_totals tr th, .cart_totals tr td{
    padding-left: 0px !important;
    color: #2D3645;
    line-height: 24px !important;
    font-size: 16px !important;
    font-weight: 400 !important;
}
.cart_totals .order-total-title th{
    font-weight: 600 !important;
}
.woocommerce-cart-form .product-name .product-quantity {
    display: block !important;
    margin-top: 0.5rem;
    clear: both;
}

.woocommerce-cart-form .product-name .product-quantity .quantity.pill-style {
    display: inline-flex !important;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 25px;
    background: white;
    overflow: hidden;
    width: auto;
    height: 34px !important;
}

.woocommerce-cart-form .product-name .product-quantity .quantity .input-text.qty.text {
    width: 50px !important;
    border: none !important;
    text-align: center;
    font-size: 1rem;
    background: white;
    appearance: textfield;
    -moz-appearance: textfield;
    margin: 0;
}

.woocommerce-cart-form .product-name .product-quantity .quantity .input-text.qty.text::-webkit-outer-spin-button,
.woocommerce-cart-form .product-name .product-quantity .quantity .input-text.qty.text::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.woocommerce-cart-form .product-name .product-quantity .quantity .qty-btn {
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    background: white;
    color: #666;
    transition: background-color 0.3s ease;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}
.woocommerce-cart-form .product-name .product-quantity .quantity .qty-btn-minus, .woocommerce-cart-form .product-name .product-quantity .quantity .qty-btn-plus{
    background: white;
    border-radius: 100px !important;
}
.woocommerce-cart-form .product-name .product-quantity .quantity .qty-btn-minus:hover {
    background: #F5F6F7;
    border-radius: 100px !important;
}

.woocommerce-cart-form .product-name .product-quantity .quantity .qty-btn-plus:hover {
    background: #F5F6F7;
    border-radius: 100px !important;
}

.woocommerce-cart-form .product-name .product-quantity .quantity.pill-style {
    display: inline-flex !important;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 25px;
    background: white;
    overflow: hidden;
    width: auto;
    height: 34px !important;
}

.woocommerce-cart-form .product-name .product-quantity .quantity .input-text.qty.text {
    width: 50px !important;
    border: none !important;
    text-align: center;
    font-size: 1rem;
    background: white;
    appearance: textfield;
    -moz-appearance: textfield;
    margin: 0;
}

.woocommerce-cart-form .product-name .product-quantity .quantity .input-text.qty.text::-webkit-outer-spin-button,
.woocommerce-cart-form .product-name .product-quantity .quantity .input-text.qty.text::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.woocommerce-cart-form .product-name .product-quantity .quantity .qty-btn {
  
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    background: white;
    color: #666;
    transition: background-color 0.3s ease;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}
.woocommerce-cart-form .product-name .product-quantity .quantity .qty-btn-minus, .woocommerce-cart-form .product-name .product-quantity .quantity .qty-btn-plus{
    background: white;
    border-radius: 100px !important;
}
.woocommerce-cart-form .product-name .product-quantity .quantity .qty-btn-minus:hover {
    background: #F5F6F7;
    border-radius: 100px !important;
}

.woocommerce-cart-form .product-name .product-quantity .quantity .qty-btn-plus:hover {
    background: #F5F6F7;
    border-radius: 100px !important;
}

/* Remove bottom border from last row in cart totals */
.cart-collaterals .shop_table tr:last-child td,
.cart-collaterals .shop_table tr:last-child th {
    border-bottom: none !important;
}

.woocommerce-cart-form tr:first-child td,
.woocommerce-cart-form tr:last-child td {
    border-top: none !important;
}

.cart-collaterals .shop_table th,
.cart-collaterals .shop_table td {
  border-top: none !important;
  border-bottom: none !important;
}
.cart-collaterals .shop_table tr.order-total th,
.cart-collaterals .shop_table tr.order-total td {
  border-top: 1px solid #EEEFEF !important;
  border-bottom: 1px solid #EEEFEF !important;
}


.woocommerce .woocommerce-cart-form table.shop_table tr td {
    border-top: 1px solid #EEEFEF;
}

.cart-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 34px;
}

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

.cart-left {
    flex: 1;
    text-align: left;
}

.cart-right {
    flex: 0 0 auto;
    text-align: right;
    margin-left: 1rem;
}

.cart-row-1 .cart-left,
.cart-row-1 .cart-right {
    font-weight: 600;
    font-size: 16px;
    color: #2D3645;
}

.cart-row-2{
    margin-bottom: 16px !important;
}
.cart-row-2 .cart-variable-title {
    margin: 0 !important;
    display: inline-block;
}

.cart-row-2 .cart-category {
    margin: 0!important;
    display: inline-block;
}

/* Row 3: Quantity and Remove */
.cart-row-3 .product-quantity {
    margin: 0 !important;
    display: inline-block;
}

.cart-row-3 .cart-right .remove {
    color: #6c757d !important;
    text-decoration: underline;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    line-height: 1;
    min-width: 60px;
}

.cart-row-3 .cart-right a.remove:hover {
background: none !important;
color: #6c757d !important;
text-decoration: none !important;
}

.actions {
    display: none !important;
}
.cart-submit-button{
    text-decoration: none !important;
padding: 16px 24px !important;
background: #1570ef;
border: none;
border-radius: 100px;
color: #fff;
font-size: 18px !important;
}

.quantity input[type="number"].loading-disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
    background-color: #f5f5f5;
    user-select: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .cart-page-layout {
        flex-direction: column;
        padding: 1rem;
        gap: 1.5rem;
    }
    .cart-sidebar {
        max-width: none;
    }
    .woocommerce table.shop_table_responsive tr:nth-child(2n) td, .woocommerce-page table.shop_table_responsive tr:nth-child(2n) td{
        background: none !important;
    }
    .woocommerce table.shop_table_responsive tr td.product-name::before,
    .woocommerce-page table.shop_table_responsive tr td.product-name::before {
        display: none !important;
    }
}
