/* Cart Page - Modern WooCommerce Cart Design */
:root {
  /* Colors */
  --usk-cart-primary: #e62a3f;
  --usk-cart-primary-hover: #c50847;
  --usk-cart-text: #565656;
  --usk-cart-muted: #929292;
  --usk-cart-border: #dedcdc94;
  --usk-cart-input-border: #d6d4d4;
  --usk-cart-input-focus: #7b7373;
  --usk-cart-input-text: #7b7373;
  --usk-cart-placeholder: #c1aeae;
  --usk-cart-price: #484343bf;
  --usk-cart-white: #ffffff;
  --usk-cart-bg-alt: #eaeff3;
  /* Typography */
  --usk-cart-text-sm: 12px;
  --usk-cart-text-base: 14px;
  --usk-cart-text-lg: 17px;
  --usk-cart-title: 22px;
  /* Spacing */
  --usk-cart-padding: 10px 12px;
  --usk-cart-gap: 6px;
  --usk-cart-margin: 50px;
  /* Layout */
  --usk-cart-radius: 5px;
  --usk-cart-btn-radius: 2px;
  --usk-cart-thumb-size: 80px;
  --usk-cart-input-height: 42px;
  --usk-cart-btn-height: 50px;
  /* Animation */
  --usk-cart-transition: all 0.3s ease;
}

/* Table Layout */
.usk-page-cart .woocommerce-cart-form .shop_table {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-collapse: collapse;
  margin: 0;
  text-align: center;
  width: 100%;
  border-radius: var(--usk-cart-radius);
}

/* Table Headers */
.usk-page-cart .woocommerce-cart-form .shop_table th {
  border: 1px solid var(--usk-cart-border);
  padding: var(--usk-cart-padding);
  line-height: 1.5em;
  font-size: var(--usk-cart-text-base);
  color: var(--usk-cart-white);
  text-transform: uppercase;
  font-weight: 700;
  background: var(--usk-cart-primary);
}

/* Table Cells */
.usk-page-cart .woocommerce-cart-form .shop_table td {
  border: 1px solid var(--usk-cart-border);
  border-top: none;
  border-bottom: none;
  padding: var(--usk-cart-padding);
  vertical-align: middle;
  font-size: var(--usk-cart-text-base);
  text-transform: capitalize;
  font-weight: 400;
  color: var(--usk-cart-muted);
  background: transparent;
  line-height: 1.5em;
}

/* Remove Button */
.usk-page-cart .woocommerce-cart-form .shop_table .usk-product-remove .remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--usk-cart-text-lg);
  height: 25px;
  width: 25px;
  border-radius: 100%;
  color: var(--usk-cart-primary) !important;
  text-decoration: none;
  font-weight: 700;
  border: 0;
  transition: var(--usk-cart-transition);
  margin: auto;
  background: transparent;
}

.usk-page-cart .woocommerce-cart-form .shop_table .usk-product-remove .remove:hover {
  background: var(--usk-cart-primary);
  color: var(--usk-cart-white) !important;
}

/* Product Image */
.usk-page-cart .woocommerce-cart-form .shop_table .usk-product-image a img {
  width: var(--usk-cart-thumb-size);
  height: var(--usk-cart-thumb-size);
  outline: none;
  object-fit: cover;
  border-radius: var(--usk-cart-btn-radius);
}

/* Product Title */
.usk-page-cart .woocommerce-cart-form .shop_table .usk-product-title {
  text-align: right;
}

.usk-page-cart .woocommerce-cart-form .shop_table .usk-product-title a {
  color: var(--usk-cart-primary);
  font-weight: 500;
  transition: var(--usk-cart-transition);
  text-decoration: none;
}

.usk-page-cart .woocommerce-cart-form .shop_table .usk-product-title a:hover {
  color: var(--usk-cart-primary-hover);
}

/* Quantity Input */
.usk-page-cart .woocommerce-cart-form .shop_table .usk-product-quantity .quantity button {
  padding: 15px;
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color: #a4afb7;
  border-radius: 3px 3px 3px 3px;
  color: #444;
  line-height: 1;
  cursor: pointer;
  background: transparent;
}
.usk-page-cart .woocommerce-cart-form .shop_table .usk-product-quantity .quantity button:hover {
  background: #f9f9f9;
}
.usk-page-cart .woocommerce-cart-form .shop_table .usk-product-quantity .quantity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.usk-page-cart .woocommerce-cart-form .shop_table .usk-product-quantity .qty {
  margin-left: 0 !important;
  width: 5.631em;
  outline: none;
  color: var(--usk-cart-input-text);
  border: 1px solid #a4afb7;
  border-radius: 3px 3px 3px 3px;
  background: transparent;
  padding: 14px;
  text-align: center;
}

.usk-page-cart .woocommerce-cart-form .shop_table .usk-product-quantity .qty:focus {
  border-color: var(--usk-cart-input-focus);
}

/* Actions Section */
.usk-page-cart .woocommerce-cart-form .shop_table .actions {
  text-align: left !important;
}

