/* =============================================================
   CART PAGE LAYOUT
   ============================================================= */

.woocommerce-cart .woocommerce {
  display: flex;
  align-items: flex-start;
}

.woocommerce-cart-form {
  flex: 1 1 0;
  min-width: 0;
}
.woocommerce .cart-collaterals,
.woocommerce-page .cart-collaterals {
  width: 420px !important;
  margin-left: 41px;
}
.cart-collaterals {
  width: 360px;
  flex-shrink: 0;
}
.woocommerce-cart .product-price {
  display: table-cell;
}

/* =============================================================
   CART TABLE — 4 COLUMNS: Product | Price | Quantity | Subtotal
   ============================================================= */

.shop_table.cart {
  width: 100%;
  border-collapse: collapse;
  border: none;
}

/* Table header */
.shop_table.cart thead th {
  padding: 9px 16px 14px;
  font-size: 16px;
  font-weight: 500;
  color: #000;
  text-align: left;
  border-bottom: 1px solid #D7DEEA;
  background: none;
}

.shop_table.cart thead .product-col {
  width: 50%;
}

.shop_table.cart thead .product-subtotal {
  text-align: right;
}

/* Body rows */
.shop_table.cart tbody .woocommerce-cart-form__cart-item {
  border-bottom: 1px solid #D7DEEA;
}

.shop_table.cart tbody td {
  padding: 20px 16px;
  vertical-align: middle;
  border: none;
}
.shop_table.cart thead th:first-child {
  padding-left: 0px;
}
.shop_table.cart td.product-col {
  padding-left: 0px;
}
/* -------------------------------------------------------
   PRODUCT COLUMN — remove icon + thumbnail + title
------------------------------------------------------- */

.shop_table.cart .product-col .product-col-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Trash / remove button */
.shop_table.cart .product-col a.remove {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  color: #92a5c3 !important;
  text-decoration: none;
  font-size: 0;
  transition:
    color 0.2s,
    background 0.2s;
  border: 1px solid #eef1f6;
  border-radius: 0px;
}

.shop_table.cart .product-col a.remove:hover {
  color: #cc0000 !important;
  background: #fff2f2;
  border-color: #fff2f2;
}

.shop_table.cart .product-col a.remove svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

/* Product thumbnail */
.shop_table.cart .product-col .product-thumbnail-link {
  display: block;
  flex-shrink: 0;
  width: 120px;
  height: 154px;
  border-radius: 0px;
  overflow: hidden;
  text-decoration: none;
}

.shop_table.cart .product-col .product-thumbnail-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Product title */
.shop_table.cart .product-col .product-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.shop_table.cart .product-col .product-title {
  font-size: 18px;
  font-weight: 600;
  color: #000a11;
  text-decoration: none;
  line-height: 1.4;
}

.shop_table.cart .product-col .product-title:hover {
  text-decoration: underline;
}

/* -------------------------------------------------------
   PRICE
------------------------------------------------------- */

.shop_table.cart .product-price,
.shop_table.cart .product-price-title {
  font-size: 15px;
  color: #000000;
}
.shop_table.cart .product-price .amount {
  font-size: 16px;
  color: #000a11;
  font-weight: 700;
}
.shop_table.cart .product-subtotal {
  padding-right: 0px;
}
/* -------------------------------------------------------
   QUANTITY — minus | number | plus
------------------------------------------------------- */
.quantity {
  display: flex;
  align-items: center;
  border: 1px solid #d7deea;
  border-radius: 0px;
  overflow: hidden;
  width: fit-content;
  box-shadow: 0px 2px 2px 0px rgba(217, 221, 227, 0.3);
}
.qty-minus,
.qty-plus {
  width: 36px;
  height: 52px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s;
}

.qty-minus:hover,
.qty-plus:hover {
  background: #e6ebef;
}

input.qty {
  width: 44px;
  height: 38px;
  border: none;
  /* border-left: 1px solid #ddd;
	border-right: 1px solid #ddd; */
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  color: #000000;
  background: #fff;
  padding: 0;
  -moz-appearance: textfield;
}

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

/* -------------------------------------------------------
   SUBTOTAL
------------------------------------------------------- */

.shop_table.cart td.product-subtotal {
  text-align: right;
  font-size: 16px;
  font-weight: 700;
  color: #000000;
}

