/**CART PAGE - WC BLOCKS  **/

/* Removes Stock badge */
.wc-block-cart-items__row .wc-block-components-product-low-stock-badge {
display: none !important;
}

/* Cart container styling */
body.woocommerce-cart .site-inner {
    max-width: 1800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Cart page title */
body.woocommerce-cart h1 {
    color: #1c3a4d;
    font-size: 48px;
    font-weight: 300;
    text-align: center;
    margin-bottom: 50px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
    padding-bottom: 20px;
}

body.woocommerce-cart h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #A68A3D, transparent);
}

/* Main WC Blocks cart container with glass morphism */
body.woocommerce-cart .wp-block-woocommerce-cart {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 50px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.08),
        0 12px 20px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

/* WC Blocks Cart table styling */
body.woocommerce-cart .wc-block-cart-items {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

body.woocommerce-cart .wc-block-cart-items table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

/* Table header */
body.woocommerce-cart .wc-block-cart-items thead {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 2px solid #e2e8f0;
}

body.woocommerce-cart .wc-block-cart-items thead th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
    color: #1c3a4d;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

/* Table body rows */
body.woocommerce-cart .wc-block-cart-items tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

body.woocommerce-cart .wc-block-cart-items tbody tr:hover {
    background: rgba(155, 138, 58, 0.03);
}

body.woocommerce-cart .wc-block-cart-items td {
    padding: 25px 20px;
    vertical-align: middle;
}

/* Product image in cart */
body.woocommerce-cart .wc-block-cart-items__item-image {
    width: 100px !important;
}

body.woocommerce-cart .wc-block-cart-items__item-image img {
    width: 100px !important;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Product name styling */
body.woocommerce-cart .wc-block-cart-items__item-name a {
    color: #1c3a4d;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

body.woocommerce-cart .wc-block-cart-items__item-name a:hover {
    color: #9b8a3a;
}

/* Stock status */
body.woocommerce-cart .wc-block-components-product-metadata {
    color: #64748b;
    font-size: 13px;
    margin-top: 5px;
}

/* Price in table */
body.woocommerce-cart .wc-block-components-product-price__value,
body.woocommerce-cart .wc-block-cart-item__total .wc-block-components-formatted-money-amount {
    color: #9b8a3a !important;
    font-weight: 600;
    font-size: 18px;
}

/* Quantity input styling */
body.woocommerce-cart .wc-block-components-quantity-selector {
    display: inline-flex;
    align-items: center;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

body.woocommerce-cart .wc-block-components-quantity-selector input {
    width: 60px !important;
    text-align: center;
    border: none !important;
    padding: 8px;
    font-weight: 500;
    color: #1c3a4d;
    background: transparent;
}

body.woocommerce-cart .wc-block-components-quantity-selector button {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: none !important;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
}

body.woocommerce-cart .wc-block-components-quantity-selector button:hover:not(:disabled) {
    background: #9b8a3a;
    color: white;
}


/* Cart totals section - WC Blocks */
body.woocommerce-cart .wc-block-cart__totals {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 35px;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.4);
    max-width: 500px;
    margin-left: auto;
    position: relative;
    overflow: hidden;
}

/* Cart totals heading */
body.woocommerce-cart .wp-block-woocommerce-cart h2 {
    color: #1c3a4d !important;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

/* Totals amounts */
body.woocommerce-cart .wc-block-components-totals-item__label {
    color: #64748b;
    font-weight: 500;
    font-size: 14px;
}

body.woocommerce-cart .wc-block-components-totals-item__value {
    color: #1c3a4d;
    font-weight: 600;
    font-size: 18px;
}

body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    color: #9b8a3a !important;
    font-size: 24px;
    font-weight: 700;
}

/* Proceed to checkout button - WC Blocks */
body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-cart .wc-block-components-button.contained {
    background: linear-gradient(135deg, #9b8a3a, #b8a347) !important;
    color: #fff !important;
    padding: 15px !important;
    border: none !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(155, 138, 58, 0.3) !important;
}

.wc-block-components-totals-wrapper {
    border: none !important;
}

.is-large.wc-block-cart .wc-block-cart__totals-title {
    margin: 0 !important;
    padding: 0 !important;
    text-transform: none !important;
}

table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image img {
    width: 64% !important;
    margin-left: 40px !important;
}

table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name {
    font-size: 22px;
}

table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link {
    margin-left: 0;
    color: #9b8a3a !important;
    transition: all 0.3s ease;
}

body.woocommerce-cart .wc-block-cart-item__remove-link:hover {
    background: #ef4444;
    color: white !important;
    transform: translateY(-2px);
}

table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link:hover {
    color: #a00 !important;
}

body.woocommerce-cart .wc-block-cart__submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

body.woocommerce-cart .wc-block-cart__submit-button:hover {
    background: linear-gradient(135deg, #8a7b33, #a6943f) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 138, 58, 0.4) !important;
}

body.woocommerce-cart .wc-block-cart__submit-button:hover::before {
    left: 100%;
}

/* Coupon section - WC Blocks */
body.woocommerce-cart .wc-block-components-totals-coupon {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
}

body.woocommerce-cart .wc-block-components-totals-coupon input {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    padding: 10px !important;
    width: 100%;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    height: 60px;
}

body.woocommerce-cart .wc-block-components-totals-coupon input:focus {
    outline: none;
    border-color: #9b8a3a !important;
    box-shadow: 0 0 0 3px rgba(155, 138, 58, 0.1);
}

body.woocommerce-cart .wc-block-components-totals-coupon button {
    background: linear-gradient(135deg, #64748b, #475569) !important;
    color: white !important;
    border: none !important;
    padding: 10px 25px !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

body.woocommerce-cart .wc-block-components-totals-coupon button:hover {
    background: linear-gradient(135deg, #475569, #334155) !important;
    transform: translateY(-2px);
}

/* Empty cart message styling */
body.woocommerce-cart .wc-block-cart__empty-cart__title {
    text-align: center;
    color: #1c3a4d;
    font-size: 28px;
    margin-bottom: 20px;
}

body.woocommerce-cart .wc-block-cart__empty-cart__link {
    background: linear-gradient(135deg, #9b8a3a, #b8a347) !important;
    color: white !important;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 500;
}

body.woocommerce-cart .wc-block-cart__empty-cart__link:hover {
    background: linear-gradient(135deg, #8a7b33, #a6943f) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155, 138, 58, 0.3);
}

/* Additional Blocks-specific adjustments */
body.woocommerce-cart .wc-block-components-panel {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 20px;
}

body.woocommerce-cart .wc-block-components-panel__button {
    padding: 15px;
    font-weight: 500;
    color: #1c3a4d;
}