.usk-page-cart .woocommerce-cart-form .shop_table .actions .coupon {
  float: none;
  margin: 0;
  padding-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--usk-cart-gap);
}

.usk-page-cart .woocommerce-cart-form .shop_table .actions .coupon .input-text {
  width: 135px;
  border: 1px solid var(--usk-cart-input-border);
  outline: none;
  font-size: var(--usk-cart-text-base);
  text-align: center;
  font-weight: 500;
  border-radius: var(--usk-cart-btn-radius);
  background: transparent;
  padding: 6px;
  float: initial;
  line-height: 1.5;
}

.usk-page-cart .woocommerce-cart-form .shop_table .actions .coupon .input-text::placeholder {
  color: var(--usk-cart-placeholder);
}

.usk-page-cart .woocommerce-cart-form .shop_table .actions .coupon .input-text:focus {
  border-color: var(--usk-cart-input-focus);
}

/* Action Buttons */
.usk-page-cart .woocommerce-cart-form .shop_table .actions .button {
  width: 100% !important;
  background: transparent;
  border: 1px solid var(--usk-cart-primary);
  color: var(--usk-cart-primary);
  font-size: var(--usk-cart-text-base);
  font-weight: 600;
  transition: var(--usk-cart-transition);
  border-radius: var(--usk-cart-btn-radius);
  outline: none;
  cursor: pointer;
  line-height: 1.5;
  padding: 6px;
}

.usk-page-cart .woocommerce-cart-form .shop_table .actions .button:hover {
  background-color: var(--usk-cart-primary);
  color: var(--usk-cart-white);
}

/* Alternating Row Colors */
.usk-page-cart .woocommerce-cart-form .shop_table_responsive tr {
  margin: 0;
}

.usk-page-cart .woocommerce-cart-form .shop_table_responsive tr:nth-child(2n) td {
  background-color: var(--usk-cart-bg-alt);
}

/* Cart Totals Section */
.usk-page-cart .cart-collaterals {
  margin-top: var(--usk-cart-margin);
}

.usk-page-cart .cart-collaterals .cart_totals h2 {
  font-size: var(--usk-cart-title);
  text-transform: capitalize;
  font-weight: 600;
  color: var(--usk-cart-primary);
  margin: 0 0 30px 0;
}

.usk-page-cart .cart-collaterals .cart_totals .shop_table {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-collapse: collapse;
  margin: 0 0 20px 0;
  text-align: center;
}

.usk-page-cart .cart-collaterals .cart_totals .shop_table th,
.usk-page-cart .cart-collaterals .cart_totals .shop_table td {
  border: 1px solid rgba(0, 0, 0, 0.1);
  width: 100%;
  padding: var(--usk-cart-padding);
  line-height: 1.5em;
  background: transparent;
}

.usk-page-cart .cart-collaterals .cart_totals .shop_table th {
  font-size: var(--usk-cart-text-base);
  color: var(--usk-cart-text);
  text-transform: uppercase;
  font-weight: 700;
}

.usk-page-cart .cart-collaterals .cart_totals .shop_table td .woocommerce-Price-amount {
  font-size: var(--usk-cart-text-base);
  color: var(--usk-cart-price);
}

/* Checkout Button */
.usk-page-cart .cart-collaterals .cart_totals .wc-proceed-to-checkout {
  padding: 0;
}

.usk-page-cart .cart-collaterals .cart_totals .wc-proceed-to-checkout .button {
  background-color: var(--usk-cart-primary);
  color: var(--usk-cart-white);
  width: 100%;
  text-align: center;
  height: var(--usk-cart-btn-height);
  line-height: var(--usk-cart-btn-height);
  font-size: var(--usk-cart-text-sm);
  text-transform: uppercase;
  transition: var(--usk-cart-transition);
  margin: 0;
  border: none;
  border-radius: var(--usk-cart-btn-radius);
  text-decoration: none !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

.usk-page-cart .cart-collaterals .cart_totals .wc-proceed-to-checkout .button:hover {
  background: var(--usk-cart-primary-hover);
}

/* Desktop Styles */
@media (min-width: 1024px) {
  .usk-page-cart .woocommerce-cart-form .shop_table .actions .coupon {
    float: right;
    margin-bottom: 0;
  }
  .usk-page-cart .woocommerce-cart-form .shop_table .actions .button {
    width: 130px !important;
    font-size: var(--usk-cart-text-base);
  }
  .usk-page-cart .woocommerce-cart-form .shop_table .actions .coupon .input-text {
    width: 140px;
    font-size: var(--usk-cart-text-base);
  }
  .usk-page-cart .cart-collaterals .cart_totals .shop_table th,
  .usk-page-cart .cart-collaterals .cart_totals .shop_table td {
    width: 50%;
  }
  .usk-page-cart .cart-collaterals .cart_totals .wc-proceed-to-checkout .button {
    height: 55px;
    line-height: 55px;
    font-size: var(--usk-cart-text-base);
  }
}