/* Font Definition */
@font-face { 
    font-family: 'Avenir Roman'; 
    src: url('https://darkorange-sandpiper-741171.hostingersite.com/wp-content/uploads/2025/11/Avenir-Roman.woff2') format('woff2'); 
    font-weight: normal; 
    font-style: normal; 
}

.thb-cart-form, .thb-cart-form * { font-family: 'Avenir Roman', sans-serif !important; }

.thb-cart-form { max-width: 1250px; margin: 40px auto; }
.thb-cart-form h4 { margin-bottom: 10px; font-size: 16px; letter-spacing: 1px; font-weight: 500; padding-bottom: 10px; border: none; }

.cart-items { display: flex; gap: 60px; align-items: flex-start; }
.cart-items__main { flex: 1.6; }
.cart-items__actions { flex: 1; max-width: 420px; position: sticky; top: 20px; }

.product-cart-item { display: flex; gap: 25px; padding: 35px 0; border-bottom: 1px solid #f2f2f2; }
.product-cart-item-image { width: 90px; flex-shrink: 0; background-color: #f7f7f7 !important;}
.product-cart-item-image img { width: 100%; height: 110px; object-fit:contain; padding: 10px !important; mix-blend-mode: darken !important; }

.product-cart-item-info-wrapper { display: flex; flex: 1; justify-content: space-between; }
.product-cart-item-info { display: flex; flex-direction: column; }
.cart-product-link { font-size: 14px; font-weight: 500; text-transform: uppercase; text-decoration: none; color: #000; letter-spacing: 0.5px; margin-bottom: 8px; display:block; }

.tb-size-row { display: flex; align-items: baseline; gap: 0px; margin-bottom: 12px; font-size: 12px; }
.tb-size-row label { font-weight: 500; font-size: 12px; color: #000; margin: 0; line-height: 1; }
.tb-select-wrapper { position: relative; display: inline-block; line-height: 1; }
.tb-size-dropdown { appearance: none; -webkit-appearance: none; border: none; background: transparent; font-size: 12px; font-weight: 400; color: #000; padding-right: 18px; cursor: pointer; line-height: 1; margin: 0; }
.tb-size-dropdown:focus { outline: none; }
.tb-arrow { font-size: 8px; color: #000; pointer-events: none; position: absolute; right: 0; top: 45%; transform: translateY(-50%); }

.tb-qty-container { display: inline-flex; align-items: center; border: none; margin-top: 5px; height: 30px; width: 100px; }

/* UPDATED BUTTON STYLE FOR SVG */
.tb-qty-btn { 
    background: transparent !important; 
    border: none !important; 
    width: 30px; /* Width for click area */
    height: 100%; 
    color: #333; 
    cursor: pointer; 
    padding: 0; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.tb-qty-num { width: 40px !important; height: 100% !important; border: none !important; text-align: center !important; font-size: 14px !important; color: #000 !important; padding: 0 !important; background: transparent !important; -moz-appearance: textfield; display: block !important; }
.tb-qty-num::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.product-subtotal { display: flex; flex-direction: column; justify-content: space-between; text-align: right; min-width: 100px; }
.product-subtotal .price { font-weight: 600; font-size: 15px; color: #000; }
.remove.text-button { font-size: 10px; text-decoration: underline; color: #000; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; }

.tb-continue-shop { display: inline-block; margin-top: 30px; font-size: 12px; text-decoration: underline; color: #000; text-transform: uppercase; letter-spacing: 1px; }

/* SIDEBAR (No Borders) */
.thb-cart-form--cart-collaterals { background: transparent; border: none; padding: 0 0 0 40px; }

/* CHECKOUT ROW */
.tb-checkout-top-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.tb-subtotal-text { font-size: 16px; letter-spacing: 0.5px; }
.tb-checkout-btn-small { 
    background: #000; color: #fff; padding: 12px 50px; 
    font-size: 12px; font-weight: 600; text-decoration: none; 
    text-transform: uppercase; letter-spacing: 1px; white-space: nowrap;
    transition: all 0.3s ease;
}
.tb-checkout-btn-small:hover { color: #fff !important; opacity: 0.8; background-color: #333; }

/* PAYMENT IMAGES */
.tb-payment-row { display: flex; gap: 15px; margin-bottom: 25px; align-items: center; }
.tb-pay-link { display: inline-block; text-decoration: none; border: none; cursor: pointer; }
.tb-pay-link img { width: auto; max-height: 25px; object-fit: contain; }

.cart-policy-text { font-size: 11px; color: #888; text-align: left; }

/* RESPONSIVE MOBILE RULES */
@media (max-width: 900px) {
    .cart-items { flex-direction: column; gap: 40px; }
    .thb-cart-form--cart-collaterals { padding: 0; margin-top: 30px; }
    .product-cart-item { display: grid; grid-template-columns: 90px 1fr; gap: 20px; }
    .product-cart-item-info-wrapper { display: contents; } 
    .product-cart-item-info { grid-column: 2; }
    .product-subtotal { grid-column: 3; flex-direction: column; align-items: flex-end; justify-content: space-between; margin-top: 10px; text-align: right; }
    
    /* Better Mobile Checkout */
    .tb-checkout-top-row { flex-direction: column; align-items: flex-start; gap: 15px; }
    .tb-checkout-btn-small { width: 100%; text-align: center; display: block; }
    .tb-subtotal-text { margin-bottom: 5px; font-weight: 600; }
}