.woocommerce-cart .dp-qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #c9b89a;
  border-radius: 4px;
  overflow: hidden;
  background: #faf6ee;
}

.woocommerce-cart .dp-qty .qty {
  width: 2.75rem !important;
  min-width: 2.75rem;
  margin: 0 !important;
  border: 0 !important;
  border-left: 1px solid #c9b89a !important;
  border-right: 1px solid #c9b89a !important;
  border-radius: 0 !important;
  text-align: center;
  font-family: Outfit, sans-serif;
  font-size: 0.95rem;
  background: #faf6ee;
  color: #143326;
  box-shadow: none !important;
}

.woocommerce-cart .dp-qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: 0.35rem 0.55rem;
  border: 0;
  background: #1b3d2f;
  color: #faf6ee;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.woocommerce-cart .dp-qty-btn:hover {
  background: #c56a2d;
}

.woocommerce-cart button[name="update_cart"] {
  display: none !important;
}

/* Product image beside name on cart + checkout */
.dp-line-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
}

.dp-line-item-thumb {
  display: block;
  width: 56px !important;
  height: 56px !important;
  max-width: 56px !important;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #c9b89a;
  flex: 0 0 56px;
  background: #f3ebdd;
}

.dp-line-item-text {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
}

/* Hide the separate thumbnail column so we do not show two images */
.woocommerce-cart .shop_table .product-thumbnail,
.woocommerce-cart-form .product-thumbnail {
  display: none !important;
}

@media (max-width: 768px) {
  .woocommerce-cart .dp-qty .qty {
    width: 2.5rem !important;
    min-width: 2.5rem;
  }

  .woocommerce-cart .dp-qty-btn {
    min-width: 2.5rem;
    padding: 0.5rem 0.65rem;
  }

  .dp-line-item-thumb {
    width: 64px !important;
    height: 64px !important;
    max-width: 64px !important;
    flex-basis: 64px;
  }

  /* WooCommerce hides some cells on mobile; keep name+image visible */
  .woocommerce table.shop_table_responsive tr td.product-name,
  .woocommerce-page table.shop_table_responsive tr td.product-name {
    display: block !important;
    text-align: left !important;
  }

  .woocommerce table.shop_table_responsive tr td.product-name::before,
  .woocommerce-page table.shop_table_responsive tr td.product-name::before {
    display: none !important;
  }

  .woocommerce-checkout-review-order-table .product-name,
  .woocommerce-checkout-review-order-table .dp-line-item {
    text-align: left !important;
  }
}

/* Visible cart icon on cart + checkout (WooCommerce hides the real mini-cart there) */
.dp-header-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: 0.35rem;
  color: #143326;
  text-decoration: none !important;
}

.dp-header-cart:hover {
  color: #c56a2d;
}

.dp-header-cart-icon {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

.dp-header-cart-count {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #c56a2d;
  color: #faf6ee;
  font-family: Outfit, sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.1rem;
  text-align: center;
}