/* -------------------------------------------------------
   ACTIONS ROW (update cart)
------------------------------------------------------- */

.shop_table.cart .actions {
  border-bottom: none;
  padding: 16px 0 0;
  text-align: right;
}

.shop_table.cart .actions .button {
  background: #111;
  color: #fff;
  border: none;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
}

.shop_table.cart .actions .button:hover {
  background: #333;
}

.woocommerce-cart .woocommerce-cart-form table.shop_table {
  border: none;
}

.woocommerce-cart .shop_table.cart tbody .woocommerce-cart-form__cart-item td {
  border-bottom: 1px solid color-mix(in srgb, currentColor 20%, transparent);
}

.update-button {
  border: 1px solid #000a11;
  letter-spacing: 0.05em;
}

.update-button-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
/* =============================================================
   CART TOTALS SIDEBAR
   ============================================================= */
/* .woocommerce-cart .woo-container {
  margin-top: 30px;
} */
 .woocommerce-cart .cart-collaterals .cart_totals table{
  margin-bottom: 0px;
 }
.cart-totals-container {
  padding: 30px 20px;
  background: #f3f6f9;
  border: 1px solid #e6ebef;
}
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cart_totals {
  width: 100% !important;
}
/* .cart_totals {
	background: #eef2f7;
	border-radius: 8px;
	padding: 20px;
} */

.cart_totals h2 {
  font-size: 18px;
  font-weight: 600;
  color: #1C478B;
  margin: 0 0 30px;
}

/* Coupon */
.cart_totals .cart-coupon {
  display: flex;
  margin-bottom: 20px;
}

.cart_totals .cart-coupon input[type="text"] {
  flex: 1;
  height: 40px;
  border: 1px solid #cdd5de;
  border-right: none;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
  background: #fff;
  border-radius: 0px;
  color: #000;
  font-family:"Outfit", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

.cart_totals .cart-coupon input[type="text"]::placeholder {
  color: #aaa;
}

.cart_totals .cart-coupon #coupon-form {
  margin: 0;
}

.cart_totals .cart-coupon button[name="apply_coupon"] {
  height: 40px;
  padding: 0 20px;
  background: #111;
  color: #fff;
  border: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0 0px 0px 0;
  min-width: 121px;
  white-space: nowrap;
  transition: background 0.2s;
}

.cart_totals .cart-coupon button[name="apply_coupon"]:hover {
  background: #333;
}

/* Totals table */
.cart_totals .shop_table {
  width: 100%;
  border-collapse: collapse;
}

.cart_totals .shop_table tr {
  border-bottom: 1px dashed #c4cdd8;
}

.cart_totals .shop_table tr:last-child {
  border-bottom: none;
}

.cart_totals .shop_table th,
.cart_totals .shop_table td {
  padding: 14px 0;
  font-size: 14px;
}

.cart_totals .shop_table th {
  color: #444;
  font-weight: 400;
}

.cart_totals .shop_table td {
  text-align: right;
  font-weight: 600;
  color: #111;
}

/* Grand Total row */
.cart_totals .shop_table .order-total th,
.cart_totals .shop_table .order-total td {
  font-size: 16px;
  font-weight: 700;
  color: #1e9d6e;
  padding-bottom: 4px;
}

/* Checkout button */
.cart_totals .wc-proceed-to-checkout {
  margin-top: 14px;
}

.cart_totals .wc-proceed-to-checkout a.checkout-button {
  display: block;
  width: 100%;
  padding: 16px 24px;
  background: #000000;
  color: #fff;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0px;
  letter-spacing: 0.05em;
  box-sizing: border-box;
  transition: background 0.2s;
  box-shadow: 0px 4px 4px 0px rgba(66, 172, 40, 0.25);
  border:1px solid #000;
}

.cart_totals .wc-proceed-to-checkout a.checkout-button:hover {
  background: transparent;
  color:#000000;
}

.custom-cart-wrapper {
  display: flex;
  width: 100%;
  flex-direction: column;
}

