/* =====================
   Cart Page v5
   ===================== */


.thermo-cart-coupon {
    justify-content: space-between;
}

.thermo-coupon-placeholder {
    flex: 1; 
    color: var(--thermo-gray-light);
    font-size: 13px;
}

.thermo-applied-coupon-code {
    font-size: 13px;
    font-weight: 700;
    color: var(--thermo-dark);
    margin-right: 8px;
}


.thermo-coupon-input {
    border: none !important;
    box-shadow: none !important;
}

.entry-content p {
margin-bottom: 0px;
	color: var(--thermo-dark);
	font-weight: 500;
}

button {
    border-radius: 4px;
    box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0);
}

.thermo-applied-coupon-code {
color: var(--thermo-teal);
	font-weight: 700;
}

.thermo-qty-btn:hover {
background-color:  #ffffff;
}

body.woocommerce-cart { background-color: #FFFFFF !important; overflow-x: hidden; }
.thermo-cart-wrap { font-family: 'ThermoFont', sans-serif; padding: 50px 0 80px; overflow-x: clip; }
.thermo-cart-wrap *,
.thermo-cart-wrap *::before,
.thermo-cart-wrap *::after { box-sizing: border-box; }
.thermo-cart-inner { width: 1180px; max-width: 100%; margin: 0 auto; }

.thermo-cart-header { display: flex; align-items: baseline; gap: 14px; margin-bottom: 32px; }
.thermo-cart-title { font-size: 22px; font-weight: 700; color: var(--thermo-dark); margin: 0; text-transform: uppercase; font-feature-settings: "case" on; }
.thermo-cart-count { font-size: 14px; color: var(--thermo-dark); font-weight: 500; }

.thermo-cart-empty { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 80px 20px; background: #fff; border: 1px solid var(--thermo-gray-border); border-radius: 15px; margin-top: 20px; text-align: center; }
.thermo-cart-empty p { font-size: 16px; color: var(--thermo-gray-light); margin: 0; }
.thermo-cart-back-btn { display: inline-flex; align-items: center; padding: 12px 28px; background: var(--thermo-dark); color: #fff; border-radius: 12px; font-size: 14px; font-weight: 600; text-decoration: none; transition: background 0.15s; }
.thermo-cart-back-btn:hover { background: var(--thermo-dark-hover); color: #fff; }

.thermo-cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; max-width: 100%; }
.thermo-cart-items-col,
.thermo-cart-sidebar { min-width: 0; }



.thermo-cart-table,
.thermo-cart-table td,
.thermo-cart-table th {
    border: none !important;
}



/* =====================
   Items panel
   ===================== */
.thermo-cart-items { background: #fff; border-radius: 15px; border: 1px solid var(--thermo-gray-border) ;  overflow: hidden; padding: 9px 24px; margin-top: 20px; max-width: 100%; }

/* =====================
   TABLE
   ===================== */
.thermo-cart-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

/* THEAD */
.thermo-cart-table thead th {
    padding: 0px 0px 13px;
    font-size: 12px;
	line-height: 21px;
    font-weight: 400;
    color: var(--thermo-gray-text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    border-bottom: 2px solid #F2F2F2;
    text-align: center;
    background: #fff;
}

.thermo-th-name {
    text-align: left !important;
    width: 260px; /* constrain name col */
}

.thermo-th-price { text-align: right !important; }

/* TBODY rows — position relative for absolute cb/remove */
.thermo-cart-table tbody tr {
    position: relative;
	border-top: 1px solid #DDDDDF;
}

.thermo-cart-table tbody tr:last-child { border-bottom: none; }
.thermo-cart-table tbody tr:hover td { background: #FAFAFA; }

/* All TD base */
.thermo-cart-table tbody td {
    padding: 20px 16px;
    vertical-align: middle;
    text-align: center;
    background: #fff;
    transition: background 0.12s;
}

/* =====================
   Checkbox — absolute top-left of tr
   ===================== */
.thermo-cart-cb-wrap {
    position: absolute;
    top: 14px;
    left: 0px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    cursor: default;
    z-index: 1;
}

.thermo-cart-cb { position: absolute; opacity: 0; width: 0; height: 0; }

.thermo-cart-cb-custom {
    width: 20px; height: 20px;
    border: 2px solid var(--thermo-dark);
    border-radius: 6px;
    background: var(--thermo-dark);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.thermo-cart-cb-custom::after {
    content: '';
    display: block;
    width: 5px; height: 9px;
    border: 2px solid #fff;
    border-top: none; border-left: none;
    transform: rotate(45deg) translateY(-1px);
}

/* =====================
   Remove — absolute top-right of tr
   ===================== */
.thermo-cart-item-remove {
    position: absolute;
    top: 8px;
    right: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px; height: 20px;
    border-radius: 7px;
    text-decoration: none;
    transition: background 0.15s;
    z-index: 1;
}

.thermo-cart-item-remove:hover { background: var(--thermo-red-bg); }
.thermo-cart-item-remove:hover line { stroke: var(--thermo-red); }

/* =====================
   Main cell — indent for absolute cb
   ===================== */
.thermo-td-main {
    text-align: left !important;
    padding-left: 10px !important; /* room for cb */
    padding-right: 12px !important;
}

.thermo-cart-item-main { display: flex; align-items: center; gap: 12px; }

.thermo-cart-item-image {
    position: relative;
    width: 76px; height: 76px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}

.thermo-cart-item-image img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.thermo-cart-item-image a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }

.thermo-cart-item-badge {
    position: absolute; top: 4px; left: 4px;
    background: var(--thermo-red); color: #fff;
    font-size: 10px; font-weight: 700;
    border-radius: 4px; padding: 2px 4px; line-height: 1.4; z-index: 2;
}

.thermo-cart-item-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.thermo-cart-item-cat { font-size: 14px; line-height: 21px; color: var(--thermo-near-black);  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thermo-cart-item-brand { font-size: 14px; line-height: 21px;  font-weight: 700; color: var(--thermo-near-black); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.thermo-cart-item-qty {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}

.thermo-qty-btn { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; padding: 0; transition: opacity 0.15s; flex-shrink: 0; }
.thermo-qty-btn:hover { opacity: 0.5; }
.thermo-qty-btn:focus, .thermo-qty-btn:focus-visible { outline: none !important; box-shadow: none !important; }

.thermo-qty-input {
    width: 32px;
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    text-align: center;
    font-family: 'ThermoFont', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--thermo-dark);
    background: transparent;
    padding: 0px 0px;
    -moz-appearance: textfield;
}
.thermo-qty-input::-webkit-inner-spin-button, .thermo-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.thermo-qty-input:focus { outline: none; border-color: var(--thermo-dark); }

/* =====================
   Attr cells
   ===================== */
.thermo-td-attr { white-space: nowrap; text-align: center !important; }
.thermo-attr-text { font-size: 14px; font-weight: 400; color: var(--thermo-near-black); }
.thermo-attr-empty { color: #D1D1D6; font-size: 18px; line-height: 1; }
.thermo-attr-color-dot { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.1); vertical-align: middle; }

/* =====================
   Price cell
   ===================== */
.thermo-td-price { text-align: right !important; white-space: nowrap; padding-right: 10px !important; }

.thermo-price-old { display: block; font-size: 12px; color: var(--thermo-dark); opacity: 0.4; text-decoration: line-through; }
.thermo-price-old .woocommerce-Price-amount { font-size: 12px; }
.thermo-price-sale { display: block; font-size: 15px; font-weight: 700; color: var(--thermo-dark); }
.thermo-price-sale .woocommerce-Price-amount { font-size: 14px; font-weight: 700; }
.thermo-price-regular { display: block; font-size: 15px; font-weight: 700; color: var(--thermo-dark); }
.thermo-price-regular .woocommerce-Price-amount { font-size: 15px; font-weight: 700; }


/* =====================
   Footer row
   ===================== */
.thermo-cart-footer-row { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-top: 1px solid #F2F2F2; gap: 12px; }
.thermo-cart-coupon { display: flex; align-items: center; gap: 8px; border: 1px solid var(--thermo-gray-border); border-radius: 10px; padding: 12px 16px; margin-top: 20px;}

.thermo-coupon-input { height: 40px; padding: 0 14px; border: 1.5px solid #E5E5E5; border-radius: 10px; font-family: 'ThermoFont', sans-serif; font-size: 13px; color: var(--thermo-dark); background: #fff; width: 160px; min-width: 0; transition: border-color 0.15s; }
.thermo-coupon-input:focus { outline: none; border-color: var(--thermo-dark); }
.thermo-coupon-input::placeholder { color: var(--thermo-gray-light); }

.thermo-coupon-btn { padding: 6px; background: var(--thermo-dark); color: #fff; border: none; border-radius: 100px; font-family: 'ThermoFont', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.15s; white-space: nowrap; }
.thermo-coupon-btn:hover { background: var(--thermo-teal); color: #FFFFFF; }

.thermo-cart-update-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 18px; background: transparent; border: 1.5px solid #E5E5E5; border-radius: 10px; font-family: 'ThermoFont', sans-serif; font-size: 13px; font-weight: 600; color: var(--thermo-dark); cursor: pointer; transition: all 0.15s; white-space: nowrap; }
.thermo-cart-update-btn:hover { border-color: var(--thermo-dark); background: var(--thermo-dark); color: #fff; }

/* =====================
   Sidebar
   ===================== */
.thermo-cart-sidebar { position: sticky; top: 100px; }
.thermo-cart-totals { background: #FBFBFB; border-radius: 15px; margin-top: 20px;  padding: 25px 30px; }
.thermo-cart-totals-title { font-size: 16px; font-weight: 700; color: var(--thermo-dark); margin: 0 0 20px; text-transform: uppercase; font-feature-settings: "case" on; margin-top: 20px; }

.thermo-cart-items-breakdown { display: flex; flex-direction: column; border-bottom: 1px solid #F2F2F2; margin-bottom: 4px; padding-bottom: 4px; }
.thermo-breakdown-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #F2F2F2; }
.thermo-breakdown-row:last-child { border-bottom: none; }
.thermo-breakdown-name { font-size: 13px; color: var(--thermo-dark); line-height: 1.4; display: flex; flex-direction: column; gap: 1px; }
.thermo-breakdown-name strong { font-size: 12px; font-weight: 700; }
.thermo-breakdown-price { font-size: 13px; font-weight: 600; color: var(--thermo-dark); white-space: nowrap; flex-shrink: 0; }
.thermo-breakdown-price .woocommerce-Price-amount { font-size: 13px; }

.thermo-cart-totals-rows { display: flex; flex-direction: column; margin-bottom: 20px; }
.thermo-totals-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid #F2F2F2; gap: 10px; }
.thermo-totals-row:last-child { border-bottom: none; }
.thermo-totals-label { font-size: 14px; color: var(--thermo-dark); display: flex; align-items: center; gap: 6px; font-weight: 700; }
.thermo-totals-value { font-size: 14px; font-weight: 600; color: var(--thermo-dark); white-space: nowrap; }
.thermo-totals-discount { color: var(--thermo-teal); }

.thermo-remove-coupon { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; background: #F2F2F2; border-radius: 50%; font-size: 12px; color: var(--thermo-gray-light); text-decoration: none; line-height: 1; transition: all 0.15s; }
.thermo-remove-coupon:hover { background: var(--thermo-red); color: #fff; }

.thermo-totals-final .thermo-totals-label { font-size: 15px; font-weight: 700; }
.thermo-totals-final .thermo-totals-value { font-size: 18px; font-weight: 700; }

.thermo-cart-sidebar .wc-proceed-to-checkout { display: block !important; margin: 0 !important; padding: 0 !important; }
.thermo-cart-sidebar .checkout-button { display: flex !important; align-items: center !important; justify-content: center !important; width: 100% !important; padding: 28px 24px !important; background: var(--thermo-dark) !important; color: #fff !important; border: none !important; border-radius: 14px !important; font-family: 'ThermoFont', sans-serif !important; font-size: 15px !important; font-weight: 600 !important; text-decoration: none !important; cursor: pointer !important; transition: background 0.15s !important; box-shadow: none !important; margin-top: 20px !important; }
.thermo-cart-sidebar .checkout-button:hover { background: var(--thermo-dark-hover) !important; }

.thermo-cart-wrap .woocommerce-message,
.thermo-cart-wrap .woocommerce-error,
.thermo-cart-wrap .woocommerce-info { border-radius: 12px; margin-bottom: 20px; }

/* =====================
   Responsive
   ===================== */
@media (max-width: 1280px) { .thermo-cart-inner { width: 100%; padding: 0 20px; } }

@media (max-width: 1024px) {
    .thermo-cart-layout { grid-template-columns: 1fr; }
    .thermo-cart-sidebar { position: static; }
    .thermo-td-attr, .thermo-th:not(.thermo-th-cb):not(.thermo-th-name):not(.thermo-th-price):not(.thermo-th-remove) { display: none; }
}

@media (max-width: 600px) {
    .thermo-cart-wrap { padding: 24px 0 50px; }
    .thermo-cart-inner { padding: 0 12px; }
    .thermo-cart-table thead { display: none; }
    .thermo-cart-table tbody tr {
        display: flex;
        flex-direction: column;
        padding: 14px 0;
        border-top: 1px solid #F2F2F2;
        position: relative;
    }
    .thermo-cart-table tbody td { padding: 0; text-align: left !important; background: none; }
    .thermo-td-main { padding-left: 0 !important; padding-right: 28px !important; order: 1; }
    .thermo-td-price { text-align: left !important; padding-left: 72px !important; margin-top: 6px; order: 2; }
    .thermo-cart-item-remove { top: 10px; right: 0; }
    .thermo-cart-footer-row { flex-direction: column; align-items: stretch; }
    .thermo-cart-coupon { flex-direction: row; align-items: center; gap: 10px; padding: 12px; }
    .thermo-cart-coupon svg { flex: 0 0 auto; }
    .thermo-coupon-input { flex: 1 1 auto; width: auto; }
    .thermo-coupon-btn { width: 40px; height: 40px; flex: 0 0 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
    .thermo-cart-update-btn { justify-content: center; }
}