.cart-container {
  display: flex;
}
.woocommerce table.shop_table {
  border: none;
}
.woocommerce .cart_totals table.shop_table th {
  padding-top: 18px;
  padding-bottom: 18px;
  padding-left: 0px;
}
.woocommerce .cart_totals table.shop_table td {
  padding-top: 18px;
  padding-bottom: 18px;
  padding-right: 0px;
}
.cart_totals .shop_table tr {
  border-bottom: 1px dashed #b7b6cc;
}
.cart_totals .shop_table th {
  font-size: 16px;
  color: #000000;
  font-weight: 500 !important;
}
.cart_totals .shop_table tr.order-total th {
  color: #358f1f;
  font-size: 20px;
  font-weight: 600;
}
.woocommerce .cart_totals table.shop_table td strong{
  font-weight: 700;
}
.woocommerce
  .cart_totals
  table.shop_table
  tr.order-total
  td
  .woocommerce-Price-amount {
  color: #358f1f;
  font-size: 20px;
  font-weight: 800;
}
.woocommerce .cart_totals table.shop_table td {
  font-size: 16px;
  color: #000000;
  font-weight: 700;
}
.cart-container {
  position: relative;
}
.woocommerce-page .custom-cart-wrapper .cart-collaterals {
  position: sticky;
  top: 0px;
}
.woocommerce-cart .woocommerce:has(.wc-empty-cart-message) {
  flex-direction: column;
  width: 100%;
  align-items: center;
  flex-wrap: wrap;
}
.woocommerce-cart .woocommerce:has(.wc-empty-cart-message) > div{
	width: 100%;
}
p.return-to-shop{
	margin-bottom: 0px;
}
.woocommerce-info{
	border-top-color:#000;
}
.woocommerce-info::before{
	color: #000;
}
 .woocommerce-cart .cart-collaterals .cart_totals tr th,.woocommerce-cart .cart-collaterals .cart_totals tr td{
  border-top-style: dashed;
  border-top-color:#B7B6CC;
 }
 .woocommerce .custom-cart-wrapper table.shop_table_responsive tr:nth-child(2n) td, .woocommerce-page .custom-cart-wrapper table.shop_table_responsive tr:nth-child(2n) td{
  background: transparent;
 }
 .woocommerce-cart .cart-collaterals .cart_totals tr:last-child td,.woocommerce-cart .cart-collaterals .cart_totals tr:last-child th{
  padding-bottom: 0px;
 }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1199px) {
  .woocommerce .cart-collaterals, .woocommerce-page .cart-collaterals{
    width: 100% !important;
    margin-left: 0px;
    position:static;
  }
  .cart-container{
    flex-wrap: wrap;
  }
  .woocommerce-cart-form{
    flex: auto;
    margin-bottom: 40px;
  }
}
@media (max-width: 960px) {
  .woocommerce-cart .woocommerce {
    flex-direction: column;
  }

  .cart-collaterals {
    width: 100%;
  }
  .woocommerce .cart-collaterals, .woocommerce-page .cart-collaterals{
    width: 100% !important;
    margin-top: 60px;
    margin-left: 0;
  }
  .cart-container{
    flex-wrap: wrap;
  }
  .woocommerce-cart-form{
    flex:auto;
  }
}
@media (max-width: 767px) {
  .cart-container {
    flex-wrap: wrap;
    gap: 40px;
  }
  .woocommerce .cart-collaterals,
  .woocommerce-page .cart-collaterals {
    width: 100% !important;
    margin-left: 0px;
  }
  .woocommerce-cart-form {
    flex: auto;
  }
  .product-quantity .quantity {
    margin-left: auto;
  }
  .woocommerce .cart-collaterals, .woocommerce-page .cart-collaterals{
    margin-top: 0;
  }
  .cart_totals .wc-proceed-to-checkout a.checkout-button{
    margin-bottom: 0;
  }
  .cart-container .product-price{
    margin-top: 0;
  }
 
  .woocommerce-cart-form .shop_table.cart .product-subtotal{
    padding-right: 12px;
  }
}
@media (max-width: 640px) {
  .shop_table.cart thead {
    display: none;
  }

  .shop_table.cart tbody td {
    display: block;
    text-align: right;
    padding: 10px 12px;
  }

  .shop_table.cart .product-col .product-col-inner {
    flex-wrap: nowrap;
  }

  .shop_table.cart tbody td::before {
    content: attr(data-title) ": ";
    font-weight: 600;
    float: left;
  }

  .shop_table.cart .product-col::before {
    display: none;
  }
  .cart_totals .cart-coupon button[name="apply_coupon"]{
  min-width: inherit;
}
}
